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

Boolean not working how do I fix it?

Instance.new("Part", game.Workspace) game.Workspace.Part.Name = "brick" game.Workspace.brick.Position = Vector3.new(124,-18,15) game.Workspace.brick.Anchored = True

The last part is not working and the "True" is underlined in blue

1 answer

The basic answer, booleans are NEVER capitalized.

Different languages handle Boolean syntax differently. Lua and Java both use uncapped like, "true" and "false". Whereas Python does not do this.

Also, I don't want you getting bad programming habits so you should probably consider writing your answer like this

local brick = Instance.new("Part", workspace); --Make a variable for easier referencing 
brick.Position = Vector3.new(124,-18,15);
brick.Anchored = true;
brick.Name = "Brick"

5 comments

0

Wow, you're answering questions 24/7.

0

You wanna upvote my answer?

0

Thanks Dewn, you really helping me out, really appreciate it

0

No problem! Just keep scripting :)

0

Also notice true/false turn blue when writing in Lua. If it's not blue, it's probably not right.

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