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

Why wont this work?

Asked by 10 years ago
game.workspace.part.transparency = 0.5

Wont work. Please help.

0
Lua is Case Sensitive. Follow Coolviper630's suggestion and captialize Workspace, Part, and Transparency. M39a9am3R 3210 — 10y

2 answers

Log in to vote
2
Answered by 10 years ago

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

game.Workspace.Part.Transparency = 0.5

Ad
Log in to vote
0
Answered by 10 years ago

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

Answer this question