why wont my map change script work? no output errors and i dont see anything wrong
wait(2)
local time = 400
local map = game.ReplicatedStorage.Maps:GetChildren()
function OnClick(plr)
script.Parent.Map.Value = true
if script.Parent.Map.Value == true then
local gui = plr:WaitForChild("PlayerGui"):WaitForChild("update"):WaitForChild("text")
print 'Working'
wait(time)
script.Parent.Map.Value = false
end
end
script.Parent.ClickDetector.MouseClick:connect(OnClick)
plz help fix |