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

How do i update the viewframe so it shows the animation? Please help!

Asked by 3 years ago

Hello i am making a fnaf like game and need jumpscare animation to pop up on the screen i tried a viewframe gui but it doesn't update i do not know how to update it so i asked here

if someone is wondering this is the code for the dummy to do the animation:

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()

Please help me i need it!

0
Sorry can't help I'm still learning how to actually script and since you are making a FNAF like game I want to try it and if you want I test play it? Greninja90290 4 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

I'm not too knowledgable in this but they made a thing called WorldModel in which you can use to animate humanoids within viewport frames. Try parenting the world model to the viewport frame and the humanoid to the world model and running the animation then.

0
THANK YOU datboyPiter 52 — 3y
Ad

Answer this question