How would I make an animation changer GUI?

How would I create a GUI that allows you to click a button, changing the idle animation, for example.

2 Likes

where the example? i can help with some script

well i just had this lol

Client(StarterGUI)

local players = game:GetService(“Players”)
local player = players.LocalPlayer
local character = player.Character

script.Parent.MouseButton1Click:Connect(function()
player.Anims.Idle.Value = “rbxassetid://9320457447”
character.Animate.run.RunAnim.AnimationId = player.Anims.Idle.Value
end)

Server(ServerScriptService)

game.Players.PlayerAdded:Connect(function(plr)
local animsFolder = Instance.new(“Folder”)
animsFolder.Name = “Anims”
animsFolder.Parent = plr

local idleValue = Instance.new(“StringValue”)
idleValue.Name = “Idle”
idleValue.Parent = plr.Anims

–miles run rbxassetid://9320669815
–miles swing rbxassetid://9320723670

plr.CharacterAdded:Connect(function(character)
plr.Anims.Idle.Value = “rbxassetid://9286243049”
character.Animate.run.RunAnim.AnimationId = plr.Anims.Idle.Value --9286171077
character.Animate.walk.WalkAnim.AnimationId = “rbxassetid://9286243049”
character.Animate.idle.Animation1.AnimationId = “rbxassetid://9286304816”
character.Animate.idle.Animation2.AnimationId = “rbxassetid://9286304816”
character.Animate.jump.JumpAnim.AnimationId = “rbxassetid://9286319249”
character.Animate.fall.FallAnim.AnimationId = “rbxassetid://9286329835”
character.Animate.climb.ClimbAnim.AnimationId = “rbxassetid://9303843801”
end)
end)

if you create all of it isn’t working, animation must changed in the roblox animation script and modify the script, if you found the table that all of the animations, you can change it with adding this:

Button.MouseButton1Click:Connect(function()
     AnimationID.Climb = YourID
     AnimationID.Jump = YourID
     AnimationID.Fall = YourID
     AnimationID.Idle = YourID
     AnimationID.Walk = YourID
     AnimationID.Run = YourID
     Print(MY INSANE ANIMATION successfully) -- print to output to show if it work or not...
end)

and add this code (up) below the tables

1 Like

sorry for the late reply, but im not really familiar with what this script is doing? well, how it works, moreso.

and im unsure how to implement it, aswell

im use it in my game, and it working, you must need to read the roblox general animation script, just read the tables