Boolvalue failing to register

Hello, the problem is that whenever a boolvalue gets changed to false, the script does not register it.

Code thats not registering [Serverside Script];

while true do
wait()
if part6.Value == true then
	if script.Parent.Throttle == 1 and xangle < 120 then
		print('going up')
		a.C0 = a.C0 * CFrame.Angles(math.rad(xspeed),0,0)
		xangle = xangle + xspeed
	elseif script.Parent.Throttle == -1 and xangle > - 5 then
		a.C0 = a.C0 * CFrame.Angles(-math.rad(xspeed),0,0)
		xangle = xangle - xspeed		
	elseif script.Parent.Steer == 1 and yangle > -100 then
		a.C0 = a.C0 * CFrame.Angles(0,-math.rad(yspeed),0)
		yangle = yangle - yspeed
	elseif script.Parent.Steer == -1 and yangle < 100 then
		a.C0 = a.C0 * CFrame.Angles(0,math.rad(yspeed),0)
		yangle = yangle + yspeed
	end
elseif part6.Value == false then
	print('LOLSTATUSWORKSSSSS')
end	

end

Code that changes the boolvalue[LocalScript];

function Shutdown()
if game.Workspace.Alpha.Status.Value == true then
	script.Parent.Parent.SystemLabel.Text = 'SYSTEM OFFLINE'
	script.Parent.Text = 'Start up'
	game.Workspace.Alpha.Status.Value = false	
print('Status is false')
elseif game.Workspace.Alpha.Status.Value == false then
	script.Parent.Parent.SystemLabel.Text = 'SYSTEM ONLINE'
	script.Parent.Text = 'Shutdown'
	game.Workspace.Alpha.Status.Value = true		
end

end

script.Parent.Activated:Connect(Shutdown)

https://gyazo.com/115466fc50caacc270aeb3463b972df6

2 Likes

You’re changing the Value on the client, and therefore the server cannot see this!
I recommend integrating a RemoteEvent to change the Value of the BoolValue.

2 Likes

if you are going to write something like this:

if StupidValue.Value == true then
--or
if Rekt.Value == false then

don’t, write this instead:

if StupidValue.Value then
--or
if not Rekt.Value then

I hope this helpk

2 Likes

Thanks for the help! It works now.