I have a ground pound script, for my adventure game (actually a press e to sit script lol), the problem is.... if u ground pound i want star particles and ground pound music to come, i made some sort of script but it doesn't work.. I'm really bad at this kind of stuff lol
da script:
repeat wait() until game.Players.LocalPlayer
local player = script.Parent.Parent
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "e" then
player.Character.Humanoid.Sit=true
mouse.Keydown:connect(function(key)
local particles = Instance.new ("ParticleEmitter")
particles.Parent = hit.Parent.HumanoidRootPart
wait(2) -- set to how long you want the particles to last for
particles.Enabled = false
local debounce = false
wait(5)
particles:Destroy()
end)
end
end)
thx for helping

2 comments
Um how do i fill on the texture id?
Take the texture you wish from your folders or take an existing ParticleEmitter and copy everything from the 'Texture' tab to yours