I know scripting in ROBLOX is basically lua, but it adds a few elements. Those being a three-dimensional world and some kind of object orientation. Now, just for the sake of it, not to actually expect any kind of winning, I am planning to do answers using this. How exactly could you score these answers, assume there's more to it than just scripting? Should it be required to use script (Lua) only, and specify it as the RBX.Lua language?
Here's an example I quickly made, which utilizes two blocks that are not written using Lua, but placed in the world normally:
Now, using the ROBLOX Studio built-in feature to place bricks, this is possible in only 87 bytes:
script.Parent.Touched:connect(function()
print("Hello World, I've been touched!")
end)
But when restricted to using Lua only, it totals up to 246 bytes best case:
Instance.new("Part", workspace).Position = Vector3.new(0, 5, 0)
Instance.new("Part", workspace).Position = Vector3.new(0, 5, 0)
script.Parent = workspace.Part
script.Parent.Touched:connect(function()
print("Hello World, I've been touched!")
end)
Which of these two should be scored, and if it's the above, how do I handle the two parts in terms of bytes/characters/file size?