Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.46 KB | None | 0 0
  1. -- [1] The Streets
  2.  
  3. local Players = game:GetService("Players")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. local UserInput = game:GetService("UserInputService")
  6. local Core = game:GetService("CoreGui")
  7.  
  8. local Plr = Players.LocalPlayer
  9. local Mouse = Plr:GetMouse()
  10.  
  11. local ToggleKey = Enum.KeyCode.Equals
  12. local BlinkKey = Enum.KeyCode.Q
  13. local FlyKey = Enum.KeyCode.Semicolon
  14. local FoodKey = Enum.KeyCode.P
  15.  
  16. local Prefix = ";"
  17. local Split = " "
  18.  
  19. -- [2] Init Stuff
  20.  
  21. Plr.CameraMaxZoomDistance = math.huge
  22.  
  23. local AutoJumpOn = false
  24. local NoSlowOn = false
  25. local CanFly = false
  26. local CanUnlock = false
  27. local CanBlink = false
  28. local BringCashOn = false
  29.  
  30. local Blinking = false
  31. local Flying = false
  32.  
  33. local FlightSpeed = 1
  34. local BlinkSpeed = 1
  35.  
  36. -- [3] Main Functions
  37.  
  38. local TP = function(CFRAME)
  39. for i,v in pairs(Plr.PlayerGui:GetChildren()) do
  40. if v:IsA("LocalScript") then
  41. v.Disabled = true
  42. end
  43. end
  44. Plr.Character.HumanoidRootPart.CFrame = CFRAME
  45. for i,v in pairs(Plr.PlayerGui:GetChildren()) do
  46. if v:IsA("LocalScript") then
  47. v.Disabled = false
  48. end
  49. end
  50. end
  51.  
  52. local Respawn = function()
  53. Plr.Character:Destroy()
  54. local a1 = Instance.new("Model", workspace)
  55. local a2 = Instance.new("Part", a1)
  56. a2.CanCollide = true
  57. a2.Anchored = true
  58. a2.CFrame = CFrame.new(10000, 10000, 10000)
  59. a2.Name = "Torso"
  60. local a3 = Instance.new("Humanoid", a1)
  61. a3.MaxHealth=100;a3.Health=100
  62. Plr.Character = a1
  63. a3.Health=0
  64. end
  65.  
  66. local GetItems = function()
  67. local Pos = Plr.Character.Torso.CFrame
  68. for i,v in pairs(workspace:GetChildren()) do
  69. if v.Name == "RandomSpawner" then
  70. local Handle = v:FindFirstChild("Handle", true)
  71. if Handle then
  72. TP(Handle.CFrame)
  73. wait(1)
  74. end
  75. end
  76. end
  77. TP(Pos)
  78. end
  79.  
  80. local GetTool = function(Name, P)
  81. local Tool = nil
  82. for i,v in pairs(P.Backpack:GetChildren()) do
  83. if v.Name == Name then
  84. Tool = v
  85. end
  86. end
  87. for i,v in pairs(P.Character:GetChildren()) do
  88. if v.Name == Name then
  89. Tool = v
  90. end
  91. end
  92. if Tool then
  93. return Tool
  94. else
  95. print("Cannot find: " .. Name)
  96. end
  97. end
  98.  
  99. local PlayMusic = function(ID, P)
  100. local BoomBox = GetTool("BoomBox", P)
  101. BoomBox.Parent = P.Character
  102. BoomBox.Remote:FireServer("PlaySong", ID)
  103. BoomBox.Parent = workspace
  104. end
  105.  
  106. local PPlayMusic = function(ID, P)
  107. local BoomBox = GetTool("BoomBox", P)
  108. BoomBox.Parent = P.Character
  109. BoomBox.Remote:FireServer("PlaySong", ID)
  110. end
  111.  
  112. local ReEquip = function()
  113. local Tool = nil
  114. for i,v in pairs(Plr.Character:GetChildren()) do
  115. if v:IsA("Tool") or v:IsA("HopperBin") then
  116. Tool = v
  117. end
  118. end
  119. if Tool then
  120. Tool.Parent = Plr.Backpack
  121. wait(0.2)
  122. Tool.Parent = Plr.Character
  123. end
  124. end
  125.  
  126. Mouse.Button1Down:connect(function()
  127. if CanUnlock and Mouse.Target and Mouse.Target.Name == "Click" then
  128. local Lock = Mouse.Target.Parent:FindFirstChild("Locker")
  129. if Lock and Lock.Value == true then
  130. Mouse.Target.Parent.Lock.ClickDetector.RemoteEvent:FireServer()
  131. wait(0.1)
  132. Mouse.Target.ClickDetector.RemoteEvent:FireServer()
  133. end
  134. end
  135. end)
  136.  
  137. -- [4] GUI Main
  138.  
  139. local NormalColor = Color3.fromRGB(42, 42, 42)
  140. local GUIColor = Color3.fromRGB(120, 25, 188)
  141.  
  142. local GUI = game:GetObjects("rbxassetid://01207250298")[1]
  143. GUI.Parent = Core
  144.  
  145. local Buttons = GUI.Buttons
  146. local localButton = Buttons["1local"]
  147. local bindsButton = Buttons["2keybinds"]
  148. local valueButton = Buttons["3values"]
  149. local infoButton = Buttons["4info"]
  150.  
  151. local LocalTab = GUI.LocalTab
  152. local AutoJ = LocalTab.Frame["1"]
  153. local NoSlow = LocalTab.Frame["2"]
  154. local Flight = LocalTab.Frame["3"]
  155. local UnlockDoors = LocalTab.Frame["4"]
  156. local Blink = LocalTab.Frame["5"]
  157.  
  158. local BindsTab = GUI.BindsTab
  159. local toggleButton = BindsTab.Frame.toggleKey
  160. local blinkButton = BindsTab.Frame.blinkKey
  161. local flightButton = BindsTab.Frame.flightKey
  162. local foodButton = BindsTab.Frame.foodKey
  163.  
  164. local ValueTab = GUI.ValueTab
  165. local DownBlink = ValueTab.Frame.DownBlink
  166. local UpBlink = ValueTab.Frame.UpBlink
  167. local DownFlight = ValueTab.Frame.DownFlight
  168. local UpFlight = ValueTab.Frame.UpFlight
  169. local blinkTxt = ValueTab.Frame.blinkTxt
  170. local flightTxt = ValueTab.Frame.flightTxt
  171.  
  172.  
  173. local InfoTab = GUI.InfoTab
  174. local ptxt = InfoTab.Frame.pfixTxt
  175.  
  176. ptxt.Text = 'Command Prefix: "' .. tostring(Prefix) .. '"'
  177.  
  178. -- [5] Buttons
  179.  
  180. localButton.MouseButton1Down:connect(function()
  181. if not LocalTab.Visible then
  182. LocalTab.Visible = true
  183. localButton.BackgroundColor3 = GUIColor
  184. else
  185. LocalTab.Visible = false
  186. localButton.BackgroundColor3 = NormalColor
  187. end
  188. end)
  189.  
  190. bindsButton.MouseButton1Down:connect(function()
  191. if not BindsTab.Visible then
  192. BindsTab.Visible = true
  193. bindsButton.BackgroundColor3 = GUIColor
  194. else
  195. BindsTab.Visible = false
  196. bindsButton.BackgroundColor3 = NormalColor
  197. end
  198. end)
  199.  
  200. valueButton.MouseButton1Down:connect(function()
  201. if not ValueTab.Visible then
  202. ValueTab.Visible = true
  203. valueButton.BackgroundColor3 = GUIColor
  204. else
  205. ValueTab.Visible = false
  206. valueButton.BackgroundColor3 = NormalColor
  207. end
  208. end)
  209.  
  210. infoButton.MouseButton1Down:connect(function()
  211. if not InfoTab.Visible then
  212. InfoTab.Visible = true
  213. infoButton.BackgroundColor3 = GUIColor
  214. else
  215. InfoTab.Visible = false
  216. infoButton.BackgroundColor3 = NormalColor
  217. end
  218. end)
  219.  
  220. -- [6] Local Tab
  221.  
  222. AutoJ.MouseButton1Down:connect(function()
  223. if not AutoJumpOn then
  224. AutoJumpOn = true
  225. AutoJ.BackgroundColor3 = GUIColor
  226. else
  227. AutoJumpOn = false
  228. AutoJ.BackgroundColor3 = NormalColor
  229. end
  230. end)
  231.  
  232. NoSlow.MouseButton1Down:connect(function()
  233. if not NoSlowOn then
  234. NoSlowOn = true
  235. NoSlow.BackgroundColor3 = GUIColor
  236. else
  237. NoSlowOn = false
  238. NoSlow.BackgroundColor3 = NormalColor
  239. end
  240. end)
  241.  
  242. Flight.MouseButton1Down:connect(function()
  243. if not CanFly then
  244. CanFly = true
  245. Flight.BackgroundColor3 = GUIColor
  246. else
  247. CanFly = false
  248. Flying = false
  249. Flight.BackgroundColor3 = NormalColor
  250. end
  251. end)
  252.  
  253. UnlockDoors.MouseButton1Down:connect(function()
  254. if not CanUnlock then
  255. CanUnlock = true
  256. UnlockDoors.BackgroundColor3 = GUIColor
  257. else
  258. CanUnlock = false
  259. UnlockDoors.BackgroundColor3 = NormalColor
  260. end
  261. end)
  262.  
  263. Blink.MouseButton1Down:connect(function()
  264. if not CanBlink then
  265. CanBlink = true
  266. Blink.BackgroundColor3 = GUIColor
  267. else
  268. CanBlink = false
  269. Blinking = false
  270. Blink.BackgroundColor3 = NormalColor
  271. end
  272. end)
  273.  
  274. -- [7] Keybinds
  275.  
  276. toggleButton.Text = tostring(ToggleKey):sub(14)
  277. blinkButton.Text = tostring(BlinkKey):sub(14)
  278. flightButton.Text = tostring(FlyKey):sub(14)
  279. foodButton.Text = tostring(FoodKey):sub(14)
  280.  
  281. toggleButton.MouseButton1Down:connect(function()
  282. toggleButton.Text = "Press a key"
  283. a = UserInput.InputBegan:connect(function(input, gp)
  284. if input.UserInputType == Enum.UserInputType.Keyboard then
  285. wait()
  286. local key = input.KeyCode
  287. ToggleKey = key
  288. toggleButton.Text = tostring(key):sub(14)
  289. a:Disconnect()
  290. end
  291. end)
  292. end)
  293.  
  294. blinkButton.MouseButton1Down:connect(function()
  295. blinkButton.Text = "Press a key"
  296. b = UserInput.InputBegan:connect(function(input, gp)
  297. if input.UserInputType == Enum.UserInputType.Keyboard then
  298. wait()
  299. local key = input.KeyCode
  300. BlinkKey = key
  301. blinkButton.Text = tostring(key):sub(14)
  302. b:Disconnect()
  303. end
  304. end)
  305. end)
  306.  
  307. flightButton.MouseButton1Down:connect(function()
  308. flightButton.Text = "Press a key"
  309. c = UserInput.InputBegan:connect(function(input, gp)
  310. if input.UserInputType == Enum.UserInputType.Keyboard then
  311. wait()
  312. local key = input.KeyCode
  313. FlyKey = key
  314. flightButton.Text = tostring(key):sub(14)
  315. c:Disconnect()
  316. end
  317. end)
  318. end)
  319.  
  320. foodButton.MouseButton1Down:connect(function()
  321. foodButton.Text = "Press a key"
  322. d = UserInput.InputBegan:connect(function(input, gp)
  323. if input.UserInputType == Enum.UserInputType.Keyboard then
  324. wait()
  325. local key = input.KeyCode
  326. FoodKey = key
  327. foodButton.Text = tostring(key):sub(14)
  328. d:Disconnect()
  329. end
  330. end)
  331. end)
  332.  
  333. -- [8] Values
  334.  
  335. blinkTxt.Text = "Blink - " .. BlinkSpeed
  336. flightTxt.Text = "Flight - " .. FlightSpeed
  337.  
  338. DownBlink.MouseButton1Down:connect(function()
  339. if BlinkSpeed > 1 then
  340. BlinkSpeed = BlinkSpeed - 1
  341. blinkTxt.Text = "Blink - " .. BlinkSpeed
  342. end
  343. end)
  344.  
  345. UpBlink.MouseButton1Down:connect(function()
  346. if BlinkSpeed < 5 then
  347. BlinkSpeed = BlinkSpeed + 1
  348. blinkTxt.Text = "Blink - " .. BlinkSpeed
  349. end
  350. end)
  351.  
  352. DownFlight.MouseButton1Down:connect(function()
  353. if FlightSpeed > 1 then
  354. FlightSpeed = FlightSpeed - 1
  355. flightTxt.Text = "Flight - " .. FlightSpeed
  356. end
  357. end)
  358.  
  359. UpFlight.MouseButton1Down:connect(function()
  360. if FlightSpeed < 5 then
  361. FlightSpeed = FlightSpeed + 1
  362. flightTxt.Text = "Flight - " .. FlightSpeed
  363. end
  364. end)
  365.  
  366. -- [9] UIS
  367.  
  368. local Open = false
  369.  
  370. local ToggleGUI = function()
  371. if not Open then
  372. Open = true
  373. Buttons:TweenPosition(UDim2.new(0.005, 0, 0.45, 0), "Out", "Quad", 0.1, true)
  374. wait()
  375. GUI.Enabled = true
  376. else
  377. Open = false
  378. Buttons:TweenPosition(UDim2.new(-1.1, 0, 0.45, 0), "Out", "Quad", 0.1, true)
  379. wait()
  380. GUI.Enabled = false
  381. end
  382. end
  383.  
  384. local GetMovement = function(time)
  385. local Speed = FlightSpeed * 10
  386. local nextMove = Vector3.new()
  387. -- Left/Right
  388. if UserInput:IsKeyDown("A") or UserInput:IsKeyDown("Left") then
  389. nextMove = Vector3.new(-1,0,0)
  390. elseif UserInput:IsKeyDown("D") or UserInput:IsKeyDown("Right") then
  391. nextMove = Vector3.new(1,0,0)
  392. end
  393. -- Forward/Back
  394. if UserInput:IsKeyDown("W") or UserInput:IsKeyDown("Up") then
  395. nextMove = nextMove + Vector3.new(0,0,-1)
  396. elseif UserInput:IsKeyDown("S") or UserInput:IsKeyDown("Down") then
  397. nextMove = nextMove + Vector3.new(0,0,1)
  398. end
  399. -- Up/Down
  400. if UserInput:IsKeyDown("Space") then
  401. nextMove = nextMove + Vector3.new(0,1,0)
  402. elseif UserInput:IsKeyDown("LeftControl") then
  403. nextMove = nextMove + Vector3.new(0,-1,0)
  404. end
  405.  
  406. if UserInput:IsKeyDown("LeftShift") then
  407. Speed = 120
  408. else
  409. Speed = FlightSpeed * 10
  410. end
  411. return CFrame.new(nextMove * (Speed * time))
  412. end
  413.  
  414. local Flight = function()
  415. local last = tick()
  416. local root = Plr.Character.HumanoidRootPart
  417. local hum = Plr.Character.Humanoid
  418. local cam = workspace.CurrentCamera
  419. --
  420. if not Flying and CanFly then
  421. Flying = true
  422. Plr.Character.Humanoid.Died:connect(function()
  423. Flying = false
  424. end)
  425. hum.PlatformStand = true
  426. while Flying do
  427. root.Anchored = true
  428. local delta = tick() - last
  429. local look = (cam.Focus.p - cam.CoordinateFrame.p).unit
  430. local move = GetMovement(delta)
  431. local pos = root.Position
  432. root.CFrame = CFrame.new(pos, pos + look) * move
  433. last = tick()
  434. wait(.001)
  435. end
  436. hum.PlatformStand = false
  437. root.Anchored = false
  438. else
  439. Flying = false
  440. end
  441.  
  442. end
  443.  
  444. local Blink = function()
  445. if CanBlink then
  446. if not Blinking then
  447. Blinking = true
  448. while Blinking do
  449. Plr.Character.HumanoidRootPart.CFrame = Plr.Character.HumanoidRootPart.CFrame + (Plr.Character.HumanoidRootPart.CFrame.lookVector * BlinkSpeed)
  450. wait(0.001)
  451. end
  452. else
  453. Blinking = false
  454. end
  455. end
  456. end
  457.  
  458. UserInput.InputBegan:connect(function(input, gp)
  459. if not gp then
  460. if input.KeyCode == ToggleKey then
  461. ToggleGUI()
  462. elseif input.KeyCode == BlinkKey then
  463. Blink()
  464. elseif input.KeyCode == FlyKey then
  465. spawn(function()
  466. Flight()
  467. end)
  468. elseif input.KeyCode == FoodKey then
  469. if workspace:FindFirstChild("Chicken | $12") then
  470. workspace["Chicken | $12"]:MoveTo(Plr.Character.Torso.Position)
  471. end
  472. end
  473. end
  474. end)
  475.  
  476. -- [10] Admin Main
  477.  
  478. local Admins = {}
  479. local Bans = {}
  480.  
  481. -- # Main Lib
  482.  
  483. local ServerLocked = false
  484.  
  485. local Cmds = {}
  486.  
  487. local CheckInTable = function(Tab, Obj)
  488. for i,v in pairs(Tab) do
  489. if Obj == v then
  490. return true
  491. end
  492. end
  493. return false
  494. end
  495.  
  496. local Endat = function(a, b)
  497. local c = a:find(b)
  498. if c then
  499. return a:sub(0, c - string.len(b)), true
  500. else
  501. return a, false
  502. end
  503. end
  504.  
  505. local FindCmd = function(Cmd)
  506. for i,v in pairs(Cmds) do
  507. if v.Name:lower() == Cmd:lower() or CheckInTable(v.Alias, Cmd:lower()) then
  508. return v
  509. end
  510. end
  511. end
  512.  
  513. local GetCmd = function(a)
  514. local cmd, lol = Endat(a:lower(), Split)
  515. if lol then
  516. return {cmd, true}
  517. else
  518. return {cmd, false}
  519. end
  520. end
  521.  
  522. local GetPrefix = function(str)
  523. if str:sub(1, string.len(Prefix)) == Prefix then
  524. return {"CMD", string.len(Prefix) + 1}
  525. end
  526. end
  527.  
  528. local GetArgs = function(str)
  529. local a = {}
  530. local na = nil
  531. local hs = nil
  532. local s = str
  533. repeat
  534. na, hs = Endat(s:lower(), Split)
  535. if na ~= "" then
  536. table.insert(a, na)
  537. s = s:sub(string.len(na) + string.len(Split) + 1)
  538. end
  539. until not hs
  540. return a
  541. end
  542.  
  543. local ExCmd = function(str, speaker)
  544. repeat
  545. if str:find(" ") then
  546. str = str:gsub(" ", " ")
  547. end
  548. until not str:find(" ")
  549. local x = GetCmd(str)
  550. local cmd = FindCmd(x[1])
  551. if not cmd then
  552. return
  553. end
  554. local a = str:sub(string.len(x[1]) + string.len(Split) + 1)
  555. local args = GetArgs(a)
  556. pcall(function()
  557. cmd.Func(args, speaker)
  558. end)
  559. end
  560.  
  561. local CheckAdmin = function(a)
  562. if CheckInTable(Admins, a.Name) then
  563. return true
  564. elseif a.UserId == Plr.UserId then
  565. return true
  566. end
  567. return false
  568. end
  569.  
  570. local HandleMsg = function(str, speaker)
  571. if not CheckAdmin(speaker) then
  572. return
  573. end
  574. str = str:gsub("/e ", "")
  575. local gp = GetPrefix(str)
  576. if not gp then
  577. return
  578. end
  579. str = str:sub(gp[2])
  580. if gp[1] == "CMD" then
  581. ExCmd(str, speaker)
  582. end
  583. end
  584.  
  585. local AddCmd = function(Name, Desc, Alias, Func)
  586. table.insert(Cmds, {
  587. Name = Name;
  588. Desc = Desc;
  589. Alias = Alias;
  590. Func = Func;
  591. })
  592. end
  593.  
  594. local SplitString = function(Self, Sep)
  595. local Sep, Fields = Sep or Split, {}
  596. local Pattern = string.format("([^%s]+)", Sep)
  597. Self:gsub(Pattern, function(c) Fields[#Fields+1] = c end)
  598. return Fields
  599. end
  600.  
  601. local GetPlr = function(str, speaker)
  602. local tab = {}
  603. str = str:lower()
  604. local a = SplitString(str, ",")
  605. for z,x in pairs(a) do
  606. if x == "me" or x == "!" then
  607. table.insert(tab, speaker.Name)
  608. elseif x == "others" or x == "other" then
  609. for i,v in pairs(Players:GetPlayers()) do
  610. if v.Name ~= speaker.Name then
  611. table.insert(tab, v.Name)
  612. end
  613. end
  614. elseif x == "all" or x == "*" then
  615. for i,v in pairs(Players:GetPlayers()) do
  616. table.insert(tab, v.Name)
  617. end
  618. elseif x == "admins" then
  619. for i,v in pairs(Players:GetPlayers()) do
  620. if CheckInTable(Admins, v.Name) then
  621. table.insert(tab, v.Name)
  622. end
  623. end
  624. elseif x == "nonadmins" then
  625. for i,v in pairs(Players:GetPlayers()) do
  626. if not CheckInTable(Admins, v.Name) then
  627. table.insert(tab, v.Name)
  628. end
  629. end
  630. elseif x == "friends" then
  631. for i,v in pairs(Players:GetPlayers()) do
  632. if v ~= speaker and v:IsFriendsWith(speaker.UserId) then
  633. table.insert(tab, v.name)
  634. end
  635. end
  636. elseif x == "nonfriends" then
  637. for i,v in pairs(Players:GetPlayers()) do
  638. if v ~= speaker and not v:IsFriendsWith(speaker.UserId) then
  639. table.insert(tab, v.name)
  640. end
  641. end
  642. else
  643. for i,v in pairs(Players:GetPlayers()) do
  644. local l = v.Name:lower()
  645. local f = l:find(str)
  646. if f == 1 then
  647. table.insert(tab, v.Name)
  648. end
  649. end
  650. end
  651. end
  652. return tab
  653. end
  654.  
  655. local Hook = function(P)
  656. P.Chatted:connect(function(Msg)
  657. HandleMsg(Msg, P)
  658. end)
  659. end
  660.  
  661. for i,v in pairs(Players:GetPlayers()) do
  662. Hook(v)
  663. end
  664.  
  665. Players.PlayerAdded:connect(function(P)
  666. Hook(P)
  667. end)
  668.  
  669. -- [11] Admin Commands
  670.  
  671. AddCmd("Respawn", "Respawn character", {"rs"},
  672. function(Args, Speaker)
  673. Respawn()
  674. end)
  675.  
  676. AddCmd("Goto", "Goto plr", {"to"},
  677. function(Args, Speaker)
  678. local p = GetPlr(Args[1], Speaker)
  679. for i,v in pairs(p) do
  680. TP(Players[v].Character.Torso.CFrame)
  681. ReEquip()
  682. end
  683. end)
  684.  
  685. AddCmd("Fly", "Allows you to fly", {},
  686. function(Args, Speaker)
  687. spawn(function()
  688. Flight()
  689. end)
  690. end)
  691.  
  692. AddCmd("Bank", "TP to bank", {},
  693. function(Args, Speaker)
  694. TP(CFrame.new(-269.053375, 4.81635475, 139.362961))
  695. ReEquip()
  696. end)
  697.  
  698. AddCmd("Prison", "TP to prison", {},
  699. function(Args, Speaker)
  700. TP(CFrame.new(-973.523621, 3.19878054, -76.6112595))
  701. ReEquip()
  702. end)
  703.  
  704. AddCmd("Music", "Play music", {"mus", "play", "sound"},
  705. function(Args, Speaker)
  706. local str = table.concat(Args, " ")
  707. if string.match(str, "%a") then
  708. local http = game:HttpGet("https://search.roblox.com/catalog/json?CatalogContext=2&SortAggregation=5&LegendExpanded=true&Category=9&Keyword=" .. str, true)
  709. if http ~= "[]" then
  710. local ID = http:sub(13)
  711. ID = ID:sub(1, ID:find(",") - 1)
  712. PlayMusic(ID, Speaker)
  713. else
  714. print("No results")
  715. end
  716. else
  717. PlayMusic(Args[1], Speaker)
  718. end
  719. end)
  720.  
  721. AddCmd("Mmusic", "Play music", {"mmus", "pplay", "ssound"},
  722. function(Args, Speaker)
  723. local str = table.concat(Args, " ")
  724. if string.match(str, "%a") then
  725. local http = game:HttpGet("https://search.roblox.com/catalog/json?CatalogContext=2&SortAggregation=5&LegendExpanded=true&Category=9&Keyword=" .. str, true)
  726. if http ~= "[]" then
  727. local ID = http:sub(13)
  728. ID = ID:sub(1, ID:find(",") - 1)
  729. PPlayMusic(ID, Speaker)
  730. else
  731. print("No results")
  732. end
  733. else
  734. PlayMusic(Args[1], Speaker)
  735. end
  736. end)
  737.  
  738. AddCmd("Items", "Gets all items", {},
  739. function(Args, Speaker)
  740. GetItems()
  741. end)
  742.  
  743. AddCmd("Uzi", "Brings uzi", {},
  744. function(Args, Speaker)
  745. if workspace:FindFirstChild("Uzi | $150") then
  746. workspace["Uzi | $150"]:MoveTo(Plr.Character.Torso.Position)
  747. end
  748. end)
  749.  
  750. AddCmd("Glock", "Bring glock", {},
  751. function(Args, Speaker)
  752. if workspace:FindFirstChild("Glock | $200") then
  753. workspace["Glock | $200"]:MoveTo(Plr.Character.Torso.Position)
  754. end
  755. end)
  756.  
  757. AddCmd("Machete", "Bring machete", {},
  758. function(Args, Speaker)
  759. if workspace:FindFirstChild("Machete | $70") then
  760. workspace["Machete | $70"]:MoveTo(Plr.Character.Torso.Position)
  761. end
  762. end)
  763.  
  764. AddCmd("Food", "Brings food", {},
  765. function(Args, Speaker)
  766. if workspace:FindFirstChild("Chicken | $12") then
  767. workspace["Chicken | $12"]:MoveTo(Plr.Character.Torso.Position)
  768. end
  769. end)
  770.  
  771. AddCmd("Ammo", "Brings ammo", {},
  772. function(Args, Speaker)
  773. if workspace:FindFirstChild("Buy Ammo | $25") then
  774. workspace["Buy Ammo | $25"]:MoveTo(Plr.Character.Torso.Position)
  775. end
  776. end)
  777.  
  778. AddCmd("Bt", "Gives hammer tool", {},
  779. function(Args, Speaker)
  780. Instance.new("HopperBin", Plr.Backpack).BinType = "Hammer"
  781. end)
  782.  
  783. AddCmd("Anim", "Load animation", {},
  784. function(Args, Speaker)
  785. local ID = Args[1]
  786. local Anim = Instance.new("Animation")
  787. Anim.AnimationId = "http://www.roblox.com/Asset?ID=" .. ID
  788. local Track = Plr.Character.Humanoid:LoadAnimation(Anim)
  789. Track:Play()
  790. end)
  791.  
  792. AddCmd("Prefix", "Set prefix", {},
  793. function(Args, Speaker)
  794. if Args[1] == "nil" then
  795. Prefix = ""
  796. else
  797. Prefix = Args[1]
  798. end
  799. end)
  800.  
  801. -- [12] Ending stuff
  802.  
  803. local Main = function()
  804. local Char = Plr.Character
  805. local Hum = Char.Humanoid
  806. --
  807. Hum.FallingDown:connect(function()
  808. if AutoJumpOn then
  809. for i = 1, 2 do
  810. Hum.Sit = true
  811. Hum.Jump = true
  812. end
  813. end
  814. end)
  815. Hum.Changed:connect(function()
  816. if NoSlowOn and Hum.WalkSpeed <= 0 then
  817. Hum.WalkSpeed = 16
  818. end
  819. end)
  820. end
  821.  
  822. Main()
  823.  
  824. Plr.CharacterAdded:connect(function()
  825. wait(0.5)
  826. Main()
  827. end)
  828.  
  829. unl = function(ins)
  830. for i,v in pairs(ins:GetChildren()) do
  831. if v:IsA("BasePart") then
  832. v.Locked = false
  833. end
  834. unl(v)
  835. end
  836. end
  837.  
  838. unl(workspace)
  839.  
  840. game:GetService("StarterGui"):SetCore("SendNotification", {
  841. Title = "Script loaded; v1"; -- Required. Has to be a string!
  842. Text = "Press '" .. tostring(ToggleKey):sub(14) .. "' key to toggle GUI"; -- Required. Has to be a string!
  843. Icon = nil; -- Optional, defaults to "" (no icon)
  844. Duration = 7; -- Optional, defaults to 5 seconds
  845. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement