1.) What do you want to achieve? Keep it simple and clear!
I want to figure out why my animations are playing in studio, but not in the actual game.
2.) What is the issue? Include screenshots / videos if possible!
It works in roblox studio, but when I hop in a game it just acts like a normal seat.
The animations are in Server Storage as seen in the screenshot below:
local seat = script.Parent
local ss = game:GetService("ServerStorage")
local f = ss:WaitForChild("ANIMATIONS"):WaitForChild("LogCabin")
function added(child)
if (child.className=="Weld") then
local human = child.part1.Parent:FindFirstChild("Humanoid")
if human ~= nil then
anim = human:LoadAnimation(f:WaitForChild("RightArmAroundCouch"))
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)
This code is the same for both seats. (Obviously different animations)
In studio:
In game:
I really don’t know what to do, all help is appreciated <3
If it’s playing in studio only, it’s likely that the animation belongs to the wrong person. If it’s a game you own, you must own the animation, if it’s a group game, the group must own the animation
Remember to change the id to the one given when uploading to the group