Hi Im Sergio and ive been building a game and i decided to see if i can play with some animations to use them in game (ive never done them before)
I made an animation and put it onto studio with and it worked perfectly fine as shown below
So as soon as i went into my game to see if it worked well, it was just a simple seat animation which wasnt what studio was showing me.
Here is the image in game :
seat = script.Parent
function added(child)
if (child.className==“Weld”) then
human = child.part1.Parent:FindFirstChild(“Humanoid”)
if human ~= nil then
anim = human:LoadAnimation(seat.sitanim)
anim:Play()
end
end
end
function removed(child2)
if anim ~= nil then
anim:Stop()
anim:Remove()
end
end