Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by xxclawcat (Subscribe to xxclawcat Gaming on YouTube!)
- 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.Animation) -- Animation is the name of the Animation Object (Change it to the name of your Animation Name.)
- anim:Play() --Play's the animation
- end
- end
- end
- function removed(child)
- if anim ~= nil then
- anim:Stop() --Stop's the animation.
- anim:Remove()
- end
- end
- seat.ChildAdded:Connect(added)
- seat.ChildRemoved:Connect(removed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement