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

Any help plz?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

Not working I bet its easy to fix..

game.Workspace.Part.Transparency = "0.5"

Why not working?

3 answers

Log in to vote
0
Answered by 9 years ago

There are two possibilities for you here, seeing as how you aren't completely clear in your question:

1) You want the part to have 0.5 Transparency when someone enters the game. Easiest thing to do is go into the properties of your chosen part and change the 'transparency' to what you want it to be. No scripts needed.

or, 2) You want it so that when you touch a brick, it changes the transparency. You've had a go, but you'll need a function to activate the script:

function onTouch()
    script.Parent.Transparency = 0.5
end

script.Parent.Touched:connect(onTouch)

Make sure the script is inside the part you're wanting to be transparent.

Ad
Log in to vote
0
Answered by 9 years ago

I think you know this..

Log in to vote
0
Answered by 9 years ago

Don't put the quotes around .5 and make sure the part name is actually the name of the part in the workspace.

Answer this question