Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

A little detail problem with ground pound?

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

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 !

2 comments

0

Um how do i fill on the texture id?

0

Take the texture you wish from your folders or take an existing ParticleEmitter and copy everything from the 'Texture' tab to yours

This discussion is preserved as it was. New answers, comments, and votes are closed.