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
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
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"
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Wow, you're answering questions 24/7.
You wanna upvote my answer?
Thanks Dewn, you really helping me out, really appreciate it
No problem! Just keep scripting :)
Also notice true/false turn blue when writing in Lua. If it's not blue, it's probably not right.