local url = "https://raw.githubusercontent.com/HarcangiRobloxProjects/Songsformusicplayer/main/Chess%20Type%20Beat%20_%20joyful%20-%20chess%20(slowed).mp3" local file = "song.mp3" if not isfile(file) then local data = game:HttpGet(url) if #data >= 1000 then writefile(file, data) end end local sound = Instance.new("Sound") sound.SoundId = getcustomasset(file) sound.Volume = 1 sound.Looped = true sound.Parent = game:GetService("SoundService") local function anim2track(asset_id) local objs = game:GetObjects(asset_id) for i = 1, #objs do if objs[i]:IsA("Animation") then return objs[i].AnimationId end end return asset_id end local function getHumanoid() local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait() return char:WaitForChild("Humanoid") end local animid = anim2track("rbxassetid://126123959691270") local animation = Instance.new("Animation") animation.AnimationId = animid local track local function loadAnim() local humanoid = getHumanoid() track = humanoid:LoadAnimation(animation) track.Priority = Enum.AnimationPriority.Movement end loadAnim() local playing = true sound:Play() if track then track:Play() end game.Players.LocalPlayer.CharacterAdded:Connect(function() task.wait(1) loadAnim() if playing and track then track:Play() end end) local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.P then playing = not playing if playing then sound:Play() if track then track:Play() end else sound:Stop() if track then track:Stop() end end end end)