Im new to scripting and I wonder if the following will change the variable number for the whole server or for just that one player that touched it.
local Var = true
local function ChangeVar(part)
if part.Parent.FindFirstChildWhichIsA("Humanoid") then
Var = false
end
end
script.Parent.Touched:Connect(ChangeVar)
How do you know if a variable changed for the whole server or just for a single player. Is there something in a code that will tell you that? Thank You

2 comments
insert your var name into var_name btw
please click answer if this helped!