Here is a script for a teleporter that I made:
local Teleport = workspace.TeleportPad
function Touch(hit)
if script.Parent.Locked == false and script.Parent.Parent:FindFirstChild("TeleportPad").Locked == false then script.Parent.Locked = time script.Parent.Parent:FindFirstChild("TeleportPad").Locked = true
local pos = script.Parent.Parent:FindFirstChild("TeleportPad")
hit.Parent:moveTo(workspace.TeleportPoint.Position) wait(1) script.Parent.Locked = false script.Parent.Parent:FindFirstChild("TeleportPad").Locked = false end end
script.Parent.Touched:Connect(Touch)
I want the teleporter to only work when at least 5 people (including both players and NPCs) step on it. What do I need to add to the script in order for that to happen?

2 comments
Please F o r m a t the script
yep