How to make a Emote ID Player

this Scratch my head a lot, so I trying to make a Emote Player Similar to a Music Player
emotrid1

emote2

Can you send the script? Also I don’t think players can play animations that aren’t the creator’s or Roblox’s animations.

sure and i forgot to show you the other script inside the play textbutton

function OpenEmote()
	local IDN = script.Parent.Parent.Play.Text
	local Emote = script.Parent.Parent.Parent.Emote
	Emote.AnimationId = 'rbxassetid://'.. IDN
	Emote:Play()
end

script.Parent.MouseButton1Click:connect(OpenEmote)

this is the script inside of the play textbutton

I have a prepared script, edit if you want.
Also, I used http://www.roblox.com/asset?id=xxxxxx so that they can load their own animations.
Script:

local button = pathto.Button
local animation = pathto.Animation
local id = pathto.TextBox
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local animationTrack

button.MouseButton1Click:Connect(function()
    animation.AnimationId = "http://www.roblox.com/asset?id=".. id.Text ..""
    animationTrack = character:WaitForChild("Humanoid"):FindFirstChild("Animator"):LoadAnimation(animation)
    animationTrack:Play()
end)

thank you this helps a lot i really appreciated

1 Like

btw what doese this do?


local animationTrack

It prevents the animation loading inside the MouseButton1Click function.
If it is inside then the animation will load every time the button is clicked, which prevents the animation from stopping.

ohh well okay thanks for letting me know

1 Like