Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UIS = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- function GetCharacter()
- return game.Players.LocalPlayer.Character
- end
- function Teleport(pos)
- local Char = GetCharacter()
- if Char then
- Char:MoveTo(pos)
- end
- end
- UIS.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
- Teleport(Mouse.Hit.p)
- end
- end)
Add Comment
Please, Sign In to add comment