Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.Nuberzzz = game.Players:GetChildren()
- Instance.new("Part",game.Workspace)
- local Part = game.Workspace.Part
- Part.Anchored = true
- Part.Size = Vector3(1,1,1)
- Part.MeshId = ("http://www.roblox.com/Asset/?id=9756362")
- Part = Instance.new("ClickDetector",game.Workspace.Part)
- function onClicked(playerWhoClicked)
- for i = 1,#p do
- p[i].Character.Head:remove()
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- function onPlayerEntered(player)
- player.CharacterAdded:connect(function(player) --Anonymous function fired when player's character loads
- while wait() do -- Infinite loop!
- Part.CFrame = CFrame.new(player.Torso.Position) -- Tele to player's position
- end
- end)
- end
- game.Players.PlayerAdded:connect(onPlayerEntered) -- connects function to PlayerAdded event.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement