Im making a script that when a StringValue is "None" will be changed to "GomuGomuNoMi" but doesn't work, you know what is the problem?
01 | button = script.Parent |
02 |
03 | function onTouch(part) |
04 | local player = game.Players:GetPlayerFromCharacter(part.Parent) |
05 | if player ~ = nil then |
06 | if player.stats.Race.Value = = "None" then |
07 | player.stats.Race.Value = "GomuGomuNoMi" |
08 | end |
09 | end |
10 | end |
11 |
12 | button.Touched:connect(onTouch) |
thanks
"I tried it and works fine, make sure It's in a 'Script' and not a 'Local Script', make sure the values are actually going into the player, make sure the value is 'None, 'and try debugging methods - ie. (print('Test1')). They'll work extremely well."
By : xEiffel