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.

9 comments

2

I dunno i'm stupid

0

Im confused on what your doing to make the animation play, its not a click. Or what?

0

animation play

0

this is like a sample of code i made

0

was this code written in a script or a local script

0

local script

0

FIXED

0

Same problem occurs to me too.

0

the R must be wrong. I was in R6 with a R15 animation, also make sure you own the animation.