How would you make cloud particles when you land?

The title is pretty self explanatory. This is what I have so far.

The particles don’t look that good, it only works when you land multiple times and it’s not really locked to the camera.

Here is my script:

local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()

local cloud = game.ReplicatedStorage.Cloud:Clone() -- the particles
cloud.Parent = Character:WaitForChild("Head")
cloud.Enabled = false

Humanoid.StateChanged:Connect(function(old, new)
	if new == Enum.HumanoidStateType.Landed then
		wait(.025)
		cloud.Enabled = true
		wait(.15)
		cloud.Enabled = false
	end
end)

Thanks,
Dragon

1 Like

There is a nifty function you can use here. It’s called Emit() ParticleEmitter | Roblox Creator Documentation

You can use it in this case like this

if new == Enum.HumanoidStateType.Landed then
	cloud:Emit(20) -- Number or particles to emit
end

It is used for explosions and stuff like that.

You also might want the particles come from under the feet. You might want to parent the particle emitter to an attachment located under the Character head for example the neck or even the RootRig

4 Likes

I’ll try that out, thanks!

characters

1 Like