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

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

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!

1 comment

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?

1 answer

✓ Accepted answer

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.

1 comment

0

THANK YOU

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