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

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

Asked by 4 years ago

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

Log in to vote
0
Answered by
DogeIXX 172
4 years ago

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)
Ad

Answer this question