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

How to change properties trough Variables?

So... I can always do

Var1 = game.Workspace.Part.Transparency

It works perfectly. When I print it..It prints"1".Good. But when I try to change it by putting things like

Var1 = 5

It doesn't work. How do I change a property trough a variable?

1 comment

0

I mean it prints 0

1 answer

✓ Accepted answer

Var = 1
game.Workspace.Part.Transparency = Var

2 comments

0

Is that what you wanted?

0

Yup, thanks for helping. I feel like a scrub

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