When I Do A Task It Says I've Done 2 tasks and I Finished All Tasks

function Task()
	for i, v in pairs(TaskFolder:GetChildren()) do
		if v.Status.Value == true then
			Tasks = Tasks + 1
			print(Tasks)
			EventTable.Task:FireAllClients(Tasks)
		end
	end
end

2 comments

0

Can you be more specific? What game are you making? What is Task function's going to do? At what line did you have called the task function?

0

Basically I'm making a murderer game and I'm adding a task system and when a task is done it sets the status to true and if the status is true then change the status bar text. So I Made A Module Script For The Event Table And I Fired The Event And Passed Tasks