Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can Some One Help Me To Fix This Smoke Script?

Asked by 10 years ago
local s = Scrip.Parent.Smoke.Enable
local t = Script.Parent.Parent.Bus.VehicleSeat.Throttle

while true do
    if t = 1 then
        s = true
    end
        end

1 answer

Log in to vote
1
Answered by 10 years ago

In your local s line you put.

local s = Scrip.Parent.Smoke.Enable

It should be:

local s = script.Parent.Smoke.Enable

You spelt script wrong and you need it in lowercase, so script not Script.

Hope this helps, sorry if it doesn't.

0
no it don't work mrpoliceman2004 20 — 10y
0
Wait, what are you trying to do? giraffe73 5 — 10y
0
turn on smoke when you drive mrpoliceman2004 20 — 10y
1
I think you may have to do t > 1. Otherwise it will only smoke when the throttle is exactly one. OR you need to do if t == 1, by doing t = 1 you are assigning 1 to t. giraffe73 5 — 10y
View all comments (2 more)
0
yes that did it mrpoliceman2004 20 — 10y
0
Im happy to help. giraffe73 5 — 10y
Ad

Answer this question