animation id player
Key RequiredUniversal

animation id player

Universal ScriptChatGPTChatGPT 11.3K views 3K executesUpdated Jan 21, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•59 lines (2222 chars)
-- Create the ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AnimationGui"
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

-- Create the main frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 100)
frame.Position = UDim2.new(0.5, -100, 0.5, -50)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.Parent = screenGui

-- Create the text box for animation ID
local textBox = Instance.new("TextBox")
textBox.Size = UDim2.new(1, 0, 0, 30)
textBox.Position = UDim2.new(0, 0, 0, 10)
textBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
textBox.PlaceholderText = "Enter Animation ID"
textBox.Parent = frame

-- Create the play button
local playButton = Instance.new("TextButton")
playButton.Size = UDim2.new(1, 0, 0, 30)
playButton.Position = UDim2.new(0, 0, 0, 50)
playButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
playButton.TextColor3 = Color3.fromRGB(255, 255, 255)
playButton.Text = "Play"
playButton.Parent = frame

-- Create the stop button
local stopButton = Instance.new("TextButton")
stopButton.Size = UDim2.new(1, 0, 0, 30)
stopButton.Position = UDim2.new(0, 0, 0, 90)
stopButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
stopButton.Text = "Stop"
stopButton.Parent = frame

-- Function to play animation
local function playAnimation()
    local animationId = textBox.Text
    local animation = Instance.new("Animation")
    animation.AnimationId = "rbxassetid://" .. animationId
    local animator = game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):FindFirstChild("Animator") or Instance.new("Animator", game.Players.LocalPlayer.Character:WaitForChild("Humanoid"))
    animator:LoadAnimation(animation):Play()
end

-- Function to stop all animations
local function stopAnimation()
    local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
    for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
        track:Stop()
    end
end

-- Connect button clicks to functions
playButton.MouseButton1Click:Connect(playAnimation)
stopButton.MouseButton1Click:Connect(stopAnimation)

Features & Information

made with chatgpt
#universal#animation#dance

Community Comments (1)

SirNessieSirNessieJul 2, 2025

Buns

More Scripts for Universal Scripts