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

My animation doesn't work in game but it works in studio why does this happen and can you help?

Asked by 7 years ago
Edited 7 years ago

I put this code in a script because I'm animating a r15 viewmodel for my fps and it works in studio but not in game. This code is in a normal script too. sorry I have to drag out the title but anyway here is the script.

01local player = game.Players.LocalPlayer
02local mouse = player:GetMouse()
03local uis = game:GetService("UserInputService")
04local reloading = false
05local sprinting = false
06 
07local controller = Instance.new("AnimationController")
08controller.Parent = script.Parent
09local idle = controller:LoadAnimation(script.Parent.Idle)
10local shoot = controller:LoadAnimation(script.Parent.Shoot)
11local reload = controller:LoadAnimation(script.Parent.Reload)
12local sprint = controller:LoadAnimation(script.Parent.Sprint)
13 
14idle.Looped = true
15shoot.Looped = false
View all 84 lines...

this is a long script but I don't know why it won't work in game please help.

0
Tab your code Goulstem 8144 — 7y
0
how does that help? @Goulstem GameBoyOtaku 63 — 7y
1
Organized and easier to read, makes helping a lot easier. Kareem35 79 — 7y
0
so you want be to repost this but easier to read correct? GameBoyOtaku 63 — 7y
View all comments (3 more)
0
I noticed you said you put it in a script. Is this a normal or localscript? Nikkulaos 229 — 7y
0
This is in a normal script GameBoyOtaku 63 — 7y
0
You can edit a post, y'know. hiimgoodpack 2009 — 7y

Answer this question