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

Can I effect my Part with scripts?

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

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

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.

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.

1 comment

0

No need, glad you put effort.

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