Here's my code:
local _M = require(script.Parent.Settings)
local tool = script.Parent
repeat wait() until game.Players:GetPlayerFromCharacter(tool.Parent)
local plr = game.Players:GetPlayerFromCharacter(tool.Parent)
local db = false
tool.Activated:Connect(function()
if not db then
db = true
plr.leaderstats.Magic.Value = plr.leaderstats.Magic.Value + _M.mpc
local anim = game.ReplicatedStorage:FindFirstChild("CastWand")
local animtrack = plr.Character.Humanoid:LoadAnimation(anim)
animtrack:Play()
wait(_M.cooldown)
db = false
end
end)
I'm making a simulator (original right?), and I'm trying to make it so when I click with my wand it casts a spell. There are no errors in f9 but no animations are loaded when I click. My animation is https://www.roblox.com/library/5357129951/Cast-Wand if you're wondering. Any help? Thanks. (edit: if u wanna test it urself https://www.roblox.com/games/5030437155/aha?refPageId=709f453d-4cd0-408b-96d1-9892da0ba6b0)

5 comments
Is your animation's prority Action, because if not, that might be why it doesn't work.
Yes.
Ok then, I'll Look into it
Fixed it.
ill post the answer anyway, i literally just got it