Handler
Handler
else
body.DRL.Transparency = 1
body.Startupscreen.Transparency = 1
body.Mainscreen.Transparency = 1
body.Second.Transparency = 1
body.Third.Transparency = 1
body.Blueint.Transparency = 1
misc.Speedo.Parts.Needle.Transparency = 1
misc.Tach.Parts.Needle.Transparency = 1
body.Bluelight.Transparency = 1
body.Lightbluelight.Transparency = 1
body.Redlight.Transparency = 1
body.Whitelight.Transparency = 1
body.Speedometer.Transparency = 1
misc.FORTUNE.Steering_Wheel.Parts.Steering.Light.Transparency = 1
end
elseif lights == 'reverse' then
body.RV.Transparency = bool and 0.1 or 1
body.RV.Light.Enabled = bool
end
end
local b = ''
function optwait(sec,opt)
if opt then
wait(sec)
end
end
end
end
car.DriveSeat.LI.Value = tog
elseif dir == 'Right' then
body.FR.Transparency = tog and 0.1 or 1
body.intright.Transparency = tog and 0.1 or 1
misc.FRdoor.MR.Transparency = tog and 0.1 or 1
body.RR.Transparency = tog and 0.1 or 1
misc.Trunk.RRMisc.Transparency = tog and 0.1 or 1
car.DriveSeat.RI.Value = tog
elseif dir == 'Hazards' then
body.FL.Transparency = tog and 0.1 or 1
body.intleft.Transparency = tog and 0.1 or 1
body.intright.Transparency = tog and 0.1 or 1
misc.FLdoor.ML.Transparency = tog and 0.1 or 1
body.RL.Transparency = tog and 0.1 or 1
body.FR.Transparency = tog and 0.1 or 1
misc.FRdoor.MR.Transparency = tog and 0.1 or 1
body.RR.Transparency = tog and 0.1 or 1
misc.Trunk.RRMisc.Transparency = tog and 0.1 or 1
misc.Trunk.RLMisc.Transparency = tog and 0.1 or 1
car.DriveSeat.LI.Value = tog
car.DriveSeat.RI.Value = tog
end
end
function blink(typ)
b = typ
if blinking == true then
blinking = false
else
blinking = true
blinkL(typ, false)
while blinking do
Toggle(typ, true)
script.Parent:FireClient(player, 'blink', .9, true)
wait(1/3)
Toggle(typ, false)
script.Parent:FireClient(player, 'blink', 0.8, true)
wait(1/3)
end
Toggle(typ, false)
script.Parent:FireClient(player, 'blink', .9, false)
wait(1/9)
blinkL(typ, true)
end
end
script.Parent.Parent.ChildRemoved:connect(function(child)
if child:IsA("Weld") and BlinkersEnabled then
if blinking == true and b == 'Hazards' then
return
else
blinking = false
end
end
end)
F.blinkers = function(dir)
blink(dir)
end
F.lockflash = function()
Toggle('Hazards', true)
wait(1/3)
Toggle('Hazards', false)
end
F.unlockflash = function()
Toggle('Hazards', true)
wait(1/3)
Toggle('Hazards', false)
wait(1/3)
Toggle('Hazards', true)
wait(1/3)
Toggle('Hazards', false)
end
script.Parent.OnServerEvent:connect(function(pl,Fnc,...)
player = pl
F[Fnc](...)
end)