of     1   

201S
#183897675Thursday, February 18, 2016 8:09 PM GMT

here is part of my script, not the full thing for i,v in pairs(game.Workspace.Building.plates:GetChildren()) do if v == true then v.Anchored = false for some reason im not getting any errors but the parts dont unanchor, how do i fix this?
KLGA
#183897782Thursday, February 18, 2016 8:11 PM GMT

Try removing "if v == true". That's checking if your plates have a value of 'true'. Instead you should add something like "if v:IsA("BasePart")"
201S
#183897986Thursday, February 18, 2016 8:15 PM GMT

i tried doing the :IsA(), but it still wont work :(
indeimaus
#183898109Thursday, February 18, 2016 8:18 PM GMT

you don't need true because it's checking if v exists already
201S
#183898474Thursday, February 18, 2016 8:26 PM GMT

if i dont keep the "if v == true" or something similar in, for some reason the script just doesnt work
indeimaus
#183898585Thursday, February 18, 2016 8:28 PM GMT

What I mean is that all you need to say is "if v then" because lua will assume you mean you're asking if it exists.
cofunction
#183898713Thursday, February 18, 2016 8:31 PM GMT

Are you sure "plates" has any children?
powerhotmail123
#183899895Thursday, February 18, 2016 8:55 PM GMT

Put a print statement outside the if statement, see if that prints. Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784

    of     1