When i execute script all works fine, but over time stops working. Script:
local plr = game:service("Players").LocalPlayer local userinputservice = game:service("UserInputService") local chest = workspace.Chests.LargeChest _G.distance = 4 userinputservice.InputBegan:connect(function(inp) if inp.KeyCode == Enum.KeyCode.T then while wait() do for _,v in next, chest:GetChildren() do v.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.X,plr.Character.HumanoidRootPart.CFrame.Y,plr.Character.HumanoidRootPart.CFrame.Z - _G.distance) v.HumanoidRootPart.Anchored = true end end end end)
The problem is that through time writes: HumanoidRootPart is not a valid of Model. Help pls!
PS: Click view source to see all script, becouse website dont show to end!