Hi, my script is highlighting line 5. I know why but I don't know how to fix it. I just had a holiday for a week so it has removed all of my knowledge of scripting. Please help me fix this simple error.
I think else has to do something with the 'if' statement. I just can't remember though -_-
Best regards, Nathan.
Fanfive=game.Workspace.Fans.Five.Decal
function onClick()
Fanfive.Texture = 'http://www.roblox.com/asset/?id=166126631'
else
Fanfive.Texture = 'http://www.roblox.com/asset/?id=166126649'
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

7 comments
Diddn't work, thanks anyway
I realised, I looked at it and it says something about Line 7 Expecting to end Line 5...
Hmm,
Notice the else has a ) after it
Nope :(
I meant Line 5 Expecting to end Line 7 on the 2nd Comment
Hmm.. Idk Explain to me what you are trying to do with the decal