Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local assetId = 137918621178549 -- Dismantle UNGROUP Effect asset ID
- -- Load the effect (Folder)
- local effect = game:GetObjects("rbxassetid://" .. assetId)[1]
- local effect2 = game:GetObjects("rbxassetid://" .. assetId)[1]
- local url = "https://rawgithubusercontent.com/Akjdja/D/refs/heads/main/CE.mp3" -- example
- local fileName = "CE.mp3" -- You can name the file however you want
- -- Always check and download the file
- if not isfile(fileName) then
- writefile(fileName, game:HttpGet(url))
- end
- -- Create a sound object and play it
- local sound = Instance.new("Sound")
- sound.SoundId = getcustomasset(fileName) -- Load from custom asset
- sound.Volume = 1 -- Set volume to desired level
- sound.Looped = false -- Set to false to prevent looping
- sound.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Parent to PlayerGui or Workspace
- -- Play the sound
- sound:Play()
- -- Ensure the effect was loaded properly
- if effect then
- local character = game.Players.LocalPlayer.Character
- if character then
- -- Wait for character parts to be loaded
- local Hand = character:WaitForChild("Right Arm")
- if Hand then
- -- Parent the effect to the workspace
- effect.Parent = game.Workspace
- -- Iterate through all parts in the folder and position them
- local weld = Instance.new("Weld")
- weld.Part0 = effect
- weld.Part1 = Hand
- weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0) -- Rotate blud
- weld.Parent = effect
- game.Debris:AddItem(effect, 50)
- end
- local dnah = character:WaitForChild("Left Arm")
- if dnah then
- -- Parent the effect to the workspace
- effect2.Parent = game.Workspace
- -- Iterate through all parts in the folder and position them
- local weld = Instance.new("Weld")
- weld.Part0 = effect2
- weld.Part1 = dnah
- weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0) -- Rotate blud
- weld.Parent = effect2
- -- Wait for 1 second before destroying the effect
- wait(50)
- -- Destroy the effect
- effect2:Destroy()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement