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

Can I effect my Part with scripts?

Asked by 10 years ago

I have a brick name Bobby John. I want Bobby John to be effective with scripts. If you are confused, here are some scripts,

game.Workspace.BobbyJohn.Transparency=0.5
game.Workspace.BobbyJohn.BrickColor = Really Black

Help?

3 answers

Log in to vote
1
Answered by
Sublimus 992 Moderation Voter
10 years ago

You can affect any part with scripts, the first one will work but the second one needs this change:

game.Workspace.BobbyJohn.BrickColor = BrickColor.new("Really black") -- You have to declare a new BrickColor value
Ad
Log in to vote
1
Answered by
Andalf 100
10 years ago

Is your brick named "Bobby John" or "BobbyJohn"?

If it's the former you need to access it like this

game.Workspace["Bobby John"].Property, otherwise game.Workspace.BobbyJohn.Property is the correct method.

Log in to vote
0
Answered by
SNOWFKE 25
10 years ago

That script won't work on Bobby John. You need to make the name of your Part BobbyJohn for that to work.

Note: I am new to scripting. I may be off.

0
No need, glad you put effort. Roboy5857 20 — 10y

Answer this question