Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local char = player.Character
- local mouse = player:GetMouse()
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- z = Instance.new("Part")
- z.Name = "TPBrick"
- z.Anchored = true
- z.Transparency = 1
- z.Position = Vector3.new(0, 600, 0)
- z.Parent = workspace
- z.Locked = true
- z.CanCollide = false
- player1=game.Players.LocalPlayer
- q=Instance.new('HopperBin', player1.Backpack)
- q.Name = 'Click Teleport'
- bin = q
- function teleportPlayer(pos)
- local player = game.Players.LocalPlayer
- if player == nil or player.Character == nil then return end
- player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
- end
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- local player = game.Players.LocalPlayer
- if player == nil then return end
- enabled = false
- local cf = mouse.Hit
- local v = cf.lookVector
- teleportPlayer(cf.p)
- wait()
- enabled = true
- end
- function onSelected(mouse)
- mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- bin.Selected:connect(onSelected)
- while true do
- wait(0.3)
- player.Character:MoveTo(z.Position)
- player.Character:MoveTo(z.Position)
- player.Character:MoveTo(z.Position)
- player.Character:MoveTo(z.Position)
- x = Instance.new("Script", game.Players.LocalPlayer.Character)
- x.Name = "CharacterScript"
- game.Players.LocalPlayer.Character.CharacterScript:Destroy()
- game.Lighting.FogEnd = 100000
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 2000
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement