Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 comment

0

Line 04 and line 07, it needs to be a double = not just a single =

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.