local debounce = false local combo = 1 local replicatedStorage = game:GetService("ReplicatedStorage")

script.Parent.OnServerEvent:Connect(function(Player)

for _, v in pairs(Player.Character:GetChildren()) do
	if v:IsA("Tool") then return end
end


local Character = Player.Character

if combo == 1 then
	print("combo 1")
	combo = 2
	local Track1 = Instance.new("Animation")
	Track1.AnimationId = "rbxassetid://6166710298"
	local Anim = Character.Humanoid:LoadAnimation(Track1)
	Anim:Play()
elseif combo == 2 then
	print("combo 2")
	combo = 3
	local Track2 = Instance.new("Animation")
	Track2.AnimationId = "rbxassetid://6166709272"
	local Anim2 = Character.Humanoid:LoadAnimation(Track2)
	Anim2:Play()
elseif combo == 3 then
	print("combo 3")
	combo = 4
	local Track3 = Instance.new("Animation")
	Track3.AnimationId = "rbxassetid://6166709272"
	local Anim3 = Character.Humanoid:LoadAnimation(Track3)
	Anim3:Play()
elseif combo == 4 then
	print("combo 4")
	combo = 5
	local Track4 = Instance.new("Animation")
	Track4.AnimationId = "rbxassetid://6166718256"
	local Anim4 = Character.Humanoid:LoadAnimation(Track4)
	Anim4:Play()
elseif combo == 5 then
	print("combo = 5")
	combo = 1

end	



spawn(function()
	if combo == 5 then
		wait(0.5)

		wait(1)
		combo = 1
	end

end)

spawn(function()
	if combo == 4 then
		wait(1.5)
		combo = 1
	end

end)

Workspace.6tyshawn.LocalScript.RemoteEvent.Script:71: Expected 'end' (to close 'function' at line 6), got ; did you forget to close 'then' at line 64?  -  Studio  -  Script:71

1 comment

0

There is no line 64 in your question.