#animation not working

1 messages · Page 1 of 1 (latest)

dusky wolf
#

⁨```lua
local animation = script.Parent.Animation
local animator = script.Parent.AnimationController.Animator

local track = animator:LoadAnimation(animation)

track.Looped = true
track:Play()

while task.wait() do
if track.IsPlaying then
print("cheese")
end
end

i have this code and it prints cheese but the animation doesnt ever play,
chatgpt is saying i should set a remote event but idk can someone help me ill answer anything pls and thank u
edgy saffron
#

check animation priority?

dusky wolf
#

its on action

#

should it be smt else?

edgy saffron
#

action should be fine so long as you aren't overlapping multiple animations with them

dusky wolf
#

yea im not

vernal boneBOT
#

studio** You are now Level 19! **studio

dusky wolf
#

is there any way gpt would be right

#

and shoud i set a remote event

edgy saffron
#

uhh, it really depends on if you want this to run forever

#

though not sure about animationcontroller, is that something you added manually?

dusky wolf
#

yea i did i needed to add it in order to add the animator

rich kraken
dusky wolf
#

serverscript in the model

edgy saffron
#

is this a npc or a on character added thing?

dusky wolf
#

basically i just rigged a model using motor6ds and i animated it its supposed to be like a boat bobbing up and down

edgy saffron
#

do you have a root part for your model?

dusky wolf
#

yea i do

#

but im animating it

dusky wolf
#

@rich kraken does it have to be client?

rich kraken
#

But I'd do it on the client

dusky wolf
#

Figured it out thank u guys 🙏