Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local H = script.Parent:WaitForChild("Humanoid")
- local Context = game:GetService("ContextActionService")
- local Jumped = 0
- game:GetService("UserInputService").InputBegan:Connect(function(I)
- if I.KeyCode == Enum.KeyCode.Space then
- if H:GetState() == Enum.HumanoidStateType.Freefall then
- script.Parent.HumanoidRootPart.Velocity = script.Parent.HumanoidRootPart.CFrame.upVector * 60
- local C = game.ReplicatedStorage.Part:Clone()
- C.Position = script.Parent.UpperTorso.Position + Vector3.new(0, - 3, 0)
- C.Parent = game.Workspace
- script["boing sound effect!!"]:Play()
- task.spawn(function()
- C.ParticleEmitter.Enabled = true
- task.wait(.2)
- C.ParticleEmitter.Enabled = false
- end)
- task.wait(.5)
- C:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement