How to Create Particle Effects for Checkpoints?

Hello! I’m creating a particle emission function and I would like to achieve an effect like in the video where particles appear when the checkpoint is touched and then disappear. Any ideas on how to achieve that?

In the video, you can see how the stars rise and then fall; I’m not sure how to achieve that… :frowning:

script:

local function emitSparkles(position, partToBeAttached)
	-- Create a new ParticleEmitter
	local emitter = Instance.new("ParticleEmitter")
	emitter.Parent = partToBeAttached -- Assign the emitter to the desired Part object in the game

	-- Set the emitter's properties
	emitter.Texture = "http://www.roblox.com/asset/?id=5860841663"
	emitter.Size = NumberSequence.new(2)
	emitter.Speed = NumberRange.new(5, 25)
	emitter.Lifetime = NumberRange.new(3)

	-- Create a ColorSequence with the desired color
	local colorSequence = ColorSequence.new(Color3.fromRGB(255, 255, 127))

	-- Set the emitter's color to the ColorSequence
	emitter.Color = colorSequence

	print("Sparkles emitted at position:", position)

	-- Wait for 3 seconds before stopping the emission
	wait(3)

	print("Stopping sparkles emission")

	-- Stop emitting particles
	emitter.Enabled = false
end

You can simply create the particle, clone it, and then emit the particles like this:

local particle = game.ReplicatedStorage.Particle:Clone()
particle.Parent = workspace.Part
particle:Emit(10) -- number of particles
1 Like

the first thing you wanna do is not use chatGPT

1 Like

I recommend not making your particle emitters in scripts. Instead, clone it from somewhere. You’ll be able to make edits without playing the game.

You can set the y of the acceleration value of the particle to a negative number.

you gotta make particles with Acceleration 0,-10,0 and it’ll give a falling effect if you did EmissionDirection Top and Speed 10 and it’ll achieve the stars, about the rings its super simple, clone the particle once u stepped on it and emit(10)

1 Like

Oh, I understand! Thank you very much, I’ll give it a try and let you know if it works.