There is a error with my code, and the error only exists when playing on a server

Hello, for some reason my script is not working, but it’s only not working in team create and when I publish the game, can anyone help?

if tag.Value ~= user then
	tag:Destroy()
	if humanoid:IsA("Humanoid") and humanoid.Health > 0 then
		humanoid.Health -= Skill1Damage
	end
	if humanoid:IsA("NumberValue") and humanoid.Value > 0 then
		humanoid.Value -= Skill1Damage
	end
							 
        script.AttackIndicatorEvent:FireAllClients(Skill1Damage,v)
	local newtag = Instance.new("ObjectValue",humanoid) newtag.Name = "Player_Tag" newtag.Value = user
	Debris:AddItem(newtag,1)
	local InCombat = Instance.new("BoolValue",humanoid) InCombat.Name "InCombat"
	Debris:AddItem(InCombat,7)
end

If anyone knows why this only doesn’t work when testing in a server, please let me know.
The error is;

Incomplete statement: expected assignment or a function call

Do you know which line it is erroring on?

The first line is the line that has the error.

ROBLOX bug, close studio, re-open it, double check the script again. Sometimes it has an invisible character.

1 Like

What if someone messed with the script and didn’t committ it? (If the thing above doesn’t work)