Advertisement
iiWolfie

Orb

May 6th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.Nuberzzz = game.Players:GetChildren()
  2. Instance.new("Part",game.Workspace)
  3. local Part = game.Workspace.Part
  4. Part.Anchored = true
  5. Part.Size = Vector3(1,1,1)
  6. Part.MeshId = ("http://www.roblox.com/Asset/?id=9756362")
  7. Part = Instance.new("ClickDetector",game.Workspace.Part)
  8. function onClicked(playerWhoClicked)
  9. for i = 1,#p do
  10. p[i].Character.Head:remove()
  11. end
  12. end
  13.  
  14. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  15. function onPlayerEntered(player)
  16. player.CharacterAdded:connect(function(player) --Anonymous function fired when player's character loads
  17. while wait() do -- Infinite loop!
  18. Part.CFrame = CFrame.new(player.Torso.Position) -- Tele to player's position
  19. end
  20. end)
  21. end
  22. game.Players.PlayerAdded:connect(onPlayerEntered) -- connects function to PlayerAdded event.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement