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

Why doesn't my simple animation play??

I made a Hands Animation on a model made of bones, exported it and put set it to run in a localscript. But it doesn't play for some reason, it even prints "Shot Played" correctly. Pls Help

RS = game:GetService("RunService")

local plr = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
local mouse = plr:GetMouse()

local Hands = script.Parent.Hands
Hands.Parent=plr.Character

Shot = Hands.AnimationController:LoadAnimation(script.Parent.Data.Shot)

mouse.Button1Down:Connect(function()
	Shot:Play() print("Shot Played")
end)

while true do
	RS.RenderStepped:Wait()
	Hands.armmesh.CFrame = cam.CFrame*CFrame.new(0,-1,-2)
end

3 comments

0

Is this a script or a local script and where you put it

0

This is a local script and I put it in StarterGui

0

make sure the animation has priority Action when exporting and that you animated it for correct rig (R6 won't play for R15 or R15 won't play for R6 i think)

1 answer

Hello, is this script a local script and where did you put it?

1 comment

0

This is a local script and I put it in StarterGui

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