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

How to change properties trough Variables?

Asked by 10 years ago

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?

0
I mean it prints 0 ispeakspanish 5 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

Var = 1 game.Workspace.Part.Transparency = Var
0
Is that what you wanted? drslicendice 27 — 10y
0
Yup, thanks for helping. I feel like a scrub ispeakspanish 5 — 10y
Ad

Answer this question