Advertisement
Xanonony

Untitled

Apr 2nd, 2022
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. local name = game.Players.LocalPlayer.Name
  2.  
  3. nameplayer = "Qoucx"
  4.  
  5. -- Directamente
  6.  
  7. pos = workspace[name].HumanoidRootPart.CFrame
  8.  
  9. workspace[name].HumanoidRootPart.CFrame = workspace[nameplayer].HumanoidRootPart.CFrame
  10. print("Teleported to:", nameplayer)
  11. wait(5)
  12. workspace[name].HumanoidRootPart.CFrame = pos
  13.  
  14.  
  15. -- Keybind
  16.  
  17. Keybind = "X"
  18.  
  19. game:GetService("UserInputService").InputBegan:connect(function(key)
  20. if key.KeyCode == Enum.KeyCode[Keybind] then
  21. workspace[name].HumanoidRootPart.CFrame = workspace[nameplayer].HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement