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)