game.Players.LocalPlayer.CharacterAdded:Wait(.1)
local plr = game.Players.LocalPlayer
local HOLD = plr:WaitForChild("Character"):WaitForChild("Humanoid"):LoadAnimation(script:WaitForChild("Holding"))
local Slash = plr:WaitForChild("Character"):WaitForChild("Humanoid"):LoadAnimation(script:WaitForChild("Slash1"))
local Slash1 = plr:WaitForChild("Character"):WaitForChild("Humanoid"):LoadAnimation(script:WaitForChild("Slash2"))
local num = 1
script.Parent.Equipped:Connect(function()
HOLD:Play()
end)
script.Parent.Unequipped:Connect(function()
HOLD:Stop()
end)
script.Parent.Activated:Connect(function()
if num == 1 then
Slash:Play()
script.Parent.RemoteEvent:FireServer()
num = 2
else
Slash1:Play()
script.Parent.RemoteEvent:FireServer()
num = 1
end
end)
COMMUNITY QUESTION
The animation doesn't work when i clicked it?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
