Ok thanks for this! It worked!
3 Likes
No problem! Glad we could help.
2 Likes
I’m also having this trouble, well, similar trouble because its ‘else’ and not , I will make a script including an else, how do I fix it?
function clicc()
workspace.De.BrickColor = BrickColor.Black()
toggle = false
else
workspace.De.BrickColor = BrickColor.Red()
toggle = true
end
script.Parent.MouseButton1Down:Connect(clicc)
1 Like
function clicc()
If workspace.De.BrickColor = BrickColor.Black() then
toggle = false
elseif workspace.De.BrickColor = BrickColor.Red() then
toggle = true
end
script.Parent.MouseButton1Down:Connect
Try this.
2 Likes