Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- getgenv().inf_energy = false
- getgenv().selected_item = nil
- local function getRoot(char)
- local rootPart = char:FindFirstChild('HumanoidRootPart') or char:FindFirstChild('Torso') or char:FindFirstChild('UpperTorso')
- return rootPart
- end
- local function set(type, bool)
- if type == "energy" then
- getgenv().inf_energy = bool
- local char = player.Character
- local energy_value = char.Energy
- if getgenv().inf_energy == true then
- energy_value.Value = 1000000
- else
- energy_value.Value = 70
- end
- end
- end
- local tools = {}
- local function refresh()
- tools = {}
- for i,v in pairs(game.Workspace.Pickups:GetChildren()) do
- if table.find(tools, v.Name) then else
- table.insert(tools, v.Name)
- end
- end
- end
- refresh()
- local weapons = {}
- local function getWeapons(plyer)
- weapons = {}
- for i,v in pairs(plyer.Backpack:GetChildren()) do
- if v.Name == "Crowbar" or v.Name == "Bat" then
- if table.find(weapons, v.Name) then else
- table.insert(weapons, v.Name)
- end
- end
- end
- end
- getWeapons(player)
- local ui = loadstring(game:HttpGet("https://pastebin.com/raw/3xXCHAQD"))()
- ui:Window("Ouxie / Gef")
- local plr = ui:NewTab("Player", "0")
- local items = ui:NewTab("Items", "0")
- local dmg = 0
- local selected_weapon = nil
- plr:Button("refresh weapons", "Refreshes the weapon dropdown/updates it.", function()
- getWeapons(player)
- end)
- plr:Dropdown("Selected Weapon", "Selected Weapon to set damage.", weapons, function()
- for i,v in pairs(player.Backpack:GetChildren()) do
- if v.Name == selected then
- selected_weapon = v
- end
- end
- for i,v in pairs(player.Character:GetChildren()) do
- if v.Name == selected then
- selected_weapon = v
- end
- end
- end)
- plr:Input("Damage", "Set the damage of the selected weapon.", function()
- dmg = tonumber(value)
- end)
- plr:Button("Set Damage", "Sets the damage of the selected weapon to the input amount of damage.", function()
- selected_weapon.Damage.Value = dmg
- end)
- plr:Toggle("Inf Energy", "Gives you an high amount of energy.", function()
- set("energy", bool)
- end)
- items:Button("Refresh", "Refresh the items.", function()
- refresh()
- end)
- items:Dropdown("Choose An Item", "Choose an item to goto.", tools, function()
- getgenv().selected_item = selected
- end)
- items:Button("Goto Item", "Teleport to the selected item", function()
- for i,v in pairs(game.Workspace.Pickups:GetChildren()) do
- if v.Name == selected_item or v.Name == getgenv().selected_item then
- local p = getRoot(player.Character)
- p.CFrame = v.CFrame
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement