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

Why does it say Expected Identifier, got "="?

Asked by 7 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

It says Expected Identifier,got "="

I am trying to make a script where a model can be changed from transparency=1 to transparency=0 when I click a Button. I wont work!

1
A model does not have a transparency propertie, can you please include the script and put it into a code block. User#5423 17 — 7y
3
There's actually a glitch in roblox. It should be saying "Got milk?" but it's saying "got =" instead. EzraNehemiah_TF2 3552 — 7y

1 answer

Log in to vote
2
Answered by 7 years ago

You cant make a model not transparent by doing model.Transparency=0. Instead you would have to make every single child of the model not transparent. Hard work right? Well, this can be done easily with a for loop.

for i,v in pairs(model:GetChildren() do
    v.Transparency=0
end

although this is obvious, replace model with your model. Hope this helped

Ad

Answer this question