I created my own animation and you can trigger the animation by pressing "q"
This is a LOCAL SCRIPT:
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
local fly = Player.Character:WaitForChild("Duck"):WaitForChild("AnimationController").Fly
local flying = Player.Character:WaitForChild("Duck"):WaitForChild("AnimationController"):LoadAnimation(fly)
Mouse.KeyDown:connect(function(key)
if key == "q" and script.Fly.Value == false then
script.Fly.Value = true
flying:Play()
end
end
if key == "q" and script.Fly.Value == true then
script.Fly.Value = false
flying:Stop()
end
end)
The animation works fine in studio, and it DOES PLAY online, but only for the player triggering it, and other players can't see it.
When I tried to put it in a regular server script, that made the animation not play at ALL online.
What's the problem? ((Please be detailed in your answer, vague answers do not help me, thank you!))

2 comments
most likely is the problem*
I have already tried putting it on a regular script, and that makes the animation not play at all.