I'm editing this script (Btw, I'm learning how to script) and I see tuple, but I don't know what it means. Tuple is in line 10 and 11.
local panelID = 3 -- MAKE SURE THIS NUMBER IS NOT THE SAME AS ANY OTHER MACHINE ID ON THE SERVER
local replicatedStorage = game:GetService("ReplicatedStorage")
local remote = replicatedStorage:WaitForChild("RemoteEventSCPPanels")
--Data saving.
local gateMoving = false
remote.OnServerEvent:connect(function(player, ...)
local tuple = {...}
if tuple[1] == panelID then
if tuple[2] == "HCZLockdownOn" then
if player:GetRankInGroup(3097900) >= 1 then
if gateMoving == false then
gateMoving = true
local task = coroutine.wrap(function()
while gate1.Position.Z < -555.887 do
gate1.CFrame = gate1.CFrame + Vector3.new(0, 0, 0.1)
wait(0.01)
end
gateMoving = false
end)
task()
local task = coroutine.wrap(function()
while gate2.Position.Z > -526.704 do
gate2.CFrame = gate2.CFrame - Vector3.new(0, 0, 0.1)
wait(0.01)
end
gateMoving = false
end)
task()
end
end
elseif tuple[2] == "HCZLockdownOff" then
if player:GetRankInGroup(3097900) >= 1 then
if gateMoving == false then
gateMoving = true
local task = coroutine.wrap(function()
while gate1.Position.Z > -564.887 do
gate1.CFrame = gate1.CFrame - Vector3.new(0, 0, 0.1)
wait(0.01)
end
gateMoving = false
end)
task()
local task = coroutine.wrap(function()
while gate2.Position.Z < -517.704 do
gate2.CFrame = gate2.CFrame + Vector3.new(0, 0, 0.1)
wait(0.01)
end
gateMoving = false
end)
task()
end
end
end
end
end)

1 comment
This doesn't really explain what the
...mean