RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make it so the player can teleport where ever the player is looking by just pressing the 't' key"
-- local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function onKeyPress(key) if key == "t" then local target = mouse.Target if target then player.Character:MoveTo(target.Position) end end end mouse.KeyDown:Connect(onKeyPress)