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

4 comments

0

properly format your code please

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

0

it works fine for me, how is there an unexpected symbol there

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 .