Advertisement
OEAgamer1

Key Press to Teleport System

Jan 29th, 2024
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2.  
  3. local function onInputBegan(input, gameProcessed)
  4.     if input.KeyCode == Enum.KeyCode.T then
  5.         local player = game.Players.LocalPlayer
  6.         player.Character.HumanoidRootPart.CFrame = CFrame.new(x, y, z)
  7.     end
  8. end
  9.  
  10. UserInputService.InputBegan:Connect(onInputBegan)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement