_G.toggle = true
while _G.toggle == true do
task.wait(1)
local character = game.Players.LocalPlayer.Character
local rootPart = character and character:FindFirstChild("HumanoidRootPart")
if rootPart then
for _, candycorn in pairs(workspace.CandyCorns:GetChildren()) do
if candycorn:IsA("BasePart") then
candycorn.CFrame = rootPart.CFrame
end
end
end
endI quickly made this script because no other script is updating immediately after update. This is completely open source and free use :3
1_G.toggle = true
2
3while _G.toggle == true do
4 task.wait(1)
5 local character = game.Players.LocalPlayer.Character
6 local rootPart = character and character:FindFirstChild("HumanoidRootPart")
7
8 if rootPart then
9 for _, candycorn in pairs(workspace.CandyCorns:GetChildren()) do
10 if candycorn:IsA("BasePart") then
11 candycorn.CFrame = rootPart.CFrame
12 end
13 end
14 end
15endNo comments yet. Be the first to comment!