local plr = game.Players.LocalPlayer
local event = script.Parent.RemoteEvent
local gunMod = script.Parent.Parent["gun model excluding the handle.......obviously"]
local tool = script.Parent.Parent
local loadedAnim
local holdAnim = script.Parent.Hold
tool.Equipped:Connect(function()
local humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
if humanoid then
local Animator = humanoid:WaitForChild("Animator")
loadedAnim = Animator:LoadAnimation(holdAnim)
loadedAnim.Looped = true
loadedAnim.Priority = Enum.AnimationPriority.Action
loadedAnim:Play()
end
end)
tool.Unequipped:Connect(function()
loadedAnim:Stop()
end)
This is a serverScript If nobody can fix this I will have to resort to CFraming, which I REALLY do not want to do. https://www.roblox.com/library/7467408348/betterHold-hoepfully --This is the one im using, Its Incredibly long and looped Original one -- https://www.roblox.com/library/7466688023/hold -- Incredibly short , not looped (well I dont thhtink it is)
---What happens, https://gyazo.com/0acbc706d69860326341bb4a226beea8 when you ReEquipd it plays but then stops after a bit (assuming you are Idle)
