Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

A little detail problem with ground pound?

Asked by 6 years ago

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

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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 !

0
Um how do i fill on the texture id? Theroofypidgeot 21 — 6y
0
Take the texture you wish from your folders or take an existing ParticleEmitter and copy everything from the 'Texture' tab to yours LordTechet 53 — 6y
Ad

Answer this question