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

Roblox Studio Output Error Message: ServerScriptService.Script:16: unexpected symbol near '?'?

Asked by 5 years ago
Edited by User#24403 5 years ago

I just tried to start my Server with this Script:

game.Players.PlayerAdded:Connect(function(plr)
    local Memes = Instance.new("BoolValue")
    Memes.Name = "leaderstats"
    Memes.Parent = plr
    local Money  = Instance.new("IntValue")
    Money.Name = "Money"
    plr.CharacterAdded:Connect(function(char)
        char.Humanoid.Died:Connect(function()
            if char.Humanoid:FindFirstChild("creator")~= nil then
                local Dank = Instance.new("StringValue")
                Dank.Value = char.Humanoid.creator.Value
                warn("Completed")   
            end
        end)
    end)
end)

But for some reason this error message appeared:

12:48:59.673 - ServerScriptService.Script:16: unexpected symbol near '?'

Could someone look over the Script and tell me what I did wrong?


Edit; formatted code
0
properly format your code please DeceptiveCaster 3761 — 5y
2
I put your code in a codeblock. It is expected that you do this yourself next time. Read here on how to format your Q&a's: https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site User#24403 69 — 5y
0
it works fine for me, how is there an unexpected symbol there DeceptiveCaster 3761 — 5y
0
Now, more along the lines of the spirit of your inquiry, it may be another script causing this error. This script is syntactically valid . User#24403 69 — 5y

Answer this question