GoldenNZ

The Streets GUI

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