-- ================= الخدمات ================= local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer -- ================= GUI ================= local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game.CoreGui local Frame = Instance.new("Frame") Frame.Parent = ScreenGui Frame.Size = UDim2.new(0, 250, 0, 120) Frame.Position = UDim2.new(0.5, -125, 0.5, -60) Frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true local Title = Instance.new("TextLabel") Title.Parent = Frame Title.Size = UDim2.new(1, 0, 0, 30) Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Title.Text = "Animation Control" Title.TextColor3 = Color3.fromRGB(255, 0, 0) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 18 local Button = Instance.new("TextButton") Button.Parent = Frame Button.Size = UDim2.new(0.8, 0, 0, 40) Button.Position = UDim2.new(0.1, 0, 0.5, -10) Button.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Button.Text = "تشغيل" Button.TextColor3 = Color3.fromRGB(255,255,255) Button.Font = Enum.Font.SourceSansBold Button.TextSize = 18 -- ================= الأنميشن ================= local AnimationId = "rbxassetid://112950001137724" local playing = false local track = nil local function playAnimation() local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local humanoid = char:WaitForChild("Humanoid") local anim = Instance.new("Animation") anim.AnimationId = AnimationId track = humanoid:LoadAnimation(anim) track:Play() end local function stopAnimation() if track then track:Stop() track = nil end end -- ================= الزر ================= Button.MouseButton1Click:Connect(function() playing = not playing if playing then Button.Text = "إيقاف" playAnimation() else Button.Text = "تشغيل" stopAnimation() end end)