Function pseudo-sets value for some reason?
Asked by
2 years ago Edited 2 years ago
01 | game.ServerStorage.toolactive.Event:Connect( function (player, mousetarget) |
02 | if rock.Transparency ~ = 1 then |
05 | if mousetarget = = rock then |
07 | Owner.Value = player.Name |
This code sets the Owner value to the player name, and upon printing Owner.Value in the function it says it is the player name, BUT, upon printing outside the function the value has not changed.
The transparency change works which makes me even more confused.
I have no idea what causes this, any contributions are appreciated.