Advertisement
AstrozUniversal

Random

Dec 7th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local work = workspace:GetChildren()
  2. for i = 1, #work do local v = work[i]
  3. if v.Name == "diamond" and v:FindFirstChild("TouchInterest") then
  4. pcall(function()
  5. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  6. end)
  7. end
  8. end
  9.  
  10. workspace.ChildAdded:Connect(function(v)
  11. if v.Name == "diamond" then
  12. pcall(function()
  13. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  14. end)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement