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

[Solved] Playing Animation Are Broken? I have no idea why they just are... Please help me ...

Asked by 5 years ago
Edited by chess123mate 5 years ago

Hello!

I have recently been trying to make a gun like a turbo fusion gun. FYI I am not new to Roblox, I am an advanced scripter but this is just broken... It is a reloading animation. There are no errors and it is printing everything successfully.

script:

print("Start")

repeat
    wait()
until game.Players.LocalPlayer.Character

print("Char")

local Hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")

print("Hum")

wait(1/20)

print("Waited")

local NewAnimation = Instance.new("Animation", script)
NewAnimation.AnimationId = "rbxassetid://3230722600"
NewAnimation.Name = "MyAnimation"

while wait(20) do
    print("Go")
    local TrackAnimation = Hum:LoadAnimation(NewAnimation)
    TrackAnimation:Play()
end

Yes, my scripts are in StarterPlayerScripts and is a local script.

2
I dunno i'm stupid SuperPoopyPoopPoop 21 — 5y
0
Im confused on what your doing to make the animation play, its not a click. Or what? Pooglies 7 — 5y
0
animation play MrOpScripter 81 — 5y
0
this is like a sample of code i made MrOpScripter 81 — 5y
View all comments (5 more)
0
was this code written in a script or a local script xXKingCool258Xx 39 — 5y
0
local script MrOpScripter 81 — 5y
0
FIXED MrOpScripter 81 — 5y
0
Same problem occurs to me too. pranvexploder 14 — 5y
0
the R must be wrong. I was in R6 with a R15 animation, also make sure you own the animation. MrOpScripter 81 — 5y

Answer this question