local Library = loadstring(game:HttpGet("https://[Log in to view URL]"))() -- defining the gui library
local Pendulum = Library:New("dress to impress")
local EmotesTab = Pendulum:NewTab("emotes")
-- Adding the new emotes to the existing table
local emotes = {
["nicki minaj"] = 15571446961,
}
-- Variable to keep track of the current animation
local currentAnimationTrack = nil
-- Function to create an emote button
local function createEmoteButton(name, id)
EmotesTab:NewButton(name, "Play " .. name .. " animation", function()
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
-- Stop the currently playing animation if there is one
if currentAnimationTrack then
currentAnimationTrack:Stop()
end
-- Create and play the new animation
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://" .. id
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
-- Update the currently playing animation
currentAnimationTrack = animationTrack
-- Monitor the humanoid's movement and state to stop the animation
humanoid.Running:Connect(function(speed)
if speed > 0 then
animationTrack:Stop()
currentAnimationTrack = nil
end
end)
humanoid.StateChanged:Connect(function(_, newState)
if newState == Enum.HumanoidStateType.Seated or
newState == Enum.HumanoidStateType.Jumping or
newState == Enum.HumanoidStateType.Freefall then
animationTrack:Stop()
currentAnimationTrack = nil
end
end)
end)
end
-- Create buttons for all emotes
for name, id in pairs(emotes) do
createEmoteButton(name, id)
end
local EmotesTab = EmotesTab:NewTextBar("asset/image id for your face", "asset/image id for your face")
EmotesTab:NewButton("apply to face", "places the image from above onto your face", function()
local EmotesTabText = EmotesTab.Text
local url = "https://[Log in to view URL]" .. EmotesTabText
print(url)
local success, response = pcall(function()
return game:HttpGet(url)
end)
local assetId
if not success or response == "0" or response:match("500") then
-- If pcall fails, response is "0", or response contains "500", use face2.Text
assetId = EmotesTabText
else
-- Otherwise, use the response
assetId = response
end
print(assetId)
local args = {
[1] = "Classic Makeup",
[2] = "http://[Log in to view URL]" .. assetId
}
game:GetService("ReplicatedStorage"):WaitForChild("Dress Up"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: