Advertisement
BlueberriezAndPie

TriAdmin

Aug 22nd, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. --Made by BlueberriezAndPie
  2. --Replace "BlueberriezAndPie" with your name on line 4
  3. owner = game.Players.BlueberriezAndPie
  4. Part = game.Workspace.Part
  5. Instance.new("Part", game.Workspace)
  6. Part.Name = ("Pyramid")
  7. Part.Anchored = true
  8. Part.Size = Vector3.new(1, 1, 1)
  9. Pyramid = game.Workspace.Pyramid
  10. bp = Instance.new("BodyPosition")
  11. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  12. bp.Parent = Pyramid
  13. me=Instance.new("SpecialMesh")
  14. me.Parent = Pyramid
  15. me.MeshId = "http://www.roblox.com/asset/?id=9755053"
  16. function onClicked(owner)
  17. game.Players.BlueberriezAndPie.Humanoid.MaxHealth = math.huge
  18. end
  19. function onPlayerEntered(owner)
  20. game.players.CharacterAdded:connect(function(char) --Anonymous function fired when player's character loads
  21. while wait() do -- Infinite loop!
  22. script.Parent.CFrame = CFrame.new(char.Torso.Position) -- Tele to player's position
  23. end
  24. end)
  25. end
  26. game.Players.PlayerAdded:connect(onPlayerEntered) -- connects function to PlayerAdded event.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement