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
Make sure you have all the information of the ParticleEmitter
in the script:
Lines marked with '---' means that you can change it how you wish
local Player = game.Players.LocalPlayer local Particle = Instance.new("ParticleEmitter") Particle.Parent = Player.Character.HumanoidRootPart --- Particle.Color = Color3.new(255, 255, 255) --- Particle.LightEmission = 1 --- Particle.LightInfluence = 1 --- Particle.Size = 1 --- Particle.Texture = "rbxassetid://012345"--- Particle.Transparency = 0 --- Particle.ZOffset = 0 Particle.EmissionDirection = "Top" Particle.Enabled = true Particle.Lifetime = 5, 10 --- Particle.Rate = 20 --- Particle.Speed = 5 ---
Replace your 11th and 12th line with the script given, adjust it how you wish !