Why doesn´t the Increment Value get updated to one?
I need a certain value to rise when the player presses the part. I am assigning this value through another script and it doesn´t work. The value I am talking about is the player.Hidden.Increment.Value
. The script below is a server script while the script assigning the value is a local script.
01 | script.Parent.ClickDetector.MouseClick:Connect( function (player) |
02 | player.Hidden.Hazard.Value = player.Hidden.Hazard.Value + 1 + player.Hidden.Increment.Value |
03 | print (player.Hidden.Hazard.Value + player.Hidden.Increment.Value) |
04 | script.Parent.Transparency = script.Parent.Transparency + 0.1 |
07 | if script.Parent.Transparency > 1 then |
08 | script.Parent.ClickDetector.MaxActivationDistance = 0 |
09 | script.Parent.CanCollide = false |
I will remember to accept a good answer.