I want to try working on my own emote game for recording purposes, and I can't figure out how to attach animations to a tool. The scripts I've been using don't work, and everything else I've looked at is outdated. This is the only thing I've found:
enabled = false;
local l__Parent__1 = script.Parent;
local u1 = nil;
local l__BGM__2 = workspace:WaitForChild("BGM");
local l__SongLoop__3 = l__Parent__1:WaitForChild("dancepart").SongLoop;
local l__LocalPlayer__4 = game.Players.LocalPlayer;
function onActivated()
if enabled == false then
else
u1:Stop();
u1:remove();
l__SongLoop__3:Stop();
l__SongLoop__3.Parent = l__Parent__1.dancepart;
enabled = false;
l__LocalPlayer__4.Character.Humanoid.WalkSpeed = speed;
l__BGM__2.Volume = 1.7;
return;
end;
local l__Torso__2 = l__Parent__1.Parent:FindFirstChild("Torso");
u1 = l__Parent__1.Parent:FindFirstChild("Humanoid"):LoadAnimation(l__Parent__1.dance);
l__BGM__2.Volume = 0;
l__Parent__1.DanceObject.Value = u1;
u1:Play();
l__Parent__1.dancepart.SongLoop:Play();
l__SongLoop__3.Parent = workspace;
enabled = true;
speed = l__LocalPlayer__4.Character.Humanoid.WalkSpeed;
l__LocalPlayer__4.Character.Humanoid.WalkSpeed = 16;
end;
function onUnequipped()
u1:Stop();
u1:remove();
l__SongLoop__3:Stop();
l__SongLoop__3.Parent = l__Parent__1.dancepart;
enabled = false;
l__LocalPlayer__4.Character.Humanoid.WalkSpeed = speed;
l__BGM__2.Volume = 1.7;
end;
l__Parent__1.Activated:connect(onActivated);
l__Parent__1.Unequipped:connect(onUnequipped);
l__LocalPlayer__4.Character:WaitForChild("Humanoid").Died:Connect(function()
l__SongLoop__3:Stop();
end);
This doesn't work from my testing, if anybody is able to help it'd be greatly appreciated!

1 comment
I can clearly tell you decompiled that script using the Synapse Decompiler...