BlueberriezAndPie

TriAdmin

Aug 22nd, 2015
259
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. 

  4. owner = game.Players.BlueberriezAndPie
  5. Part = game.Workspace.Part
  6. 

  7. Instance.new("Part", game.Workspace)
  8. Part.Name = ("Pyramid")
  9. Part.Anchored = true
  10. Part.Size = Vector3.new(1, 1, 1)
  11. 

  12. Pyramid = game.Workspace.Pyramid
  13. 

  14. bp = Instance.new("BodyPosition")
  15. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  16. bp.Parent = Pyramid
  17. 

  18. me=Instance.new("SpecialMesh")
  19. me.Parent = Pyramid
  20. me.MeshId = "http://www.roblox.com/asset/?id=9755053"
  21. 

  22. function onClicked(owner)
  23. game.Players.BlueberriezAndPie.Humanoid.MaxHealth = math.huge
  24. end
  25. 

  26. function onPlayerEntered(owner)
  27. game.players.CharacterAdded:connect(function(char) --Anonymous function fired when player's character loads
  28. while wait() do -- Infinite loop!
  29. script.Parent.CFrame = CFrame.new(char.Torso.Position) -- Tele to player's position
  30. end
  31. end)
  32. end
  33. 

  34. game.Players.PlayerAdded:connect(onPlayerEntered) -- connects function to PlayerAdded event.
Advertisement
Add Comment
Please, Sign In to add comment