Expected identifier when parsing expression, got ‘=’

The title says it all what I’m trying to do is make it so when this tool is active it adds +1
to the players Data.Hunger and this is what i could come up with

module.Active = function(Player,Character)
	local Data = Player.Data
	local Status = workspace.AliveData[Player.Name].Status
	local Check = ActionCheck(Status,Character)
	local Root = Character.HumanoidRootPart
	if active == false then
		if Check ~= true and cool == false then
			cool = true
			coroutine.wrap(function()
				wait(2)
				cool = false
			end)()
		local ona = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Animation)
		active = true
		ona:Play()
		wait(5)
		repeat
		Player.Data.Hunger.Value += 1		
		until
		active = false	
		end
	end
end

But i get this error code

Hello, this is a common syntax issue.

Change = to ==

Also I recommend you to use Humanoid.Animator to play animations, and move that active == false after the until with a space.

2 Likes