Combo reset doesnt work when having more than 2 people

I have a server that is being copied to the player character when they join along with a timer module parented to the server. the server uses a module that handles the m1. when its just you, it works fine

video that the combo reset works fine

video that the combo reset doesnt work fine when someone else attacks (this is a dummy attacking)

combatservermodule

function combatmodule:M1(Character, State, Hit, Humanoid)
	local combattimer = require(Character.combatserver.combattimermodule)
	print("state")
	if Character.Values.Attacking.Value == false then
		Character.Values.Attacking.Value = true
	end
	if comboresettimer and comboresettimer.IsRunning then
		comboresettimer:Reset()
		print("reseting timer")
	else
		comboresettimer = combattimer.new(1.5)
		print("starting timer")
		comboresettimer.Completed:Connect(function()
			print("reseting combo")
			Character.Values.Combo.Value = 1
		end)
		comboresettimer:Start()
	end
--(REST OF THE CODE)

please help me :pray:

i believe i fixed it, i just need more time

1 Like

i fixed it, if anyone needs this, i used a different type of timer, i made my server get the last time the player clicked and THEN it resets.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.