_G.Spawning = true
local blockName = "Free Block"
local player = game:GetService("Players").LocalPlayer
task.spawn(function()
while _G.Spawning do
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
local children = workspace:GetChildren()
for i = 1, #children do
local obj = children[i]
-- Check if the object is the block and is a BasePart (can be moved)
if obj.Name == blockName and obj:IsA("BasePart") then
obj.CFrame = character.HumanoidRootPart.CFrame
end
end
end
task.wait(0.1) -- Small delay to prevent lag
end
end)
Comments
No comments yet
Be the first to share your thoughts!