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

Why doesn't my simple animation play??

Asked by 1 year ago

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
0
Is this a script or a local script and where you put it theking66hayday 841 — 1y
0
This is a local script and I put it in StarterGui Shounak123 461 — 1y
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) imKirda 4491 — 1y

1 answer

Log in to vote
0
Answered by 1 year ago

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

0
This is a local script and I put it in StarterGui Shounak123 461 — 1y
Ad

Answer this question