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 11 years ago
1game.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 — 11y

2 answers

Log in to vote
2
Answered by 11 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 11 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:

1--OPTION 1
2workspace.Part.Transparency = 0.5
3 
4--OPTION 2
5game.Workspace.Part.Transparency = 0.5
6 
7--OPTION 3
8a = game.Workspace.Part
9a.Transparency = 0.5

Answer this question