Advertisement
OnFireRobloxScriptin

Hold E to Teleport

Mar 22nd, 2025
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. --//Variables
  2. local prox = script.Parent.ProximityPrompt --Variable for the proximity prompt
  3. local teleportLocation = workspace.TeleportLocation --Variable for your teleport location part
  4.  
  5. prox.Triggered:Connect(function(player) --When the proximity prompt is triggered
  6.     local character = player.Character --Variable for the player's character
  7.     character:PivotTo(teleportLocation.CFrame + Vector3.new(0, 10, 0)) --Teleport character to new location
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement