Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- clicked = 1
- a, b, c = 1, 2, 3
- a2, b2, c2 = 1, 2, 3
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- Set()
- elseif (key == "q" and clicked == 1) then
- One()
- elseif (key == "q" and clicked == 2) then
- Two()
- end
- end)
- function Set()
- player = game.Players.LocalPlayer
- character = player.Character
- hmndrootpart = character:FindFirstChild("HumanoidRootPart")
- a = hmndrootpart.Position.X
- b = hmndrootpart.Position.Y
- c = hmndrootpart.Position.Z
- clicked = 1
- end
- function One()
- hmndrootpart = character:FindFirstChild("HumanoidRootPart")
- a2 = hmndrootpart.Position.X
- b2 = hmndrootpart.Position.Y
- c2 = hmndrootpart.Position.Z
- hmndrootpart.CFrame = CFrame.new(Vector3.new(a, b, c))
- clicked = 2
- end
- function Two()
- player = game.Players.LocalPlayer
- character = player.Character
- print("two")
- hmndrootpart = character:FindFirstChild("HumanoidRootPart")
- hmndrootpart.CFrame = CFrame.new(Vector3.new(a2, b2, c2))
- clicked = 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement