But the then statement is reline and I dont no what to do.
script.Parent.Parent.Parent.Head.Transparency= 1 then
script.Parent.Parent.Parent.BillboardGui.Enabled = false
But the then statement is reline and I dont no what to do.
script.Parent.Parent.Parent.Head.Transparency= 1 then
script.Parent.Parent.Parent.BillboardGui.Enabled = false
if script.Parent.Parent.Parent.Head.Transparency == 1 then
script.Parent.Parent.Parent.BillboardGui.Enabled = false
end
I've tried this and it shows no errors
but if I do one = instead of == the = is red underline
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Please explain your problem with more info.
if script.Parent.Parent.Parent.Head.Transparency= 1 then 2 script.Parent.Parent.Parent.BillboardGui.Enabled = false end
You're not supposed to have a then there. A then is only for if-then statements. It's if you want to have a condition occur for that part of the script to execute.
".Enabled = false" i wonder why it's disabled!1!
if script.Parent.Parent.Parent.Head.Transparency= then script.Parent.Parent.Parent.BillboardGui.Enabled = false