Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || TELEPORT BY C FRAME (WHITELISTED) || CHANGE CFRAME.NEW TO THE PART YOU WANNA TELEPORT TO.
- ]]
- local Whitelist = {}
- -- Whitelist for people u want to be teleported to a specific location
- for i,v in ipairs(Whitelist) do
- local part = script.Parent.Parent.Hatch
- for i,parts in pairs(part:GetChildren()) do
- parts.Touched:Connect(function(hit)
- if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
- local player = game.Players[hit.Parent.Name]
- player:FindFirstChild("Humanoid")
- if player.Name ~= v then
- player:Kick("Sorry, this is a Developer Area only!")
- end
- if player.Name == v then
- player.Character.HumanoidRootPart.CFrame = CFrame.new(-43.89, 0.5, -33.96)
- end
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement