if animpose == "Walking" then
			if footsteps == false then
				x:Play()
				footsteps = true
			end
			x.Pitch = 1.1
		elseif animpose == "Idle" then
			x:Stop()
			footsteps = false
		elseif animpose == "Running" then
			x.Pitch = 1.2
			if footsteps == false then
				x:Play()
				footsteps = true
			end
		end
	end
end
end)

----This is only part of the script but the only error.----

3 comments

0

either you have an extra 'end' or you've opened something with '(' and didn't close it, can't tell by what you've posted as you got 3 ends with no corresponding start and a ')' at the end

0

Might be worth going through the code and checking every 'if' statment and function(s)(if any) to see if you've forgotten to close them.

0

I found the problem and fixed it thanks to you