I was trying to make one pistol just for test but first I started with animations just for see how looks like (Realoading, Idle, Shooting) but it works but the handle looks broken (I used the plug too)
On animation looks fine:
But on the player looks broken:
How did I build it:
local Pistol = script.Parent
local ShootAnim = Pistol.Handle:WaitForChild("ShootAnimation")
local ShootAnimTrack
local IdleAnim = Pistol.Handle:WaitForChild("Idle")
local IdleAnimTrack
Pistol.Activated:Connect(function()
local humanoid = script.Parent.Parent:FindFirstChild("Humanoid")
ShootAnimTrack = humanoid:LoadAnimation(ShootAnim)
ShootAnimTrack:Play()
end)
Pistol.Equipped:Connect(function()
local humanoid2 = script.Parent.Parent:FindFirstChild("Humanoid")
IdleAnimTrack = humanoid2:LoadAnimation(IdleAnim)
IdleAnimTrack:Play()
end)
I dont have any idea about what is wrong.