Basicly a error with the script so i am making a power switch for a computer core game and kinda guessed it errored due to the arithmetic on field of 'Ambient for the full script
cd = script.Parent.ClickDetector
bool = true
M_A_D = 0
M_A_D = cd.MaxActivationDistance
offline = script.Parent.Offline
cd.MouseClick:connect(function()
if bool == true then
bool = false
cd.MaxActivationDistance = 0
for n = 1,87 do
wait()
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,-0.01)
end
wait()
workspace.PowerOn:Play()
workspace.ReactorOnline:Play()
wait(2.585999999999999)
for n = 1,70 do
wait()
game.Lighting.Ambient = game.Lighting.Ambient * Color3.new(1,1,1)
end
cd.MaxActivationDistance = M_A_D
script.Parent.Off.Disabled =true
script.Disabled = true
end
end)

3 comments
Pretty much try to help me
Accept the answer
I Did