Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. _G.UsedKey = "T"
  3.  
  4.  
  5. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  6. if input.UserInputType == Enum.UserInputType.Keyboard then
  7. _G.UsedKey = input.KeyCode
  8. print("Your Called Key is now:",_G.UsedKey)
  9. end
  10. end)
  11.  
  12. while wait(0.5) do
  13. if _G.UsedKey == Enum.KeyCode.Y then
  14. print("Yeti TP is now active.")
  15. for _,v in pairs(workspace.Entities.yetiModel:GetDescendants()) do
  16. if v.Name == "Torso" then
  17. game.Players.LocalPlayer.character.HumanoidRootPart.CFrame = v.CFrame
  18. elseif _G.UsedKey == Enum.KeyCode.Z then
  19. print("Farmer TP is now active.")
  20. for _,v in pairs(workspace.Entities.farmerModel:GetDescendants()) do
  21. if v.Name == "Torso" then
  22. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  23.  
  24.  
  25. end
  26. end
  27. end
  28. end
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement