Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

my animation is not playing when the function is called help?

ive been trying to figure out why my animation script has not been playing the animation ive looked through the wiki and i still cant see why its wrong ive even looked for help on scripting helpers discord no one seems to be able to understand why its not working this is the script

local player=game.Players.LocalPlayer
while not player.Character do wait() end
local animation=Instance.new("Animation")
animation.AnimationId="http://www.roblox.com/Asset?ID=1192325680"
local anim=player.Character:WaitForChild("Humanoid"):LoadAnimation(animation)
player:GetMouse().Button1Down:Connect(function(Source)
anim:Play()
wait(1.6)
local pro=Instance.new("Part")
local fir=Instance.new("Fire")
local expl=Instance.new("Explosion")
local location=game:GetService("UserInputService")
local body1=Instance.new("BodyVelocity")
anim:Stop()
end)

the locals in the function of the script are going to be used later on i just need help with getting the animation to work although the function does run the animation does not thanks.

1 comment

0

try changing the AnimationId to "rbxassetid://1192325680"

1 answer

Change the AnimationId to "rbxassetid://1192325680" and it should work. That what fixed it when i was dealing with animations.

1 comment

0

it still doesent work :(

This discussion is preserved as it was. New answers, comments, and votes are closed.