Advertisement
so50que

Sigmaboy

Jan 30th, 2025 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.31 KB | None | 0 0
  1. local assetId = 137918621178549 -- Dismantle UNGROUP Effect asset ID
  2.  
  3. -- Load the effect (Folder)
  4. local effect = game:GetObjects("rbxassetid://" .. assetId)[1]
  5. local effect2 = game:GetObjects("rbxassetid://" .. assetId)[1]
  6.  
  7. local url = "https://rawgithubusercontent.com/Akjdja/D/refs/heads/main/CE.mp3" -- example
  8. local fileName = "CE.mp3"  -- You can name the file however you want
  9.  
  10. -- Always check and download the file
  11. if not isfile(fileName) then
  12.     writefile(fileName, game:HttpGet(url))
  13. end
  14.  
  15. -- Create a sound object and play it
  16. local sound = Instance.new("Sound")
  17. sound.SoundId = getcustomasset(fileName)  -- Load from custom asset
  18. sound.Volume = 1  -- Set volume to desired level
  19. sound.Looped = false  -- Set to false to prevent looping
  20. sound.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Parent to PlayerGui or Workspace
  21.  
  22. -- Play the sound
  23. sound:Play()
  24.  
  25. -- Ensure the effect was loaded properly
  26. if effect then
  27.     local character = game.Players.LocalPlayer.Character
  28.     if character then
  29.         -- Wait for character parts to be loaded
  30.         local Hand = character:WaitForChild("Right Arm")
  31.  
  32.         if Hand then
  33.             -- Parent the effect to the workspace
  34.             effect.Parent = game.Workspace
  35.            
  36.             -- Iterate through all parts in the folder and position them
  37.             local weld = Instance.new("Weld")
  38.             weld.Part0 = effect
  39.             weld.Part1 = Hand
  40.             weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)  --  Rotate blud
  41.             weld.Parent = effect
  42.  
  43.             game.Debris:AddItem(effect, 50)
  44.  
  45.         end
  46.         local dnah = character:WaitForChild("Left Arm")
  47.  
  48.         if dnah then
  49.             -- Parent the effect to the workspace
  50.             effect2.Parent = game.Workspace
  51.            
  52.             -- Iterate through all parts in the folder and position them
  53.             local weld = Instance.new("Weld")
  54.             weld.Part0 = effect2
  55.             weld.Part1 = dnah
  56.             weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)  --  Rotate blud
  57.             weld.Parent = effect2
  58.  
  59.             -- Wait for 1 second before destroying the effect
  60.             wait(50)
  61.  
  62.             -- Destroy the effect
  63.             effect2:Destroy()
  64.         end        
  65.     end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement