Advertisement
4zx16

Teleport by CFrame (On Touch) (Whitelisted) (One Part)

Nov 21st, 2021
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || TELEPORT BY C FRAME (WHITELISTED) (ONE PART) || CHANGE CFRAME.NEW TO THE PART YOU WANNA TELEPORT TO.
  3. ]]
  4. local Whitelist = {}
  5. -- Whitelist for people u want to be teleported to a specific location
  6.  
  7. for i,v in ipairs(Whitelist) do
  8.     local part = script.Parent
  9.     script.Parent.Touched:Connect(function(hit)
  10.         if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
  11.             local player = game.Players[hit.Parent.Name]
  12.             player:FindFirstChild("Humanoid")
  13.             player.Character.HumanoidRootPart.CFrame = CFrame.new(-43.89, 0.5, -33.96)
  14.         end
  15.     end)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement