Only want stuntime to go through in bindable event

I want to send the stuntime through, but I dont want it to repeat the script. How can I get the stuntime to go through without running the while statement again, or anything else in that matter?

RS.Events.Bindable.Stun.Event:Connect(function(hum, stuntime)
	if stunned ~= true then
		local ws = hum.WalkSpeed
		stunned = true
	
		while stunned == true do
		
			print(stuntime)
		
			wait(.1)
			stuntime -= .1
		
			if stuntime <= 0 then
				stunned = false
			end
		end
	end
end)