Advertisement
minecrafter523

Untitled

Nov 20th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local char = player.Character
  3. local mouse = player:GetMouse()
  4. local hum = char.Humanoid
  5. local cam = game.Workspace.CurrentCamera
  6.  
  7. z = Instance.new("Part")
  8. z.Name = "TPBrick"
  9. z.Anchored = true
  10. z.Transparency = 1
  11. z.Position = Vector3.new(0, 600, 0)
  12. z.Parent = workspace
  13. z.Locked = true
  14. z.CanCollide = false
  15.  
  16. player1=game.Players.LocalPlayer
  17. q=Instance.new('HopperBin', player1.Backpack)
  18. q.Name = 'Click Teleport'
  19. bin = q
  20. function teleportPlayer(pos)
  21. local player = game.Players.LocalPlayer
  22. if player == nil or player.Character == nil then return end
  23. player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
  24. end
  25. enabled = true
  26. function onButton1Down(mouse)
  27. if not enabled then
  28. return
  29. end
  30. local player = game.Players.LocalPlayer
  31. if player == nil then return end
  32. enabled = false
  33. local cf = mouse.Hit
  34. local v = cf.lookVector
  35. teleportPlayer(cf.p)
  36. wait()
  37. enabled = true
  38. end
  39. function onSelected(mouse)
  40. mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  41. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  42. end
  43. bin.Selected:connect(onSelected)
  44.  
  45. while true do
  46. wait(0.3)
  47. player.Character:MoveTo(z.Position)
  48. player.Character:MoveTo(z.Position)
  49. player.Character:MoveTo(z.Position)
  50. player.Character:MoveTo(z.Position)
  51. x = Instance.new("Script", game.Players.LocalPlayer.Character)
  52. x.Name = "CharacterScript"
  53. game.Players.LocalPlayer.Character.CharacterScript:Destroy()
  54. game.Lighting.FogEnd = 100000
  55. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  56. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 2000
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement