I made a server script which runs when a particular event has been fired. In this script Dir is a boolean value which changes according to the input of the player. In the snippet I provided , the code should run accordingly to the boolean value but the if else statement always run according to the initial value of the boolean value even after changing the boolean value .
#Value not updating
11 messages · Page 1 of 1 (latest)
instead use
if Dir.Value then
(things when value is true)
else
(things when value is false)
end
Oh i fixed it , Thanks for the help tho!
not sure if its the problem but this correct usage of if else statemnts with boolean values
yw
the problem was that i was trying to change a server property with a local script
yeah i saw it now
dont forgot updating the code with that cuz this way more effective