ignore...............................................................
✓ ANSWER ACCEPTED
Ignore Ignore Ignore ?
1 answer
✓ Accepted answer
First: write your code with reasonable whitespace.
Lol = Workspace.BrickBuilding
script.Parent = game.Workspace == false
if true then do
Lol = disabled
else
F = Instance.new("Fire", Workspace.Player.Torso)
end
Now realize that there's no reason for that do. As Lua is saying, it doesn't expect a "do" right there.
The remainder of the script makes little second.
If you're script.Parent, you have to give it either nil or an object. You're giving it false (since workspace clearly isn't false, it's a thing, it isn't even a boolean).
You never defined disabled so setting Lol to that wouldn't make sense. Neither would simply setting Lol to anything; that doesn't change anything about what Lol use to be, so it just makes it pointless to have define Lol in the first place.
The above code, at any rate, is equivalent to this:
-- It doesn't do anything (except error)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
00:38:58.570 - Workspace.Bob:7: 'end' expected (to close 'do' at line 5) near 'else'