Advertisement
Souperyi

Untitled

Jul 26th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local mychar = game.Players.LocalPlayer.Character
  2. local uis = game:GetService("UserInputService")
  3.  
  4. local tp1
  5. local tp2
  6.  
  7. local tp1_key = Enum.KeyCode.K
  8. local tp2_key = Enum.KeyCode.L
  9.  
  10. uis.InputBegan:Connect(function(ipt)
  11. if ipt.KeyCode == tp1_key then
  12. mychar:MoveTo(tp1)
  13. elseif ipt.KeyCode == tp2_key then
  14. mychar:MoveTo(tp2)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement