Guest User

Untitled

a guest
Oct 23rd, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.21 KB | None | 0 0
  1. AzuL = {
  2.  
  3. -- Baits Tabs v1.0.0
  4. -- Framework/Animation by Bait -- Commands by Bait
  5. -------------------------------
  6. NAME = "BaitsTabs";
  7. VERSION = "2.0";
  8. -------------------------------
  9.  
  10. -- Configure all aspects of the script below
  11. -- Make sure to never change names of important values
  12. -- Report bugs in core functionality to Autumn
  13.  
  14. Options = {
  15. CommandPrefix = ";";
  16. CommandDelimiter = "/";
  17. DefaultTabLife = 15;
  18. };
  19.  
  20. Admins = {
  21. ["Xeradius"] = true;
  22. };
  23.  
  24. Commands = {
  25.  
  26. cmds = {
  27. admin = false;
  28. desc = "List all commands";
  29. func = function(plr, args)
  30. AzuL.Dismiss(plr)
  31. for cmdName, cmdTbl in next, AzuL.Commands do
  32. AzuL.Output(plr, cmdName, 30, function()
  33. AzuL.Dismiss(plr)
  34. AzuL.Output(plr, "Name: " .. cmdName, 30)
  35. AzuL.Output(plr, "Description: " .. cmdTbl.desc, 30)
  36. AzuL.Output(plr, "Admin only: " .. (cmdTbl.admin and "Yes" or "No"), 30)
  37. AzuL.Output(plr, "Back", 30, AzuL.Commands.cmds.func, {
  38. plr,
  39. args
  40. })
  41. end, {}, true)
  42. end
  43. AzuL.Output(plr, "Dismiss", 30, AzuL.Dismiss, {
  44. plr
  45. })
  46. end
  47. };
  48.  
  49. dt = {
  50. admin = false;
  51. desc = "Dismiss all tabs";
  52. func = function(plr, args)
  53. AzuL.Dismiss(plr)
  54. end
  55. };
  56.  
  57. kill = {
  58. admin = true;
  59. desc = "Kill a player";
  60. func = function(plr, args)
  61. if not args[1] or type(args[1]) ~= "string" then
  62. return
  63. end
  64. local targPlr = AzuL.MatchPlayer(plr, args[1])
  65. if not targPlr then
  66. AzuL.Output(plr, "Failed to match player!")
  67. return
  68. end
  69. if not targPlr.Character:FindFirstChild("Humanoid") then
  70. return
  71. end
  72. targPlr.Character.Humanoid.Health = 0
  73. AzuL.Output(plr, "Killed player " .. targPlr.Name .. "!")
  74. end
  75. };
  76.  
  77. noclip = {
  78. admin = true;
  79. desc = "noclip localplayer";
  80. func = function(plr, args)
  81. AzuL.Variables.NoClipEnabled = true
  82. AzuL.Output(plr, "Noclip has been given!", 5)
  83. end
  84. };
  85.  
  86. clip = {
  87. admin = true;
  88. desc = "clips localplayer";
  89. func = function(plr, args)
  90. AzuL.Variables.NoClipEnabled = false
  91. AzuL.Output(plr, "LocalPlayer is now clipped.", 5)
  92. end
  93. };
  94.  
  95. jesusfly = {
  96. admin = true;
  97. desc = "makes plr fly like jesus!";
  98. func = function(plr, args)
  99. AzuL.Variables.JesusflyEnabled = true
  100. AzuL.Output(plr, "JesusFly is activated! Fly like jesus!", 5)
  101. end
  102. };
  103. nofly = {
  104. admin = true;
  105. desc = "Stops Jesus' magical effect.";
  106. func = function(plr, args)
  107. AzuL.Variables.JesusflyEnabled = false
  108. AzuL.Output(plr, "JesusFly's magical effects are disabled.", 5)
  109. end
  110. };
  111.  
  112. swim = {
  113. admin = true;
  114. desc = "Makes you swim.. In the air!";
  115. func = function(plr, args)
  116. AzuL.Variables.SwimEnabled = true
  117. AzuL.Output(plr, "Swim is now enabled!", 5)
  118. end
  119. };
  120. noswim = {
  121. admin = true;
  122. desc = "Stops the swimming";
  123. func = function(plr, args)
  124. AzuL.Variables.SwimEnabled = false
  125. AzuL.Output(plr, "Swim is now disabled.", 5)
  126. end
  127. };
  128. fixl = {
  129. admin = true;
  130. desc = "fixes the lighting";
  131. func = function(plr, args)
  132. game.Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
  133. game.Lighting.Brightness = 1
  134. game.Lighting.GlobalShadows = true
  135. game.Lighting.Outlines = false
  136. game.Lighting.TimeOfDay = 14
  137. game.Lighting.FogEnd = 100000
  138. game.Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
  139. AzuL.Output(plr, "lighting Is Now Fixed!", 5)
  140. end
  141. };
  142. ff = {
  143. admin = true;
  144. desc = "gives plr a forcefield";
  145. func = function(plr, args)
  146. if not args[1] or type(args[1]) ~= "string" then
  147. return
  148. end
  149. local targPlr = AzuL.MatchPlayer(plr, args[1])
  150. if not targPlr then
  151. AzuL.Output(plr, "Failed to match player!")
  152. return
  153. end
  154. if not targPlr.Character:FindFirstChild("Humanoid") then
  155. return
  156. end
  157. Instance.new("ForceField", targPlr.Character)
  158. AzuL.Output(plr, "Player now has a forcefield", 5)
  159. end
  160. };
  161.  
  162. fire = {
  163. admin = true;
  164. desc = "gives plr heat";
  165. func = function(plr, args)
  166. if not args[1] or type(args[1]) ~= "string" then
  167. return
  168. end
  169. local targPlr = AzuL.MatchPlayer(plr, args[1])
  170. if not targPlr then
  171. AzuL.Output(plr, "Failed to match player!")
  172. return
  173. end
  174. if not targPlr.Character:FindFirstChild("Humanoid") then
  175. return
  176. end
  177. Instance.new("Fire", targPlr.Character.Torso)
  178. AzuL.Output(plr, "Player has fire.", 5)
  179. end
  180. };
  181.  
  182. destroy = {
  183. admin = true;
  184. desc = "shuts down server";
  185. func = function(plr, args)
  186. game.Workspace:ClearAllChildren()
  187. game.Workspace:Destroy()
  188. game.Lighting:Destroy()
  189. AzuL.Output(plr, "Server is shutdown", 5)
  190. end
  191. };
  192. unff = {
  193. admin = true;
  194. desc = "Removes the forcefield instance from player";
  195. func = function(plr, args)
  196. if not args[1] or type(args[1]) ~= "string" then
  197. return
  198. end
  199. local targPlr = AzuL.MatchPlayer(plr, args[1])
  200. if not targPlr then
  201. AzuL.Output(plr, "Failed to match player!")
  202. return
  203. end
  204. if not targPlr.Character:FindFirstChild("Humanoid") then
  205. return
  206. end
  207. for _, Obj in pairs(targPlr.Character:GetChildren()) do
  208. if Obj:IsA("ForceField") then
  209. Obj:Destroy()
  210. AzuL.Output(plr, "Removed " ..targPlr.Name.. "'s ff!", 5)
  211. else
  212. AzuL.Output(plr, "Player doesnt have ff!", 5)
  213. end
  214. end
  215. end
  216. };
  217. unfire = {
  218. admin = true;
  219. desc = "Removes the fire instance from player";
  220. func = function(plr, args)
  221. if not args[1] or type(args[1]) ~= "string" then
  222. return
  223. end
  224. local targPlr = AzuL.MatchPlayer(plr, args[1])
  225. if not targPlr then
  226. AzuL.Output(plr, "Failed to match player!")
  227. return
  228. end
  229. if not targPlr.Character:FindFirstChild("Humanoid") then
  230. return
  231. end
  232. for _, Obj in pairs(targPlr.Character.Torso:GetChildren()) do
  233. if Obj:IsA("Fire") then
  234. Obj:Destroy()
  235. AzuL.Output(plr, "Removed " ..targPlr.Name.. "'s fire!", 5)
  236. end
  237. end
  238. end
  239. };
  240. smoke = {
  241. admin = true;
  242. desc = "Gives player a smoke instance";
  243. func = function(plr, args)
  244. if not args[1] or type(args[1]) ~= "string" then
  245. return
  246. end
  247. local targPlr = AzuL.MatchPlayer(plr, args[1])
  248. if not targPlr then
  249. AzuL.Output(plr, "Failed to match player!")
  250. return
  251. end
  252. if not targPlr.Character:FindFirstChild("Humanoid") then
  253. return
  254. end
  255. Instance.new("Smoke", targPlr.Character.Torso)
  256. AzuL.Output(plr, "Player has Smoke!", 5)
  257. end
  258. };
  259. unsmoke = {
  260. admin = true;
  261. desc = "Removes the smoke instance from player";
  262. func = function(plr, args)
  263. if not args[1] or type(args[1]) ~= "string" then
  264. return
  265. end
  266. local targPlr = AzuL.MatchPlayer(plr, args[1])
  267. if not targPlr then
  268. AzuL.Output(plr, "Failed to match player!")
  269. return
  270. end
  271. if not targPlr.Character:FindFirstChild("Humanoid") then
  272. return
  273. end
  274. for _, Obj in pairs(targPlr.Character.Torso:GetChildren()) do
  275. if Obj:IsA("Smoke") then
  276. Obj:Destroy()
  277. AzuL.Output(plr, "Removed " ..targPlr.Name.. "'s smoke!", 5)
  278. end
  279. end
  280. end
  281. };
  282. sparkles = {
  283. admin = true;
  284. desc = "Gives player a sparkles instance";
  285. func = function(plr, args)
  286. if not args[1] or type(args[1]) ~= "string" then
  287. return
  288. end
  289. local targPlr = AzuL.MatchPlayer(plr, args[1])
  290. if not targPlr then
  291. AzuL.Output(plr, "Failed to match player!")
  292. return
  293. end
  294. if not targPlr.Character:FindFirstChild("Humanoid") then
  295. return
  296. end
  297. Instance.new("Sparkles", targPlr.Character.Torso)
  298. AzuL.Output(plr, "Player has Sparkles", 5)
  299. end
  300. };
  301. unsparkles = {
  302. admin = true;
  303. desc = "Removes the smoke instance from player";
  304. func = function(plr, args)
  305. if not args[1] or type(args[1]) ~= "string" then
  306. return
  307. end
  308. local targPlr = AzuL.MatchPlayer(plr, args[1])
  309. if not targPlr then
  310. AzuL.Output(plr, "Failed to match player!")
  311. return
  312. end
  313. if not targPlr.Character:FindFirstChild("Humanoid") then
  314. return
  315. end
  316. for _, Obj in pairs(targPlr.Character.Torso:GetChildren()) do
  317. if Obj:IsA("Sparkles") then
  318. Obj:Destroy()
  319. AzuL.Output(plr, "Removed " ..targPlr.Name.. "'s sparkles!", 5)
  320. end
  321. end
  322. end
  323. };
  324.  
  325. btools = {
  326. admin = true;
  327. desc = "Gives player a hopperbin tools";
  328. func = function(plr, args)
  329. if not args[1] or type(args[1]) ~= "string" then
  330. return
  331. end
  332. local targPlr = AzuL.MatchPlayer(plr, args[1])
  333. if not targPlr then
  334. AzuL.Output(plr, "Failed to match player!")
  335. return
  336. end
  337. if not targPlr.Character:FindFirstChild("Humanoid") then
  338. return
  339. end
  340. Instance.new("HopperBin", targPlr.Backpack).BinType = 2
  341. Instance.new("HopperBin", targPlr.Backpack).BinType = 3
  342. Instance.new("HopperBin", targPlr.Backpack).BinType = 4
  343. AzuL.Output(plr, "Player has btools.", 5)
  344. end
  345. };
  346.  
  347. stun = {
  348. admin = true;
  349. desc = "Stuns a player a player";
  350. func = function(plr, args)
  351. if not args[1] or type(args[1]) ~= "string" then
  352. return
  353. end
  354. local targPlr = AzuL.MatchPlayer(plr, args[1])
  355. if not targPlr then
  356. AzuL.Output(plr, "Failed to match player!")
  357. return
  358. end
  359. if not targPlr.Character:FindFirstChild("Humanoid") then
  360. return
  361. end
  362. targPlr.Character.Humanoid:Destroy()
  363. AzuL.Output(plr, "Stunned plr " .. targPlr.Name .. "!")
  364. end
  365. };
  366.  
  367. god = {
  368. admin = true;
  369. desc = "Gods a player";
  370. func = function(plr, args)
  371. if not args[1] or type(args[1]) ~= "string" then
  372. return
  373. end
  374. local targPlr = AzuL.MatchPlayer(plr, args[1])
  375. if not targPlr then
  376. AzuL.Output(plr, "Failed to match player!")
  377. return
  378. end
  379. if not targPlr.Character:FindFirstChild("Humanoid") then
  380. return
  381. end
  382. targPlr.Character.Humanoid.MaxHealth = math.huge
  383. targPlr.Character.Humanoid.Health = math.huge
  384. AzuL.Output(plr, "Godded plr " .. targPlr.Name .. "!")
  385. end
  386. };
  387.  
  388. sgod = {
  389. admin = true;
  390. desc = "SGods a player";
  391. func = function(plr, args)
  392. if not args[1] or type(args[1]) ~= "string" then
  393. return
  394. end
  395. local targPlr = AzuL.MatchPlayer(plr, args[1])
  396. if not targPlr then
  397. AzuL.Output(plr, "Failed to match player!")
  398. return
  399. end
  400. if not targPlr.Character:FindFirstChild("Humanoid") then
  401. return
  402. end
  403. targPlr.Character.Humanoid.MaxHealth = 100000000000
  404. targPlr.Character.Humanoid.Health = 100000000000
  405. AzuL.Output(plr, "SGodded " .. targPlr.Name .. "!")
  406. end
  407. };
  408.  
  409. ungod = {
  410. admin = true;
  411. desc = "Ungods a player";
  412. func = function(plr, args)
  413. if not args[1] or type(args[1]) ~= "string" then
  414. return
  415. end
  416. local targPlr = AzuL.MatchPlayer(plr, args[1])
  417. if not targPlr then
  418. AzuL.Output(plr, "Failed to match player!")
  419. return
  420. end
  421. if not targPlr.Character:FindFirstChild("Humanoid") then
  422. return
  423. end
  424. targPlr.Character.Humanoid.MaxHealth = 100
  425. targPlr.Character.Humanoid.Health = 100
  426. AzuL.Output(plr, "Ungodded " .. targPlr.Name .. "!")
  427. end
  428. };
  429.  
  430. heal = {
  431. admin = true;
  432. desc = "heals a player";
  433. func = function(plr, args)
  434. if not args[1] or type(args[1]) ~= "string" then
  435. return
  436. end
  437. local targPlr = AzuL.MatchPlayer(plr, args[1])
  438. if not targPlr then
  439. AzuL.Output(plr, "Failed to match player!")
  440. return
  441. end
  442. if not targPlr.Character:FindFirstChild("Humanoid") then
  443. return
  444. end
  445. targPlr.Character.Humanoid.Health = 100
  446. AzuL.Output(plr, "Healed " .. targPlr.Name .. "!")
  447. end
  448. };
  449.  
  450.  
  451. kick = {
  452. admin = true;
  453. desc = "Removes plr from workspace";
  454. func = function(plr, args)
  455. if not args[1] or type(args[1]) ~= "string" then
  456. return
  457. end
  458. local targPlr = AzuL.MatchPlayer(plr, args[1])
  459. if not targPlr then
  460. AzuL.Output(plr, "Failed to match player!")
  461. return
  462. end
  463. if not targPlr.Character:FindFirstChild("Humanoid") then
  464. return
  465. end
  466. targPlr:Remove()
  467. targPlr:Remove()
  468. AzuL.Output(plr, "Kicked " .. targPlr.Name .. "!")
  469. end
  470. };
  471.  
  472. explode = {
  473. admin = true;
  474. desc = "explodes plr";
  475. func = function(plr, args)
  476. if not args[1] or type(args[1]) ~= "string" then
  477. return
  478. end
  479. local targPlr = AzuL.MatchPlayer(plr, args[1])
  480. if not targPlr then
  481. AzuL.Output(plr, "Failed to match player!")
  482. return
  483. end
  484. if not targPlr.Character:FindFirstChild("Humanoid") then
  485. return
  486. end
  487. Instance.new("Explosion", targPlr.Character).Position = targPlr.Character.Torso.Position
  488. AzuL.Output(plr, "exploded " .. targPlr.Name .. "!")
  489. end
  490. };
  491.  
  492. teapot = {
  493. admin = true;
  494. desc = "Teapot a player";
  495. func = function(plr, args)
  496. if not args[1] or type(args[1]) ~= "string" then
  497. return
  498. end
  499. local targPlr = AzuL.MatchPlayer(plr, args[1])
  500. if not targPlr then
  501. AzuL.Output(plr, "Failed to match player!")
  502. return
  503. end
  504. if not targPlr.Character:FindFirstChild("Humanoid") then
  505. return
  506. end
  507. targPlr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1311"
  508. targPlr.Character:BreakJoints()
  509. AzuL.Output(plr, "Teapotted " .. targPlr.Name .. "!")
  510. end
  511. };
  512.  
  513. freeze = {
  514. admin = true;
  515. desc = "Freezes plr";
  516. func = function(plr, args)
  517. if not args[1] or type(args[1]) ~= "string" then
  518. return
  519. end
  520. local targPlr = AzuL.MatchPlayer(plr, args[1])
  521. if not targPlr then
  522. AzuL.Output(plr, "Failed to match player!")
  523. return
  524. end
  525. if not targPlr.Character:FindFirstChild("Humanoid") then
  526. return
  527. end
  528. targPlr.Character.Head.Anchored = true
  529. targPlr.Character.Torso.Anchored = true
  530. targPlr.Character["Right Arm"].Anchored = true
  531. targPlr.Character["Right Leg"].Anchored = true
  532. targPlr.Character["Left Arm"].Anchored = true
  533. targPlr.Character["Left Leg"].Anchored = true
  534. AzuL.Output(plr, "Froze " .. targPlr.Name .. "!")
  535. end
  536. };
  537.  
  538. thaw = {
  539. admin = true;
  540. desc = "Thaws plr if frozen";
  541. func = function(plr, args)
  542. if not args[1] or type(args[1]) ~= "string" then
  543. return
  544. end
  545. local targPlr = AzuL.MatchPlayer(plr, args[1])
  546. if not targPlr then
  547. AzuL.Output(plr, "Failed to match player!")
  548. return
  549. end
  550. if not targPlr.Character:FindFirstChild("Humanoid") then
  551. return
  552. end
  553. targPlr.Character.Head.Anchored = false
  554. targPlr.Character.Torso.Anchored = false
  555. targPlr.Character["Right Arm"].Anchored = false
  556. targPlr.Character["Right Leg"].Anchored = false
  557. targPlr.Character["Left Arm"].Anchored = false
  558. targPlr.Character["Left Leg"].Anchored = false
  559. AzuL.Output(plr, "Thawed " .. targPlr.Name .. "!")
  560. end
  561. };
  562.  
  563.  
  564. duck = {
  565. admin = true;
  566. desc = "Ducks plr";
  567. func = function(plr, args)
  568. if not args[1] or type(args[1]) ~= "string" then
  569. return
  570. end
  571. local targPlr = AzuL.MatchPlayer(plr, args[1])
  572. if not targPlr then
  573. AzuL.Output(plr, "Failed to match player!")
  574. return
  575. end
  576. if not targPlr.Character:FindFirstChild("Humanoid") then
  577. return
  578. end
  579. local pchar = targPlr.Character
  580.  
  581. for i,v in pairs(pchar.Torso:GetChildren()) do
  582. if v.ClassName == 'Decal' then
  583. v:Destroy()
  584. end
  585. end
  586. for i,v in pairs(pchar:GetChildren()) do
  587. if v.ClassName == 'Hat' then
  588. v:Destroy()
  589. end
  590. end
  591.  
  592. for i,v in pairs(pchar.Head:GetChildren()) do
  593. if v.ClassName == 'Decal' then
  594. v:Destroy()
  595. end
  596. end
  597.  
  598. local duck = Instance.new('SpecialMesh', pchar.Torso)
  599. duck.MeshType = 'FileMesh'
  600. duck.MeshId = 'http://www.roblox.com/asset/?id=9419831'
  601. duck.TextureId = 'http://www.roblox.com/asset/?id=9419827'
  602. duck.Scale = Vector3.new(5, 5, 5)
  603. pchar.Head.Transparency = 1
  604. pchar['Left Arm'].Transparency = 1
  605. pchar['Right Arm'].Transparency = 1
  606. pchar['Left Leg'].Transparency = 1
  607. pchar['Right Leg'].Transparency = 1
  608. AzuL.Output(plr, "Ducked " .. targPlr.Name .. "!")
  609. end
  610. };
  611.  
  612. trump = {
  613. admin = true;
  614. desc = "TRUMP THE PLAYER";
  615. func = function(plr, args)
  616. if not args[1] or type(args[1]) ~= "string" then
  617. return
  618. end
  619. local targPlr = AzuL.MatchPlayer(plr, args[1])
  620. if not targPlr then
  621. AzuL.Output(plr, "Failed to match player!")
  622. return
  623. end
  624. if not targPlr.Character:FindFirstChild("Humanoid") then
  625. return
  626. end
  627. for i,v in pairs (targPlr.Character:GetChildren()) do
  628. if v.ClassName == 'Hat' then
  629. v:Destroy()
  630. end
  631. end
  632. guiboard = Instance.new('BillboardGui')
  633. guiboard.Parent = targPlr.Character.Head
  634. guiboard.Adornee = targPlr.Character.Head
  635. guiboard.Size=UDim2.new(2.5,0,2.5,0)
  636. guiboard.StudsOffset=Vector3.new(0,0.2,0)
  637. guiboard.AlwaysOnTop = true
  638. pic = Instance.new('ImageLabel', guiboard)
  639. pic.Image = 'rbxassetid://343377229'
  640. pic.Size = UDim2.new(1,0,1,0)
  641. pic.Position = UDim2.new(0,0,0,0)
  642. pic.BackgroundTransparency = 1
  643. targPlr.Character.Head.Transparency = 1
  644. AzuL.Output(plr, "Trumped " .. targPlr.Name .. "!")
  645. end
  646. };
  647.  
  648.  
  649.  
  650.  
  651. };
  652.  
  653. -- Do not edit anything below
  654. -- Changing core functions could result in instability
  655. -- All command additions should be done using the table above
  656.  
  657. Variables = {
  658. NoClipEnabled = false;
  659. JesusflyEnabled = false;
  660. SwimEnabled = false;
  661. };
  662.  
  663. Tabs = {};
  664.  
  665. GetTorso = function(char)
  666. local torso
  667. if char:FindFirstChild("Torso") then
  668. torso = char.Torso
  669. elseif char:FindFirstChild("UpperTorso") then
  670. torso = char.UpperTorso
  671. end
  672. return torso
  673. end;
  674. Output = function(plr, msg, sec, func, args, nocolor)
  675. local torso = AzuL.GetTorso(plr.Character)
  676. if not torso then
  677. return
  678. end
  679. local plrTabs = AzuL.Tabs[plr.Name]
  680. if not plrTabs then
  681. return
  682. end
  683. local tab = Instance.new("Part")
  684. tab.Anchored = true
  685. tab.CanCollide = false
  686. tab.Size = Vector3.new(2, 2, 2)
  687. tab.TopSurface = "Smooth"
  688. tab.BottomSurface = "Smooth"
  689. tab.BrickColor = BrickColor.new((func and not nocolor) and "Really black" or "Navy blue")
  690. tab.Material = "Neon"
  691. tab.Transparency = 0.5
  692. tab.CFrame = torso.CFrame
  693. local bgui = Instance.new("BillboardGui", tab)
  694. bgui.Adornee = tab
  695. bgui.Size = UDim2.new(10, 0, 2, 0)
  696. bgui.StudsOffset = Vector3.new(0, 2.75, 0)
  697. local tlabel = Instance.new("TextLabel", bgui)
  698. tlabel.Text = msg or ""
  699. tlabel.Font = "Arial"
  700. tlabel.FontSize = "Size18"
  701. tlabel.TextStrokeTransparency = .35
  702. tlabel.TextStrokeColor3 = Color3.new(0, 0, 0)
  703. tlabel.Size = UDim2.new(1, 0, 1, 0)
  704. tlabel.TextColor3 = Color3.new(1, 1, 1)
  705. tlabel.BorderColor3 = Color3.new(0, 0, 0)
  706. tlabel.BackgroundTransparency = 1
  707. tlabel.Font = Enum.Font.SourceSansLight
  708. tlabel.BackgroundColor3 = Color3.new(1, 1, 1)
  709. local cdet = Instance.new("ClickDetector", tab)
  710. cdet.MouseClick:connect(function(clicker)
  711. if clicker == plr then
  712. if func then
  713. func(unpack(args or {}))
  714. else
  715. for index, otab in next, plrTabs do
  716. if otab == tab then
  717. table.remove(plrTabs, index)
  718. tab:destroy()
  719. end
  720. end
  721. end
  722. end
  723. end)
  724. table.insert(plrTabs, tab)
  725. tab.Parent = game.Workspace
  726. coroutine.wrap(function()
  727. wait(sec or AzuL.Options.DefaultTabLife)
  728. if not tab.Parent then
  729. return
  730. end
  731. for index, otab in next, plrTabs do
  732. if otab == tab then
  733. table.remove(plrTabs, index)
  734. tab:destroy()
  735. end
  736. end
  737. end)()
  738. end;
  739.  
  740. Dismiss = function(plr)
  741. local plrTabs = AzuL.Tabs[plr.Name]
  742. if not plrTabs then
  743. return
  744. end
  745. for index, tab in ipairs(plrTabs) do
  746. plrTabs[index] = nil
  747. tab:destroy()
  748. end
  749. end;
  750. PlayersHandled = {};
  751.  
  752. PlayerHandler = function(plr)
  753. if not AzuL.Tabs[plr.Name] then
  754. AzuL.Tabs[plr.Name] = {}
  755. end
  756. AzuL.PlayersHandled[plr.Name] = true
  757. plr.Chatted:connect(function(msg)
  758. if msg:sub(1, 1) == AzuL.Options.CommandPrefix then
  759. local bet1 = AzuL.Options.CommandPrefix
  760. local bet2 = AzuL.Options.CommandDelimiter
  761. if #msg <= #bet1 or msg:sub(1, #bet1) ~= bet1 then
  762. return
  763. else
  764. msg = msg:sub(#bet1 + 1)
  765. end
  766. local args = {}
  767. for arg in msg:gmatch("([^"..bet2.."]+)") do
  768. table.insert(args, arg)
  769. end
  770. if AzuL.Commands[args[1]] then
  771. local cmd = AzuL.Commands[args[1]]
  772. table.remove(args, 1)
  773. if cmd.admin and not (plr == game.Players.LocalPlayer or AzuL.Admins[plr.Name]) then
  774. AzuL.Output(plr, "You do not have permission to execute that command!")
  775. end
  776. cmd.func(plr, args)
  777. end
  778. end
  779. end)
  780. end;
  781.  
  782. PlayerRemoving = game.Players.PlayerRemoving:connect(function(plr)
  783. if AzuL.PlayersHandled[plr.Name] then
  784. AzuL.PlayersHandled[plr.Name] = nil
  785. for _, tab in next, AzuL.Tabs[plr.Name] do
  786. if tab:IsA("Part") then
  787. tab:destroy()
  788. end
  789. end
  790. AzuL.Tabs[plr.Name] = nil
  791. end
  792. end);
  793.  
  794. MatchPlayer = function(caller, str)
  795. if str == "me" then
  796. return caller
  797. end
  798. local matched = {}
  799. for _, plr in next, game.Players:GetPlayers() do
  800. if plr.Name:sub(1, #str):lower() == str:lower() then
  801. table.insert(matched, plr)
  802. end
  803. end
  804. if #matched == 1 then
  805. return matched[1]
  806. end
  807. end;
  808.  
  809. Rot = 0;
  810.  
  811. Tick = game:GetService("RunService").RenderStepped:connect(function(dt)
  812. local mult = dt * 60
  813. AzuL.Rot = AzuL.Rot + .1 * mult
  814. for plrName, plrTabs in next, AzuL.Tabs do
  815. local plr = game.Players:FindFirstChild(plrName)
  816. local char = plr.Character
  817. local torso = AzuL.GetTorso(char)
  818. if plr and char and char.Parent and torso then
  819. for index, tab in next, plrTabs do
  820. local inc = (math.pi * 2 / #plrTabs) * index
  821. local newcf = CFrame.Angles(0, inc - math.rad(AzuL.Rot), 0)
  822. newcf = newcf * CFrame.new(7.5, math.sin(AzuL.Rot / 2 + index) / 2, 0)
  823. newcf = newcf * CFrame.new(#plrTabs / 2, 0, 0)
  824. newcf = CFrame.new(torso.Position) * newcf
  825. tab.CFrame = tab.CFrame:lerp(newcf, .1 * mult)
  826. end
  827. end
  828. end
  829.  
  830. if AzuL.Variables.NoClipEnabled then
  831. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  832. end
  833. if AzuL.Variables.JesusflyEnabled then
  834. game.Players.LocalPlayer.Character.Humanoid:ChangeState(12)
  835. end
  836. if AzuL.Variables.SwimEnabled then
  837. game.Players.LocalPlayer.Character.Humanoid:ChangeState(4)
  838. end
  839. end);
  840.  
  841. }
  842.  
  843. -- Initial tasks go below
  844. -- These are setup steps which will run once when the script is executed
  845. -- Most things can and should be done inside the AzuL table
  846.  
  847. -- Connect all current players to PlayerHandler
  848. for _, plr in next, game:GetService("Players"):GetChildren() do
  849. AzuL.PlayerHandler(plr)
  850. end
  851.  
  852. -- Connect all future players to PlayerHandler
  853. PlayerAdded = game:GetService("Players").PlayerAdded:connect(AzuL.PlayerHandler)
  854. --Fe Checker
  855.  
  856. function FE_CHECK()
  857. if not workspace.FilteringEnabled then
  858. AzuL.Output(game.Players.LocalPlayer, "Filtering is disabled", 30)
  859. elseif workspace.FilteringEnabled then
  860. AzuL.Output(game.Players.LocalPlayer, "Filtering is ENABLED, tabs dont replicate to the server", 30)
  861. end
  862. end
  863.  
  864. -- Show welcome message
  865. repeat
  866. wait()
  867. until game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  868. local cmdNum = 0
  869. for _, _ in next, AzuL.Commands do
  870. cmdNum = cmdNum + 1
  871. end
  872. AzuL.Output(game.Players.LocalPlayer, "Welcome to " .. AzuL.NAME .. " v" .. AzuL.VERSION .. "!", 30)
  873. FE_CHECK()
  874. AzuL.Output(game.Players.LocalPlayer, "Made by AzuLX, Autumn, Joint with help from PME and [AzuL] Broken. In memory of AzuLX.", 30)
  875. AzuL.Output(game.Players.LocalPlayer, "There are currently " .. cmdNum .. " commands available.", 30)
  876. AzuL.Output(game.Players.LocalPlayer, "Run the \"cmds\" command to see a listing of the available commands", 30)
  877. AzuL.Output(game.Players.LocalPlayer, "Start commands with " .. AzuL.Options.CommandPrefix .. " and separate args with " .. AzuL.Options.CommandDelimiter, 30)
Add Comment
Please, Sign In to add comment