I wanted to make a script, where it changes the value of a String Value for gamemodes, I have a script here:
function onClick()
script.Parent.Parent.Parent.Tutorialformap1.gm.Value="training"
end
script.Parent.MouseButton1Up:connect(onClick)
No output, I check the String Value and it does not change help?

7 comments
What is the hierachy on Objects in Explorer? Is this a LocalScript or a normal Script?
Local.
Most likely there is something wrong with the path to the value because if you did switch to MouseButton1Down then the code should be working fine
I checked it, it still doesn't work :c
Is there an error in the output? If not, why do you think it's not working? Have you tried adding
prints to check if things are working?I will try add prints.
Nope, it gets to the end but doesn't change it and no output.