Do you have the tool variable set if so then try to print the tool variable at the bottom with
Print(tool)
Do you have the tool variable set if so then try to print the tool variable at the bottom with
Print(tool)
You can try using Luminia. It is mainly for particles, but you can use meshes. I’m not an animator though, I just think you should know about this resource
i set the tool variable just now, now there arent any errors but for some reason the animation wont play ive imported it and everything
Works up to line 8 - Client - LocalScript:8
Would you mind showing the script just so I can see myself
Ok!
local player = game:GetService("Players").LocalPlayer
local tool = script.Parent
local EquipConnection, ActivateConnection, HumanoidConnection, UnequipConnection
local Character, Humanoid, Animator
local SwingAnimation
local function OnActivate()
print("Works up to line 8")
if not SwingAnimation or SwingAnimation.IsPlaying then return end SwingAnimation:Play()
end
local function OnUnequip()
SwingAnimation:Stop(0)
ActivateConnection:Disconnect() UnequipConnection:Disconnect() HumanoidConnection:Disconnect()
SwingAnimation = nil UnequipConnection = nil HumanoidConnection = nil
end
local function OnDeath()
EquipConnection:Disconnect()
EquipConnection = nil
OnUnequip()
end
local function OnEquip()
Character = player.Character or player.CharacterAdded:Wait()
Humanoid = Character:WaitForChild("Humanoid")
Animator = Humanoid.Animator
SwingAnimation = Animator:LoadAnimation(script:WaitForChild("SwingAnimation"))
HumanoidConnection = Humanoid.Died:Connect(OnDeath)
UnequipConnection = tool.Unequipped:Connect(OnUnequip)
ActivateConnection = tool.Activated:Connect(OnActivate)
end
EquipConnection = tool.Equipped:Connect(OnEquip)
alright now try to print the swinganimation variable in the same line just to see if it is not nil
SwingAnimation - Client - LocalScript:9
Wait i have an idea lemme try it out real quick
awww no work! that make me sad…
it just prints SwingAnimation, aw man
Try to print the length like this, if this does not work then it would be the animation itself
0.36666667461395264 - Client - LocalScript:8
It works
Alright then we have the animation loaded!, now is this animation R15 or R6?
r15 cuz r15 is pro for animations r6 is just undetailed
Is the game itself R15 rigtype with an r15? character
yes, i move like r15 and game settings shows my game is enabled at r15
Then maybe just straight up play it without the conditions cause it does work for me flawlessly.
Well this is stupid
NOTHING
HAPPENS
I’m just gonna ask my friend to make an animation for me and code it hes better than me