Simple my animation script shows no errors but the animation is still not playing its confusing can u tell me wuts wrong? Local script:
local Hit = false
local cooldown = false
script.Parent.Activated:Connect(function()
if cooldown == false then
cooldown = true
print("ok")
local player = game.Players.LocalPlayer
local Char = player.Character:FindFirstChild("Humanoid")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://04848001315"
local AnimationLoad = Char:LoadAnimation(animation)
AnimationLoad:Play()
Hit = true wait (0.5)
Hit = false wait (1)
cooldown = false
script.Parent.Sword.Touch.Touched:Connect(function(part)
print("yo")
if Hit == true then
game.ReplicatedStorage.Tag:FireServer(part.Parent)
game.ReplicatedStorage.Ow:FireServer(part.Parent)
end
end)
end
end)
Also can u help me with my damage script? it keeps showing a error of the humanoid not being a child of the character so im confused Script =
game.ReplicatedStorage.Ow.OnServerEvent:connect(function(Character)
Character.Humanoid.Health = Character.Humanoid.Health - script.Parent.Value

8 comments
NYA NYA NYA the event is activvated through a replicatedstorage fire not a touched
welp the damage thing u gave i just figured out prob on my own this instant and ur animation thing doesnt work
how do i even do this animation thing its so annoying ugh
For some reason the animation doesnt work on swords because it worked on the arm without sword but it wont work with the sword so can u help me fix dis?
You have to set your animation core to Action, make sure you did that.
wut does that mean ?
oof still doesnt work i changed it to action
oh ok ur action thing worked ty