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

How to fix Incomplete statement error?

Asked by
DBoi941 57
4 years ago

I get an error on line 9 saying "Incomplete statement: expected assignment or a function call" I am not sure what is happen here never seen this before.

db = false
brick.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if not db then
        db = true
        if player.Character.MWinner.Value == true then
            giveReward(player)
            player.Character.MWinner.Value == false
                else
            end
            wait(5)
            db = false
        end
    end
end)
0
MWinner is a bool value after the giveReward function I am trying to set the MWinner to false so it does not run the giveReward function again. This is in a script not a local script. DBoi941 57 — 4y
2
You have one too many "=" on line 9 SteelMettle1 394 — 4y
0
Wow, Not sure how i missed that. Thank you very much. DBoi941 57 — 4y

Answer this question