while true do wait() script.Parent.MouseButton1Click:connect(function() if script.Parent.Parent.Texture.Value >= 1 then script.Parent.Parent.Texture.Value = script.Parent.Parent.Texture.Value - 1 else script.Parent.Parent.Texture.Value = 10 end
It is a LocalScript the hierarchy goes like this Load/NewGame By XxmanwolfxX > ResetSave > Eyebrow Choose > Last > LocalScript
When I go to test it, the button wont change the gui's actions at all.
while true don't
You're listening for an event; you don't need a giant infinite loop waiting to crash your game.
script.Parent.MouseButton1Click:connect(function() if script.Parent.Parent.Texture.Value >= 1 then script.Parent.Parent.Texture.Value = script.Parent.Parent.Texture.Value - 1 else script.Parent.Parent.Texture.Value = 10 end end)