So, I’m testing a few things to strengthen my knowledge on scripting and then this doesn’t work:
local config = script:WaitForChild("Configuration")
local damage = config.Damage.Value
local throwspeed = config.ThrowSpeed.Value
local slash = script:WaitForChild("Slash")
local throw = script:WaitForChild("Throw")
local throwIsPlaying = throw.IsPlaying.Value
local slashisplaying = slash.IsPlaying.Value
local tool = script.Parent
local handle = tool.Handle
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:Wait()
tool.Activated:Connect(function()
local loadanim = character.Humanoid:LoadAnimation(slash)
loadanim:Play()
print("Activated")
end)
It basically doesn’t play the animation but it prints activated as you can see in this video:
https://gyazo.com/bc4d54a5190cb0cb5dc6168901334bbb
I did try using Humanoid.Animator
but that also didn’t work.