Advertisement
SekkayGod

Gef

Apr 15th, 2024 (edited)
1,691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.86 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3.  
  4. getgenv().inf_energy = false
  5. getgenv().selected_item = nil
  6.  
  7. local function getRoot(char)
  8.     local rootPart = char:FindFirstChild('HumanoidRootPart') or char:FindFirstChild('Torso') or char:FindFirstChild('UpperTorso')
  9.     return rootPart
  10. end
  11.  
  12. local function set(type, bool)
  13.     if type == "energy" then
  14.         getgenv().inf_energy = bool
  15.         local char = player.Character
  16.         local energy_value = char.Energy
  17.         if getgenv().inf_energy == true then
  18.             energy_value.Value = 1000000
  19.         else
  20.             energy_value.Value = 70
  21.         end
  22.     end
  23. end
  24.  
  25. local tools = {}
  26.  
  27. local function refresh()
  28.     tools = {}
  29.     for i,v in pairs(game.Workspace.Pickups:GetChildren()) do
  30.         if table.find(tools, v.Name) then else
  31.             table.insert(tools, v.Name)
  32.         end
  33.     end
  34. end
  35. refresh()
  36.  
  37. local weapons = {}
  38.  
  39. local function getWeapons(plyer)
  40.     weapons = {}
  41.     for i,v in pairs(plyer.Backpack:GetChildren()) do
  42.         if v.Name == "Crowbar" or v.Name == "Bat" then
  43.             if table.find(weapons, v.Name) then else
  44.                 table.insert(weapons, v.Name)
  45.             end
  46.         end
  47.     end
  48. end
  49. getWeapons(player)
  50.  
  51. local ui = loadstring(game:HttpGet("https://pastebin.com/raw/3xXCHAQD"))()
  52. ui:Window("Ouxie / Gef")
  53.  
  54. local plr = ui:NewTab("Player", "0")
  55. local items = ui:NewTab("Items", "0")
  56.  
  57. local dmg = 0
  58. local selected_weapon = nil
  59.  
  60. plr:Button("refresh weapons", "Refreshes the weapon dropdown/updates it.", function()
  61.     getWeapons(player)
  62. end)
  63.  
  64. plr:Dropdown("Selected Weapon", "Selected Weapon to set damage.", weapons, function()
  65.     for i,v in pairs(player.Backpack:GetChildren()) do
  66.         if v.Name == selected then
  67.             selected_weapon = v
  68.         end
  69.     end
  70.     for i,v in pairs(player.Character:GetChildren()) do
  71.         if v.Name == selected then
  72.             selected_weapon = v
  73.         end
  74.     end
  75. end)
  76.  
  77. plr:Input("Damage", "Set the damage of the selected weapon.", function()
  78.     dmg = tonumber(value)
  79. end)
  80.  
  81. plr:Button("Set Damage", "Sets the damage of the selected weapon to the input amount of damage.", function()
  82.     selected_weapon.Damage.Value = dmg
  83. end)
  84.  
  85. plr:Toggle("Inf Energy", "Gives you an high amount of energy.", function()
  86.     set("energy", bool)
  87. end)
  88.  
  89.  
  90. items:Button("Refresh", "Refresh the items.", function()
  91.     refresh()
  92. end)
  93.  
  94. items:Dropdown("Choose An Item", "Choose an item to goto.", tools, function()
  95.     getgenv().selected_item = selected
  96. end)
  97.  
  98. items:Button("Goto Item", "Teleport to the selected item", function()
  99.     for i,v in pairs(game.Workspace.Pickups:GetChildren()) do
  100.         if v.Name == selected_item or v.Name == getgenv().selected_item then
  101.             local p = getRoot(player.Character)
  102.             p.CFrame = v.CFrame
  103.         end
  104.     end
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement