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

My script not working no errors but only the enum material error?

Asked by 2 years ago
Edited 2 years ago

So when I press w or s it does nothing and the enum material code won't work It's in a normal script inside the cars reverse lights mesh Code:

while true do
    ReverseLights = Enum.KeyCode.S
    ReverseLights2 = Enum.KeyCode.W
    if ReverseLights then script.Parent.Transparency = 0 and script.Parent.Material = Enum.Material

    end
    if ReverseLights2 then script.Parent.Transparency = 0.5 and script.Parent.Material = Enum.Material.SmoothPlastic

    end
    script.Parent.Transparency = 0.20
    wait(.20)
    script.Parent.Transparency = 0.20
        wait(.20)
        end
0
Line 04 and line 07, it needs to be a double = not just a single = NotThatFamouss 605 — 2y

1 answer

Log in to vote
0
Answered by
enes223 327 Moderation Voter
2 years ago

You need to choose a material in the enum like Neon, SmoothPlastic, Brick and other stuff.

Ad

Answer this question