I have a script that plays an animation on a tool when equipped, but it affects my camera somehow?
The script:
local tool = script.Parent
local hum = tool.Design:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
local globalAnimation = nil
tool.Equipped:Connect(function()
local anim = animator:LoadAnimation(script.SpinAnimation)
globalAnimation = anim
anim:Play()
end)
tool.Unequipped:Connect(function()
if globalAnimation ~= nil then
globalAnimation:Stop()
end
end)