how to make a double jump particle effect?
I want to know what i'm suppose to add to this script to make a cartoon like particle effect when someone double jumps. because i'm making a 3d platformer game like super mario 64 or a hat in time.
local UserInputSevice - game:GetSevice("UserInputSevice")
local jumptick = tick()
local Jumped = 1
local function onInputTypeBegan(input,gameProcessed
if input.UserInputType == Enum.UserInputType.Keyboard then
local keyPressed = input.keyCode
if keyPressed = Enum.Keycode.Space then
if Jumped == Enum.keycode.space then
if jumped == 1 then
jumped = 2
else
if Jumped == 2 and tick() - lastjumptick <= .5 then
local Jumpbrick.Cframe = instance.new("Part",workspace)
JumpBrick.CFrame = game.players.localPlayer.Characther.HumaonidRootpart.CFrame * CFrame.new(0,-2,0)
JumpBrick.Size = Vector3.new(5,.2,5)
JumpBrick.Anchored = true
JumpBrick.Transparency = 1
game.Players.LocalPlayer.Character.Humanoid.JumpPower = 60
game.Derbris:AddItem(JumpBrick,.1)
wait(.5)
game.Players.LocalPlayer.Character.Humanoid.jumpPower = 50
end
wait(5)
Jumped = 1
end
lastjumptick = tick
end
end
end