UnderCoverScripts

Defenders Depot

Dec 12th, 2022
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. game:GetService("Players").LocalPlayer:WaitForChild("Info"):WaitForChild("Gamepasses"):WaitForChild("Auto").Value = true
  2. local player = game.Players.LocalPlayer
  3. for i,p in pairs(game.Workspace:GetChildren()) do
  4. if p.Name == "Crate" then
  5. p.CanCollide = false
  6. p.Position = player.Character.HumanoidRootPart.Position
  7. end
  8. end
  9.  
  10. workspace.ChildAdded:Connect(function(child)
  11. if child.Name == "Crate" then
  12. child.CanCollide = false
  13. child.Position = player.Character.HumanoidRootPart.Position
  14. end
  15. end)
  16.  
  17. spawn(function()
  18. while wait(15) do
  19. for i,p in pairs(game.Workspace:GetChildren()) do
  20. if p.Name == "Crate" then
  21. p.CanCollide = false
  22. p.Position = player.Character.HumanoidRootPart.Position
  23. end
  24. end
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment