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

Why will my seat animation not work? [CLOSED]

I have this seat animation script that makes you play an animation when you sit in it and it loops but when i test it in studio it works perfectly fine, but when i test it in the real game it doesn't respond. I have no idea what to do in this situation some help would be appreciated:).

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

seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)

4 comments

0

show a video

0

cuz idk what its supposed to look like, also a sample of a kind works too

0

could you please show a vedeo

0

i dont know how to post a video

1 answer

I figured it out by looking back into some old roblox forums, I just had to upload the animations I made to my group so they would work.

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