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

How do i make a Anchored block with script?

Asked by
iivSnooxy 248 Moderation Voter
4 years ago

Please tell me were i went wrong..

game.Workspace.Door = true
0
hahahah valledestroy 54 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago

What are you trying to do? You are just setting up a boolean value with the part, not the part's property.

game.Workspace.Door.Anchored = true
0
HOw come i never understand these scripts :( , wait... can you do the same thing with a local variable? iivSnooxy 248 — 4y
0
Not really understood by what you said. Ask that in another question SilentsReplacement 468 — 4y
0
Is it possible that I could Anchor an object by using a local variable, if so how? iivSnooxy 248 — 4y
0
You declare the variable for the part for e.g local part = game.Workspace.Part and then you set the variable to anchored since you already defined it SilentsReplacement 468 — 3y
Ad
Log in to vote
1
Answered by 4 years ago

you have to write:

game.Workspace.Door.Anchored = true
0
because you cant set the door to true hahahhah valledestroy 54 — 4y
0
Dang best me to the easy one. SethHeinzman 284 — 4y
0
Dang best me to the easy one. SethHeinzman 284 — 4y

Answer this question