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

why doesn't my part unanchored?

Asked by 7 years ago

when ever I put in

game.Workspace.Part.Anchored = False

It never unanchors same way if I try to anchor it

what did I do wrong?

3 answers

Log in to vote
0
Answered by 7 years ago

If you have several instances in the workspace with the name Part it won't work like you want it too.

Try changing the objects name.

Ad
Log in to vote
0
Answered by
jotslo 273 Moderation Voter
7 years ago

You should use false instead of False. Booleans in RBX.Lua are lowercase.

Log in to vote
0
Answered by 7 years ago

As mentioned by other users, there are multiple causes...

1. Multiple 'Part's Multible parts named 'Part' can confuse lua... try changing the name!

2. false not False You have put 'False' not 'false', make sure when using a bool value, use 'true' or 'false', exactly as I have typed them!

3. Incorect Part Location Make sure the Part is where you think it is!

Answer this question