Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited 6 years ago

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.

0
try changing the AnimationId to "rbxassetid://1192325680" justintubba123 6 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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

0
it still doesent work :( redjacob02 20 — 6y
Ad

Answer this question