(Solved)Can not I disable a script properly?
Asked by
6 years ago Edited 6 years ago
Hi, my problem is that when the floor deactivates the script when it gets on the car it keeps deactivating the script, it does not activate it once and then it is deactivated, because the cohce is touching the ground, what could I do?
01 | local ground = game.Workspace.ground |
02 | local car = game.Workspace.car.PrimaryPart |
04 | car.Touched:Connect( function (touch) |
06 | script.Parent.fire.Disabled = false |
10 | ground.Touched:Connect( function (touch) |
12 | script.Parent.fire.Disabled = true |