Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-5

Ignore Ignore Ignore ? [closed]

Asked by 9 years ago
Edited 5 years ago

ignore...............................................................

0
00:38:58.570 - Workspace.Bob:7: 'end' expected (to close 'do' at line 5) near 'else' KarasuKage 2 — 9y

Closed as Not Constructive by Tkdriverx, Devotional, Thewsomeguy, and adark

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
4
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

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)
Ad