Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local module = require(game:GetService("ReplicatedStorage"):WaitForChild("GameLoader"))
- local jetpackassets = module.jetpackassets
- wait(0.25)
- repeat
- repeat
- wait(0.25)
- print("waiting for soundsearch")
- until _G.searchsounds
- until type(_G.searchsounds) == "function"
- local player = game.Players.LocalPlayer
- repeat
- wait()
- until player
- local pgui = player.PlayerGui
- repeat
- wait()
- until pgui
- local character = player.Character
- repeat
- wait()
- until character
- local humanoid = character:WaitForChild("Humanoid")
- local camera = game:GetService("Workspace").CurrentCamera
- repeat
- wait()
- until camera
- local equipkey = jetpackassets.equipkey
- local forwardkey = jetpackassets.forwardkey
- local jfunction = jetpackassets.jfunction
- local jetpacktab = jetpackassets.jetpack1
- local jetpackname = jetpacktab.Name
- local maxfuel = jetpacktab.MaxFuel
- local maxspeed = jetpacktab.MaxSpeed
- local hoverspeed = (math.floor)(maxspeed / 1.5)
- local fuel = script:WaitForChild("Fuel")
- fuel.Value = maxfuel
- local speed = 0
- local mainpart = character:WaitForChild("Torso")
- local boosters = {}
- local hoverkey = "h"
- local hovermode = false
- local jengine1 = (_G.searchsounds)("JetEngine1")
- local jengine2 = (_G.searchsounds)("JetEngine2")
- local hoversound = ((_G.searchsounds)("Hover"))
- local selection = nil
- local primarycolor = script:WaitForChild("Pcolor")
- local secondarycolor = script:WaitForChild("Scolor")
- local basecolor = script:WaitForChild("Bcolor")
- local gui = script:WaitForChild("JCustomize"):Clone()
- gui.Parent = pgui
- local frame = gui:WaitForChild("Frame")
- local arrow = frame:WaitForChild("Arrow")
- local colorframe = frame:WaitForChild("ColorFrame")
- local colframe = frame:WaitForChild("ColFrame")
- local primary = colframe:WaitForChild("Primary")
- local secondary = colframe:WaitForChild("Secondary")
- local base = colframe:WaitForChild("Base")
- local customframe = frame:WaitForChild("CustomFrame")
- local customize = customframe:WaitForChild("Customize")
- local fueltext = customframe:WaitForChild("Fueltext")
- local ctoggle = false
- local events = {}
- local mouse = player:GetMouse()
- local fire = false
- local equipped = false
- local jetpack = nil
- local hold = false
- local stap = false
- local forward = false
- local died = false
- local sdebounce = false
- local flying = false
- local collide = false
- local cevents = {}
- local dhold = false
- local ahold = false
- local shold = false
- local ytilt = 0
- local xtilt = 0
- local yval = 15
- local xval = 20
- print("Jetpack variables loaded")
- creatextilt = function(bv, torso)
- -- function num : 0_0 , upvalues : shold, forward, xtilt, xval, speed
- if shold and not forward then
- xtilt = xval
- bv.velocity = (Vector3.new)(-torso.CFrame.lookVector.X, 0, -torso.CFrame.lookVector.Z) * speed
- else
- if forward and not shold then
- xtilt = -xval
- bv.velocity = (Vector3.new)(torso.CFrame.lookVector.X, 0, torso.CFrame.lookVector.Z) * speed
- else
- xtilt = 0
- bv.velocity = (Vector3.new)(0, 0.15, 0)
- speed = 0
- end
- end
- end
- createytilt = function()
- -- function num : 0_1 , upvalues : dhold, ahold, ytilt, yval
- if dhold and not ahold then
- ytilt = ytilt + yval
- else
- if ahold and not dhold then
- ytilt = ytilt - yval
- end
- end
- end
- stopsounds = function()
- -- function num : 0_2 , upvalues : jengine1, jengine2, hoversound
- if jengine1.IsPlaying or jengine2.IsPlaying or hoversound.IsPlaying then
- jengine1:Stop()
- jengine2:Stop()
- hoversound:Stop()
- end
- end
- togglec = function()
- -- function num : 0_3 , upvalues : ctoggle
- if not ctoggle then
- ctoggle = true
- else
- if ctoggle then
- ctoggle = false
- end
- end
- end
- handlefuel = function()
- -- function num : 0_4 , upvalues : fuel, maxfuel, fueltext
- -- DECOMPILER ERROR at PC7: Confused about usage of register: R0 in 'UnsetPending'
- if maxfuel < fuel.Value then
- fuel.Value = maxfuel
- else
- -- DECOMPILER ERROR at PC14: Confused about usage of register: R0 in 'UnsetPending'
- if fuel.Value <= 0 then
- fuel.Value = 0
- end
- end
- -- DECOMPILER ERROR at PC21: Confused about usage of register: R0 in 'UnsetPending'
- if fuel.Value == maxfuel then
- fueltext.Text = "Fuel: 100%"
- else
- -- DECOMPILER ERROR at PC28: Confused about usage of register: R0 in 'UnsetPending'
- if fuel.Value == 0 then
- fueltext.Text = "Fuel: 0%"
- else
- -- DECOMPILER ERROR at PC52: Confused about usage of register: R0 in 'UnsetPending'
- if fuel.Value >= 10 then
- fueltext.Text = "Fuel: " .. (string.sub)(tostring((math.floor)(fuel.Value) / maxfuel), 3, 4) .. "%"
- else
- -- DECOMPILER ERROR at PC72: Confused about usage of register: R0 in 'UnsetPending'
- fueltext.Text = "Fuel: " .. (string.sub)(tostring((math.floor)(fuel.Value) / maxfuel), 4, 4) .. "%"
- end
- end
- end
- end
- fuel.Changed:connect(handlefuel)
- getcolor = function(t, c)
- -- function num : 0_5 , upvalues : equipped, jetpack, jfunction
- if equipped and jetpack ~= nil and t and type(t) == "string" then
- local group = jfunction:InvokeServer({"color", jetpack:WaitForChild(t), c})
- end
- end
- disconnect = function(t)
- -- function num : 0_6
- if t and type(t) == "table" then
- for i,v in pairs(t) do
- v:disconnect()
- end
- t = {}
- end
- end
- handlecollisions = function()
- -- function num : 0_7 , upvalues : cevents, equipped, jetpack, character, module, collide
- disconnect(cevents)
- if equipped and jetpack ~= nil then
- for i,v in pairs(character:GetChildren()) do
- if v:IsA("Part") then
- local con = nil
- con = v.Touched:connect((module.debounce)(function(p)
- -- function num : 0_7_0 , upvalues : jetpack, collide, cevents
- if p:IsA("Part") and not p:IsDescendantOf(jetpack) and p.CanCollide then
- collide = true
- print(p.Name)
- disconnect(cevents)
- end
- wait(0.5)
- collide = false
- end
- ))
- ;
- (table.insert)(cevents, con)
- end
- end
- end
- end
- arrow.MouseButton1Click:connect((module.debounce)(function()
- -- function num : 0_8 , upvalues : ctoggle, arrow, customframe, colframe, colorframe
- togglec()
- -- DECOMPILER ERROR at PC6: Confused about usage of register: R0 in 'UnsetPending'
- if ctoggle then
- arrow.Rotation = 180
- -- DECOMPILER ERROR at PC8: Confused about usage of register: R0 in 'UnsetPending'
- customframe.Visible = true
- -- DECOMPILER ERROR at PC10: Confused about usage of register: R0 in 'UnsetPending'
- colframe.Visible = false
- else
- -- DECOMPILER ERROR at PC13: Confused about usage of register: R0 in 'UnsetPending'
- arrow.Rotation = 0
- -- DECOMPILER ERROR at PC15: Confused about usage of register: R0 in 'UnsetPending'
- customframe.Visible = false
- -- DECOMPILER ERROR at PC17: Confused about usage of register: R0 in 'UnsetPending'
- colframe.Visible = false
- -- DECOMPILER ERROR at PC23: Confused about usage of register: R0 in 'UnsetPending'
- if colorframe.Visible then
- colorframe.Visible = false
- end
- end
- wait(0.25)
- end
- ))
- customize.MouseButton1Click:connect((module.debounce)(function()
- -- function num : 0_9 , upvalues : customize, equipped, colframe, colorframe, selection, events
- if not customize.Visible then
- print("Customize is not visible")
- return
- end
- if not equipped then
- print("Jetpack is not equipped, can\'t customize")
- return
- end
- -- DECOMPILER ERROR at PC20: Confused about usage of register: R0 in 'UnsetPending'
- if colframe.Visib...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement