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

I want to add a bubble effect when you jump how do I do it?

The title says it all I want it so when you jump you have like a bubble effect like you go up slowly like a bubble and then you fall. I tried to do it with JumpPower but it doesn't give the effect that I want

game.Players.PlayerAdded:Connect(function(player)
          player.Character.Humanoid.JumpPower = 250
end) 

1 answer

Okay, so this is a script I made that checks if there is a FloorMaterial. When I tested it, it worked perfectly. You may change the effect from the Sparkles and the position from them.

game.Players.PlayerAdded:Connect(function(plr)
     plr.CharacterAdded:Connect(function(char)
           char.Humanoid.Jumping:Connect(function()
			print("Jumped")
			local spa = Instance.new("Sparkles")
			spa.Parent = char.Head
			wait(0.3)
			repeat wait() until char.Humanoid.FloorMaterial
			spa:Destroy()
		end)
       end)
end)

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