Hi guys, i have a problem with my animations:
I've an issue, i create an animation but I'm the only one that can see it! No one can see it in the games or in the edit, what I have to do for let the animation visible for everyone and not only from me?
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:wait() local tool = script.Parent local swingsound = tool:WaitForChild("Swing") local pugnosound = tool:WaitForChild("Pugno") local canattack = tool:WaitForChild("CanAttack") tool.Equipped:connect(function() local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle) idle.Looped = true idle:Play() end) local canSwing = true local DEBOUNCE_TIME = 0.5 tool.Activated:connect(function() if canSwing then canSwing = false local choose = math.random(1,3) canattack.Value = true if choose == 1 then local swing1animation = script.Parent.Parent.Humanoid:LoadAnimation(script.Punch1) swing1animation:Play() wait(.2) swingsound:Play() elseif choose == 2 then local swing2animation = script.Parent.Parent.Humanoid:LoadAnimation(script.Punch2) swing2animation:Play() wait(.2) swingsound:Play() elseif choose == 3 then local swing3animation = script.Parent.Parent.Humanoid:LoadAnimation(script.Punch3) swing3animation:Play() pugnosound:Play() end spawn(function() wait(DEBOUNCE_TIME) canSwing = true end) end end) tool.Deactivated:connect(function() canattack.Value = true end) tool.Unequipped:connect(function() local hum = char:WaitForChild("Humanoid") for _,anim in pairs(hum:GetPlayingAnimationTracks()) do anim:Stop() end end)
Animations Link -> https://www.roblox.com/library/3651585849/Montante https://www.roblox.com/library/3650751527/PugnoDestroVeloce https://www.roblox.com/library/3650748641/PugnoSinistroVeloce https://www.roblox.com/library/3650349430/Inattivit