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