Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- _G.UsedKey = "T"
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- _G.UsedKey = input.KeyCode
- print("Your Called Key is now:",_G.UsedKey)
- end
- end)
- while wait(0.5) do
- if _G.UsedKey == Enum.KeyCode.Y then
- print("Yeti TP is now active.")
- for _,v in pairs(workspace.Entities.yetiModel:GetDescendants()) do
- if v.Name == "Torso" then
- game.Players.LocalPlayer.character.HumanoidRootPart.CFrame = v.CFrame
- elseif _G.UsedKey == Enum.KeyCode.Z then
- print("Farmer TP is now active.")
- for _,v in pairs(workspace.Entities.farmerModel:GetDescendants()) do
- if v.Name == "Torso" then
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement