Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.namehere)
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement