local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local selectedTeam = nil local selectedAnim = nil -- 1. Create the Main GUI local screenGui = Instance.new("ScreenGui") screenGui.Name = "AnimationChangerGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 320, 0, 380) mainFrame.Position = UDim2.new(0.5, -160, 0.5, -190) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35) mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 8) uiCorner.Parent = mainFrame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundTransparency = 1 title.Text = "Animation Changer (Local)" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 18 title.Parent = mainFrame local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(0, 120, 0, 35) toggleBtn.Position = UDim2.new(0, 15, 0.5, -17) toggleBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 55) toggleBtn.Text = "Anim Editor" toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) toggleBtn.Font = Enum.Font.GothamSemibold toggleBtn.TextSize = 14 toggleBtn.Parent = screenGui Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(0, 6) toggleBtn.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end) local killerBtn = Instance.new("TextButton") killerBtn.Size = UDim2.new(0.42, 0, 0, 35) killerBtn.Position = UDim2.new(0.05, 0, 0, 45) killerBtn.BackgroundColor3 = Color3.fromRGB(170, 50, 50) killerBtn.Text = "Killer" killerBtn.TextColor3 = Color3.fromRGB(255, 255, 255) killerBtn.Font = Enum.Font.GothamBold killerBtn.TextSize = 14 killerBtn.Parent = mainFrame Instance.new("UICorner", killerBtn).CornerRadius = UDim.new(0, 6) local survivorBtn = Instance.new("TextButton") survivorBtn.Size = UDim2.new(0.42, 0, 0, 35) survivorBtn.Position = UDim2.new(0.53, 0, 0, 45) survivorBtn.BackgroundColor3 = Color3.fromRGB(50, 110, 170) survivorBtn.Text = "Survivor" survivorBtn.TextColor3 = Color3.fromRGB(255, 255, 255) survivorBtn.Font = Enum.Font.GothamBold survivorBtn.TextSize = 14 survivorBtn.Parent = mainFrame Instance.new("UICorner", survivorBtn).CornerRadius = UDim.new(0, 6) local scrollFrame = Instance.new("ScrollingFrame") scrollFrame.Size = UDim2.new(0.9, 0, 0, 170) scrollFrame.Position = UDim2.new(0.05, 0, 0, 90) scrollFrame.BackgroundColor3 = Color3.fromRGB(22, 22, 26) scrollFrame.BorderSizePixel = 0 scrollFrame.ScrollBarThickness = 6 scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0) scrollFrame.Parent = mainFrame Instance.new("UICorner", scrollFrame).CornerRadius = UDim.new(0, 6) local listLayout = Instance.new("UIListLayout") listLayout.Padding = UDim.new(0, 5) listLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center listLayout.Parent = scrollFrame local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(0.9, 0, 0, 20) statusLabel.Position = UDim2.new(0.05, 0, 0, 265) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Step 1: Choose Killer or Survivor" statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200) statusLabel.Font = Enum.Font.Gotham statusLabel.TextSize = 12 statusLabel.Parent = mainFrame local idBox = Instance.new("TextBox") idBox.Size = UDim2.new(0.9, 0, 0, 35) idBox.Position = UDim2.new(0.05, 0, 0, 290) idBox.BackgroundColor3 = Color3.fromRGB(45, 45, 52) idBox.PlaceholderText = "Enter ID (e.g. 123456789)" idBox.Text = "" idBox.TextColor3 = Color3.fromRGB(255, 255, 255) idBox.Font = Enum.Font.Gotham idBox.TextSize = 14 idBox.Parent = mainFrame Instance.new("UICorner", idBox).CornerRadius = UDim.new(0, 6) local applyBtn = Instance.new("TextButton") applyBtn.Size = UDim2.new(0.9, 0, 0, 35) applyBtn.Position = UDim2.new(0.05, 0, 0, 333) applyBtn.BackgroundColor3 = Color3.fromRGB(50, 160, 80) applyBtn.Text = "Apply Animation ID" applyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) applyBtn.Font = Enum.Font.GothamBold applyBtn.TextSize = 14 applyBtn.Parent = mainFrame Instance.new("UICorner", applyBtn).CornerRadius = UDim.new(0, 6) local function loadAnimationsForTeam(teamName) selectedTeam = teamName selectedAnim = nil for _, child in ipairs(scrollFrame:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end local gameAssets = workspace:FindFirstChild("GameAssets") local teamsFolder = gameAssets and gameAssets:FindFirstChild("Teams") local teamFolder = teamsFolder and teamsFolder:FindFirstChild(teamName) local playerFolder = teamFolder and teamFolder:FindFirstChild(player.Name) local animsFolder = playerFolder and playerFolder:FindFirstChild("Animations") if not animsFolder then statusLabel.Text = "Folder not found for " .. player.Name .. " in " .. teamName return end statusLabel.Text = "Step 2: Select an animation" for _, item in ipairs(animsFolder:GetChildren()) do if item:IsA("Animation") then local animBtn = Instance.new("TextButton") animBtn.Size = UDim2.new(0.95, 0, 0, 30) animBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 50) animBtn.Text = item.Name animBtn.TextColor3 = Color3.fromRGB(230, 230, 230) animBtn.Font = Enum.Font.GothamSemibold animBtn.TextSize = 13 animBtn.Parent = scrollFrame Instance.new("UICorner", animBtn).CornerRadius = UDim.new(0, 4) animBtn.MouseButton1Click:Connect(function() selectedAnim = item statusLabel.Text = "Selected: " .. item.Name idBox.Text = item.AnimationId for _, btn in ipairs(scrollFrame:GetChildren()) do if btn:IsA("TextButton") then btn.BackgroundColor3 = Color3.fromRGB(45, 45, 50) end end animBtn.BackgroundColor3 = Color3.fromRGB(80, 120, 80) end) end end end killerBtn.MouseButton1Click:Connect(function() loadAnimationsForTeam("Killer") end) survivorBtn.MouseButton1Click:Connect(function() loadAnimationsForTeam("Survivor") end) applyBtn.MouseButton1Click:Connect(function() if not selectedTeam or not selectedAnim then statusLabel.Text = "Error: Select a team and animation first!" return end if idBox.Text == "" then statusLabel.Text = "Error: Enter an Asset ID!" return end local newId = idBox.Text if tonumber(newId) then newId = "rbxassetid://" .. newId end selectedAnim.AnimationId = newId statusLabel.Text = "Updated " .. selectedAnim.Name .. "!" end)