Hello, I have a script that works when the car is running and not regened, but it doesn't work when the car regenerates. Can somebody help me figure this out?
local ambulance = game.Workspace:WaitForChild("Ambulance") local shell = ambulance.Shell local siren = shell["Ambulance Siren"] script.Parent.ClickDetector.MouseClick:connect(function(player) siren:Stop() end)
You probably haven't made a script to put the script back into the car after regen
put your script:
script.Parent.ClickDetector.MouseClick:connect(function(player) local ambulance = game.Workspace:WaitForChild("Ambulance") workspace.Ambulance.Shell["Ambulance Siren"]:Stop() end)
into the model that it regenerates from