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

Why wont this work?

game.workspace.part.transparency = 0.5

Wont work. Please help.

1 comment

0

Lua is Case Sensitive. Follow Coolviper630's suggestion and captialize Workspace, Part, and Transparency.

2 answers

✓ Accepted answer

It won't work because "Workspace" needs to be capitalized, and same for "Transparency" and "Part"

game.Workspace.Part.Transparency = 0.5

2 main errors:

It's Transparency not transparency Are you sure it's called part and not Part?

The correct script(s) is below:

--OPTION 1
workspace.Part.Transparency = 0.5

--OPTION 2
game.Workspace.Part.Transparency = 0.5

--OPTION 3
a = game.Workspace.Part
a.Transparency = 0.5

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