-- ANimation

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")


local animInstance = Instance.new("Animation")
animInstance.AnimationId = "rbxassetid://04515316769"
local SlashAnim = humanoid:LoadAnimation(animInstance)

local Sound = script:WaitForChild("Haoshoku Sound")

UIS.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.Z and Debounce == true then
		Debounce = false
		SlashAnim:Play()
		Sound:Play()
		script.RemoteEvent:FireServer(plr)
		wait(3)
		Debounce = true
	end
end)
