Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- math.randomseed(tick())
- UIS = game:GetService("UserInputService")
- RS = game:GetService("RunService").RenderStepped
- Plr = game.Players.LocalPlayer
- Char = Plr.Character or Plr.CharacterAdded:wait()
- CD = false
- Max = 16
- Current = 0
- ReloadTime = 9.5
- S2 = 0
- Char = workspace:WaitForChild(Plr.Name)
- function ConvertCode(keycode)
- local code = tostring(keycode)
- local pattern = "Enum.KeyCode%p%a"
- local anchor = "%p%a+"
- local finalkey = ""
- for t in code:gmatch(anchor) do
- for fc in t:gmatch("%a+") do
- finalkey = fc
- end
- end
- return finalkey:lower()
- end
- function Expand(Part)
- local savedFrame = Part.CFrame
- for i = 1, 100 do
- Part.Transparency = Part.Transparency + 0.5/100
- if Part.Transparency >= 1 then
- Part:Destroy()
- return
- end
- Part.Size = Part.Size+Vector3.new(.1,0,.1)
- Part.CFrame = savedFrame
- RS:wait()
- end
- Part:Destroy()
- end
- LastJumpTime = os.time()
- UIS.InputBegan:connect(function(In,GPE)
- if CD == true then return end
- local Code = ConvertCode(In.KeyCode)
- if os.difftime(os.time()-LastJumpTime) >= 1.25 then
- Current = 0
- end
- LastJumpTime = os.time()
- if Code == "space" and not GPE and Char.Humanoid.Jump == true then
- if S2 >= 1 then
- if Current < Max then
- Current = Current+1
- CD = true
- S2 = 0
- local Effect = Instance.new("Part",Char.Torso)
- Effect.BrickColor = BrickColor.new("Industrial white")
- Effect.Transparency = 0.2
- Effect.Material = "SmoothPlastic"
- Effect.CanCollide = true
- Effect.Anchored = true
- Effect.FormFactor = "Custom"
- Effect.Size = Vector3.new(3,0.4,3)
- Effect.CFrame = Char.Torso.CFrame-Vector3.new(0,1,0)
- local EM = "http://www.roblox.com/asset/?id=1095708"
- local Sfx = Instance.new("Sound",Effect)
- Sfx.SoundId = "http://www.roblox.com/Asset?ID=213188220"
- Sfx:Play()
- wait(.1)
- local Expande = coroutine.wrap(Expand)
- Expande(Effect)
- Effect.CanCollide = false
- CD = false
- else
- CD = true
- wait(ReloadTime)
- Current = 0
- CD = false
- end
- else
- S2=1
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement