Advertisement
BUNBASTER7BLASTER

Build to Survive the Robots (OLDSCRIPT)

Jan 9th, 2025
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.59 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local weapon_attr = player:WaitForChild("WeaponsAttributes")
  3. local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local maceMod = weapon_attr:WaitForChild("Mace")
  7. local raygunMod = weapon_attr:WaitForChild("RayGun")
  8. local staffMod = weapon_attr:WaitForChild("Staff")
  9.  
  10.  
  11. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  12. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  13. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  14. local NotificationHolder = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua"))()
  15. local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua"))()
  16.  
  17.  
  18.  
  19. _G.PlayerChams = false
  20. _G.RainbowLine = false
  21. _G.PlayerText = false
  22. _G.RainbowText = false
  23.  
  24. -- Constants
  25. local FillColor = Color3.fromRGB(154, 215, 255)
  26. local DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  27. local FillTransparency = 0.5
  28. local OutlineColor = Color3.fromRGB(0, 0, 0)
  29. local OutlineTransparency = 0.4
  30.  
  31. local CoreGui = game:GetService("CoreGui")
  32. local Players = game:GetService("Players")
  33. local lp = Players.LocalPlayer
  34. local Storage = CoreGui:FindFirstChild("OmniShieldChams") or Instance.new("Folder", CoreGui)
  35. Storage.Name = "OmniShieldChams"
  36.  
  37. local playerHighlights = {}
  38. local playerTexts = {}
  39. local connections = {}
  40.  
  41. -- Generate Smooth Rainbow Color
  42. local function getRainbowColor()
  43. return Color3.fromHSV((tick() % 5) / 5, 1, 1)
  44. end
  45.  
  46. -- Update Highlight Function
  47. local function updateHighlight(plr)
  48. local highlight = playerHighlights[plr.UserId]
  49. if not highlight then
  50. highlight = Instance.new("Highlight")
  51. highlight.Name = plr.Name
  52. highlight.FillColor = FillColor
  53. highlight.DepthMode = DepthMode
  54. highlight.FillTransparency = FillTransparency
  55. highlight.OutlineColor = OutlineColor
  56. highlight.OutlineTransparency = OutlineTransparency
  57. highlight.Parent = Storage
  58. playerHighlights[plr.UserId] = highlight
  59. end
  60.  
  61. local function updateHighlightLoop()
  62. while highlight and highlight.Parent do
  63. local char = plr.Character
  64. if char then
  65. highlight.Adornee = char
  66. if _G.RainbowLine then
  67. highlight.OutlineColor = getRainbowColor()
  68. end
  69. end
  70. task.wait(0.5)
  71. end
  72. end
  73.  
  74. task.spawn(updateHighlightLoop)
  75. end
  76.  
  77. -- Update Text Label Function
  78. local function updateTextLabel(plr)
  79. local char = plr.Character
  80. if not char then return end
  81.  
  82. local head = char:FindFirstChild("Head")
  83. if not head then return end
  84.  
  85. local billboard = head:FindFirstChild("BillboardGui")
  86. if not billboard then
  87. billboard = Instance.new("BillboardGui")
  88. billboard.Name = "BillboardGui"
  89. billboard.Size = UDim2.new(0, 200, 0, 50)
  90. billboard.Adornee = head
  91. billboard.AlwaysOnTop = true
  92. billboard.StudsOffset = Vector3.new(0, 3, 0)
  93. billboard.Parent = head
  94. end
  95.  
  96. local textLabel = billboard:FindFirstChild("TextLabel")
  97. if not textLabel then
  98. textLabel = Instance.new("TextLabel")
  99. textLabel.Name = "TextLabel"
  100. textLabel.Size = UDim2.new(1, 0, 1, 0)
  101. textLabel.BackgroundTransparency = 1
  102. textLabel.TextColor3 = Color3.new(1, 1, 1)
  103. textLabel.TextStrokeTransparency = 1
  104. textLabel.TextScaled = true
  105. textLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
  106. textLabel.Parent = billboard
  107. playerTexts[plr.UserId] = textLabel
  108. end
  109.  
  110. local function updateTextLabelLoop()
  111. while textLabel and textLabel.Parent do
  112. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  113. textLabel.Text = plr.Name .. "\nHealth: " .. math.ceil(plr.Character.Humanoid.Health)
  114. if _G.RainbowText then
  115. textLabel.TextColor3 = getRainbowColor()
  116. end
  117. end
  118. task.wait(0.5)
  119. end
  120. end
  121.  
  122. task.spawn(updateTextLabelLoop)
  123. end
  124.  
  125. -- Handle Player and Local Player Respawns
  126. local function onPlayerRespawn(plr)
  127. if _G.PlayerChams then
  128. updateHighlight(plr)
  129. end
  130. if _G.PlayerText then
  131. updateTextLabel(plr)
  132. end
  133. end
  134.  
  135. local function onLocalPlayerRespawn()
  136. local localPlayerHighlight = playerHighlights[lp.UserId]
  137. if localPlayerHighlight then
  138. localPlayerHighlight:Destroy()
  139. playerHighlights[lp.UserId] = nil
  140. end
  141. if _G.PlayerChams then
  142. updateHighlight(lp)
  143. end
  144. end
  145.  
  146. -- Toggle ESP and Text
  147. local function toggleESP(enabled)
  148. if enabled then
  149. for _, plr in ipairs(Players:GetPlayers()) do
  150. if plr ~= lp and not playerHighlights[plr.UserId] then
  151. updateHighlight(plr)
  152. end
  153. end
  154. if not connections["PlayerAdded"] then
  155. connections["PlayerAdded"] = Players.PlayerAdded:Connect(function(plr)
  156. if plr ~= lp and not playerHighlights[plr.UserId] then
  157. updateHighlight(plr)
  158. end
  159. end)
  160. end
  161. else
  162. for _, child in ipairs(Storage:GetChildren()) do
  163. if child:IsA("Highlight") then
  164. child:Destroy()
  165. playerHighlights[child.Name] = nil
  166. end
  167. end
  168. if connections["PlayerAdded"] then
  169. connections["PlayerAdded"]:Disconnect()
  170. connections["PlayerAdded"] = nil
  171. end
  172. end
  173. end
  174.  
  175. local function togglePlayerText(enabled)
  176. _G.PlayerText = enabled
  177. if enabled then
  178. for _, plr in ipairs(Players:GetPlayers()) do
  179. if plr ~= lp and not playerTexts[plr.UserId] then
  180. updateTextLabel(plr)
  181. end
  182. end
  183. else
  184. for _, textLabel in pairs(playerTexts) do
  185. if textLabel and textLabel.Parent then
  186. textLabel.Parent:Destroy()
  187. end
  188. end
  189. playerTexts = {}
  190. end
  191. end
  192.  
  193. -- Refresh ESP Settings
  194. local function refreshESP()
  195. toggleESP(_G.PlayerChams)
  196. togglePlayerText(_G.PlayerText)
  197. end
  198.  
  199. -- Connection to Events
  200. Players.PlayerAdded:Connect(onPlayerRespawn)
  201. Players.PlayerRemoving:Connect(function(plr)
  202. local existingHighlight = playerHighlights[plr.UserId]
  203. if existingHighlight then
  204. existingHighlight:Destroy()
  205. playerHighlights[plr.UserId] = nil
  206. end
  207. if playerTexts[plr.UserId] then
  208. playerTexts[plr.UserId].Parent:Destroy()
  209. playerTexts[plr.UserId] = nil
  210. end
  211. end)
  212.  
  213. lp.CharacterAdded:Connect(onLocalPlayerRespawn)
  214.  
  215. -- Update Function for Dynamic Changes
  216. task.spawn(function()
  217. while true do
  218. refreshESP()
  219. task.wait(2)
  220. end
  221. end)
  222.  
  223. -- Start periodic highlight update and initial setup
  224. task.spawn(function()
  225. while true do
  226. if _G.PlayerChams then
  227. for _, plr in ipairs(Players:GetPlayers()) do
  228. if plr ~= lp and not playerHighlights[plr.UserId] then
  229. updateHighlight(plr)
  230. end
  231. end
  232. end
  233. task.wait(2)
  234. end
  235. end)
  236.  
  237. task.spawn(function()
  238. while true do
  239. if _G.PlayerText then
  240. for _, plr in ipairs(Players:GetPlayers()) do
  241. if plr ~= lp and not playerTexts[plr.UserId] then
  242. updateTextLabel(plr)
  243. end
  244. end
  245. end
  246. task.wait(2)
  247. end
  248. end)
  249. refreshESP()
  250.  
  251. local Window = Fluent:CreateWindow({
  252. Title = "Spectral Hub (BBD5 EDITION)",
  253. SubTitle = " BTSTR",
  254. TabWidth = 160,
  255. Size = UDim2.fromOffset(580, 340),
  256. Acrylic = false,
  257. Theme = "Amethyst",
  258. MinimizeKey = Enum.KeyCode.LeftControl
  259. })
  260.  
  261. local Tabs = {
  262. Main = Window:AddTab({ Title = "Main", Icon = "home" }),
  263. Player = Window:AddTab({ Title = "Player", Icon = "user" }),
  264. Esp = Window:AddTab({ Title = "Visual", Icon = "map-pin" }),
  265. Hitbox = Window:AddTab({ Title = "Hitbox", Icon = "target" }),
  266. Robots = Window:AddTab({ Title = "Robots", Icon = "bot" }),
  267. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  268. }
  269.  
  270. Tabs.Main:AddParagraph({
  271. Title = "Welcome!",
  272. Content = "Welcome to the Spectral BTSTR\nThank You For Using Spectral Hub!"
  273. })
  274. Tabs.Main:AddParagraph({
  275. Title = "Devs: MurKilDev, BBD5",
  276. Content = ""
  277. })
  278.  
  279. -- Player Tab
  280. local speed = 16
  281. local RunService = game:GetService("RunService")
  282. local Players = game:GetService("Players")
  283. local speaker = game:GetService("Players").LocalPlayer
  284. local Noclipping = nil
  285.  
  286. local InfJp = Tabs.Player:AddToggle("InfJump", {Title = "Infinite Jump", Default = false})
  287.  
  288. InfJp:OnChanged(function()
  289. getgenv().infj = InfJp.Value
  290. local player = game:GetService("Players").LocalPlayer
  291. local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  292. if getgenv().infj and humanoid then
  293. _G.jpbypass = humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function()
  294. humanoid.JumpPower = 50
  295. end)
  296. _G.jumpcheck = game:GetService("UserInputService").JumpRequest:Connect(function()
  297. if getgenv().infj then
  298. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  299. end
  300. end)
  301. else
  302. if _G.jpbypass then
  303. _G.jpbypass:Disconnect()
  304. _G.jpbypass = nil
  305. end
  306. if _G.jumpcheck then
  307. _G.jumpcheck:Disconnect()
  308. _G.jumpcheck = nil
  309. end
  310. end
  311. end)
  312.  
  313. local InfJp = Tabs.Player:AddToggle("InfJump", {Title = "Infinite Jump", Default = false})
  314.  
  315. InfJp:OnChanged(function(NewValue)
  316. getgenv().infj = NewValue
  317.  
  318. if getgenv().infj then
  319. if not _G.jpbypass then
  320. _G.jpbypass = humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function()
  321. humanoid.JumpPower = 50
  322. end)
  323. end
  324.  
  325. if not _G.jumpcheck then
  326. _G.jumpcheck = game:GetService("UserInputService").JumpRequest:Connect(function()
  327. if getgenv().infj then
  328. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  329. end
  330. end)
  331. end
  332. else
  333. if _G.jpbypass then
  334. _G.jpbypass:Disconnect()
  335. _G.jpbypass = nil
  336. end
  337. if _G.jumpcheck then
  338. _G.jumpcheck:Disconnect()
  339. _G.jumpcheck = nil
  340. end
  341. end
  342. end)
  343.  
  344.  
  345. -- SpeedWalker WARNING: This is a BETA feature, it may not work properly
  346.  
  347. local players = game:GetService("Players")
  348. local runService = game:GetService("RunService")
  349.  
  350. getgenv().Speed = getgenv().Speed or 16 -- Default speed if not set
  351. getgenv().Enabled = getgenv().Enabled ~= nil and getgenv().Enabled or true -- Default enabled state if not set
  352.  
  353. local function setWalkSpeed(character, speed)
  354. local humanoid = character:FindFirstChildOfClass("Humanoid")
  355. if humanoid then
  356. if humanoid.WalkSpeed ~= speed then
  357. humanoid.WalkSpeed = speed
  358. end
  359. end
  360. end
  361.  
  362. local function onCharacterAdded(character)
  363. local humanoid = character:WaitForChild("Humanoid") -- Fixed missing parenthesis
  364. setWalkSpeed(character, getgenv().Speed)
  365.  
  366. humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  367. if getgenv().Enabled and humanoid.WalkSpeed ~= getgenv().Speed then
  368. humanoid.WalkSpeed = getgenv().Speed
  369. end
  370. end)
  371. end
  372.  
  373. local localPlayer = players.LocalPlayer
  374. if localPlayer.Character then
  375. onCharacterAdded(localPlayer.Character)
  376. end
  377.  
  378. localPlayer.CharacterAdded:Connect(onCharacterAdded)
  379. runService.Heartbeat:Connect(function()
  380. if getgenv().Enabled and localPlayer.Character then
  381. setWalkSpeed(localPlayer.Character, getgenv().Speed)
  382. end
  383. end)
  384.  
  385. local WK = Tabs.Player:AddSlider("WalkSpeed", {
  386. Title = "Walk Speed",
  387. Description = "This changes your speed",
  388. Default = 16,
  389. Min = 16,
  390. Max = 52,
  391. Rounding = 1,
  392. Callback = function(SliderWalkSpeed)
  393. getgenv().Speed = SliderWalkSpeed
  394. end
  395. })
  396.  
  397. local JumpHack = Tabs.Player:AddSlider("JumpPowerChanger", {
  398. Title = "Jump Power",
  399. Description = "Change Player Jump Power",
  400. Default = 50,
  401. Min = 50,
  402. Max = 100,
  403. Rounding = 1,
  404. Callback = function(jp)
  405. game.Players.LocalPlayer.Character.Humanoid.JumpPower = jp
  406. end
  407. })
  408.  
  409. local GravityHack = Tabs.Player:AddSlider("GravityOfP", {
  410. Title = "Gravity",
  411. Description = "Change Gravity (Normal - 196.2)",
  412. Default = 196.2,
  413. Min = 0,
  414. Max = 196.2,
  415. Rounding = 1,
  416. Callback = function(grav)
  417. game.Workspace.Gravity = grav
  418. end
  419. })
  420.  
  421. local OtherP = Tabs.Player:AddSection("Others")
  422.  
  423. local NoCD = Tabs.Player:AddButton({
  424. Title = "No Cooldown (raygun, mace, staff)",
  425. Description = "No Cooldown on Weapons",
  426. Callback = function()
  427. raygunMod:SetAttribute("Cooldown", 0)
  428. maceMod:SetAttribute("Cooldown", 0)
  429. staffMod:SetAttribute("Cooldown", 0)
  430. end
  431. })
  432.  
  433. local GetWeap = Tabs.Player:AddSection("Get Weapons (Beta)")
  434.  
  435. local function GetWeapon(weaponName)
  436. local args = {
  437. [1] = "Weapons",
  438. [2] = weaponName
  439. }
  440.  
  441. game:GetService("ReplicatedStorage").Remotes.Shop.EquipItem:InvokeServer(unpack(args))
  442. end
  443.  
  444. local GetSword = Tabs.Player:AddButton({
  445. Title = "Get Sword",
  446. Description = "Add Sword to your Backpack",
  447. Callback = function()
  448. GetWeapon("Sword")
  449. end
  450. })
  451.  
  452. local GetSpear = Tabs.Player:AddButton({
  453. Title = "Get Spear",
  454. Description = "Add Spear to your Backpack",
  455. Callback = function()
  456. GetWeapon("Spear")
  457. end
  458. })
  459.  
  460. local GetCrossbow = Tabs.Player:AddButton({
  461. Title = "Get Crossbow",
  462. Description = "Add Crossbow to your Backpack",
  463. Callback = function()
  464. GetWeapon("Crossbow")
  465. end
  466. })
  467.  
  468. local GetFlamethrower = Tabs.Player:AddButton({
  469. Title = "Get Flamethrower",
  470. Description = "Add Flamethrower to your Backpack",
  471. Callback = function()
  472. GetWeapon("Flamethrower")
  473. end
  474. })
  475.  
  476. local GetMace = Tabs.Player:AddButton({
  477. Title = "Get Mace",
  478. Description = "Add Mace to your Backpack",
  479. Callback = function()
  480. GetWeapon("Mace")
  481. end
  482. })
  483.  
  484. local GetStaff = Tabs.Player:AddButton({
  485. Title = "Get Staff",
  486. Description = "Add Staff to your Backpack",
  487. Callback = function()
  488. GetWeapon("Staff")
  489. end
  490. })
  491.  
  492. local GetRayGun = Tabs.Player:AddButton({
  493. Title = "Get RayGun",
  494. Description = "Add RayGun to your Backpack",
  495. Callback = function()
  496. GetWeapon("RayGun")
  497. end
  498. })
  499.  
  500. local GetRocketLauncher = Tabs.Player:AddButton({
  501. Title = "Get Rocket Launcher",
  502. Description = "Add Rocket Launcher to your Backpack",
  503. Callback = function()
  504. GetWeapon("RocketLauncher")
  505. end
  506. })
  507.  
  508. --HITBOX
  509.  
  510. -- Esp Tab
  511.  
  512. -- Global Configuration
  513.  
  514. Notification:Notify(
  515. {Title = "EspEn", Description = "BBD5 SCRIPT EDITON Loaded. (OPENSOURCE)"},
  516. {OutlineColor = Color3.fromRGB(97, 62, 167),Time = 10, Type = "default"}
  517. )
  518.  
  519. local Toggle = Tabs.Esp:AddToggle("Esp", {Title = "ESP", Default = false })
  520. Toggle:OnChanged(function(Value)
  521. _G.PlayerChams = Value
  522. end)
  523. local Toggle = Tabs.Esp:AddToggle("Raindbow", {Title = "Rainbow Lines", Default = false })
  524.  
  525. Toggle:OnChanged(function(Value)
  526. _G.RainbowLine = Value
  527. end)
  528. local Toggle = Tabs.Esp:AddToggle("Text", {Title = "Users Text", Default = false })
  529.  
  530. Toggle:OnChanged(function(Value)
  531. _G.PlayerText = Value
  532. end)
  533. local Toggle = Tabs.Esp:AddToggle("RainbowT", {Title = "Rainbow Text", Default = false })
  534.  
  535. Toggle:OnChanged(function(Value)
  536. _G.RainbowText = Value
  537. end)
  538.  
  539. --HITBOX
  540.  
  541. _G.HEnabled = false
  542. _G.PartSize = Vector3.new(5, 5, 5)
  543. _G.Transparency = 0.5
  544. _G.Color = Color3.new(1, 1, 1)
  545. _G.Update = 5
  546.  
  547. local player = game.Players.LocalPlayer
  548.  
  549. local function resizePart(part)
  550. if part then
  551. part.Size = _G.PartSize
  552. part.Transparency = _G.Transparency
  553. if part:IsA("BasePart") then
  554. part.Color = _G.Color
  555. end
  556. end
  557. end
  558.  
  559. local function shouldResize(part)
  560. return part and (part.Size ~= _G.PartSize or part.Color ~= _G.Color)
  561. end
  562.  
  563. local function updateHitboxes()
  564. for _, v in ipairs(game.Players:GetPlayers()) do
  565. if v ~= player and v.Character then
  566. local rootPart = v.Character:FindFirstChild("HumanoidRootPart")
  567. if shouldResize(rootPart) then
  568. resizePart(rootPart)
  569. end
  570. end
  571. end
  572. end
  573.  
  574. -- UI Integration
  575. local Toggle = Tabs.Hitbox:AddToggle("Hitbox", {Title = "Hitbox", Default = false })
  576. Toggle:OnChanged(function()
  577. _G.HEnabled = Toggle.Value
  578. end)
  579.  
  580. local Slider = Tabs.Hitbox:AddSlider("PartSize", {
  581. Title = "Part Size",
  582. Description = "Adjust the size of the part",
  583. Default = 5,
  584. Min = 0.5,
  585. Max = 50,
  586. Rounding = 1,
  587. Callback = function(Value)
  588. _G.PartSize = Vector3.new(Value, Value, Value)
  589. end
  590. })
  591.  
  592. local Slider = Tabs.Hitbox:AddSlider("HitBoxUpdator", {
  593. Title = "Update hitbox(sec)",
  594. Description = "When hitbox will update parts",
  595. Default = 5,
  596. Min = 1,
  597. Max = 20,
  598. Rounding = 1,
  599. Callback = function(Value)
  600. _G.Update = Value
  601. end
  602. })
  603.  
  604. local Colorpicker = Tabs.Hitbox:AddColorpicker("HitboxColor", {
  605. Title = "Hitbox Color",
  606. Default = Color3.fromRGB(96, 205, 255)
  607. })
  608.  
  609. Colorpicker:OnChanged(function()
  610. _G.Color = Colorpicker.Value
  611. end)
  612.  
  613.  
  614.  
  615. -- Robots Tab
  616.  
  617.  
  618. local function createButton()
  619. local ScreenGui = Instance.new("ScreenGui")
  620. ScreenGui.Name = "ScreenGui"
  621. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  622. ScreenGui.ResetOnSpawn = false
  623.  
  624. local Toggle = Instance.new("TextButton")
  625. Toggle.Name = "Toggle"
  626. Toggle.Parent = ScreenGui
  627. Toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  628. Toggle.Position = UDim2.new(0.5, -90, 0.5, 60)
  629. Toggle.Size = UDim2.new(0, 90, 0, 38)
  630. Toggle.Font = Enum.Font.SourceSans
  631. Toggle.Text = "Explode!"
  632. Toggle.TextColor3 = Color3.fromRGB(248, 248, 248)
  633. Toggle.TextSize = 28.000
  634. Toggle.Draggable = false
  635.  
  636. local Corner = Instance.new("UICorner")
  637. Corner.Name = "Corner"
  638. Corner.Parent = Toggle
  639.  
  640. Toggle.MouseButton1Click:Connect(function()
  641. game:GetService("ReplicatedStorage").Remotes.Robot.LightFuse:InvokeServer()
  642. wait(0.5)
  643. game:GetService("ReplicatedStorage").Remotes.Robot.Explode:InvokeServer()
  644. end)
  645. end
  646.  
  647. local function removeButton()
  648. local screenGui = player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui")
  649. if screenGui then
  650. screenGui:Destroy()
  651. end
  652. end
  653.  
  654. local function updateButton(toggleState)
  655. if toggleState then
  656. createButton()
  657. else
  658. removeButton()
  659. end
  660. end
  661.  
  662. --
  663.  
  664. local ChangeRobots = Tabs.Robots:AddSection("Client Robot")
  665. local Toggle = Tabs.Robots:AddToggle("InstExplode(Button)", {Title = "Will be shown as Robot", Default = false})
  666.  
  667. Toggle:OnChanged(function()
  668. updateButton(Toggle.Value)
  669. end)
  670.  
  671.  
  672.  
  673.  
  674. local function SpawnAsRobot(robot)
  675. local args = {
  676. [1] = game:GetService("ReplicatedStorage").Assets.Robots[robot]
  677. }
  678. game:GetService("ReplicatedStorage").Remotes.Robot.Spawn:FireServer(unpack(args))
  679. end
  680.  
  681. local ChangeRobots = Tabs.Robots:AddSection("Change Robots")
  682.  
  683. local DefaultRobot = Tabs.Robots:AddButton({
  684. Title = "Default",
  685. Description = "Change Robot to Default",
  686. Callback = function()
  687. SpawnAsRobot("Default")
  688. end
  689. })
  690.  
  691. local SkirmisherRobot = Tabs.Robots:AddButton({
  692. Title = "Skirmisher",
  693. Description = "Change Robot to Skirmisher",
  694. Callback = function()
  695. SpawnAsRobot("Skirmisher")
  696. end
  697. })
  698.  
  699. local JumperRobot = Tabs.Robots:AddButton({
  700. Title = "Jumper",
  701. Description = "Change Robot to Jumper",
  702. Callback = function()
  703. SpawnAsRobot("Jumper")
  704. end
  705. })
  706.  
  707. local MarksmanRobot = Tabs.Robots:AddButton({
  708. Title = "Marksman",
  709. Description = "Change Robot to Marksman",
  710. Callback = function()
  711. SpawnAsRobot("Marksman")
  712. end
  713. })
  714.  
  715. local TankRobot = Tabs.Robots:AddButton({
  716. Title = "Tank",
  717. Description = "Change Robot to Tank",
  718. Callback = function()
  719. SpawnAsRobot("Tank")
  720. end
  721. })
  722.  
  723. local GhostRobot = Tabs.Robots:AddButton({
  724. Title = "Ghost",
  725. Description = "Change Robot to Ghost",
  726. Callback = function()
  727. SpawnAsRobot("Ghost")
  728. end
  729. })
  730.  
  731. local SaboteurRobot = Tabs.Robots:AddButton({
  732. Title = "Saboteur",
  733. Description = "Change Robot to Saboteur",
  734. Callback = function()
  735. SpawnAsRobot("Saboteur")
  736. end
  737. })
  738.  
  739. -- Addons
  740. InterfaceManager:SetLibrary(Fluent)
  741. InterfaceManager:SetFolder("FluentScriptHub")
  742. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  743. SaveManager:LoadAutoloadConfig()
  744. Window:SelectTab(3)
  745.  
  746.  
  747.  
  748. player:GetPropertyChangedSignal("Team"):Connect(function()
  749. if player.Team and player.Team.Name == "Robots" then
  750. updateButton(Toggle.Value)
  751. elseif player.Team and player.Team.Name == "Humans" then
  752. removeButton()
  753. end
  754. end)
  755.  
  756. while true do
  757. if _G.HEnabled then
  758. updateHitboxes()
  759. end
  760. wait(_G.Update)
  761. end
  762.  
  763. refreshESP()
  764.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement