of     1   

loomis0523BC
#168697950Friday, July 24, 2015 10:50 PM GMT

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
loomis0523BC
#168699088Friday, July 24, 2015 11:03 PM GMT

b1
TimeTicks
#168707291Saturday, July 25, 2015 12:33 AM GMT

Because you should do Waitforchild every single time. and you didnt do anything with the gui. local secs = 400 local map = script.Parent.Map script.Parent.ClickDetector.MouseClick:connect(function(player) map.Value = true if map.Value then local gui = player.PlayerGui:WaitForChild("Update") wait(secs) script.Parent.Map.Value = false end end) "Talk is cheap. Show me the code." - Linus Torvalds
TimeTicks
#168707335Saturday, July 25, 2015 12:34 AM GMT

map.Value = false * "Talk is cheap. Show me the code." - Linus Torvalds

    of     1