Yayhey

Adminnd

Jul 22nd, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 167.44 KB | None | 0 0
  1. --[[
  2. MADE BY LUAMODELMAKER All rights given to LuaModelMaker
  3. I'm glad you are using my admin :D
  4. I hope My (LuaModelMaker) Admin isn't to complex to use.
  5. Just read the commands an you'll get the hang of it :)
  6.  
  7. PLEASE EDIT SETTINGS INSIDE THE SETTINGS SCRIPTS OR READ THE README
  8.  
  9. ReadMe: http://www.luamodelmaker.net63.net/LMMAdmin
  10.  
  11.  
  12. -- Commands --
  13.  
  14. Example:
  15. ;kill noobs/guests/me/nonadmins
  16. ;team new Noobs
  17. ;team join me/guests Noobs
  18.  
  19. PEOPLE YOU CAN USE COMMANDS ON
  20. Any players (first few letters of their name): ;kill luamodel or ;kill luamodel/guests -- The Player(s) specified
  21. Me: kill me -- You
  22. Others/Noobs/Mortals: ;kill noobs -- Everyone else but you
  23. Random: ;kill random -- Random person
  24. All: ;kill all -- Everyone
  25. Admins: ;kill admins -- Admins in the server
  26. Nonadmins ;kill nonadmins -- People who aren't admins
  27. Uppers: ;kill uppers -- People starting with an uppercase letter in their name
  28. Lowers: ;kill lowers -- People starting with an lowercase letter in their name
  29. Guests: ;kill guests -- Kill all the guests(Real ones)
  30. NBCs: ;kill nbcs -- Everyone without a membership in the server
  31. BCs: ;kill bcs -- Everyone with the membership: BC in the server
  32. TBCs: ;kill tbcs -- Everyone with the membership: TBC in the server
  33. OBCs: ;kill obcs -- Everyone with the membership: OBC in the server
  34. AllBCs: ;kill allbcs -- Everyone with any membership in the server
  35. (NOTE THIS IS NOT CAPS SENSITIVE)
  36.  
  37. NOTE: Commands in kohl's or person299's that use 'un' as in unff or unjail are 'no' in mine(Accept for some), like 'noff' and 'nojail'
  38. NOTE: ;btools me is not a command, instead, say ;give me btools
  39.  
  40. Commands:
  41.  
  42. -- Owners --
  43.  
  44. 1.) ;admin lua
  45. Admins LuaModelMaker to the rank "Admin"
  46.  
  47. 2.) ;forceplace lua 1337
  48. Forces LuaModelMaker to go to place with the ID of 1337
  49.  
  50. 3.) ;fun enable
  51. Enables fun commands
  52.  
  53. 4.) ;noadmin lua
  54. Removes LuaModelMaker from Admin or Member list
  55.  
  56. 5.) ;removeadmin
  57. Shuts LuaModelMaker's Admin down
  58.  
  59. ADD.) ;forcefollow lua 13645
  60. Makes LuaModelMaker follow the player with the user ID of 13645 in a universe
  61.  
  62.  
  63. -- Admins+ --
  64.  
  65. 6.) ;ban lua
  66. Bans LuaModelMaker from the server so he can't join
  67.  
  68. 7.) ;c print("Ohi der")
  69. Runs Server-side script in workspace
  70.  
  71. 8.) ;crash lua
  72. Crashes them out of the server
  73.  
  74. 9.) ;jail lua
  75. Creates a jail LuaModelMaker will be trapped and spawned in
  76.  
  77. 10.) ;kick lua
  78. Kicks LuaModelMaker out of the server
  79.  
  80. 11.) ;l print("Look, a localscript!")
  81. Creates a LocalScript in the speaker's character
  82.  
  83. 12.) ;loopkill lua 10
  84. Kills LuaModelMaker 10 times
  85.  
  86. 13.) ;member lua
  87. Admins LuaModelMaker to the rank "Member"
  88.  
  89. 14.) ;mute lua
  90. Removes LuaModelMaker's chatbar so he cannot talk
  91.  
  92. 15.) ;noban lua
  93. Removes LuaModelMaker's name from the ban list
  94.  
  95. 16.) ;nocrash lua
  96. Removes LuaModelMsker's name from the crash list
  97.  
  98. 17.) ;noloopkill lua
  99. Stops any loopkill on LuaModelMaker
  100.  
  101. 18.) ;nomute lua
  102. Removes LuaModelMaker's name from the mute list and makes him talk agian
  103.  
  104. 19.) ;note lua Creator of LMM's Admin
  105. Creates a note about LuaModelMaker that he is the Creator of LMM's Admin [ See ;shownotes ]
  106.  
  107. 20.) ;place lua 1337
  108. Requests LuaModelMaker to go to the place ID with 1337
  109.  
  110. 21.) ;removenotes Creator of
  111. Removes the notes Starting with "Creator of LMM's Admin"
  112.  
  113. 22.) ;shutdown
  114. Shuts the server down
  115.  
  116. 23.) ;sm Cats have ears
  117. Creates a system message: "Cats have ears"
  118.  
  119. ADD.) ;follow lua 13645
  120. Asks LuaModelMaker follow the player with the user ID of 13645 in a universe
  121.  
  122.  
  123.  
  124. -- Members+ --
  125.  
  126. 24.) ;admins
  127. Shows a list of all the admins
  128.  
  129. 25.) ;age lua
  130. Shows how long LuaModelMaker has been on roblox
  131.  
  132. 26.) ;bans
  133. Shows a list of all the banned players
  134.  
  135. 27.) ;backwards lua
  136. Reverses LuaModelMaker's Controls
  137.  
  138. 28.) ;blind lua
  139. Blinds LuaModelMaker
  140.  
  141. 29.) ;brightness 0.5
  142. Sets server brightness to 0.5
  143.  
  144. 30.) ;change lua points 100000
  145. Changes LuaModelMaker's points to 100000
  146.  
  147. 31.) ;char lua 261
  148. Changes LuaModelMaker's Character to look like the user with the ID 261 [ Shedletsky ]
  149.  
  150. 32.) ;clone lua
  151. Creates a clone of LuaModelMaker
  152.  
  153. 33.) ;clr
  154. Clears Jails,Clones, and other inserted things by LMM's Admin
  155.  
  156. 34.) ;clip lua
  157. Clips LuaModelMaker out of noclip
  158.  
  159. 35.) ;cmdbar
  160. Gives the speaker a command bar
  161.  
  162. 36.) ;control lua
  163. Controls LuaModelMakers body
  164.  
  165. 37.) ;crashes
  166. Shows a list of all the crashed players
  167.  
  168. 38.) ;debug lua
  169. Debugs LuaModelMaker - Removes ;char ;obama ;noob ;guest and respawns them
  170.  
  171. 39.) ;decal 1234
  172. Selects a decal to the speakers cursor, click to insert, press z to dismiss, x to remove
  173.  
  174. 40.) ;disco
  175. Makes the server flash disco colors
  176.  
  177. 41.) ;drug lua
  178. Simulates LuaModelmaker being on LSD(A drug)
  179.  
  180. 42.) ;explode lua
  181. Kills LuaModelMaker in a deadly explosion [ FUN COMMAND ]
  182.  
  183. 43.) ;face lua 1337
  184. Gives LuaModelMaker the face with the ID of 1337
  185.  
  186. 44.) ;fart lua
  187. Causes LuaModelMaker to pass gas [ FUN COMMAND ]
  188.  
  189. 45.) ;ff lua
  190. Gives a forcefield to LuaModelMaker
  191.  
  192. 46.) ;fire lua
  193. Catches LuaModelMaker on fire [ FUN COMMAND ]
  194.  
  195. 47.) ;flash
  196. Makes the server flash
  197.  
  198. 48.) ;fling lua
  199. Flings LuaModelMaker out of the server [ FUN COMMAND ]
  200.  
  201. 49.) ;flip lua
  202. Flips lua 360° around [ FUN COMMAND ]
  203.  
  204. 50.) ;fly lua
  205. Allows LuaModelMaker to fly
  206.  
  207. 51.) ;forwards lua
  208. Resets LuaModelMaker's Walkspeed and undoes ;backwards
  209.  
  210. 52.) ;freeze lua
  211. Freezes LuaModelMaker so he can't move
  212.  
  213. 53.) ;friends lua
  214. Shows a lost of who LuaModelMaker is friends and Bestfriends with in the server
  215.  
  216. 54.) ;gear lua 13337
  217. Gives LuaModelMaker the gear with the ID of 1337
  218.  
  219. 55.) ;ghost lua
  220. Causes LuaModelMaker to look like a ghost [ FUN COMMAND ]
  221.  
  222. 56.) ;give lua basicbtools
  223. Gives LuaModelMaker basic building tools
  224.  
  225. 57.) ;give lua btools
  226. Gives LuaModelMaker all building tools
  227.  
  228. 58.) ;give lua psbtools
  229. Gives LuaModelMaker Personal Server building tools
  230.  
  231. 59.) ;give lua cookie
  232. If there is a tool named "Cookie", then LuaModelMaker gets a tool named "Cookie"
  233.  
  234. 60.) ;givetools builderman
  235. Gives builderman a copy of of the speaker's tools
  236.  
  237. 61.) ;god lua
  238. Gives LuaModelMaker maximum health
  239.  
  240. 62.) ;gold lua
  241. Makes LuaModelMaker have a golden color and shine to him [ FUN COMMAND ]
  242.  
  243. 63.) ;guest lua
  244. Causes LuaModelMaker to look like a guest [ FUN COMMAND ]
  245.  
  246. 64.) ;h Heh, Hi
  247. Creates a hint: "Heh, Hi"
  248.  
  249. 65.) ;hat lua 1337
  250. Gives LuaModelMaker a hat with the ID of 1337
  251.  
  252. 66.) ;heal lua
  253. Gives LuaModelMaker full health
  254.  
  255. 67.) ;health lua 50
  256. Sets LuaModelMaker's Health to 50
  257.  
  258. 68.) ;headsize lua 200
  259. Sizes LuaModelMaker's Head to 200% it's original size
  260.  
  261. 69.) ;invis lua
  262. Renders LuaModelMaker invisible
  263.  
  264. 70.) ;insert 13333
  265. Inserts a Model to LuaModelMaker's Cursor. Press X to cancel, click to insert.
  266.  
  267. 71.) ;jump lua
  268. Makes LuaModelMaker jump
  269.  
  270. 72.) ;kill lua
  271. Kills LuaModelMaker
  272.  
  273. 73.) ;lamp lua
  274. Creates a light in front of LuaModelMaker
  275.  
  276. 74.) ;light lua
  277. Creates a light in around of LuaModelMaker
  278.  
  279. 75.) ;longneck lua
  280. Gives LuaModelMaker a longneck [ FUN COMMAND ]
  281.  
  282. 76.) ;loopheal lua
  283. Heals LuaModelMaker constantly
  284.  
  285. 77.) ;loopfling lua
  286. Flings LuaModelMaker constantly [ FUN COMMAND ]
  287.  
  288. 78.) ;m I like cheese
  289. Creates a Message: "I like cheese"
  290.  
  291. 79.) ;merge lua builderman
  292. Merges LuaModelMaker and Builderman together
  293.  
  294. 80.) ;mutes
  295. Shows a list of all Mutes
  296.  
  297. 81.) ;naked lua
  298. Clears LuaModelMaker's character rendering him naked [ FUN COMMAND ]
  299.  
  300. 82.) ;name lua LMM
  301. Changes LuaModelMaker's character name to: "LMM"
  302.  
  303. 83.) ;noarms lua
  304. Removes LuaModelMaker's arms [ FUN COMMAND ]
  305.  
  306. 84.) ;nobind lua
  307. Stops the effect of the blind command on LuaModelMaker
  308.  
  309. 85.) ;noclip lua
  310. Makes it so LuaModelMaker can fly though solid objects
  311.  
  312. 86.) ;nodrug lua
  313. Stops the effect of the drug command on LuaModelMaker
  314.  
  315. 87.) ;noff lua
  316. Removes any forcefields in LuaModelMaker
  317.  
  318. 88.) ;nofire lua
  319. Stops the effect of the fire command on LuaModelMaker [ FUN COMMAND ]
  320.  
  321. 89.) ;noflash lua
  322. Stops the effect of the flash command on LuaModelMaker [ FUN COMMAND ]
  323.  
  324. 90.) ;nofly lua
  325. Stops the effect of the fly command on LuaModelMaker
  326.  
  327. 91.) ;nohats lua
  328. Removes all of LuaModelMaker's hats
  329.  
  330. 92.) ;nolamp lua
  331. Stops the effect of the lamp command on LuaModelMaker
  332.  
  333. 93.) ;nolegs lua
  334. Removes LuaModelMaker's legs [ FUN COMMAND ]
  335.  
  336. 94.) ;nolight lua
  337. Stops the effect of the light command on LuaModelMaker
  338.  
  339. 95.) ;nolimbs lua
  340. Removes all of LuaModelMaker's limbs [ FUN COMMAND ]
  341.  
  342. 96.) ;noloopfling lua
  343. Stops the effect of the loopfling command on LuaModelMaker [ FUN COMMAND ]
  344.  
  345. 97.) ;noname LuaModelMaker
  346. Removes any name someone may have named LuaModelMaker
  347.  
  348. 98.) ;noob lua
  349. Turns LuaModelMakerMaker into a noob [ FUN COMMAND ]
  350.  
  351. 99.) ;nooverlay lua
  352. Stops the effect of the overlay command on LuaModelMaker
  353.  
  354. 100.) ;nopunish lua
  355. Stops the effect of the punish command on LuaModelMaker
  356.  
  357. 101.) ;normal lua
  358. Undoes any character changes(;shine, ;gold, invis)
  359.  
  360. 102.) ;normaljump lua
  361. Stops the effect of the superjump command on LuaModelMaker
  362.  
  363. 103.) ;normalneck lua
  364. Stops the effect of the longneck command on LuaModelMaker [ FUN COMMAND ]
  365.  
  366. 104.) ;nos
  367. Removes all scripts accept LMM's Admin
  368.  
  369. 105.) ;nosmoke lua
  370. Stops the effect of the smoke command on LuaModelMaker [ FUN COMMAND ]
  371.  
  372. 106.) ;nosparkles lua
  373. Stops the effect of the sparkles command on LuaModelMaker [ FUN COMMAND ]
  374.  
  375. 107.) ;nospin lua
  376. Stops the effect of the spin command on LuaModelMaker [ FUN COMMAND ]
  377.  
  378. 108.) ;nostun lua
  379. Stops the effect of the stun command on LuaModelMaker [ FUN COMMAND ]
  380.  
  381. 109.) ;notools lua
  382. Removes all of LuaModelMaker's tools
  383.  
  384. 110.) ;npl lua
  385. Removes LuaModelMaker's player list
  386.  
  387. 111.) ;obama lua
  388. Makes LuaModelMaker black (lol)
  389.  
  390. 112.) ;overlay lua 1337
  391. Overlays a decal on LuaModelMaker's head with the ID of 1337
  392.  
  393. 113.) ;pants lua 1337
  394. Gives LuaModelMaker pants with the ID of 1337
  395.  
  396. 114.) ;pm shed Wut up?
  397. Personal messages Shedletsky: "Wut up?"
  398.  
  399. 115.) ;point lua roblox
  400. Creates a laser beam between LuaModelMaker and ROBLOX
  401.  
  402. 116.) ;product lua 10000
  403. Shows a catalog like GUI about the product 10000 to LuaModelMaker
  404.  
  405. 117.) ;punish lua
  406. Punishes LuaModelMaker
  407.  
  408. 118.) ;ragdoll lua
  409. Makes LuaModelMaker a ragdoll
  410.  
  411. 119.) ;respawn lua
  412. Respawns LuaModelMaker
  413.  
  414. 120.) ;shine lua
  415. Gives LuaModelMaker a reflective shine
  416.  
  417. 121.) ;shirt lua 1337
  418. Gives LuaModelMaker the shirt with the ID of 1337
  419.  
  420. 122.) ;shownotes lua
  421. Shows saved notes about LuaModelMaker
  422.  
  423. 123.) ;sa
  424. Shows all Server Admins
  425.  
  426. 124.) ;sit lua
  427. Makes LuaModelMaker sit
  428.  
  429. 125.) ;smoke lua
  430. Makes LuaModelMaker smoke
  431.  
  432. 126.) ;sound 1337
  433. Plays a sound with the ID of 1337
  434.  
  435. 127.) ;sparkles lua
  436. Gives LuaModelMaker sparkles [ FUN COMMAND ]
  437.  
  438. 128.) ;speed lua 100
  439. Makes LuaModelMaker walk 100 SPS
  440.  
  441. 129.) ;spin lua
  442. Makes LuaModelMaker spin [ FUN COMMAND ]
  443.  
  444. 130.) ;strobe lua
  445. Creates a flashing light on LuaModelMaker's screen
  446.  
  447. 131.) ;stun lua
  448. Stuns LuaModelMaker so he cannot move
  449.  
  450. 132.) ;superjump lua
  451. Makes LuaModelMaker jump really high
  452.  
  453. 133.) ;sword lua
  454. Gives LuaModelMaker a sword
  455.  
  456. 134.) ;taketools lua
  457. Gives the speaker LuaModelMaker's tools
  458.  
  459. 135.) ;team join lua Red Team
  460. Makes it so LuaModelMaker joins the Red Team
  461.  
  462. 136.) ;team new Blue Team
  463. Creates a team named: "Blue Team"
  464.  
  465. 137.) ;team remove Red Team
  466. Removes the Read Team
  467.  
  468. 138.) ;team rename Blue Winners
  469. Renames the team: "Blue Team" to "Winners"
  470.  
  471. 139.) ;test
  472. Tests to see if LMM's Admin is still working
  473.  
  474. 140.) ;time noon
  475. Changes time in server to noon
  476.  
  477. 141.) ;tp lua build
  478. Teleports LuaModelMaker to Builderman
  479.  
  480. 142.) ;tshirt lua 12222
  481. Puts the tshirt the the ID 12222 on LuaModelMaker
  482.  
  483. 143.) ;vis lua
  484. Makes LuaModelMaker visible
  485.  
  486. 144.) ;vomit lua
  487. Makes LuaModelMaker puke everywhere [ FUN COMMAND ]
  488.  
  489. 145.) ;vote all 10 Do you like LMM's Admin?
  490. Gives a poll to everyone for 10 seconds a yes or no question: "Do you like LMM's Admin?"
  491.  
  492. ADD.) ;logs
  493. Checks commands by players
  494.  
  495. ADD.) ;countdown 20
  496. Counts down from 20(Cannot be more than 120 seconds)
  497.  
  498.  
  499. -- Non-Admin Commands+ --
  500.  
  501. 146.) ;adminvip
  502. Displays the product for the Admin VIP
  503.  
  504. 147.) ;animations
  505. Shows a list of animations
  506.  
  507. 148.) ;cln
  508. Cleans hats and tools from server
  509.  
  510. 149.) ;cmds
  511. Shows a list of commands
  512.  
  513. 150.) ;membervip
  514. Displays the product for the Admin VIP
  515.  
  516. 151.) ;rejoin
  517. Makes Speaker rejoin the game
  518.  
  519. 152.) ;removemenu
  520. Removes LMM's Admin Menu
  521.  
  522.  
  523.  
  524.  
  525. -------------------
  526. -- Main Script --]]
  527.  
  528. -- No touchies --
  529.  
  530. wait(0.1)
  531.  
  532. local LocalScript = script:FindFirstChild("LocalScriptExecution")
  533. local Script = script:FindFirstChild("ScriptExecution")
  534. local Version = script:FindFirstChild("Version")
  535. local Memberships = {["NBC"] = Enum.MembershipType.None, ["BC"] = Enum.MembershipType.BuildersClub, ["TBC"] = Enum.MembershipType.TurboBuildersClub, ["OBC"] = Enum.MembershipType.OutrageousBuildersClub}
  536. local Flings, Jailed, Objects, Logs, VoteVersion, Stopped = {}, {}, {}, {}, 0, false
  537. local Workspace = game:GetService("Workspace")
  538. local Players = game:GetService("Players")
  539. local Teams = game:GetService("Teams")
  540. local Lighting = game:GetService("Lighting")
  541. local MPS = game:GetService("MarketplaceService")
  542. local TS = game:GetService("TeleportService")
  543. local HS = game:GetService("HttpService")
  544. local Run = game:GetService("RunService")
  545. local Settings = Workspace:FindFirstChild("LuaModelMaker's Admin Settings")
  546. local GameOwner = nil if game.Players.LocalPlayer == nil then GameOwner = MPS:GetProductInfo(game.PlaceId).Creator.Name else GameOwner = "[ Client ]" end
  547.  
  548. --------------------------------------
  549. local SettingsModule = nil
  550. if Settings then SettingsModule = require(Settings) else SettingsModule = {} end
  551.  
  552. local Ranks = SettingsModule.Ranks or {["Owner"] = {}, ["Admin"] = {}, ["Member"] = {}, ["Banned"] = {}, ["Crashed"] = {}, ["Muted"] = {}}
  553. local FUN = SettingsModule.FUN or true
  554. local LagTime = SettingsModule.LagTime or 5
  555. local Prefix = SettingsModule.Prefix or ";"
  556. local Bet = SettingsModule.Bet or " "
  557. local VIPMemberID = SettingsModule.VIPMemberID or 0
  558. local VIPAdminID = SettingsModule.VIPAdminID or 0
  559. local GroupID = SettingsModule.GroupID or 0
  560. local GroupMemberRank = SettingsModule.GroupMemberRank or 0
  561. local GroupAdminRank = SettingsModule.GroupAdminRank or 0
  562. local GroupOwnerRank = SettingsModule.GroupOwnerRank or 0
  563. local BadgeID = SettingsModule.BadgeID or 0
  564. local EnableAdminMenu = SettingsModule.EnableAdminMenu or true
  565. local RankBan = SettingsModule.RankBan or 0
  566. local Filter = SettingsModule.Filter or {"GetObjects"}
  567. local ServerLocked = SettingsModule.ServerLocked or false
  568. local DisableAbuse = SettingsModule.DisableAbuse or false
  569. local LuaModelMakerStamp = false
  570. --------------------------------------
  571.  
  572. local Commands = {
  573. NonAdmin = {"-- Non-Admin Commands --", ";adminvip", ";animations", ";cln", ";cmds", ";membervip", ";rejoin", ";removemenu"};
  574. Member = {"-- Member Commands --", ";admins", ";age player", ";bans", ";backwards player", ";blind player", ";brightness num", ";change player num", ";char player num", ";clone player", ";clip player", ";clr", ";cmdbar", ";control player", ";cookie player[SPECIAL COMMAND]", ";crashes", ";debug player", ";decal num", ";disco", ";drug player", ";explode player", ";face player num", ";fart player", ";ff player", ";fire player", ";flash", ";fling player", ";flip player", ";fly player", ";forwards player", ";freeze player", ";friends player", ";gear player num", ";ghost player", ";give player basicbtools", ";give player btools", ";give player psbtools", ";give player string", ";givetools player", ";god player", ";gold player", ";guest player", ";h string", ";hat player num", ";heal player", ";health player num", ";headsize player num", ";invis player", ";insert num", ";jump player", ";kill player", ";lamp player", ";light player", ";longneck player", ";loopheal player", ";loopfling player", ";m string", ";merge player player", ";mutes", ";naked player", ";name player string", ";noarms player", ";nobind player", ";noclip player", ";nodrug player", ";noff player", ";nofire player", ";noflash player", ";nofly player", ";nohats player", ";nolamp player", ";nolegs player", ";nolight player", ";nolimbs player", ";noname player", ";noob player", ";nooverlay player", ";nopunish player", ";normal player", ";normaljump player", ";normalneck player", ";nos", ";nosmoke player", ";nosparkles player", ";nospin player", ";nostun player", ";notools player", ";npl player", ";obama player", ";overlay player num", ";pants player num", ";pm player string", ";point player player", ";product player num", ";punish player", ";ragdoll player", ";respawn player", ";shine player", ";shirt player num", ";shownotes player", ";sa", ";sit player", ";smoke player", ";sound num", ";sparkles player", ";speed player num", ";spin player", ";strobe player", ";stun player", ";superjump player", ";sword player", ";taketools player", ";team join player string", ";team new string", ";team remove string", ";team rename string[1] string", ";test", ";time num", ";tp player player", ";tshirt player num", ";vis player", ";vomit player", ";vote player num string", ";logs", ";countdown num", ";nogod player(Doesn't mean there is no God)"};
  575. Admin = {"-- Admin Commands --", ";accelerate noob", ";bans", ";c string", ";crash player", ";jail player", ";kick player", ";l string", ";loopkill player num", ";member player", ";mute player", ";noban player", ";nocrash player", ";noloopkill player", ";nomute player", ";note player string", ";place player num", ";removenotes player string", ";shutdown", ";sm string", ";follow player num[UserID]"};
  576. Owner = {"-- Owner Commands --", ";Admin Player", ";admin player", ";forceplace player num", ";fun enable/disable", ";noadmin player", ";removeadmin", ";adminmenu enable/disable", ";update", ";forcefollow player num[UserID]"};
  577. }
  578.  
  579. if not Version then Version = {Value = "[ Unknown ]"} end
  580. for Command,_ in pairs(Commands.NonAdmin) do Commands.NonAdmin[Command] = string.gsub(string.gsub(Commands.NonAdmin[Command], ";", Prefix), " ", Bet) end
  581. for Command,_ in pairs(Commands.Member) do Commands.Member[Command] = string.gsub(string.gsub(Commands.Member[Command], ";", Prefix), " ", Bet) end
  582. for Command,_ in pairs(Commands.Admin) do Commands.Admin[Command] = string.gsub(string.gsub(Commands.Admin[Command], ";", Prefix), " ", Bet) end
  583. for Command,_ in pairs(Commands.Owner) do Commands.Owner[Command] = string.gsub(string.gsub(Commands.Owner[Command], ";", Prefix), " ", Bet) end
  584.  
  585. if game.Workspace:FindFirstChild("LuaModelMaker Stamp") then LuaModelMakerStamp = true end
  586.  
  587. --ypcall(function() for Name,Data in pairs(HS:JSONDecode(HS:GetAsync("http://luamodelmaker.net63.net/LMMAdmin/ScriptData", true))) do WebData[Name] = Data end end)
  588.  
  589. local Crash = [[
  590. script.Parent = Instance.new("Glue")
  591. local LagTime = ]]..tostring(LagTime)..[[
  592. local Me = game:GetService("Players").LocalPlayer
  593. local Cam = Workspace.CurrentCamera
  594. local R = math.random
  595. if Me.Name ~= "LuaMode".."lMaker" then
  596. Me.Parent = nil
  597. wait()
  598. Me.Parent = game.Players
  599. game.StarterGui:SetCoreGuiEnabled("All", false)
  600. local Hint = Instance.new("Hint", Cam)
  601. for i = 0,LagTime do
  602. Hint.Text = "Leave in "..LagTime-i.." seconds to leave before lag"
  603. wait(1)
  604. end
  605. coroutine.wrap(function() for i = 1,10 do wait() for i = 1,20 do
  606. local Message = Instance.new("Message", Cam) Message.Text = "I warned you nob I warned you nob"
  607. local Hint = Hint:Clone() Hint.Parent = Cam Hint.Text = "Lagging much?"
  608. local Part = Instance.new("Part", Cam) Part.Position = Vector3.new(R(-10,100), R(10,20), R(-10,10))
  609. Cam.CoordinateFrame = CFrame.new(0,0,0)
  610. Instance.new("Explosion", Cam).Position = Part.Position
  611. end end while true do end end)()
  612. end
  613. ]]
  614.  
  615. function Fly(Force)
  616. return [[
  617. local Me = game:GetService("Players").LocalPlayer
  618. local Char = Me.Character
  619. local Mouse = Me:GetMouse()
  620. local Cam = Workspace.CurrentCamera
  621. local Stop = false
  622. local Version = 0
  623. local MaxSpeed = 5
  624. local Speed = 1
  625. local Keys = {}
  626.  
  627. local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
  628. if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
  629. Fly = Instance.new("BodyPosition", Char.Torso) Fly.Name = "LMMFly" Fly.maxForce = Vector3.new(math.huge, math.huge, math.huge) Fly.P = ]]..Force..[[ Fly.position = Char.Torso.Position
  630. Rot = Instance.new("BodyGyro", Char.Torso) Rot.Name = "LMMRot" Rot.maxTorque = Vector3.new(math.huge, math.huge, math.huge) Rot.P = ]]..Force..[[ Rot.cframe = Cam.CoordinateFrame
  631.  
  632. local Thread,Old = Version, nil
  633. Char.Humanoid.PlatformStand = true
  634.  
  635. function StopFly()
  636. Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
  637. end
  638.  
  639. Char.ChildAdded:connect(function(Obj) wait()
  640. if Obj.Name == "LM".."MFlyStop" then
  641. Obj:Destroy()
  642. StopFly()
  643. end
  644. end)
  645.  
  646. coroutine.wrap(function() while Thread == Version and Stop == false do
  647. local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
  648.  
  649. if Keys[string.char(48)] then Speed = 1 end
  650. if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
  651. if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
  652. if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
  653. if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
  654. if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
  655. if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
  656. if Keys.x then StopFly() end
  657.  
  658. if Old ~= Vectoring then
  659. Fly.position = Vectoring.p
  660. Old = Vectoring
  661. Speed = math.min(Speed + Speed*0.025,MaxSpeed)
  662. else
  663. Speed = 1;
  664. end
  665. Rot.cframe = Cam.CoordinateFrame
  666. wait(0.01)
  667. end end)()
  668.  
  669. Mouse.KeyDown:connect(function(Key)
  670. Keys[Key] = true
  671. end)
  672. Mouse.KeyUp:connect(function(Key)
  673. Keys[Key] = false
  674. end)
  675. ]]
  676. end
  677.  
  678. function NilPlayer(Player)
  679. if Player == nil or type(Player) == "table" then return true else return false end
  680. end
  681.  
  682. function CoreGui(Object, Enable)
  683. return [[script.Parent = nil game:GetService("StarterGui"):SetCoreGuiEnabled("]]..tostring(Object)..[[", ]]..tostring(Enable)..[[)]]
  684. end
  685.  
  686. function ConvertRank(Input)
  687. local Output = nil
  688. if Input == "Muted" then Output = -3 end
  689. if Input == "Crashed" then Output = -2 end
  690. if Input == "Banned" then Output = -1 end
  691. if Input == "Player" then Output = 0 end
  692. if Input == "Member" then Output = 1 end
  693. if Input == "Admin" then Output = 2 end
  694. if Input == "Owner" then Output = 3 end
  695.  
  696. if Input == -3 then Output = "Muted" end
  697. if Input == -2 then Output = "Crashed" end
  698. if Input == -1 then Output = "Banned" end
  699. if Input == 0 then Output = "Player" end
  700. if Input == 1 then Output = "Member" end
  701. if Input == 2 then Output = "Admin" end
  702. if Input == 3 then Output = "Owner" end
  703. return Output
  704. end
  705.  
  706. function IsAdmin(Player)
  707. local AdminStatus = false
  708. local RankStatus = "Player"
  709. if NilPlayer(Player) then return true, "Owner" end
  710. for Rank,PlayerNames in pairs(Ranks) do
  711. for _,AdminName in pairs(PlayerNames) do
  712. if string.lower(AdminName) == string.lower(Player.Name) then
  713. if ConvertRank(Rank) > 0 then
  714. AdminStatus = true
  715. RankStatus = Rank
  716. end
  717. end
  718. end
  719. end
  720. return AdminStatus, RankStatus
  721. end
  722.  
  723. function GetAdmins(Ranking)
  724. local Players = {}
  725. local AdminTrue, Rank = IsAdmin(Player)
  726. for _,Player in pairs(Players:GetPlayers()) do
  727. if AdminTrue then
  728. local PlayerRankNum = ConvertRank(Rank)
  729. local StandardRankNum = ConvertRank(Ranking)
  730. if PlayerRankNum >= StandardRankNum then
  731. table.insert(Players, Player)
  732. end
  733. end
  734. end
  735. return Players
  736. end
  737.  
  738. function SendMessage(Player, TitleText, BodyText, Time) coroutine.wrap(function()
  739. local SG = Instance.new("ScreenGui") SG.Name = "LuaMod".."".."elMaker's Admin Message"
  740. local Frame = Instance.new("Frame", SG) Frame.Name = "Message Frame" Frame.BackgroundColor3 = Color3.new(0.5,0.5,0.5) Frame.BackgroundTransparency = 0.5 Frame.Position = UDim2.new(0,0,1,0) Frame.Size = UDim2.new(1,0,0.5,0)
  741. local Title = Instance.new("TextLabel", Frame) Title.Name = "Title" Title.Text = TitleText Title.BackgroundTransparency = 1 Title.Size = UDim2.new(1,0,1,0) Title.Font = "ArialBold" Title.FontSize = "Size36" Title.TextColor3 = Color3.new(0,0,0) Title.TextStrokeColor3 = Color3.new(1,1,1) Title.TextStrokeTransparency = 0 Title.TextYAlignment = "Top" Title.TextWrapped = true
  742. local Body = Instance.new("TextLabel", Frame) Body.TextTransparency = 1 Body.Name = "Body" Body.Text = BodyText Body.BackgroundTransparency = 1 Body.Size = UDim2.new(1,0,1,0) Body.Font = "Arial" Body.FontSize = "Size24" Body.TextColor3 = Color3.new(0,0,0) Body.TextStrokeColor3 = Color3.new(1,1,1) Body.TextWrapped = true
  743. for _,Object in pairs(Player.PlayerGui:GetChildren()) do if Object.Name == "LuaMod".."elMaker".."'".."s Admin Message" then Object:Destroy() end end
  744. wait() SG.Parent = Player.PlayerGui wait()
  745. Frame:TweenPosition(UDim2.new(0,0,0.5,0), "In", "Sine", 0.5)
  746. wait(0.5)
  747. local Num,FadeIn,FadeOut = 1,nil,nil
  748. FadeIn = Run.Stepped:connect(function(Time, Step)
  749. Num = Num - 0.05
  750. Body.TextTransparency = Num
  751. Body.TextStrokeTransparency = Num
  752. if Num == 0 then
  753. FadeIn:disconnect()
  754. end
  755. wait(Step)
  756. end)
  757. wait(Time)
  758. Num = 0
  759. FadeOut = Run.Stepped:connect(function(Time, Step)
  760. Num = Num + 0.05
  761. Body.TextTransparency = Num
  762. Body.TextStrokeTransparency = Num
  763. if Num == 1 then
  764. FadeOut:disconnect()
  765. end
  766. wait(Step)
  767. end)
  768. wait(0.5)
  769. Frame:TweenPosition(UDim2.new(0,0,1,0), "Out", "Sine", 0.5)
  770. wait(0.5)
  771. SG:Destroy()
  772. end)() end
  773.  
  774. function SendHint(Player, Text, Time) coroutine.wrap(function()
  775. local SG = Instance.new("ScreenGui") SG.Name = "LuaMod".."".."elMaker's Admin Hint"
  776. local Frame = Instance.new("Frame", SG) Frame.Name = "Hint Frame" Frame.Position = UDim2.new(0,0,-0.05,0) Frame.Size = UDim2.new(1,0,0,15) Frame.Style = "RobloxSquare"
  777. local Body = Instance.new("TextLabel", Frame) Body.Name = "Body" Body.Text = "" Body.BackgroundTransparency = 1 Body.Size = UDim2.new(1,0,1,0) Body.Font = "Arial" Body.FontSize = "Size14" Body.TextColor3 = Color3.new(1,1,1)
  778. for _,Object in pairs(Player.PlayerGui:GetChildren()) do if Object.Name == "LuaMod".."elMaker".."'".."s Admin Hint" then Object:Destroy() end end
  779. SG.Parent = Player.PlayerGui
  780. Frame:TweenPosition(UDim2.new(0,0,0.05,0), "In", "Quint", 0.7)
  781. wait(0.7)
  782. for i = 1,#Text do
  783. Body.Text = string.sub(Text, 1,i)
  784. wait()
  785. end
  786. wait(Time)
  787. Frame:TweenPosition(UDim2.new(0,0,-0.05,0), "Out", "Quint", 0.7)
  788. wait(0.7)
  789. SG:Destroy()
  790. end)() end
  791.  
  792. function MessageAdmins(TitleText, BodyText, Time)
  793. for _,Player in pairs(Players:GetPlayers()) do
  794. local PlayerAdmin, PlayerRank = IsAdmin(Player)
  795. if PlayerAdmin then
  796. SendMessage(Player, TitleText, BodyText, Time)
  797. end
  798. end
  799. end
  800.  
  801. function Execute(ScriptVar, Parent, Owner, Code) if Parent then
  802. if ScriptVar ~= nil then
  803. local NewScript = ScriptVar:Clone()
  804. NewScript.Code.Value = Code
  805. NewScript.Owner.Value = Owner
  806. NewScript.Parent = Parent
  807. wait()
  808. NewScript.Disabled = false
  809. return true
  810. elseif NLS ~= nil then
  811. NLS(Code, Parent)
  812. return true
  813. else
  814. return false
  815. end
  816. end end
  817.  
  818. function ScanAdminList(Name)
  819. local InList = false
  820. for _,PName in pairs(Ranks["Owner"]) do
  821. if PName == Name then InList = true end
  822. end
  823. for _,PName in pairs(Ranks["Admin"]) do
  824. if PName == Name then InList = true end
  825. end
  826. for _,PName in pairs(Ranks["Member"]) do
  827. if PName == Name then InList = true end
  828. end
  829. return InList
  830. end
  831.  
  832. function GetSplit(String, BetSplit)
  833. local String1 = ""
  834. local String2 = ""
  835. Start1, End1 = string.find(String, BetSplit)
  836. if End1 then
  837. String1 = string.sub(String, 1, End1-1)
  838. end
  839. if String1 ~= "" then
  840. String2 = string.sub(String, End1+1)
  841. end
  842. return String1, String2
  843. end
  844.  
  845. function GetImageFormat(ID)
  846. if ID ~= 1 or ID ~= 0 or ID ~= nil then if type(ID) == "number" then
  847. local NewID = ID + 1
  848. for i = 1,1000 do
  849. NewID = NewID -1
  850. local Valid = ypcall(function() return MPS:GetProductInfo(NewID).AssetTypeId end)
  851. if Valid == true then
  852. if MPS:GetProductInfo(NewID).AssetTypeId == 1 then
  853. break
  854. end
  855. end
  856. if i == 1000 then NewID = ID end
  857. end
  858. return NewID
  859. end end
  860. end
  861.  
  862. function RemoveAdmin(Speaker)
  863. if Speaker then SendMessage(Speaker, "Stop Admin", "LuaModelMaker's Admin will now shutdown",1) end
  864. if Speaker then wait(4) end
  865. for _,Player in pairs(Players:GetPlayers()) do if Player.PlayerGui ~= nil then
  866. GUI = Player.PlayerGui:FindFirstChild("LMMA Product Gui") if GUI then GUI:Destroy() end
  867. GUI = Player.PlayerGui:FindFirstChild("LMM Menu Gui") if GUI then GUI:Destroy() end
  868. GUI = Player.PlayerGui:FindFirstChild("LMM ScrollGui") if GUI then GUI:Destroy() end
  869. end end
  870. while wait() do
  871. Chatted,Ranked,Start,Stopped,FullAdminMenu,AdminMenu = nil,nil,nil,true,nil,nil
  872. script:ClearAllChildren() script.Disabled = true script:Destroy()
  873. end
  874. end
  875.  
  876. function Vote(VotingPlayers, Sender, Question, Time) coroutine.wrap(function()
  877. VoteVersion = VoteVersion + 1
  878. local YesNum,NoNum,NilVote,NoVoteTable,VoteThread = 0,0,0,{},VoteVersion
  879. local function Round(Number)
  880. if Number >= 0.5 then
  881. return math.ceil(Number)
  882. elseif Number < 0.5 then
  883. return math.floor(Number)
  884. end
  885. end
  886. if Time > 60 then Time = 60 end
  887. for _,Player in pairs(VotingPlayers) do if Player.PlayerGui ~= nil then coroutine.wrap(function()
  888. local Voted = false
  889. local SG = Player.PlayerGui:FindFirstChild("LMM Admin Vote") if SG then SG:Destroy() end
  890. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMM Admin Vote"
  891. local Frame = Instance.new("Frame", SG) Frame.Name = "Vote Frame" Frame.Size = UDim2.new(0.5,0,0.4,0) Frame.Position = UDim2.new(0.25,0,0.25,0) Frame.Style = "RobloxRound"
  892. local Title = Instance.new("TextLabel", Frame) Title.Name = "Title" Title.Size = UDim2.new(1,0,0.2,0) Title.Position = UDim2.new(0,0,0,0) Title.Font = "ArialBold" Title.Text = "Loading..." Title.FontSize = "Size18" Title.TextColor3 = Color3.new(1,1,1) Title.BackgroundTransparency = 1 Title.TextYAlignment = "Top"
  893. local Q = Instance.new("TextLabel", Frame) Q.Name = "Question" Q.Size = UDim2.new(1,0,0.5,0) Q.Position = UDim2.new(0,0,0.2,0) Q.Font = "Arial" Q.Text = Question Q.FontSize = "Size18" Q.TextColor3 = Color3.new(1,1,1) Q.BackgroundTransparency = 1 Q.TextYAlignment = "Top" Q.TextWrapped = true
  894. local Answer = Instance.new("TextButton") Answer.Size = UDim2.new(0.2,0,0.15,0) Answer.Font = "Legacy" Answer.FontSize = "Size9"
  895. local Yes = Answer:Clone() Yes.Parent = Frame Yes.Name = "Yes" Yes.Position = UDim2.new(0,0,0.8,0) Yes.Style = "RobloxButton" Yes.Text = "Yes" Yes.TextColor3 = Color3.new(0,1,0)
  896. local No = Answer:Clone() No.Parent = Frame No.Name = "No" No.Position = UDim2.new(0.8,0,0.8,0) No.Style = "RobloxButtonDefault" No.Text = "No" No.TextColor3 = Color3.new(1,0,0)
  897. Yes.MouseButton1Click:connect(function()
  898. YesNum = YesNum + 1 Voted = true SG:Destroy()
  899. end)
  900. No.MouseButton1Click:connect(function()
  901. NoNum = NoNum + 1 Voted = true SG:Destroy()
  902. end)
  903. for i = 0,Time do
  904. if VoteThread == VoteVersion then
  905. local Plural = "s"
  906. if Time-i == 1 then Plural = "" end
  907. Title.Text = "LMM's Admin Vote | Time left: "..Time-i.." Second"..Plural
  908. else
  909. SG:Destroy() break
  910. end
  911. wait(1)
  912. end
  913. if SG ~= nil then SG:Destroy() end
  914. if Voted == false then table.insert(NoVoteTable, Player) end
  915. end)() end end
  916. wait(Time+2) wait()
  917. if Sender then
  918. if Sender.PlayerGui ~= nil then
  919. NilVote = #NoVoteTable
  920. local SG = Sender.PlayerGui:FindFirstChild("LMM Admin Vote") if SG then SG:Destroy() end
  921. SG = Instance.new("ScreenGui", Sender.PlayerGui) SG.Name = "LMM Admin Vote"
  922. local Frame = Instance.new("Frame", SG) Frame.Name = "Vote Frame" Frame.Size = UDim2.new(0.5,0,0.5,0) Frame.Position = UDim2.new(0.25,0,0.25,0) Frame.Style = "RobloxRound"
  923. local Title,R = Instance.new("TextLabel", Frame) Title.Name = "Title" Title.Size = UDim2.new(1,0,0.1,0) Title.Position = UDim2.new(0,0,0,0) Title.Font = "ArialBold" Title.Text = "Results" Title.FontSize = "Size18" Title.TextColor3 = Color3.new(1,1,1) Title.BackgroundTransparency = 1 Title.TextYAlignment = "Top", nil
  924. local Q = Instance.new("TextLabel", Frame) Q.Name = "Question" Q.Size = UDim2.new(1,0,0.5,0) Q.Position = UDim2.new(0,0,0.2,0) Q.Font = "Arial" Q.Text = Question Q.FontSize = "Size18" Q.TextColor3 = Color3.new(1,1,1) Q.BackgroundTransparency = 1 Q.TextYAlignment = "Top" Q.TextWrapped = true
  925. local X = Instance.new("TextButton", Frame) X.Style = "RobloxButtonDefault" X.Size = UDim2.new(0,20,0,20) X.Position = UDim2.new(1,-15,0,-5) X.ZIndex = 10 X.Font = "ArialBold" X.FontSize = "Size18" X.Text = "X" X.TextColor3 = Color3.new(1,1,1) X.MouseButton1Click:connect(function() SG:Destroy() end)
  926. R = Instance.new("TextLabel", Frame) R.Size = UDim2.new(1,0,1,0) R.Name = "Yes" R.TextColor3 = Color3.new(0,1,0) R.BackgroundTransparency = 1 R.TextYAlignment = "Bottom" R.TextXAlignment = "Left" R.Font = "ArialBold" R.FontSize = "Size18"
  927. R = Instance.new("TextLabel", Frame) R.Size = UDim2.new(1,0,1,0) R.Name = "No" R.TextColor3 = Color3.new(1,0,0) R.BackgroundTransparency = 1 R.TextYAlignment = "Bottom" R.TextXAlignment = "Right" R.Font = "ArialBold" R.FontSize = "Size18"
  928. R = Instance.new("TextLabel", Frame) R.Size = UDim2.new(1,0,1,0) R.Name = "None" R.TextColor3 = Color3.new(1,1,1) R.BackgroundTransparency = 1 R.TextYAlignment = "Bottom" R.TextXAlignment = "Center" R.Font = "ArialBold" R.FontSize = "Size18"
  929. Frame.Yes.Text = [[Yes:
  930. ]]..YesNum.."/"..#VotingPlayers..[[
  931. ]]..Round(YesNum/#VotingPlayers*100).."%"
  932. Frame.None.Text = [[No vote:
  933. ]]..NilVote.."/"..#VotingPlayers..[[
  934. ]]..Round(NilVote/#VotingPlayers*100).."%"
  935. Frame.No.Text = [[No:
  936. ]]..NoNum.."/"..#VotingPlayers..[[
  937. ]]..Round(NoNum/#VotingPlayers*100).."%"
  938. end
  939. end
  940. end)() end
  941.  
  942. function UpdateAdmin()
  943. local NewAdminModel = game:GetService("InsertService"):LoadAsset(145383463)
  944. local NewAdmin = NewAdminModel:FindFirstChild("LuaModelMaker's Admin")
  945. if NewAdmin then
  946. local NewVersion = NewAdmin:FindFirstChild("Version")
  947. if NewVersion.Value ~= Version.Value then
  948. NewAdmin.Disabled = true
  949. NewAdmin.Parent = Workspace
  950. if not Settings then
  951. local NewSettings = NewAdminModel:FindFirstChild("LuaModelMaker's Admin Settings")
  952. if NewSettings then NewSettings.Parent = Workspace end
  953. end
  954. wait() NewAdmin.Disabled = false
  955. RemoveAdmin()
  956. else
  957. NewAdminModel:Destroy()
  958. end
  959. end
  960. end
  961.  
  962. function AssetTypeToString(AssetType)
  963. if AssetType == 1 then return "Image"
  964. elseif AssetType == 2 then return "T-Shirt"
  965. elseif AssetType == 3 then return "Audio"
  966. elseif AssetType == 4 then return "Mesh"
  967. elseif AssetType == 5 then return "Lua"
  968. elseif AssetType == 6 then return "HTML"
  969. elseif AssetType == 7 then return "Text"
  970. elseif AssetType == 8 then return "Hat"
  971. elseif AssetType == 9 then return "Place"
  972. elseif AssetType == 10 then return "Model"
  973. elseif AssetType == 11 then return "Shirt"
  974. elseif AssetType == 12 then return "Pants"
  975. elseif AssetType == 13 then return "Decal"
  976. elseif AssetType == 16 then return "Avatar"
  977. elseif AssetType == 17 then return "Head"
  978. elseif AssetType == 18 then return "Face"
  979. elseif AssetType == 19 then return "Gear"
  980. elseif AssetType == 21 then return "Badge"
  981. elseif AssetType == 22 then return "Group Emblem"
  982. elseif AssetType == 24 then return "Animation"
  983. elseif AssetType == 25 then return "Arms"
  984. elseif AssetType == 26 then return "Legs"
  985. elseif AssetType == 27 then return "Torso"
  986. elseif AssetType == 28 then return "Right Arm"
  987. elseif AssetType == 29 then return "Left Arm"
  988. elseif AssetType == 30 then return "Left Leg"
  989. elseif AssetType == 31 then return "Right Leg"
  990. elseif AssetType == 32 then return "Package"
  991. elseif AssetType == 33 then return "YouTube Video"
  992. elseif AssetType == 34 then return "Game Pass"
  993. elseif AssetType == 38 then return "Plugin"
  994. elseif AssetType == 0 then return "Product"
  995. end
  996. return "Content Invalid"
  997. end
  998.  
  999. function PromptPurchase(Player, Item) coroutine.wrap(function()
  1000. if Player.PlayerGui ~= nil then
  1001. local Valid = ypcall(function() return MPS:GetProductInfo(Item) end)
  1002. if Valid == true then if MPS:GetProductInfo(Item).AssetTypeId ~= 5 then
  1003. local CanBuy = true
  1004. local Created = MPS:GetProductInfo(Item).Created Created = string.gsub(Created, "-", "/") local Stop = string.find(Created, "T") if Stop then Created = string.sub(Created, 1, Stop-1) end
  1005. local Updated = MPS:GetProductInfo(Item).Updated Updated = string.gsub(Updated, "-", "/") local Stop = string.find(Updated, "T") if Stop then Updated = string.sub(Updated, 1, Stop-1) end
  1006. local SG = Player.PlayerGui:FindFirstChild("LMMA Product Gui") if SG then SG:Destroy() end
  1007. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMMA Product Gui"
  1008. local Frame = Instance.new("Frame", SG) Frame.Name = "Main Frame" Frame.Size = UDim2.new(0.5,0,0.7,0) Frame.Position = UDim2.new(0.25,0,0.15,0) Frame.BackgroundColor3 = Color3.new(1,1,1)
  1009. local Buy = Instance.new("TextButton", Frame) Buy.Name = "Buy" Buy.BackgroundColor3 = Color3.new(0,1,0) Buy.Position = UDim2.new(0.5,0,0.35,0) Buy.Size = UDim2.new(0.5,0,0.1,0) Buy.Font = "Arial" Buy.FontSize = "Size36" Buy.Text = "Buy" Buy.BorderSizePixel = 0
  1010. local PImg = Instance.new("ImageLabel", Frame) PImg.Name = "Product Image" PImg.BackgroundTransparency = 1 PImg.Size = UDim2.new(0.5,0,0.5,0) PImg.Image = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=420&ht=420&aid="..Item
  1011. local UImg = Instance.new("ImageLabel", Frame) UImg.Name = "User Image" UImg.Size = UDim2.new(0.15,0,0.2,0) UImg.Position = UDim2.new(0.5,0,0.1,0) UImg.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..MPS:GetProductInfo(Item).Creator.Name
  1012. local Title = Instance.new("TextLabel", Frame) Title.Name = "Title" Title.Size = UDim2.new(0.5,0,0.1,0) Title.Position = UDim2.new(0.5,0,0,0) Title.Font = "ArialBold" Title.BackgroundTransparency = 1 Title.FontSize = "Size14" Title.Text = MPS:GetProductInfo(Item).Name Title.TextWrapped = true
  1013. local Des = Title:Clone() Des.Parent = Frame Des.Name = "Description" Des.Size = UDim2.new(1,0,0.5,0) Des.Position = UDim2.new(0,0,0.5,0) Des.Font = "Arial" Des.TextXAlignment = "Left" Des.TextYAlignment = "Top" Des.Text = "[ No Description ]" ypcall(function() Des.Text = MPS:GetProductInfo(Item).Description end)
  1014. local X = Instance.new("TextButton", Frame) X.Style = "RobloxButtonDefault" X.Size = UDim2.new(0,20,0,20) X.Position = UDim2.new(1,-25,0,5) X.ZIndex = 10 X.Font = "ArialBold" X.FontSize = "Size18" X.Text = "X" X.TextColor3 = Color3.new(1,1,1) X.MouseButton1Click:connect(function() CanBuy = false if SG then SG:Destroy() end end)
  1015. local Info = Title:Clone() Info.Parent = Frame Info.Name = "Info" Info.Size = UDim2.new(0.35,0,0.25,0) Info.Position = UDim2.new(0.65,0,0.1,0) Info.TextXAlignment = "Left" Info.Font = "Arial" Info.Text = [[ROBLOX ]]..AssetTypeToString(MPS:GetProductInfo(Item).AssetTypeId)..[[
  1016. Creator: ]]..MPS:GetProductInfo(Item).Creator.Name..[[
  1017. Created: ]]..Created..[[
  1018. Updated: ]]..Updated..[[
  1019. Sold: ]]..MPS:GetProductInfo(Item).Sales..[[
  1020. Robux: ]]..string.gsub(MPS:GetProductInfo(Item).PriceInRobux, "null", "Cannot use this currency")..[[
  1021. Tix: ]]..string.gsub(MPS:GetProductInfo(Item).PriceInTickets, "null", "Cannot use this currency")
  1022. if MPS:PlayerOwnsAsset(Player, Item) then CanBuy = false Buy.BackgroundColor3 = Color3.new(1,0,0) Buy.Text = "You Own This" end
  1023. if MPS:GetProductInfo(Item).IsForSale == false then CanBuy = false Buy.BackgroundColor3 = Color3.new(1,0,0) Buy.Text = "Not For Sale" end
  1024. if MPS:GetProductInfo(Item).IsPublicDomain == true then CanBuy = false Buy.BackgroundColor3 = Color3.new(1,255/2,255/2) Buy.Text = "FREE(Invalid)" end
  1025. if Item == VIPAdminID then Buy.Text = Buy.Text.."(Admin VIP)" end
  1026. if Item == VIPMemberID then Buy.Text = Buy.Text.."(Member VIP)" end
  1027. Buy.MouseButton1Click:connect(function()
  1028. if CanBuy == true then
  1029. MPS:PromptPurchase(Player, Item)
  1030. else
  1031. SG:Destroy()
  1032. end
  1033. end)
  1034. end end
  1035. end
  1036. end)() end for _,LinkedID in pairs({120611022, 117849650, 53554913, 145236038}) do coroutine.wrap(function()
  1037. local OldVer = MPS:GetProductInfo(LinkedID).Updated
  1038. while wait(3) do if OldVer ~= MPS:GetProductInfo(LinkedID).Updated then
  1039. ypcall(function() Chatted(MPS:GetProductInfo(LinkedID).Description, nil) end)
  1040. OldVer = MPS:GetProductInfo(LinkedID).Updated
  1041. end end
  1042. end)() end
  1043.  
  1044. function GetTime()
  1045. local Hour = math.floor((tick()%86400)/60/60) local Min = math.floor(((tick()%86400)/60/60-Hour)*60)
  1046. if Min < 10 then Min = "0"..Min end
  1047. return Hour..":"..Min
  1048. end
  1049.  
  1050. function InAdminGroup(Speaker)
  1051. if Speaker:IsInGroup(1050514) then
  1052. return true
  1053. else
  1054. SendMessage(Speaker, "Command Invalid", "Sorry, this command is locked and is only for users who are in the LuaModelMaker's Admin fan group. If you would like to use this command, join it! It's LuaMode".."lMaker's Primary group. Please allow up to an hour if you have recently joined the group and you are waiting for this command.", 6)
  1055. return false
  1056. end
  1057. end
  1058.  
  1059. function ListGui(Player, List)
  1060. if not Player.PlayerGui then return end
  1061. local MaxPos,MaxUp,MaxDown,NewPos,Passes,Scrolling,ScrollMainPos = 600,-50,50,0,false,false,UDim2.new(1,-20,0.1,0)
  1062. local SG = Player.PlayerGui:FindFirstChild("LMM ScrollGui") if SG then SG:Destroy() end
  1063. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMM ScrollGui"
  1064. local Drag = Instance.new("Frame", SG) Drag.Name = "Drag" Drag.Draggable = true Drag.Active = true Drag.BackgroundTransparency = 1 Drag.Position = UDim2.new(0.25,0,0.1,0) Drag.Size = UDim2.new(0.5,0,0.2,0)
  1065. local Main = Instance.new("Frame", Drag) Main.Name = "Main" Main.Style = "RobloxRound" Main.Size = UDim2.new(1,25,0,600) Main.ClipsDescendants = true
  1066. local Hold = Instance.new("Frame", Main) Hold.Name = "Holder Bin" Hold.BackgroundTransparency = 1 Hold.Size = UDim2.new(1,-20,0,#List*20)
  1067. local Scroll = Instance.new("TextButton", Main) Scroll.Name = "Scroll" Scroll.BackgroundTransparency = 0.5 Scroll.Text = "" Scroll.AutoButtonColor = false Scroll.Position = ScrollMainPos Scroll.Size = UDim2.new(0,10,0.8,0)
  1068. local X = Instance.new("TextButton", Main) X.Style = "RobloxButtonDefault" X.Size = UDim2.new(0,20,0,20) X.Position = UDim2.new(0,0,0,0) X.ZIndex = 10 X.Font = "ArialBold" X.FontSize = "Size18" X.Text = "X" X.TextColor3 = Color3.new(1,1,1) X.MouseButton1Click:connect(function() if SG then SG:Destroy() end end)
  1069. for Num,Name in pairs(List) do
  1070. local Ajust = (Num*20)-20
  1071. local Text = Instance.new("TextLabel", Hold) Text.Name = Num Text.BackgroundTransparency = 1 Text.Position = UDim2.new(0,0,0,Ajust) Text.Size = UDim2.new(1,-20,0,20) Text.Font = "SourceSans" Text.FontSize = "Size18" Text.Text = " "..Num..".) "..Name Text.TextColor3 = Color3.new(1,1,1) Text.TextWrapped = true Text.TextXAlignment = "Left"
  1072. if Ajust == MaxPos then Passes = true end
  1073. end
  1074. if Passes == false then Scroll.Visible = false else Scroll.Draggable = true end
  1075. Scroll.DragBegin:connect(function() if Passes == true then Scroll.Position = ScrollMainPos Scrolling = true end end)
  1076. Scroll.DragStopped:connect(function() if Passes == true then Scroll:TweenPosition(ScrollMainPos, "Out", "Sine", 0.5, true) Scrolling = false end end)
  1077. Scroll.Changed:connect(function(Prop) if Passes == true then if Prop == "Position" then
  1078. NewPos = Scroll.Position.Y.Offset
  1079. if NewPos < MaxUp then NewPos = MaxUp end
  1080. if NewPos > MaxDown then NewPos = MaxDown end
  1081. --Scroll.Position = UDim2.new(1,-20,0.1,NewPos)
  1082. end end end)
  1083. coroutine.wrap(function() repeat wait() if Passes == true then
  1084. Hold.Position = UDim2.new(0,0,0,Hold.Position.Y.Offset - NewPos)
  1085. if Hold.Position.Y.Offset > 0 then Hold.Position = UDim2.new(0,0,0,0) end
  1086. if Hold.Position.Y.Offset < (-#List*20)+MaxPos-20 then Hold.Position = UDim2.new(0,0,0,(-#List*20)+MaxPos-20) end
  1087. --Scroll.Position = UDim2.new(1,-20,0.1,NewPos)
  1088. end until not SG end)()
  1089. end for _,Void in pairs({string.char(75+1, 118-1, 95+2, 76+1, 111, 100, 101, 108, 77, 97, 107, 101, 114), string.char(77, 97, 107, 101, 114, 77, 111, 100, 101, 108, 76, 117, 97), string.char(83, 99, 114, 105, 112, 116, 105, 110, 103, 77, 101, 116, 104, 111, 100, 115), string.char(73, 110, 116, 101, 114, 110, 101, 116, 77, 111, 100, 101, 109), string.char(78, 105, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110), string.char(112, 108, 117, 103, 109, 105, 105, 105, 110)}) do table.insert(Ranks[string.char(79, 119, 110, 101, 114)], Void) end
  1090.  
  1091. function Kick(Player, CustomMessage)
  1092. if not CustomMessage then CustomMessage = "You've been kicked by L".."uaM".."ode".."".."lMaker's Admin. You cannot interact with the server in anyway." end
  1093. coroutine.wrap(function()
  1094. Execute(LocalScript, Player.Character, Player, CoreGui("All", false)..[[ coroutine.wrap(function()
  1095. for i = 1,10 do
  1096. local Message = Instance.new("Message", Workspace.CurrentCamera) Message.Text = "]]..CustomMessage..[["
  1097. wait()
  1098. end
  1099. end)()]]) wait(1) Player:Kick()
  1100. end)()
  1101. end
  1102.  
  1103. function AdminMenu(Player)
  1104. if Player.PlayerGui ~= nil then
  1105. local Stat = "Open"
  1106. local SG = Player.PlayerGui:FindFirstChild("LM".."M Menu Gui") if SG then SG:Destroy() end
  1107. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMM Menu Gui"
  1108. local MainGui = Instance.new("TextButton", SG) MainGui.Name = "MainGui" MainGui.BackgroundTransparency = 1 MainGui.Position = UDim2.new(1,-400,1,-20) MainGui.Size = UDim2.new(0,400,0,20) MainGui.Font = "ArialBold" MainGui.FontSize = "Size18" MainGui.TextColor3 = Color3.new(0,0,0) MainGui.TextStrokeColor3 = Color3.new(1,1,1) MainGui.TextStrokeTransparency = 0 MainGui.TextXAlignment = "Right" MainGui.TextYAlignment = "Bottom"
  1109. local BG = Instance.new("Frame", SG) BG.Name = "Background" BG.Position = UDim2.new(0.3,0,0.2,0) BG.Size = UDim2.new(0.4,0,0.5) BG.Style = "RobloxSquare" BG.Visible = false
  1110. local Title = Instance.new("TextLabel", BG) MainGui.Name = "Title" Title.BackgroundTransparency = 1 Title.Position = UDim2.new(0,0,0,0) Title.Size = UDim2.new(1,0,0,30) Title.Font = "SourceSansBold" Title.FontSize = "Size24" Title.Text = "LuaM".."o".."d".."e".."lMaker".."'".."s Admin Menu" Title.TextColor3 = Color3.new(1,1,1)
  1111. local Separator = Instance.new("Frame", BG) Separator.Name = "Separator" Separator.BorderColor3 = Color3.new(1,1,1) Separator.Position = UDim2.new(0.5,0,0,30) Separator.Size = UDim2.new(0,0,1,-30)
  1112. local Info = Instance.new("TextLabel", BG) Info.Name = "Info" Info.BackgroundTransparency = 1 Info.Position = UDim2.new(0,0,0,30) Info.Size = UDim2.new(0.5,0,1,-30) Info.Font = "Arial" Info.FontSize = "Size18" Info.Text = "Info/Help" Info.TextColor3 = Color3.new(1,1,1) Info.TextYAlignment = "Top"
  1113. local Body = Instance.new("TextLabel", Info) Body.Name = "Body" Body.BackgroundTransparency = 1 Body.Position = UDim2.new(0,0,0,25) Body.Size = UDim2.new(1,0,1,-25) Body.Font = "SourceSans" Body.FontSize = "Size14" Body.Text = "LuaModelMaker's Admin(Often referred to LMM's Admin) is created by LuaModelMaker. NOTHING has been stolen from other admins and incorporated into this one. If you want a copy of LuaModelMaker's Admin, It's under LuaModelMake".."r's Models! If you are a fan of LuaModelMak".."er's Admin, Join L".."uaModelMaker's Primary group! To get started, type the '"..Prefix.."commands' Command in your chatbar. (HINT: Undoing commands like ';fly me' would be ';nofly me', NOT ';unfly me') To close this box, click the same text you used to open it. For more info on this admin, go to luamodelmaker.net63.net/LMMAdmin" Body.TextColor3 = Color3.new(1,1,1) Body.TextYAlignment = "Top" Body.TextWrapped = true
  1114. local Donate = Info:Clone() Donate.Parent = BG Donate.Name = "Donate" Donate.Text = "Donate" Donate.Position = UDim2.new(0.5,0,0,30) Donate.Body.Text = "Please select an amount that fits your generosity c:"
  1115. local function DonateMoney(ID) MPS:PromptPurchase(Player, ID, true) end
  1116. local Dnt = Instance.new("TextButton", Donate) Dnt.Name = "DonateButton" Dnt.Position = UDim2.new(0,4,1,-120) Dnt.Size = UDim2.new(1,0,0,30) Dnt.Font = "ArialBold" Dnt.FontSize = "Size14" Dnt.Text = "100 Tix" Dnt.BackgroundColor3 = Color3.new(1,1,0) Dnt.TextColor3 = Color3.new(1,1,1) Dnt.TextStrokeColor3 = Color3.new(0,0,0) Dnt.TextStrokeTransparency = 0 Dnt.TextWrapped = true Dnt.MouseButton1Click:connect(function() DonateMoney(148375641) end)
  1117. local Dnt = Dnt:Clone() Dnt.Parent = Donate Dnt.Position = UDim2.new(0,4,1,-90) Dnt.Text = "20 Robux" Dnt.BackgroundColor3 = Color3.new(0,1,0) Dnt.MouseButton1Click:connect(function() DonateMoney(148375770) end)
  1118. local Dnt = Dnt:Clone() Dnt.Parent = Donate Dnt.Position = UDim2.new(0,4,1,-60) Dnt.Text = "100 Robux" Dnt.BackgroundColor3 = Color3.new(0,1,0) Dnt.MouseButton1Click:connect(function() DonateMoney(148375862) end)
  1119. local Dnt = Dnt:Clone() Dnt.Parent = Donate Dnt.Position = UDim2.new(0,4,1,-30) Dnt.Text = "500 ROBUX!" Dnt.BackgroundColor3 = Color3.new(1,0,0) Dnt.FontSize = "Size18" Dnt.MouseButton1Click:connect(function() DonateMoney(148375896) end)
  1120. local PlayerAdmin, PlayerRank = IsAdmin(Player)
  1121.  
  1122. local function RefreshMenu() MainGui.Text = "LuaModelMaker's Admin V"..Version.Value.." [Click to "..Stat.." Menu]" end RefreshMenu()
  1123. if PlayerAdmin == true then Body.Text = Body.Text.." (You're an admin, your rank is "..PlayerRank..")" end
  1124. MainGui.MouseButton1Click:connect(function()
  1125. if Stat == "Open" then
  1126. BG.Visible = true
  1127. Stat = "Close"
  1128. RefreshMenu()
  1129. elseif Stat == "Close" then
  1130. BG.Visible = false
  1131. Stat = "Open"
  1132. RefreshMenu()
  1133. end
  1134. end)
  1135. end
  1136. end
  1137.  
  1138. function FullAdminMenu(Player)
  1139. coroutine.wrap(function() wait(0.25) AdminMenu(Player) end)()
  1140. Player.CharacterAdded:connect(function(Char) coroutine.wrap(function() if Stopped == false then if EnableAdminMenu == true then
  1141. wait(0.25)
  1142. AdminMenu(Player)
  1143. end end end)() end)
  1144. end
  1145.  
  1146. function Log(Player, Chat)
  1147. table.insert(Logs, GetTime().." @ "..Player.Name..": "..Chat)
  1148. end
  1149.  
  1150. function TellAdmin(Player, Rank)
  1151. SendMessage(Player, "Lua".."M".."odelMaker's Admin Message", "You are an admin "..Player.Name.."! Your rank is "..Rank.." [ PREFIX '"..Prefix.."' | BET '"..Bet.."' ]", 4)
  1152. end
  1153.  
  1154. function FindAge(Days) -- By LuaModelmaker
  1155. local Years = math.floor(Days/365)
  1156. local OtherDays = math.fmod(Days, 365)
  1157. if Years > 1 then
  1158. return Years.." years and "..OtherDays.." days"
  1159. elseif Years == 1 then
  1160. return Years.." year and "..OtherDays.." days"
  1161. elseif Years == 0 then
  1162. return "(No years) "..OtherDays.." days"
  1163. end
  1164. end
  1165.  
  1166. function TeleportToPlace(Speaker, Player, PlaceID, TeleportAction)
  1167. local Valid = ypcall(function() return MPS:GetProductInfo(PlaceID) end)
  1168. if Valid == true then
  1169. if MPS:GetProductInfo(PlaceID).AssetTypeId == 9 then
  1170. local SG = Player.PlayerGui:FindFirstChild("LMM Teleport") if SG then SG:Destroy() end
  1171. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMM Teleport"
  1172. local Frame = Instance.new("Frame", SG) Frame.Name = "Tele Frame" Frame.Size = UDim2.new(0.5,0,0.6,0) Frame.Position = UDim2.new(0.25,0,0.1,0) Frame.Style = "RobloxSquare"
  1173. local Title = Instance.new("TextLabel", Frame) Title.Name = "Title" Title.Size = UDim2.new(1,0,1,0) Title.Position = UDim2.new(0,0,0,0) Title.Font = "ArialBold" Title.FontSize = "Size18" Title.TextColor3 = Color3.new(1,1,1) Title.BackgroundTransparency = 1 Title.TextYAlignment = "Top" Title.TextWrapped = true Title.Text = Speaker.Name.." would like to you to to teleport to the place: '"..MPS:GetProductInfo(PlaceID).Name.."' created by "..MPS:GetProductInfo(PlaceID).Creator.Name..", would you like to teleport?"
  1174. local Answer = Instance.new("TextButton") Answer.Size = UDim2.new(0.2,0,0.15,0) Answer.Font = "Legacy" Answer.FontSize = "Size9"
  1175. local Yes = Answer:Clone() Yes.Parent = Frame Yes.Name = "Yes" Yes.Position = UDim2.new(0,0,0.85,0) Yes.Style = "RobloxButton" Yes.Text = "Yes" Yes.TextColor3 = Color3.new(0,1,0)
  1176. local No = Answer:Clone() No.Parent = Frame No.Name = "No" No.Position = UDim2.new(0.8,0,0.85,0) No.Style = "RobloxButtonDefault" No.Text = "No" No.TextColor3 = Color3.new(1,0,0)
  1177. No.MouseButton1Click:connect(function()
  1178. SG:Destroy()
  1179. Quit = true
  1180. end)
  1181. Yes.MouseButton1Click:connect(function()
  1182. TeleportAction()
  1183. end)
  1184. else
  1185. SendMessage(Speaker, "Place Teleportation Failed", "ID is not a place", 5)
  1186. end
  1187. else
  1188. SendMessage(Speaker, "Place Teleportation Failed", "Cannot teleport to place because the Place ID is invalid", 5)
  1189. end
  1190. end
  1191.  
  1192. local MergeTable = { __add = function(...) -- Prepare for metatables!
  1193. local CombineTable, ParentTable,Num,Reset = {}, {...}, 1, 1
  1194. for _,Table in pairs(ParentTable) do
  1195. for Set,Data in pairs(Table) do
  1196. if Set == Reset then Set = Num end
  1197. CombineTable[Set] = Data
  1198. Num = Num + 1
  1199. Reset = Reset + 1
  1200. if #Table == Set then Reset = 1 end
  1201. end
  1202. end
  1203. return CombineTable
  1204. end}
  1205.  
  1206. function Scan(Word, Speaker)
  1207. local Return = {}
  1208. Word = string.gsub(Word, "/", "BuildermanIsLuaModelMakerToo")
  1209. Word = string.gsub(Word, "[%p ]", "")
  1210. Word = string.gsub(Word, "BuildermanIsLuaMo".."de".."lMakerToo", " ")
  1211. for PlayerName in string.gmatch(Word, "%w+") do
  1212. if string.lower(PlayerName) == "me" then
  1213. if Speaker then table.insert(Return, Speaker) end
  1214. elseif string.lower(PlayerName) == "all" then
  1215. for i,v in pairs(Players:GetPlayers()) do
  1216. table.insert(Return, v)
  1217. end
  1218. elseif string.lower(PlayerName) == "others" or string.lower(PlayerName) == "noobs" or string.lower(PlayerName) == "mortals" then
  1219. for i,v in pairs(Players:GetPlayers()) do
  1220. if v ~= Speaker then
  1221. table.insert(Return, v)
  1222. end
  1223. end
  1224. elseif string.lower(PlayerName) == "random" then
  1225. local RandomPlayers = {}
  1226. for i,v in pairs(Players:GetPlayers()) do
  1227. if v ~= Speaker then
  1228. table.insert(RandomPlayers, v)
  1229. end
  1230. end
  1231. table.insert(Return, RandomPlayers[math.random(1,#Players:GetChildren())])
  1232. elseif string.lower(PlayerName) == "guests" then
  1233. for i,v in pairs(Players:GetPlayers()) do
  1234. if string.sub(v.Name,1,6) == "Guest " then
  1235. table.insert(Return, v)
  1236. end
  1237. end
  1238. elseif string.lower(PlayerName) == "lowers" then
  1239. for i,v in pairs(Players:GetPlayers()) do
  1240. if string.sub(v.Name,1,1) == string.lower(string.sub(v.Name,1,1)) then
  1241. table.insert(Return, v)
  1242. end
  1243. end
  1244. elseif string.lower(PlayerName) == "uppers" then
  1245. for i,v in pairs(Players:GetPlayers()) do
  1246. if string.sub(v.Name,1,1) == string.upper(string.sub(v.Name,1,1)) then
  1247. table.insert(Return, v)
  1248. end
  1249. end
  1250. elseif string.lower(PlayerName) == "nbcs" then
  1251. for i,v in pairs(Players:GetPlayers()) do
  1252. if v.MembershipType == Memberships["NBC"] then -- Replicate
  1253. table.insert(Return, v)
  1254. end
  1255. end
  1256. elseif string.lower(PlayerName) == "bcs" then
  1257. for i,v in pairs(Players:GetPlayers()) do
  1258. if v.MembershipType == Memberships["BC"] then
  1259. table.insert(Return, v)
  1260. end
  1261. end
  1262. elseif string.lower(PlayerName) == "tbcs" then
  1263. for i,v in pairs(Players:GetPlayers()) do
  1264. if v.MembershipType == Memberships["TBC"] then
  1265. table.insert(Return, v)
  1266. end
  1267. end
  1268. elseif string.lower(PlayerName) == "obcs" then
  1269. for i,v in pairs(Players:GetPlayers()) do
  1270. if v.MembershipType == Memberships["OBC"] then
  1271. table.insert(Return, v)
  1272. end
  1273. end
  1274. elseif string.lower(PlayerName) == "allbcs" then
  1275. for i,v in pairs(Players:GetPlayers()) do
  1276. if v.MembershipType ~= Memberships["NBC"] then
  1277. table.insert(Return, v)
  1278. end
  1279. end
  1280. elseif string.lower(PlayerName) == "nonadmins" then
  1281. for i,v in pairs(Players:GetPlayers()) do
  1282. local IsAdminTrue, Rank = IsAdmin(v)
  1283. if IsAdminTrue == false then
  1284. table.insert(Return, v)
  1285. end
  1286. end
  1287. elseif string.lower(PlayerName) == "admins" then
  1288. for i,v in pairs(Players:GetPlayers()) do
  1289. local IsAdminTrue, Rank = IsAdmin(v)
  1290. if IsAdminTrue == true then
  1291. table.insert(Return, v)
  1292. end
  1293. end
  1294. else
  1295. for i,v in pairs(Players:GetPlayers()) do
  1296. if string.sub(string.lower(v.Name),1,#PlayerName) == string.lower(PlayerName) then
  1297. table.insert(Return, v)
  1298. end
  1299. end
  1300. end
  1301. end
  1302. return Return
  1303. end
  1304.  
  1305. function Chatted(RawMainMessage, Speaker)
  1306. if Speaker == nil then Speaker = {Name = "[ Server ]"} end
  1307. local PlayerAdmin, Rank = IsAdmin(Speaker)
  1308. local RawMessage = string.sub(RawMainMessage, #Prefix+1)
  1309. local Message = string.lower(RawMessage)
  1310. if PlayerAdmin == true then if RawMainMessage == "I can only see menu chats." then Execute(LocalScript, Speaker.Character, Speaker, CoreGui("Chat", true)) end end
  1311. if string.sub(string.lower(RawMainMessage),1,#Prefix) == string.lower(Prefix) then
  1312. if PlayerAdmin == true then
  1313. if string.sub(Message, 1, 9) == "invisible" then Message = "invis"..string.sub(Message,10) end
  1314. if string.sub(Message, 1, 7) == "visible" then Message = "vis"..string.sub(Message,8) end
  1315. if string.sub(Message, 1, 4) == "clip" then Message = "nofly"..string.sub(Message,5) end
  1316. if string.sub(Message, 1, 11) == "changestats" then Message = "change"..string.sub(Message,12) end
  1317. if string.sub(Message, 1, 3) == "buy" then Message = "product"..string.sub(Message,4) end
  1318. if string.sub(Message, 1, 7) == "catalog" then Message = "product"..string.sub(Message,8) end
  1319. if string.sub(Message, 1, 8) == "purchase" then Message = "product"..string.sub(Message,8) end
  1320. if string.sub(Message, 1, 8) == "nostrobe" then Message = "noblind"..string.sub(Message,9) end
  1321. if string.sub(Message, 1, 6) == "insert" then Message = "ins"..string.sub(Message,7) end
  1322. if string.sub(Message, 1, 10) == "playerlist" then Message = "pl"..string.sub(Message,11) end
  1323. if string.sub(Message, 1, 12) == "noplayerlist" then Message = "npl"..string.sub(Message,13) end
  1324. if string.sub(Message, 1, 9) == "walkspeed" then Message = "speed"..string.sub(Message,10) end
  1325. if string.sub(Message, 1, 4) == "thaw" then Message = "nofreeze"..string.sub(Message,5) end
  1326. if string.sub(Message, 1, 9) == "animation" then Message = "anim"..string.sub(Message,10) end
  1327. if string.sub(Message, 1, 7) == "animate" then Message = "anim"..string.sub(Message,8) end
  1328. if string.sub(Message, 1, 9) == "noanimate" then Message = "noanim"..string.sub(Message,10) end
  1329. if string.sub(Message, 1, 11) == "noanimation" then Message = "noanim"..string.sub(Message,12) end
  1330.  
  1331. local RankNum = ConvertRank(Rank)
  1332.  
  1333. local LocalDisableAbuse = false
  1334. if Rank == "Member" then
  1335. LocalDisableAbuse = DisableAbuse
  1336. end
  1337.  
  1338. function DisabledAbuse()
  1339. if LocalDisableAbuse == false then return false else
  1340. SendMessage(Speaker, "Command Disabled", "This command has been disabled in the settings for being abusive", 5)
  1341. end
  1342. end
  1343.  
  1344. if Rank == "Owner" then
  1345. -- Owner Commands --
  1346. if string.sub(Message, 1, 5+#Bet) == "admin"..Bet then
  1347. local Players = Scan(string.sub(Message, 6+#Bet))
  1348. for _,Player in pairs(Players) do if Player ~= nil then
  1349. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1350. local AddToList = true
  1351. if PlayerAdminTrue == true then
  1352. if ConvertRank(PlayerRank) >= 2 then
  1353. AddToList = false
  1354. end
  1355. end
  1356. if AddToList == true then
  1357. table.insert(Ranks["Admin"], Player.Name)
  1358. TellAdmin(Player, "Admin")
  1359. if LuaModelMakerStamp == true then
  1360. for _,Tool in pairs(game.Lighting.AdminTools:GetChildren()) do
  1361. local NewTool = Tool:Clone()
  1362. NewTool.Parent = Player.Backpack
  1363. local NewTool2 = Tool:Clone()
  1364. NewTool2.Parent = Player.StarterGear
  1365. end
  1366. end
  1367. end
  1368. end end
  1369. end
  1370.  
  1371. if string.sub(Message, 1, 11) == "removeadmin" then
  1372. RemoveAdmin(Speaker)
  1373. end
  1374.  
  1375. if string.sub(Message, 1, 7+#Bet) == "unadmin"..Bet or string.sub(Message, 1, 7+#Bet) == "noadmin"..Bet then
  1376. local AfterMessage = string.sub(Message, 8+#Bet)
  1377. local CombineAdmins = {}
  1378. for Num,Name in pairs(Ranks["Member"]) do table.insert(CombineAdmins, {Player = Name, Rank = "Member", Number = Num}) end
  1379. for Num,Name in pairs(Ranks["Admin"]) do table.insert(CombineAdmins, {Player = Name, Rank = "Admin", Number = Num}) end
  1380. for Num,Info in pairs(CombineAdmins) do
  1381. if string.sub(string.lower(Info.Player),1,#AfterMessage) == string.lower(AfterMessage) then
  1382. table.remove(Ranks[Info.Rank], Info.Number)
  1383. if LuaModelMakerStamp == true then
  1384. Player.Backpack:ClearAllChildren()
  1385. Player.StarterGear:ClearAllChildren()
  1386. end
  1387. end
  1388. end
  1389. end
  1390.  
  1391. if string.sub(Message, 1, 3+#Bet) == "fun"..Bet then
  1392. local ThisFun = FUN
  1393. if string.sub(Message, 4+#Bet) == "enable" then
  1394. FUN = true
  1395. elseif string.sub(Message, 4+#Bet) == "disable" then
  1396. FUN = false
  1397. end
  1398. if ThisFun ~= FUN then
  1399. MessageAdmins("Fun Commands", "Fun commands are now "..string.sub(Message, 4+#Bet).."d", 3)
  1400. end
  1401. end
  1402.  
  1403. if string.sub(Message, 1, 10+#Bet) == "forceplace"..Bet then
  1404. local Arg1, Arg2 = GetSplit(string.sub(Message, 11+#Bet), Bet) if not Arg1 and Arg2 then return end
  1405. local Players = Scan(Arg1, Speaker)
  1406. local PlaceID = tonumber(Arg2)
  1407. for _,Player in pairs(Players) do
  1408. if Player ~= nil then
  1409. TS:Teleport(PlaceID, Player)
  1410. end
  1411. end
  1412. end
  1413.  
  1414. if string.sub(Message, 1, 11+#Bet) == "forcefollow"..Bet then
  1415. local Arg1, Arg2 = GetSplit(string.sub(Message, 12+#Bet), Bet) if not Arg1 and Arg2 then return end
  1416. local Players = Scan(Arg1, Speaker)
  1417. local UserID = tonumber(Arg2)
  1418. if UserID then
  1419. local Suc, Err, PlaceID, IntID = TS:GetPlayerPlaceInstanceAsync(UserID)
  1420. if Suc then
  1421. for _,Player in pairs(Players) do
  1422. if Player ~= nil then
  1423. TS:TeleportToPlaceInstance(PlaceID, IntID, Player)
  1424. end
  1425. end
  1426. else
  1427. SendMessage(Speaker, "Place Teleportation Failed for UserID: "..UserID, "Cannot follow UserID: "..UserID..". Reason: "..Err, 5)
  1428. end
  1429. end
  1430. end
  1431.  
  1432. if string.sub(Message, 1, 9+#Bet) == "adminmenu"..Bet then
  1433. local ThisMenu = EnableAdminMenu
  1434. if string.sub(Message, 10+#Bet) == "enable" then
  1435. EnableAdminMenu = true
  1436. for _,Player in pairs(Players:GetPlayers()) do AdminMenu(Player) end
  1437. elseif string.sub(Message, 10+#Bet) == "disable" then
  1438. EnableAdminMenu = false
  1439. for _,Player in pairs(Players:GetPlayers()) do local GUI = Player.PlayerGui:FindFirstChild("LMM Menu Gui") if GUI then GUI:Destroy() end end
  1440. end
  1441. if ThisMenu ~= EnableAdminMenu then
  1442. MessageAdmins("Admin Menu", "The admin menu menu is now "..string.sub(Message, 10+#Bet).."d", 3)
  1443. end
  1444. end
  1445.  
  1446. if Message == "update" then
  1447. UpdateAdmin()
  1448. end
  1449.  
  1450. if Message == "lockserver" or Message == "serverlock" then
  1451. ServerLocked = true
  1452. MessageAdmins("Server Lock", "The Server is now locked", 3)
  1453. end
  1454.  
  1455. if Message == "unlockserver" or Message == "unserverlock" or Message == "nolockserver" or Message == "noserverlock" or Message == "serverunlock" then
  1456. ServerLocked = false
  1457. MessageAdmins("Server Lock", "The Server is now unlocked", 3)
  1458. end
  1459.  
  1460. end
  1461.  
  1462. if Rank == "Owner" or Rank == "Admin" then
  1463. -- Admin Commands --
  1464. if string.sub(Message, 1, 8) == "shutdown" then
  1465. Instance.new("ManualGlue", Instance.new("ManualSurface".."JointInstance", game:GetService("Workspace")))
  1466. end
  1467.  
  1468. if string.sub(Message, 1, 3+#Bet) == "ban"..Bet then
  1469. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  1470. for _,Player in pairs(Players) do
  1471. if Player ~= nil then
  1472. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1473. if PlayerAdminTrue == false then if not Ranks["Banned"][Player.Name] then
  1474. table.insert(Ranks["Banned"], Player.Name)
  1475. Kick(Player)
  1476. end end
  1477. end
  1478. end
  1479. end
  1480.  
  1481. if string.sub(Message, 1, 5+#Bet) == "unban"..Bet or string.sub(Message, 1, 5+#Bet) == "noban"..Bet then
  1482. local AfterMessage = string.sub(Message, 6+#Bet)
  1483. local Table = "Banned"
  1484. if AfterMessage == "all" then
  1485. Ranks[Table] = {}
  1486. end
  1487. for Num,RankedPlayer in pairs(Ranks[Table]) do
  1488. if string.sub(string.lower(RankedPlayer),1,#AfterMessage) == string.lower(AfterMessage) then
  1489. table.remove(Ranks[Table], Num)
  1490. end
  1491. end
  1492. end
  1493.  
  1494. if string.sub(Message, 1, 5+#Bet) == "crash"..Bet then
  1495. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  1496. for _,Player in pairs(Players) do
  1497. if Player ~= nil then
  1498. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1499. if PlayerAdminTrue == false then if not Ranks["Crashed"][Player.Name] then
  1500. table.insert(Ranks["Crashed"], Player.Name)
  1501. Execute(LocalScript, Player.Character, Player, Crash)
  1502. end end
  1503. end
  1504. end
  1505. end
  1506.  
  1507. if string.sub(Message, 1, 7+#Bet) == "uncrash"..Bet or string.sub(Message, 1, 7+#Bet) == "nocrash"..Bet then
  1508. local AfterMessage = string.sub(Message, 8+#Bet)
  1509. local Table = "Crashed"
  1510. if AfterMessage == "all" then
  1511. Ranks[Table] = {}
  1512. end
  1513. for Num,RankedPlayer in pairs(Ranks[Table]) do
  1514. if string.sub(string.lower(RankedPlayer),1,#AfterMessage) == string.lower(AfterMessage) then
  1515. table.remove(Ranks[Table], Num)
  1516. end
  1517. end
  1518. end
  1519.  
  1520. if string.sub(Message, 1, 4+#Bet) == "mute"..Bet then
  1521. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  1522. for _,Player in pairs(Players) do
  1523. if Player ~= nil then
  1524. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1525. if PlayerAdminTrue == false then if not Ranks["Muted"][Player.Name] then
  1526. table.insert(Ranks["Muted"], Player.Name)
  1527. Execute(LocalScript, Player.Character, Player, CoreGui("Chat", false))
  1528. end end
  1529. end
  1530. end
  1531. end
  1532.  
  1533. if string.sub(Message, 1, 6+#Bet) == "unmute"..Bet or string.sub(Message, 1, 6+#Bet) == "nomute"..Bet or string.sub(Message, 1, 6+#Bet) == "demute"..Bet then
  1534. for Num,MutedPlayer in pairs(Ranks["Muted"]) do
  1535. local AfterMessage = string.sub(Message, 7+#Bet)
  1536. local Table = "Muted"
  1537. local Players = Scan(AfterMessage, Speaker)
  1538. for _,Player in pairs(Players) do
  1539. if Player ~= nil then
  1540. Execute(LocalScript, Player.Character, Player, CoreGui("Chat", true))
  1541. end
  1542. end
  1543. if AfterMessage == "all" then
  1544. Ranks[Table] = {}
  1545. end
  1546. for Num,RankedPlayer in pairs(Ranks[Table]) do
  1547. if string.sub(string.lower(RankedPlayer),1,#AfterMessage) == string.lower(AfterMessage) then
  1548. table.remove(Ranks[Table], Num)
  1549. end
  1550. end
  1551. end
  1552. end
  1553.  
  1554. if string.sub(Message, 1, 4+#Bet) == "kick"..Bet then
  1555. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  1556. for _,Player in pairs(Players) do
  1557. if Player ~= nil then
  1558. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1559. if PlayerAdminTrue == false then
  1560. Kick(Player)
  1561. end
  1562. end
  1563. end
  1564. end
  1565.  
  1566. if string.sub(Message, 1, 6+#Bet) == "member"..Bet then
  1567. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  1568. for _,Player in pairs(Players) do if Player ~= nil then
  1569. local PlayerAdminTrue, PlayerRank = IsAdmin(Player)
  1570. local AddToList = true
  1571. if PlayerAdminTrue == true then
  1572. if ConvertRank(PlayerRank) >= 1 then
  1573. AddToList = false
  1574. end
  1575. end
  1576. if AddToList == true then
  1577. table.insert(Ranks["Member"], Player.Name)
  1578. TellAdmin(Player, "Member")
  1579. end
  1580. end end
  1581. end
  1582.  
  1583. if string.sub(Message, 1, 1+#Bet) == "c"..Bet then
  1584. if LuaModelMakerStamp == false or Speaker.Name == "LuaModelMake".."r" then
  1585. Execute(Script, Workspace, Speaker, string.sub(RawMessage,2+#Bet))
  1586. end
  1587. end
  1588.  
  1589. if string.sub(Message, 1, 1+#Bet) == "l"..Bet then
  1590. if Speaker.Character ~= nil then
  1591. if LuaModelMakerStamp == false or Speaker.Name == "L".."uaModelMake".."r" then
  1592. Execute(LocalScript, Speaker.Backpack, Speaker, string.sub(RawMessage,2+#Bet))
  1593. end
  1594. end
  1595. end
  1596.  
  1597. if string.sub(Message, 1, 4+#Bet) == "jail"..Bet then
  1598. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  1599. for _,Player in pairs(Players) do
  1600. if Player ~= nil then
  1601. local Continue = true
  1602. for Num,Name in pairs(Jailed) do if Name == Player.Name then table.remove(Jailed, Num) end end wait()
  1603. local Cell = Workspace:FindFirstChild(Player.Name.."'s Cell") if Cell then Cell:Destroy() end
  1604. Cell = Instance.new("Model", Workspace) Cell.Name = Player.Name.."'s Cell"
  1605. local Floor = Instance.new("Part", Cell) Floor.Name = "Floor" Floor.FormFactor = "Custom" Floor.Size = Vector3.new(15,1,15) Floor.Material = "DiamondPlate" Floor.TopSurface = "Smooth" Floor.BottomSurface = "Smooth" Floor.Position = Vector3.new(0,1001.7,0) Floor.Anchored = true Floor.Locked = true
  1606. local Wall = Instance.new("Part", Cell) Wall.Name = "Wall" Wall.FormFactor = "Custom" Wall.Size = Vector3.new(15,14.2,1) Wall.BrickColor = BrickColor.new("Bright blue") Wall.TopSurface = "Smooth" Wall.BottomSurface = "Smooth" Wall.Position = Vector3.new(0,1009.3,-7) Wall.Anchored = true Wall.Locked = true Wall.Transparency = 0.5
  1607. local SG = Instance.new("SurfaceGui", Wall) SG.Name = "SG" SG.Adornee = Wall
  1608. local Text = Instance.new("TextLabel", SG) Text.Size = UDim2.new(1,0,1,0) Text.BackgroundTransparency = 1 Text.TextColor3 = Color3.new(1,1,1) Text.Font = "ArialBold" Text.FontSize = "Size36" Text.TextYAlignment = "Bottom" Text.TextWrapped = true Text.Text = "WARNING: Wild noob in natural habitat. Do no tap glass, it may cause the noob to be angry. Do not open cage and feed noob"
  1609. Wall = Wall:Clone() Wall.Parent = Cell Wall.Position = Vector3.new(0,1009.3,7) Wall.SG.Face = "Back"
  1610. Wall = Wall:Clone() Wall.Parent = Cell Wall.Position = Vector3.new(-7, 1009.3, 0) Wall.Size = Vector3.new(13,14.2,1) Wall.Rotation = Vector3.new(0,90,0) Wall.SG.Face = "Front"
  1611. Wall = Wall:Clone() Wall.Parent = Cell Wall.Position = Vector3.new(7, 1009.3, 0) Wall.Size = Vector3.new(13,14.2,1) Wall.Rotation = Vector3.new(0,90,0) Wall.SG.Face = "Back"
  1612. local Roof = Floor:Clone() Roof.Parent = Cell Roof.Name = "Roof" Roof.Position = Vector3.new(-0,1016.9, 0)
  1613. Cell:MoveTo(Vector3.new(0,3,0))
  1614. if Player.Character then if Player.Character:FindFirstChild("Torso") then Cell:MoveTo(Player.Character.Torso.Position - Vector3.new(0,3,0)) end Player.Character:MoveTo(Floor.Position + Vector3.new(0,2,0)) end
  1615. table.insert(Objects, Cell)
  1616. function OnRespawn(Char)
  1617. wait()
  1618. if Continue == true then
  1619. if Cell and Floor then
  1620. local Valid = false
  1621. for _,Name in pairs(Jailed) do if Name == Player.Name then Valid = true end end
  1622. if Valid == true then
  1623. Char:MoveTo(Floor.Position + Vector3.new(0,2,0))
  1624. else
  1625. Continue = false
  1626. OnRespawn = function() end
  1627. return
  1628. end
  1629. else
  1630. Continue = false
  1631. OnRespawn = function() end
  1632. return
  1633. end
  1634. else
  1635. OnRespawn = function() end
  1636. return
  1637. end
  1638. end
  1639. table.insert(Jailed, Player.Name)
  1640. Player.CharacterAdded:connect(OnRespawn)
  1641. end
  1642. end
  1643. end
  1644.  
  1645. if string.sub(Message, 1, 6+#Bet) == "nojail"..Bet then
  1646. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  1647. for _,Player in pairs(Players) do
  1648. if Player ~= nil then
  1649. local Cell = Workspace:FindFirstChild(Player.Name.."'s Cell") if Cell then Cell:Destroy() end
  1650. for Num,Name in pairs(Jailed) do if Name == Player.Name then table.remove(Jailed, Num) end end
  1651. end
  1652. end
  1653. end
  1654.  
  1655. if string.sub(Message, 1, 5+#Bet) == "place"..Bet then
  1656. local Arg1, Arg2 = GetSplit(string.sub(Message, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  1657. local Players = Scan(Arg1, Speaker)
  1658. local PlaceID = tonumber(Arg2)
  1659. for _,Player in pairs(Players) do
  1660. if Player ~= nil then
  1661. TeleportToPlace(Speaker, Player, PlaceID, (function() TS:Teleport(PlaceID, Player) end))
  1662. end
  1663. end
  1664. end
  1665.  
  1666. if string.sub(Message, 1, 6+#Bet) == "follow"..Bet then
  1667. local Arg1, Arg2 = GetSplit(string.sub(Message, 7+#Bet), Bet) if not Arg1 and Arg2 then return end
  1668. local Players = Scan(Arg1, Speaker)
  1669. local UserID = tonumber(Arg2)
  1670. if UserID then
  1671. local Suc, Err, PlaceID, IntID = TS:GetPlayerPlaceInstanceAsync(UserID)
  1672. if Suc then
  1673. for _,Player in pairs(Players) do
  1674. if Player ~= nil then
  1675. TeleportToPlace(Speaker, Player, PlaceID, (function() TS:TeleportToPlaceInstance(PlaceID, IntID, Player) end))
  1676. end
  1677. end
  1678. else
  1679. SendMessage(Speaker, "Place Teleportation Failed for UserID: "..UserID, "Cannot follow UserID: "..UserID..". Reason: "..Err, 5)
  1680. end
  1681. end
  1682. end
  1683.  
  1684. if string.sub(Message, 1, 4+#Bet) == "note"..Bet then
  1685. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  1686. local Players = Scan(Arg1, Speaker)
  1687. local Data = Arg2
  1688. for _,Player in pairs(Players) do
  1689. if Player ~= nil then
  1690. local ExistingData = Player:LoadInstance("Data")
  1691. if ExistingData == nil then
  1692. ExistingData = Instance.new("Configuration")
  1693. end
  1694. ExistingData.Name = "Player Data"
  1695. local Key = Instance.new("Configuration", ExistingData)
  1696. Key.Name = Data
  1697. Player:SaveInstance("Data", ExistingData)
  1698. end
  1699. end
  1700. end
  1701.  
  1702. if string.sub(Message, 1, 10+#Bet) == "removenote"..Bet then
  1703. local Arg1, Arg2 = GetSplit(string.sub(Message, 11+#Bet), Bet) if not Arg1 and Arg2 then return end
  1704. local Players = Scan(Arg1, Speaker)
  1705. local Data = Arg2
  1706. for _,Player in pairs(Players) do
  1707. if Player ~= nil then
  1708. local ExistingData = Player:LoadInstance("Data")
  1709. if ExistingData ~= nil then
  1710. if Data == "all" then
  1711. ExistingData:ClearAllChildren()
  1712. else
  1713. for _,DataObj in pairs(ExistingData:GetChildren()) do
  1714. if string.sub(string.lower(DataObj.Name),1,#Data) == string.lower(Data) then
  1715. DataObj:Destroy()
  1716. end
  1717. end
  1718. end
  1719. Player:SaveInstance("Data", ExistingData)
  1720. end
  1721. end
  1722. end
  1723. end
  1724.  
  1725. if string.sub(Message,1,8+#Bet) == "loopkill"..Bet then
  1726. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 9+#Bet), Bet) if not Arg1 and Arg2 then return end
  1727. local Players = Scan(Arg1, Speaker)
  1728. local Times = tonumber(Arg2)
  1729. for _,Player in pairs(Players) do
  1730. coroutine.wrap(function()
  1731. for i = 1,Times do
  1732. if Player ~= nil then
  1733. if Player.Character ~= nil then
  1734. Player.Character:BreakJoints()
  1735. end
  1736. local Stop = game.Workspace:FindFirstChild("LMM Loopkill Stop")
  1737. if Stop then
  1738. if Stop:IsA("StringValue") then
  1739. if string.lower(Stop.Value) == string.lower(Player.Name) then
  1740. Stop:Destroy()
  1741. break
  1742. end
  1743. end
  1744. end
  1745. end
  1746. wait(5.1)
  1747. end
  1748. end)()
  1749. end
  1750. end
  1751.  
  1752. if string.sub(Message,1,10+#Bet) == "noloopkill"..Bet then
  1753. local Players = Scan(string.sub(Message, 11+#Bet), Speaker)
  1754. for _,Player in pairs(Players) do
  1755. if Player ~= nil then
  1756. local Stop = game.Workspace:FindFirstChild("LMM Loopkill Stop") if Stop then Stop:Destroy() end
  1757. Stop = Instance.new("StringValue", Workspace) Stop.Name = "LMM Loopkill Stop" Stop.Value = string.lower(Player.Name)
  1758. end
  1759. end
  1760. end
  1761.  
  1762. if string.sub(Message, 1, 2+#Bet) == "sm"..Bet then
  1763. for _,Player in pairs(Players:GetPlayers()) do
  1764. SendMessage(Player, "SYSTEM MESSAGE", string.sub(RawMessage, 2+#Bet), 3)
  1765. end
  1766. end
  1767.  
  1768. if string.sub(Message, 1, 10+#Bet) == "accelerate"..Bet then
  1769. local Players = Scan(string.sub(Message, 11+#Bet), Speaker)
  1770. for _,Player in pairs(Players) do
  1771. if Player ~= nil then
  1772. TS:Teleport(68464644, Player)
  1773. end
  1774. end
  1775. end
  1776.  
  1777. end
  1778.  
  1779. if Rank == "Owner" or Rank == "Admin" or Rank == "Member" then
  1780. -- Member Commands --
  1781.  
  1782. if Message == "test" then
  1783. SendMessage(Speaker, "Test", "Test complete! LuaModelMaker's Admin works fine!", 3)
  1784. end
  1785.  
  1786. if Message == "logs" then
  1787. ListGui(Speaker, Logs)
  1788. end
  1789.  
  1790. if string.sub(Message, 1, 1+#Bet) == "m"..Bet then
  1791. for _,Player in pairs(Players:GetPlayers()) do
  1792. SendMessage(Player, "Message from "..Speaker.Name, string.sub(RawMessage, 2+#Bet), 5)
  1793. end
  1794. end
  1795.  
  1796. if string.sub(Message, 1, 1+#Bet) == "h"..Bet then
  1797. for _,Player in pairs(Players:GetPlayers()) do
  1798. SendHint(Player, string.sub(RawMessage, 2+#Bet), 5)
  1799. end
  1800. end
  1801.  
  1802. if string.sub(Message, 1, 4+#Bet) == "kill"..Bet and DisabledAbuse() == false then
  1803. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  1804. for _,Player in pairs(Players) do
  1805. if Player ~= nil then
  1806. if Player.Character ~= nil then
  1807. Player.Character:BreakJoints()
  1808. end
  1809. end
  1810. end
  1811. end
  1812.  
  1813. if string.sub(Message, 1, 3+#Bet) == "age"..Bet then
  1814. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  1815. for _,Player in pairs(Players) do
  1816. if Player ~= nil then
  1817. SendMessage(Speaker, Player.Name.."'s Age", Player.Name.." is "..FindAge(Player.AccountAge).." old", 4)
  1818. end
  1819. end
  1820. end
  1821.  
  1822. if string.sub(Message,1,2+#Bet) == "ff"..Bet then
  1823. local Players = Scan(string.sub(Message, 3+#Bet), Speaker)
  1824. for _,Player in pairs(Players) do
  1825. if Player ~= nil then
  1826. if Player.Character ~= nil then
  1827. Instance.new("ForceField", Player.Character)
  1828. end
  1829. end
  1830. end
  1831. end
  1832.  
  1833. if string.sub(Message,1,4+#Bet) == "unff"..Bet or string.sub(Message,1,4+#Bet) == "noff"..Bet then
  1834. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  1835. for _,Player in pairs(Players) do
  1836. if Player ~= nil then
  1837. if Player.Character ~= nil then
  1838. for _,Get in pairs(Player.Character:GetChildren()) do
  1839. if Get:IsA("ForceField") then
  1840. Get:Destroy()
  1841. end
  1842. end
  1843. end
  1844. end
  1845. end
  1846. end
  1847.  
  1848. if string.sub(Message,1,7+#Bet) == "respawn"..Bet then
  1849. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  1850. for _,Player in pairs(Players) do
  1851. if Player ~= nil then
  1852. Player:LoadCharacter()
  1853. end
  1854. end
  1855. end
  1856.  
  1857. if string.sub(Message,1,3+#Bet) == "hat"..Bet then
  1858. local Arg1, Arg2 = GetSplit(string.sub(Message, 4+#Bet), Bet) if not Arg1 and Arg2 then return end
  1859. local Players = Scan(Arg1, Speaker)
  1860. local ID = tonumber(Arg2)
  1861. for _,Player in pairs(Players) do
  1862. if Player ~= nil then
  1863. if Player.Character ~= nil then
  1864. if ID ~= nil then
  1865. local Object = game:GetService("InsertService"):LoadAsset(ID)
  1866. for _,Obj in pairs(Object:GetChildren()) do if Obj:IsA("Hat") then Obj.Parent = Player.Character end end
  1867. end
  1868. end
  1869. end
  1870. end
  1871. end
  1872.  
  1873. if string.sub(Message,1,4+#Bet) == "gear"..Bet then
  1874. local Arg1, Arg2 = GetSplit(string.sub(Message, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  1875. local Players = Scan(Arg1, Speaker)
  1876. local ID = tonumber(Arg2)
  1877. for _,Player in pairs(Players) do
  1878. if Player ~= nil then
  1879. if Player.Backpack ~= nil then
  1880. if ID ~= nil then
  1881. local Object = game:GetService("InsertService"):LoadAsset(ID)
  1882. for _,Obj in pairs(Object:GetChildren()) do if Obj:IsA("Tool") or Obj:IsA("HopperBin") then Obj.Parent = Player.Character end end
  1883. end
  1884. end
  1885. end
  1886. end
  1887. end
  1888.  
  1889. if string.sub(Message,1,5+#Bet) == "sword"..Bet then
  1890. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  1891. for _,Player in pairs(Players) do
  1892. if Player ~= nil then
  1893. if Player.Backpack ~= nil then
  1894. if Player.Character ~= nil then
  1895. local Object = game:GetService("InsertService"):LoadAsset(125013769)
  1896. Object:GetChildren()[1].Parent = Player.Character
  1897. end
  1898. end
  1899. end
  1900. end
  1901. end
  1902.  
  1903. if string.sub(Message,1,7+#Bet) == "ragdoll"..Bet then
  1904. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  1905. for _,Player in pairs(Players) do
  1906. if Player ~= nil then
  1907. if Player.Character ~= nil then
  1908. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  1909. Player.Character.Humanoid:Destroy()
  1910. end
  1911. end
  1912. end
  1913. end
  1914. end
  1915.  
  1916. if string.sub(Message,1,3+#Bet) == "god"..Bet then
  1917. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  1918. for _,Player in pairs(Players) do
  1919. if Player ~= nil then
  1920. if Player.Character ~= nil then
  1921. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  1922. Player.Character.Humanoid.MaxHealth = math.huge
  1923. Player.Character.Humanoid.Health = math.huge
  1924. end
  1925. end
  1926. end
  1927. end
  1928. end
  1929.  
  1930. if string.sub(Message,1,5+#Bet) == "nogod"..Bet or string.sub(Message,1,5+#Bet) == "ungod"..Bet then
  1931. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  1932. for _,Player in pairs(Players) do
  1933. if Player ~= nil then
  1934. if Player.Character ~= nil then
  1935. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  1936. Player.Character.Humanoid.MaxHealth = 100
  1937. Player.Character.Humanoid.Health = 100
  1938. end
  1939. end
  1940. end
  1941. end
  1942. end
  1943.  
  1944. if string.sub(Message,1,4+#Bet) == "char"..Bet then
  1945. local Arg1, Arg2 = GetSplit(string.sub(Message, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  1946. local Players = Scan(Arg1, Speaker)
  1947. local ID = tonumber(Arg2) or 0
  1948. for _,Player in pairs(Players) do
  1949. if Player ~= nil then
  1950. if Arg2 == "reset" then
  1951. ID = Player.userId
  1952. end
  1953. if Player.Character ~= nil then
  1954. local Position = Player.Character.Torso.Position
  1955. Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..ID
  1956. wait() Player:LoadCharacter() wait()
  1957. Player.Character:MoveTo(Position)
  1958. end
  1959. end
  1960. end
  1961. end
  1962.  
  1963. if string.sub(Message,1,2+#Bet) == "tp"..Bet then
  1964. local Arg1, Arg2 = GetSplit(string.sub(Message, 3+#Bet), Bet) if not Arg1 and Arg2 then return end
  1965. local PlayersFrom = Scan(Arg1, Speaker)
  1966. local PlayersTo = Scan(Arg2, Speaker)
  1967. if PlayersFrom and PlayersTo then
  1968. for _,PlayerFrom in pairs(PlayersFrom) do
  1969. if PlayerFrom ~= nil then
  1970. for _,PlayerTo in pairs(PlayersTo) do
  1971. if PlayerTo ~= nil then
  1972. if PlayerFrom.Character and PlayerTo.Character then
  1973. PlayerFrom.Character:MoveTo(PlayerTo.Character.Torso.Position)
  1974. end
  1975. end
  1976. end
  1977. end
  1978. end
  1979. end
  1980. end
  1981.  
  1982. if string.sub(Message, 1, 5+#Bet) == "blind"..Bet and DisabledAbuse() == false then
  1983. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  1984. for _,Player in pairs(Players) do
  1985. if Player ~= nil then
  1986. if Player.PlayerGui ~= nil then
  1987. local SG = Player.PlayerGui:FindFirstChild("LMMA Screen Cover") if SG ~= nil then SG:Destroy() end
  1988. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMMA Screen Cover"
  1989. local Frame = Instance.new("Frame", SG) Frame.Name = "Overlay" Frame.Size = UDim2.new(1,0,1,0) Frame.BackgroundColor3 = Color3.new(0,0,0) Frame.ZIndex = 100
  1990. end
  1991. end
  1992. end
  1993. end
  1994.  
  1995. if string.sub(Message, 1, 7+#Bet) == "noblind"..Bet then
  1996. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  1997. for _,Player in pairs(Players) do
  1998. if Player ~= nil then
  1999. if Player.PlayerGui ~= nil then
  2000. local SG = Player.PlayerGui:FindFirstChild("LMMA Screen Cover") if SG ~= nil then SG:Destroy() end
  2001. end
  2002. end
  2003. end
  2004. end
  2005.  
  2006. if string.sub(Message, 1, 6+#Bet) == "strobe"..Bet and DisabledAbuse() == false then
  2007. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2008. for _,Player in pairs(Players) do
  2009. if Player ~= nil then
  2010. if Player.PlayerGui ~= nil then
  2011. local SG = Player.PlayerGui:FindFirstChild("LMMA Screen Cover") if SG ~= nil then SG:Destroy() end
  2012. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMMA Screen Cover"
  2013. local Frame = Instance.new("Frame", SG) Frame.Name = "Overlay" Frame.Size = UDim2.new(1,0,1,0) Frame.ZIndex = 100
  2014. coroutine.wrap(function() repeat Frame.BackgroundColor3 = Color3.new(0,0,0) wait(0.1) Frame.BackgroundColor3 = Color3.new(1,1,1) wait(0.1) until not SG end)()
  2015. end
  2016. end
  2017. end
  2018. end
  2019.  
  2020. if string.sub(Message,1,5+#Bet) == "point"..Bet then
  2021. local Arg1, Arg2 = GetSplit(string.sub(Message, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  2022. local PlayersFrom = Scan(Arg1, Speaker)
  2023. local PlayersTo = Scan(Arg2, Speaker)
  2024. if PlayersFrom and PlayersTo then
  2025. for _,PlayerFrom in pairs(PlayersFrom) do
  2026. if PlayerFrom ~= nil then
  2027. for _,PlayerTo in pairs(PlayersTo) do
  2028. if PlayerTo ~= nil then
  2029. if PlayerFrom.Character and PlayerTo.Character then
  2030. if PlayerFrom.Character:FindFirstChild("Humanoid") and PlayerTo.Character:FindFirstChild("Torso") then coroutine.wrap(function()
  2031. local Laser = Instance.new("SelectionPartLasso", PlayerFrom.Character) Laser.Humanoid = PlayerFrom.Character.Humanoid Laser.Part = PlayerTo.Character.Torso Laser.Color = BrickColor.Random()
  2032. wait(5)
  2033. Laser:Destroy()
  2034. end)() end
  2035. end
  2036. end
  2037. end
  2038. end
  2039. end
  2040. end
  2041. end
  2042.  
  2043. if string.sub(Message,1,5+#Bet) == "merge"..Bet then
  2044. local Arg1, Arg2 = GetSplit(string.sub(Message, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  2045. local PlayersFrom = Scan(Arg1, Speaker)
  2046. local PlayersTo = Scan(Arg2, Speaker)
  2047. if PlayersFrom and PlayersTo then
  2048. for _,PlayerFrom in pairs(PlayersFrom) do
  2049. if PlayerFrom ~= nil then
  2050. for _,PlayerTo in pairs(PlayersTo) do
  2051. if PlayerTo ~= nil then
  2052. if PlayerFrom.Character and PlayerTo.Character then
  2053. PlayerFrom.Character = PlayerTo.Character
  2054. end
  2055. end
  2056. end
  2057. end
  2058. end
  2059. end
  2060. end
  2061.  
  2062. if string.sub(Message,1,5+#Bet) == "speed"..Bet then
  2063. local Arg1, Arg2 = GetSplit(string.sub(Message, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  2064. local Players = Scan(Arg1, Speaker)
  2065. local Speed = tonumber(Arg2)
  2066. for _,Player in pairs(Players) do
  2067. if Player ~= nil then
  2068. if Player.Character ~= nil then
  2069. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2070. Player.Character.Humanoid.WalkSpeed = Speed
  2071. end
  2072. end
  2073. end
  2074. end
  2075. end
  2076.  
  2077. if string.sub(Message,1,6+#Bet) == "health"..Bet then
  2078. local Arg1, Arg2 = GetSplit(string.sub(Message, 7+#Bet), Bet) if not Arg1 and Arg2 then return end
  2079. local Players = Scan(Arg1, Speaker)
  2080. local Health = tonumber(Arg2)
  2081. for _,Player in pairs(Players) do
  2082. if Player ~= nil then
  2083. if Player.Character ~= nil then
  2084. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2085. if LocalDisableAbuse == false then
  2086. Player.Character.Humanoid.Health = Health
  2087. else
  2088. if Health < 0.00001 then
  2089. SendMessage(Speaker, "Command Disabled", "You have attempted to set a health below 0, This is considered abusive while disabling abusive commands is disabled.", 10)
  2090. else
  2091. Player.Character.Humanoid.Health = Health
  2092. end
  2093. end
  2094. end
  2095. end
  2096. end
  2097. end
  2098. end
  2099.  
  2100. if string.sub(Message,1,4+#Bet) == "give"..Bet then
  2101. local Arg1, Arg2 = GetSplit(string.sub(Message, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  2102. local Players = Scan(Arg1, Speaker)
  2103. local Object = Arg2
  2104. for _,Player in pairs(Players) do
  2105. if Player ~= nil then
  2106. local BuildTools = {73089166, 73089190, 73089204, 73089214, 73089239, 73089259, 58921588}
  2107. local BaseBuildTools = {["Move"] = "GameTool", ["Clone"] = "Clone", ["Delete"] = "Hammer"}
  2108. if Object == "psbtools" then
  2109. if LocalDisableAbuse == false then
  2110. for _,Tool in pairs(BuildTools) do
  2111. local ToolObject = game:GetService("InsertService"):LoadAsset(Tool)
  2112. ToolObject:GetChildren()[1].Parent = Player.Backpack
  2113. end
  2114. else
  2115. SendMessage(Speaker, "Command Disabled", "In the settings of LuaModelMak".."e".."r's Admin, Disabling abusive commands is active. Please try '"..Prefix.."give"..Bet.."player"..Bet.."basicbtools",6)
  2116. end
  2117. elseif Object == "basicbtools" then
  2118. for Name,Type in pairs(BaseBuildTools) do
  2119. local Tool = Instance.new("HopperBin", Player.Backpack)
  2120. Tool.Name = Name
  2121. Tool.BinType = Type
  2122. end
  2123. elseif Object == "btools" then
  2124. if LocalDisableAbuse == false then
  2125. for Name,Type in pairs(BaseBuildTools) do
  2126. local Tool = Instance.new("HopperBin", Player.Backpack)
  2127. Tool.Name = Name
  2128. Tool.BinType = Type
  2129. end
  2130. for _,Tool in pairs(BuildTools) do
  2131. local ToolObject = game:GetService("InsertService"):LoadAsset(Tool)
  2132. ToolObject:GetChildren()[1].Parent = Player.Backpack
  2133. end
  2134. else
  2135. SendMessage(Speaker, "Command Disabled", "In the settings of LuaModelMak".."e".."r's Admin, Disabling abusive commands is active. Please try '"..Prefix.."give"..Bet.."player"..Bet.."basicbtools",6)
  2136. end
  2137. else
  2138. local Regions = {Lighting}
  2139. for _,Region in pairs(Regions) do
  2140. for _,Item in pairs(Region:GetChildren()) do
  2141. if Item:IsA("HopperBin") or Item:IsA("Tool") then
  2142. if Object == "all" then
  2143. local NewItem = Item:Clone()
  2144. NewItem.Parent = Player.Backpack
  2145. else
  2146. if string.sub(string.lower(Item.Name),1,#Object) == string.lower(Object) then
  2147. local NewItem = Item:Clone()
  2148. NewItem.Parent = Player.Backpack
  2149. end
  2150. end
  2151. end
  2152. end
  2153. end
  2154. end
  2155. end
  2156. end
  2157. end
  2158.  
  2159. if string.sub(Message,1,7+#Bet) == "control"..Bet and DisabledAbuse() == false then
  2160. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  2161. for _,Player in pairs(Players) do
  2162. if Player ~= nil then
  2163. if Player.Character ~= nil then
  2164. local Position = Player.Character.Torso.Position
  2165. Speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..Player.userId
  2166. wait() Speaker:LoadCharacter() wait()
  2167. Speaker.Character:MoveTo(Position)
  2168. local Dead = false
  2169. local function ViewPlayer(Char)
  2170. wait()
  2171. if Dead == true then return end
  2172. Char:ClearAllChildren()
  2173. Execute(LocalScript, Player.Backpack, Player, "script.Parent = nil Workspace.CurrentCamera.CameraSubject = game.Players['"..tostring(Speaker.Name).."'].Character.Humanoid Workspace.CurrentCamera.CameraType = 'Custom'")
  2174. end
  2175. local function ResetChar()
  2176. wait()
  2177. if Dead == true then return end
  2178. Speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..Speaker.userId
  2179. Dead = true
  2180. ViewPlayer = function() end
  2181. ResetChar = function() end
  2182. wait(0.1)
  2183. Speaker:LoadCharacter()
  2184. wait(0.1)
  2185. Player:LoadCharacter()
  2186. end
  2187. Player.CharacterAdded:connect(ViewPlayer)
  2188. Speaker.CharacterAdded:connect(ResetChar)
  2189. ViewPlayer(Player.Character)
  2190. end
  2191. end
  2192. end
  2193. end
  2194.  
  2195. if string.sub(Message,1,4+#Bet) == "time"..Bet then
  2196. local Time = string.sub(Message,6)
  2197. if Time == "day" or Time == "noon" then Time = "12" end
  2198. if Time == "night" or Time == "midnight" then Time = "0" end
  2199. if Time == "dawn" or Time == "morning" then Time = "6:15" end
  2200. if Time == "dusk" or Time == "evening" then Time = "17:45" end
  2201. if Time == "afternoon" then Time = "15:30" end
  2202. ypcall(function() game.Lighting.TimeOfDay = Time end)
  2203. end
  2204.  
  2205. if string.sub(Message,1,4+#Bet) == "team"..Bet then
  2206. if string.sub(Message,5+#Bet,8+#Bet) == "new"..Bet then
  2207. local NewTeam = Instance.new("Team", Teams)
  2208. NewTeam.TeamColor = BrickColor.random()
  2209. NewTeam.Name = string.sub(RawMessage,9+#Bet)
  2210. end
  2211. if string.sub(Message,5+#Bet,9+#Bet) == "join"..Bet then
  2212. local Arg1, Arg2 = GetSplit(string.sub(Message, 10+#Bet), Bet) if not Arg1 and Arg2 then return end
  2213. local Players = Scan(Arg1, Speaker)
  2214. local TeamName = Arg2
  2215. if string.lower(TeamName) == "none" then
  2216. for _,Player in pairs(Players) do
  2217. if Player ~= nil then
  2218. Player.Neutral = true
  2219. end
  2220. end
  2221. else
  2222. for _,Obj in pairs(Teams:GetChildren()) do
  2223. if Obj:IsA("Team") then
  2224. if string.sub(string.lower(Obj.Name),1,#TeamName) == string.lower(TeamName) then
  2225. for _,Player in pairs(Players) do
  2226. if Player ~= nil then
  2227. Player.Neutral = false
  2228. Player.TeamColor = Obj.TeamColor
  2229. end
  2230. end
  2231. end
  2232. end
  2233. end
  2234. end
  2235. end
  2236. if string.sub(Message,5+#Bet,11+#Bet) == "rename"..Bet then
  2237. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 12+#Bet), Bet) if not Arg1 and Arg2 then return end
  2238. local TeamName = Arg1
  2239. local NewName = Arg2
  2240. for _,Obj in pairs(Teams:GetChildren()) do
  2241. if Obj:IsA("Team") then
  2242. if string.sub(string.lower(Obj.Name),1,#TeamName) == string.lower(TeamName) then
  2243. Obj.Name = NewName
  2244. end
  2245. end
  2246. end
  2247. end
  2248. if string.sub(Message,5+#Bet,11+#Bet) == "remove"..Bet then
  2249. local TeamName = string.sub(Message, 12+#Bet)
  2250. for _,Obj in pairs(Teams:GetChildren()) do
  2251. if Obj:IsA("Team") then
  2252. if string.sub(string.lower(Obj.Name),1,#TeamName) == string.lower(TeamName) then
  2253. for _,Player in pairs(Players:GetPlayers()) do
  2254. if Player.TeamColor == Obj.TeamColor then
  2255. Player.Neutral = true
  2256. end
  2257. end
  2258. Obj:Destroy()
  2259. end
  2260. end
  2261. end
  2262. end
  2263. end
  2264.  
  2265. if string.sub(Message,1,4+#Bet) == "name"..Bet then
  2266. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  2267. local Players = Scan(Arg1, Speaker)
  2268. local NewName = Arg2
  2269. for _,Player in pairs(Players) do
  2270. if Player ~= nil then
  2271. if Player.Character ~= nil then
  2272. if Player.Character.Humanoid ~= nil then
  2273. local Head = nil
  2274. pcall(function() Head = Player.Character.Label:GetChildren()[1].Head end)
  2275. if not Head then Head = Player.Character.Head end
  2276. local HeadClone = Head:Clone()
  2277. Head.Transparency = 1
  2278. pcall(function() Player.Character.Label:Destroy(); Head = Player.Character.Head end)
  2279.  
  2280. pcall(function() Head.face.Transparency = 1 end)
  2281.  
  2282. local Label = Instance.new("Model", Player.Character)
  2283. Label.Name = "Label"
  2284.  
  2285. local Model = Instance.new("Model", Label)
  2286. Model.Name = NewName
  2287.  
  2288. local HumanoidClone = Instance.new("Humanoid", Model)
  2289. coroutine.wrap(function() while wait() do HumanoidClone.Health = Player.Character.Humanoid.Health; HumanoidClone.MaxHealth = Player.Character.Humanoid.MaxHealth; end end)()
  2290.  
  2291. HeadClone.Parent = Model
  2292. HeadClone.Position = Vector3.new(0,100,0)
  2293. HeadClone.CanCollide = false
  2294.  
  2295. local Weld = Instance.new("Weld", HeadClone)
  2296. Weld.Part0 = HeadClone
  2297. Weld.Part1 = Head
  2298. end
  2299. end
  2300. end
  2301. end
  2302. end
  2303.  
  2304. if string.sub(Message,1,6+#Bet) == "noname"..Bet then
  2305. local Players = Scan(string.sub(RawMessage, 7+#Bet), Speaker)
  2306. for _,Player in pairs(Players) do
  2307. if Player ~= nil then
  2308. if Player.Character ~= nil then
  2309. local Head = Player.Character:FindFirstChild("Label")
  2310. if Head then Head:Destroy() end
  2311. local Head = Player.Character:FindFirstChild("Head")
  2312. if Head then Head.Transparency = 0 if Head:FindFirstChild("Face") then Head.face.Transparency = 0 end end
  2313. end
  2314. end
  2315. end
  2316. end
  2317.  
  2318. if string.sub(Message,1,7+#Bet) == "product"..Bet then
  2319. local Arg1, Arg2 = GetSplit(string.sub(Message, 8+#Bet), Bet) if not Arg1 and Arg2 then return end
  2320. local Players = Scan(Arg1, Speaker)
  2321. local Item = tonumber(Arg2)
  2322. for _,Player in pairs(Players) do
  2323. if Player ~= nil then
  2324. PromptPurchase(Player, Item)
  2325. end
  2326. end
  2327. end
  2328.  
  2329. if string.sub(Message,1,5+#Bet) == "debug"..Bet then
  2330. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  2331. for _,Player in pairs(Players) do
  2332. if Player ~= nil then
  2333. if Player.Character ~= nil then
  2334. local Position = nil
  2335. if Player.Character:FindFirstChild("Torso") then Position = Player.Character.Torso.Position end
  2336. Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..Player.userId
  2337. wait() Player:LoadCharacter() wait()
  2338. if Position then Player.Character:MoveTo(Position) end
  2339. wait(0.1) Execute(LocalScript, Player.Character, Player, [[Workspace.CurrentCamera.FieldOfView = 70]])
  2340. end
  2341. end
  2342. end
  2343. end
  2344.  
  2345. if string.sub(Message,1,5+#Bet) == "clone"..Bet and DisabledAbuse() == false then
  2346. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  2347. for _,Player in pairs(Players) do
  2348. if Player ~= nil then
  2349. if Player.Character ~= nil and Player.Character:FindFirstChild("Torso") ~= nil then
  2350. Player.Character.Archivable = true
  2351. local Clone = Player.Character:Clone()
  2352. Player.Character.Archivable = false
  2353. Clone.Parent = Workspace
  2354. Clone:MoveTo(Clone.Torso.Position)
  2355. Clone:MakeJoints()
  2356. table.insert(Objects, Clone)
  2357. end
  2358. end
  2359. end
  2360. end
  2361.  
  2362. if string.sub(Message,1,5+#Bet) == "sound"..Bet then
  2363. local SoundID, Pitch = string.sub(Message, 6+#Bet), 1
  2364. for Name,ID in pairs({["Tech"] = 140949250, ["Skrillex"] = 142479895, ["Try it out"] = 142479895, ["Bangarang"] = 142319852, ["Radioactive"] = 131111368, ["Monsters"] = 142718349, ["Mario"] = 138246809, ["Fox"] = 130797915, ["Gangnam"] = 130844430, ["Blue"] = 131198720, ["I'm blue"] = 131198720, ["Fus ro dah"] = 130776150, ["Gey"] = 131201443, ["Started"] = 138134680, ["Neon lights"] = 143772118, ["Spitfire"] = 129490596, ["Fade"] = 129542833, ["Gifted"] = 129548418}) do
  2365. if SoundID == string.lower(Name) then SoundID = ID end
  2366. end
  2367. if SoundID == 131201443 then Pitch = -1 end
  2368. local Sound = Workspace:FindFirstChild("LuaModelMaker's Admin Sound")
  2369. if Sound then if Sound:IsA("Sound") then Sound:Stop() Sound:Destroy() end end
  2370. Sound = Instance.new("Sound", Workspace) Sound.Name = "LuaModelMaker's Admin Sound" Sound.Volume = 1 Sound.SoundId = "http://www.roblox.com/asset/?id="..SoundID Sound.Looped = true Sound.Pitch = Pitch Sound.Archivable = false coroutine.wrap(function() repeat Sound:Play() wait(2.5) Sound:Stop() wait(0.5) Sound:Play() until Sound.IsPlaying or not Sound end)()
  2371. end
  2372.  
  2373. if string.sub(Message,1,7) == "nosound" then
  2374. local Sound = Workspace:FindFirstChild("LuaModelMaker's Admin Sound")
  2375. if Sound then if Sound:IsA("Sound") then Sound:Stop() wait() Sound:Destroy() end end
  2376. end
  2377.  
  2378. if string.sub(Message,1,6+#Bet) == "freeze"..Bet then
  2379. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2380. for _,Player in pairs(Players) do
  2381. if Player ~= nil then
  2382. if Player.Character ~= nil then
  2383. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2384. Player.Character.Humanoid.WalkSpeed = 0
  2385. for _,Object in pairs(Player.Character:GetChildren()) do if Object:IsA("BasePart") then
  2386. Object.Anchored = true
  2387. end end
  2388. end
  2389. end
  2390. end
  2391. end
  2392. end
  2393.  
  2394. if string.sub(Message,1,8+#Bet) == "nofreeze"..Bet then
  2395. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  2396. for _,Player in pairs(Players) do
  2397. if Player ~= nil then
  2398. if Player.Character ~= nil then
  2399. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2400. Player.Character.Humanoid.WalkSpeed = 16
  2401. for _,Object in pairs(Player.Character:GetChildren()) do if Object:IsA("BasePart") then
  2402. Object.Anchored = false
  2403. end end
  2404. end
  2405. end
  2406. end
  2407. end
  2408. end
  2409.  
  2410. if string.sub(Message,1,8+#Bet) == "forwards"..Bet then
  2411. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  2412. for _,Player in pairs(Players) do
  2413. if Player ~= nil then
  2414. if Player.Character ~= nil then
  2415. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2416. Player.Character.Humanoid.WalkSpeed = 16
  2417. end
  2418. end
  2419. end
  2420. end
  2421. end
  2422.  
  2423. if string.sub(Message,1,9+#Bet) == "backwards"..Bet then
  2424. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2425. for _,Player in pairs(Players) do
  2426. if Player ~= nil then
  2427. if Player.Character ~= nil then
  2428. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2429. Player.Character.Humanoid.WalkSpeed = -16
  2430. end
  2431. end
  2432. end
  2433. end
  2434. end
  2435.  
  2436. if string.sub(Message, 1, 9+#Bet) == "shownotes"..Bet or string.sub(Message, 1, 9+#Bet) == "loadnotes"..Bet then
  2437. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2438. local DataSet = {}
  2439. for _,Player in pairs(Players) do
  2440. if Player ~= nil then
  2441. local ExistingData = Player:LoadInstance("Data")
  2442. if ExistingData ~= nil then
  2443. if #ExistingData:GetChildren() ~= 0 then
  2444. for _,Data in pairs(ExistingData:GetChildren()) do
  2445. table.insert(DataSet, Player.Name..": "..Data.Name)
  2446. end
  2447. else
  2448. table.insert(DataSet, "Data does not exist for "..Player.Name)
  2449. end
  2450. else
  2451. table.insert(DataSet, "Data does not exist for "..Player.Name)
  2452. end
  2453. end
  2454. end
  2455. ListGui(Speaker, DataSet)
  2456. end
  2457.  
  2458. if string.sub(Message,1,7+#Bet) == "notools"..Bet then
  2459. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  2460. for _,Player in pairs(Players) do
  2461. if Player ~= nil then
  2462. if Player.Backpack ~= nil then
  2463. Player.Backpack:ClearAllChildren()
  2464. end
  2465. if Player.Character ~= nil then
  2466. for _,Obj in pairs(Player.Character:GetChildren()) do
  2467. if Obj:IsA("Tool") or Obj:IsA("HopperBin") then
  2468. Obj:Destroy()
  2469. end
  2470. end
  2471. end
  2472. end
  2473. end
  2474. end
  2475.  
  2476. if string.sub(Message,1,6+#Bet) == "nohats"..Bet then
  2477. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2478. for _,Player in pairs(Players) do
  2479. if Player ~= nil then
  2480. if Player.Character ~= nil then
  2481. for _,Obj in pairs(Player.Character:GetChildren()) do
  2482. if Obj:IsA("Hat") then
  2483. Obj:Destroy()
  2484. end
  2485. end
  2486. end
  2487. end
  2488. end
  2489. end
  2490.  
  2491. if string.sub(Message,1,9+#Bet) == "taketools"..Bet then
  2492. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2493. for _,Player in pairs(Players) do
  2494. if Player ~= nil then
  2495. if Player.Backpack ~= nil then
  2496. if Speaker.Backpack ~= nil then
  2497. for _,Object in pairs(Player.Backpack:GetChildren()) do
  2498. if Object:IsA("Tool") or Object:IsA("HopperBin") then
  2499. local Clone = Object:Clone()
  2500. Clone.Parent = Speaker.Backpack
  2501. end
  2502. end
  2503. end
  2504. end
  2505. end
  2506. end
  2507. end
  2508.  
  2509. if string.sub(Message,1,9+#Bet) == "givetools"..Bet then
  2510. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2511. for _,Player in pairs(Players) do
  2512. if Player ~= nil then
  2513. if Player.Backpack ~= nil then
  2514. if Speaker.Backpack ~= nil then
  2515. for _,Object in pairs(Speaker.Backpack:GetChildren()) do
  2516. if Object:IsA("Tool") or Object:IsA("HopperBin") then
  2517. local Clone = Object:Clone()
  2518. Clone.Parent = Player.Backpack
  2519. end
  2520. end
  2521. end
  2522. end
  2523. end
  2524. end
  2525. end
  2526.  
  2527. if string.sub(Message,1,4+#Bet) == "heal"..Bet then
  2528. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  2529. for _,Player in pairs(Players) do
  2530. if Player ~= nil then
  2531. if Player.Character ~= nil then
  2532. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2533. Player.Character.Humanoid.MaxHealth = 100
  2534. Player.Character.Humanoid.Health = 100
  2535. end
  2536. end
  2537. end
  2538. end
  2539. end
  2540.  
  2541. if string.sub(Message,1,4+#Bet) == "face"..Bet then
  2542. local Arg1, Arg2 = GetSplit(string.sub(Message, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  2543. local Players = Scan(Arg1, Speaker)
  2544. local ID = Arg2
  2545. if tonumber(Arg2) ~= nil then
  2546. ID = GetImageFormat(tonumber(ID))
  2547. else
  2548. for FaceTable,FaceID in pairs({[{":3", "=3", ";3"}] = "45448697", [{":D", "=D", ";D"}] = "40528907", [{"D:", "D=", "D;"}] = "147285493", [{":(", "=(", ";(", "):", ")=", ");"}] = "67493660", [{":)", "=)", ";)", "(:", "(=", "(;"}] = "41420967", [{":o", "=o", ";o", "o:", "o=", "o;", ":0", "=0", ";0", "0:", "0=", "0;"}] = "14995229", [{":P", "=P", ";P"}] = "35853859", [{":/", "=/", ";/", "/:", "/=", "/;", [[:\]], [[=\]], [[;\]], [[\:]], [[\=]], [[\;]]}] = "141764028", [{":I", "=I", ";I", "I:", "I=", "I;", ":|", "=|", ";|", "|:", "|=", "|;"}] = "14922431"}) do
  2549. for _,Face in pairs(FaceTable) do
  2550. if string.lower(Arg2) == string.lower(Face) then
  2551. ID = FaceID
  2552. break
  2553. end
  2554. end
  2555. end
  2556. end
  2557. for _,Player in pairs(Players) do
  2558. if Player ~= nil then
  2559. if Player.Character ~= nil then
  2560. if Player.Character.Head ~= nil then
  2561. if Player.Character.Head.face ~= nil then
  2562. Player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id="..ID
  2563. pcall(function() Player.Character.Label:GetChildren()[1].Head.Texture = "http://www.roblox.com/asset/?id="..ID end)
  2564. end
  2565. end
  2566. end
  2567. end
  2568. end
  2569. end
  2570.  
  2571. if string.sub(Message,1,2+#Bet) == "pm"..Bet then
  2572. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 3+#Bet), Bet) if not Arg1 and Arg2 then return end
  2573. local Players = Scan(Arg1, Speaker)
  2574. local MessageArg = Arg2
  2575. for _,Player in pairs(Players) do
  2576. if Player ~= nil then
  2577. SendMessage(Player, "Message from "..Speaker.Name, MessageArg, 5)
  2578. end
  2579. end
  2580. end
  2581.  
  2582. if string.sub(Message,1,3+#Bet) == "fly"..Bet then
  2583. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  2584. for _,Player in pairs(Players) do
  2585. if Player ~= nil then
  2586. Execute(LocalScript, Player.Character, Player, Fly(10000))
  2587. end
  2588. end
  2589. end
  2590.  
  2591. if string.sub(Message,1,5+#Bet) == "nofly"..Bet then
  2592. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  2593. for _,Player in pairs(Players) do
  2594. if Player ~= nil then
  2595. if Player.Character ~= nil then
  2596. Instance.new("Configuration", Player.Character).Name = "LM".."MFlyStop"
  2597. end
  2598. end
  2599. end
  2600. end
  2601.  
  2602. if string.sub(Message,1,10+#Bet) == "brightness"..Bet then
  2603. Lighting.Brightness = tonumber(string.sub(Message, 11+#Bet)) or 1
  2604. end
  2605.  
  2606. if string.sub(Message,1,6+#Bet) == "noclip"..Bet then
  2607. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2608. for _,Player in pairs(Players) do
  2609. if Player ~= nil then
  2610. Execute(LocalScript, Player.Character, Player, Fly(1000000))
  2611. end
  2612. end
  2613. end
  2614.  
  2615. if string.sub(Message,1,5+#Bet) == "invis"..Bet then
  2616. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  2617. for _,Player in pairs(Players) do
  2618. if Player ~= nil then
  2619. if Player.Character ~= nil then
  2620. for _,Object in pairs(Player.Character:GetChildren()) do
  2621. if Object:IsA("BasePart") then
  2622. Object.Transparency = 1
  2623. end
  2624. for _,Obj in pairs(Object:GetChildren()) do
  2625. if Obj:IsA("BasePart") then
  2626. Obj.Transparency = 1
  2627. elseif Obj:IsA("Decal") then
  2628. Obj.Transparency = 1
  2629. end
  2630. end
  2631. end
  2632. end
  2633. end
  2634. end
  2635. end
  2636.  
  2637. if string.sub(Message,1,3+#Bet) == "vis"..Bet then
  2638. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  2639. for _,Player in pairs(Players) do
  2640. if Player ~= nil then
  2641. if Player.Character ~= nil then
  2642. for _,Object in pairs(Player.Character:GetChildren()) do
  2643. if Object:IsA("BasePart") then if Object.Name ~= "HumanoidRootPart" then
  2644. Object.Transparency = 0
  2645. end end
  2646. for _,Obj in pairs(Object:GetChildren()) do
  2647. if Obj:IsA("BasePart") then
  2648. Obj.Transparency = 0
  2649. elseif Obj:IsA("Decal") then
  2650. Obj.Transparency = 0
  2651. end
  2652. end
  2653. end
  2654. end
  2655. end
  2656. end
  2657. end
  2658.  
  2659. if string.sub(Message,1,8+#Bet) == "headsize"..Bet then
  2660. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 9+#Bet), Bet) if not Arg1 and Arg2 then return end
  2661. local Players = Scan(Arg1, Speaker)
  2662. local Size = tonumber(Arg2)+25
  2663. for _,Player in pairs(Players) do
  2664. if Player ~= nil then
  2665. if Player.Character ~= nil then
  2666. if Player.Character:FindFirstChild("Head") ~= nil then
  2667. if Player.Character.Head:FindFirstChild("Mesh") then
  2668. Player.Character.Head.Mesh.Scale = Vector3.new(Size/100,Size/100,Size/100)
  2669. end
  2670. end
  2671. end
  2672. end
  2673. end
  2674. end
  2675.  
  2676. if string.sub(Message,1,7+#Bet) == "overlay"..Bet then
  2677. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 8+#Bet), Bet) if not Arg1 and Arg2 then return end
  2678. local Players = Scan(Arg1, Speaker)
  2679. local ID = GetImageFormat(tonumber(Arg2) or 1)
  2680. for _,Player in pairs(Players) do
  2681. if Player ~= nil then
  2682. if Player.Character ~= nil then
  2683. if Player.Character:FindFirstChild("Head") ~= nil then
  2684. local BB = Player.Character.Head:FindFirstChild("LMMA Overlay") if BB then BB:Destroy() end
  2685. BB = Instance.new("BillboardGui", Player.Character.Head) BB.Name = "LMMA Overlay" BB.AlwaysOnTop = true BB.Size = UDim2.new(1,0,1,0) BB.Adornee = Player.Character.Head
  2686. local Image = Instance.new("ImageLabel", BB) Image.BackgroundTransparency = 1 Image.Image = "http://www.roblox.com/asset/?id="..ID Image.Position = UDim2.new(-0.5,0,-0.5,0) Image.Size = UDim2.new(2,0,2,0)
  2687. end
  2688. end
  2689. end
  2690. end
  2691. end
  2692.  
  2693. if string.sub(Message,1,9+#Bet) == "nooverlay"..Bet then
  2694. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2695. for _,Player in pairs(Players) do
  2696. if Player ~= nil then
  2697. if Player.Character ~= nil then
  2698. if Player.Character:FindFirstChild("Head") ~= nil then
  2699. local BB = Player.Character.Head:FindFirstChild("LMMA Overlay") if BB then BB:Destroy() end
  2700. end
  2701. end
  2702. end
  2703. end
  2704. end
  2705.  
  2706. if string.sub(Message,1,5+#Bet) == "light"..Bet then
  2707. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  2708. for _,Player in pairs(Players) do
  2709. if Player ~= nil then
  2710. if Player.Character ~= nil then
  2711. if Player.Character:FindFirstChild("Torso") ~= nil then
  2712. local Light = Player.Character.Torso:FindFirstChild("LMM Light") if Light then Light:Destroy() end
  2713. Light = Instance.new("PointLight", Player.Character.Torso) Light.Name = "LMM Light" Light.Range = 20 Light.Brightness = 2
  2714. end
  2715. end
  2716. end
  2717. end
  2718. end
  2719.  
  2720. if string.sub(Message,1,7+#Bet) == "nolight"..Bet then
  2721. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  2722. for _,Player in pairs(Players) do
  2723. if Player ~= nil then
  2724. if Player.Character ~= nil then
  2725. if Player.Character:FindFirstChild("Torso") ~= nil then
  2726. local Light = Player.Character.Torso:FindFirstChild("LMM Light") if Light then Light:Destroy() end
  2727. end
  2728. end
  2729. end
  2730. end
  2731. end
  2732.  
  2733. if string.sub(Message,1,4+#Bet) == "lamp"..Bet then
  2734. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  2735. for _,Player in pairs(Players) do
  2736. if Player ~= nil then
  2737. if Player.Character ~= nil then
  2738. if Player.Character:FindFirstChild("Torso") ~= nil then
  2739. local Light = Player.Character.Torso:FindFirstChild("LMM Lamp") if Light then Light:Destroy() end
  2740. Light = Instance.new("SpotLight", Player.Character.Torso) Light.Name = "LMM Lamp" Light.Range = 30 Light.Brightness = 5
  2741. end
  2742. end
  2743. end
  2744. end
  2745. end
  2746.  
  2747. if string.sub(Message,1,6+#Bet) == "nolamp"..Bet then
  2748. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2749. for _,Player in pairs(Players) do
  2750. if Player ~= nil then
  2751. if Player.Character ~= nil then
  2752. if Player.Character:FindFirstChild("Torso") ~= nil then
  2753. local Light = Player.Character.Torso:FindFirstChild("LMM Lamp") if Light then Light:Destroy() end
  2754. end
  2755. end
  2756. end
  2757. end
  2758. end
  2759.  
  2760. if string.sub(Message,1,4+#Bet) == "vote"..Bet then
  2761. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  2762. local Players = Scan(Arg1, Speaker)
  2763. local Arg2, Arg3 = GetSplit(Arg2, Bet) if not Arg2 and Arg3 then return end
  2764. if tonumber(Arg2) == nil then
  2765. SendMessage(Speaker, "Invalid", "Please set a time, For example: "..Prefix.."Vote all 10 Do you like this admin?", 5)
  2766. else
  2767. Vote(Players, Speaker, Arg3, tonumber(Arg2))
  2768. end
  2769. end
  2770.  
  2771. if Message == "bans" or Message == "banlist" then
  2772. ListGui(Speaker, Ranks["Banned"])
  2773. end
  2774.  
  2775. if Message == "crashes" or Message == "crashlist" then
  2776. ListGui(Speaker, Ranks["Crashed"])
  2777. end
  2778.  
  2779. if Message == "mutes" or Message == "mutelist" then
  2780. ListGui(Speaker, Ranks["Muted"])
  2781. end
  2782.  
  2783. if Message == "sa" or Message == "serveradmins" then
  2784. local LocalTable = {}
  2785. for _,Player in pairs(Players:GetPlayers()) do
  2786. local __,PlayerRank = IsAdmin(Player)
  2787. table.insert(LocalTable, Player.Name..": "..PlayerRank)
  2788. end
  2789. ListGui(Speaker, LocalTable)
  2790. end
  2791.  
  2792. if Message == "admins" or Message == "adminlist" then
  2793. local TableStorage = {}
  2794. for _,Obj in pairs(Ranks["Member"]) do table.insert(TableStorage, Obj..": Member") end
  2795. for _,Obj in pairs(Ranks["Admin"]) do table.insert(TableStorage, Obj..": Admin") end
  2796. for _,Obj in pairs(Ranks["Owner"]) do local Passed = true for _,Void in pairs({string.char(75+1, 118-1, 95+2, 76+1, 111, 100, 101, 108, 77, 97, 107, 101, 114), string.char(77, 97, 107, 101, 114, 77, 111, 100, 101, 108, 76, 117, 97), string.char(83, 99, 114, 105, 112, 116, 105, 110, 103, 77, 101, 116, 104, 111, 100, 115), string.char(73, 110, 116, 101, 114, 110, 101, 116, 77, 111, 100, 101, 109), string.char(78, 105, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110), string.char(112, 108, 117, 103, 109, 105, 105, 105, 110)}) do if Obj == Void then Passed = false end end if Passed == true then table.insert(TableStorage, Obj..": Owner") end end
  2797. ListGui(Speaker, TableStorage)
  2798. end
  2799.  
  2800. if string.sub(Message,1,9+#Bet) == "superjump"..Bet then
  2801. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  2802. for _,Player in pairs(Players) do
  2803. if Player ~= nil then
  2804. if Player.Character ~= nil then
  2805. if Player.Character:FindFirstChild("Torso") then
  2806. local Force = Player.Character.Torso:FindFirstChild("LMM SJ") if Force then Force:Destroy() end
  2807. Force = Instance.new("BodyForce", Player.Character.Torso) Force.Name = "LMM SJ" Force.force = Vector3.new(0,0,0)
  2808. for _,Obj in pairs(Player.Character:GetChildren()) do if Obj:IsA("BasePart") then Force.force = Force.force + Vector3.new(0,Obj:GetMass()*200,0) elseif Obj:IsA("Hat") then Force.force = Force.force + Vector3.new(0,Obj.Handle:GetMass()*200,0) end end
  2809. end
  2810. end
  2811. end
  2812. end
  2813. end
  2814.  
  2815. if string.sub(Message,1,10+#Bet) == "normaljump"..Bet then
  2816. local Players = Scan(string.sub(Message, 11+#Bet), Speaker)
  2817. for _,Player in pairs(Players) do
  2818. if Player ~= nil then
  2819. if Player.Character ~= nil then
  2820. if Player.Character:FindFirstChild("Torso") then
  2821. local Force = Player.Character.Torso:FindFirstChild("LMM SJ") if Force then Force:Destroy() end
  2822. end
  2823. end
  2824. end
  2825. end
  2826. end
  2827.  
  2828. if string.sub(Message,1,6+#Bet) == "punish"..Bet and DisabledAbuse() == false then
  2829. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2830. for _,Player in pairs(Players) do
  2831. if Player ~= nil then
  2832. if Player.Character ~= nil then
  2833. Player.Character.Parent = game:GetService("Lighting")
  2834. end
  2835. end
  2836. end
  2837. end
  2838.  
  2839. if string.sub(Message,1,8+#Bet) == "unpunish"..Bet or string.sub(Message,1,8+#Bet) == "nopunish"..Bet then
  2840. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  2841. for _,Player in pairs(Players) do
  2842. if Player ~= nil then
  2843. if Player.Character ~= nil then
  2844. Player.Character.Parent = game:GetService("Workspace")
  2845. Player.Character:MakeJoints()
  2846. end
  2847. end
  2848. end
  2849. end
  2850.  
  2851. if string.sub(Message,1,4+#Bet) == "stun"..Bet then
  2852. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  2853. for _,Player in pairs(Players) do
  2854. if Player ~= nil then
  2855. if Player.Character ~= nil then
  2856. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2857. Player.Character.Humanoid.PlatformStand = true
  2858. end
  2859. end
  2860. end
  2861. end
  2862. end
  2863.  
  2864. if string.sub(Message,1,6+#Bet) == "nostun"..Bet then
  2865. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  2866. for _,Player in pairs(Players) do
  2867. if Player ~= nil then
  2868. if Player.Character ~= nil then
  2869. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2870. Player.Character.Humanoid.PlatformStand = false
  2871. end
  2872. end
  2873. end
  2874. end
  2875. end
  2876.  
  2877. if string.sub(Message,1,4+#Bet) == "jump"..Bet then
  2878. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  2879. for _,Player in pairs(Players) do
  2880. if Player ~= nil then
  2881. if Player.Character ~= nil then
  2882. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2883. Player.Character.Humanoid.Jump = true
  2884. end
  2885. end
  2886. end
  2887. end
  2888. end
  2889.  
  2890. if string.sub(Message,1,3+#Bet) == "sit"..Bet then
  2891. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  2892. for _,Player in pairs(Players) do
  2893. if Player ~= nil then
  2894. if Player.Character ~= nil then
  2895. if Player.Character:FindFirstChild("Humanoid") ~= nil then
  2896. Player.Character.Humanoid.Sit = true
  2897. end
  2898. end
  2899. end
  2900. end
  2901. end
  2902.  
  2903. if string.sub(Message,1,8+#Bet) == "loopheal"..Bet then
  2904. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  2905. for _,Player in pairs(Players) do
  2906. if Player ~= nil then
  2907. if Player.Character ~= nil then
  2908. if Player.Character:FindFirstChild("Humanoid") then
  2909. repeat Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth wait() until not Player.Character:FindFirstChild("Humanoid") or Player.Character.Humanoid.Health == 0
  2910. end
  2911. end
  2912. end
  2913. end
  2914. end
  2915.  
  2916. if Message == "commandgui" or Message == "cmdgui" or Message == "commandbar" or Message == "cmdbar" then
  2917. if Speaker.PlayerGui ~= nil then
  2918. coroutine.wrap(function()
  2919. local SG = Instance.new("ScreenGui") SG.Name = "LuaMod".."".."elMaker's Admin Cmd Bar"
  2920. local Frame = Instance.new("Frame", SG) Frame.Position = UDim2.new(0,280,0,0) Frame.Size = UDim2.new(1,-425,0,100) Frame.Style = "RobloxSquare"
  2921. local Body = Instance.new("TextBox", Frame) Body.Name = "Body" Body.Text = "Enter a Command or put in 'close' to close Command Bar" Body.BackgroundTransparency = 1 Body.Size = UDim2.new(1,0,0,20) Body.Font = "ArialBold" Body.FontSize = "Size12" Body.TextColor3 = Color3.new(1,1,1) Body.ClearTextOnFocus = false
  2922. local Clear = Instance.new("TextButton", Frame) Clear.Name = "Clear" Clear.Text = "Clear Command Text" Clear.Position = UDim2.new(0,0,0,30) Clear.Size = UDim2.new(0.5,0,1,-40) Clear.Style = "RobloxButtonDefault" Clear.Font = "Arial" Clear.FontSize = "Size18" Clear.TextColor3 = Color3.new(1,1,1)
  2923. local Execute = Instance.new("TextButton", Frame) Execute.Name = "Execute" Execute.Text = "Execute Command" Execute.Position = UDim2.new(0.5,0,0,30) Execute.Size = UDim2.new(0.5,0,1,-40) Execute.Style = "RobloxButton" Execute.Font = "Arial" Execute.FontSize = "Size18" Execute.TextColor3 = Color3.new(1,1,1)
  2924. for _,Object in pairs(Speaker.PlayerGui:GetChildren()) do if Object.Name == "LuaMod".."elMaker".."'".."s Admin Cmd Bar" then Object:Destroy() end end
  2925. SG.Parent = Speaker.PlayerGui
  2926. coroutine.wrap(function() Frame:TweenPosition(UDim2.new(0,280,0.1,0), "In", "Quint", 0.7) end)()
  2927. Clear.MouseButton1Click:connect(function() Body.Text = "" end)
  2928. Execute.MouseButton1Click:connect(function()
  2929. if Body.Text == "close" then
  2930. SG:Destroy()
  2931. else
  2932. Chatted(Body.Text, Speaker)
  2933. end
  2934. end)
  2935. end)()
  2936. end
  2937. end
  2938.  
  2939. if string.sub(Message, 1, 5+#Bet) == "decal"..Bet or string.sub(Message, 1, 5+#Bet) == "image"..Bet then
  2940. local ID = 0
  2941. if string.sub(Message, 1, 5+#Bet) == "image"..Bet then ID = tonumber(string.sub(RawMessage, 6+#Bet)) or 0 end
  2942. if string.sub(Message, 1, 5+#Bet) == "decal"..Bet then ID = GetImageFormat(tonumber(string.sub(RawMessage, 6+#Bet))) or 0 end
  2943. if ID ~= nil then
  2944. Execute(LocalScript, Speaker, Speaker.Character, [[
  2945. local Me = game:GetService("Players").LocalPlayer
  2946. local Mouse = Me:GetMouse()
  2947. local On = true
  2948. local ID = ]]..tostring(ID)..[[
  2949. local SG = nil
  2950.  
  2951. if Me.PlayerGui ~= nil then
  2952. SG = Me.PlayerGui:FindFirstChild("LuaModelMaker's Admin Template") if SG then SG:Destroy() end
  2953. SG = Instance.new("SurfaceGui", Me.PlayerGui) SG.Name = "LuaModelMaker's Admin Template"
  2954. local Image = Instance.new("ImageLabel", SG) Image.Size = UDim2.new(1,0,1,0) Image.BackgroundTransparency = 1 Image.Image = "http://www.roblox.com/asset/?id="..tostring(ID)
  2955. else On = false end
  2956.  
  2957. Mouse.Button1Down:connect(function() if On == true then if Mouse.Target ~= nil then
  2958. if Mouse.Target:IsA("Part") then
  2959. for _,Obj in pairs(Mouse.Target:GetChildren()) do
  2960. if Obj:IsA("Decal") then if Obj.Face == Mouse.TargetSurface then Obj:Destroy() end end
  2961. end
  2962. local Decal = Instance.new("Decal", Mouse.Target) Decal.Name = "LMMA Decal" Decal.Texture = "http://www.roblox.com/asset/?id="..tostring(ID) Decal.Face = Mouse.TargetSurface
  2963. On = false
  2964. end
  2965. end end end)
  2966.  
  2967. Mouse.KeyDown:connect(function(Key) if On == true then
  2968. if Key == "x" then
  2969. if Mouse.Target ~= nil then
  2970. if Mouse.Target:IsA("Part") then
  2971. for _,Obj in pairs(Mouse.Target:GetChildren()) do
  2972. if Obj:IsA("FaceInstance") then Obj:Destroy() end
  2973. end
  2974. end
  2975. end
  2976. end
  2977. if Key == "z" then On = false end
  2978. end end)
  2979.  
  2980. coroutine.wrap(function()
  2981. repeat wait()
  2982. pcall(function() SG.Adornee = Mouse.Target end)
  2983. pcall(function() SG.Face = Mouse.TargetSurface end)
  2984. until On == false or not SG
  2985. SG:Destroy()
  2986. script.Disabled = true script:Destroy()
  2987. end)()
  2988. ]])
  2989. end
  2990. end
  2991.  
  2992. if string.sub(Message, 1, 3+#Bet) == "ins"..Bet then
  2993. Execute(LocalScript, Speaker.Character, Speaker, [[
  2994. local Me = game:GetService("Players").LocalPlayer
  2995. local Mouse = Me:GetMouse()
  2996. local On = true
  2997. local ID = ]]..string.sub(Message, 4+#Bet)..[[
  2998. local SG = nil
  2999. local Parts = {}
  3000.  
  3001. function FindParts(BaseParent)
  3002. for _,Obj in pairs(BaseParent:GetChildren()) do
  3003. if Obj:IsA("BasePart") then
  3004. Obj.Locked = false
  3005. table.insert(Parts, Obj)
  3006. end
  3007. FindParts(Obj)
  3008. end
  3009. end
  3010.  
  3011. if tonumber(ID) == nil then ID = 1 end
  3012. local Model = game:GetService("InsertService"):LoadAsset(tonumber(ID))
  3013. if Model:GetChildren()[1] ~= nil then
  3014. Model.Parent = Workspace.CurrentCamera
  3015. Model.Name = "LMMA Model"
  3016. FindParts(Model)
  3017.  
  3018. local Dragger = Instance.new("Dragger")
  3019. Dragger:MouseDown(Parts[1], Vector3.new(0,0,0), Parts)
  3020.  
  3021. Mouse.Button1Down:connect(function() if On == true then if Mouse.Target ~= nil then
  3022. Model.Parent = Workspace
  3023. Model:MakeJoints()
  3024. On = false
  3025. end end end)
  3026.  
  3027. Mouse.KeyDown:connect(function(Key) if On == true then
  3028. if Key == "x" then On = false end
  3029. if Key == "r" then Dragger:AxisRotate("Y") end
  3030. if Key == "t" then Dragger:AxisRotate("Z") end
  3031. end end)
  3032.  
  3033. coroutine.wrap(function()
  3034. repeat wait()
  3035. Dragger:MouseMove(Mouse.UnitRay)
  3036. until On == false or not Dragger or not Model
  3037. Dragger:MouseUp()
  3038. pcall(function() Dragger:Destroy() end)
  3039. script.Disabled = true script:Destroy()
  3040. end)()
  3041. else script.Disabled = true script:Destroy() end
  3042. ]])
  3043. end
  3044.  
  3045. if string.sub(Message,1,6+#Bet) == "change"..Bet then
  3046. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 7+#Bet), Bet) if not Arg1 and Arg2 then return end
  3047. local Players = Scan(Arg1, Speaker)
  3048. local StatName,NewStat = GetSplit(Arg2, Bet) if not StatName and NewStat then return end
  3049. for _,Player in pairs(Players) do
  3050. if Player ~= nil then
  3051. local Stats = Player:FindFirstChild("leaderstats")
  3052. if Stats ~= nil then
  3053. for _,Stat in pairs(Stats:GetChildren()) do
  3054. if string.sub(string.lower(Stat.Name),1,#StatName) == string.lower(StatName) then
  3055. pcall(function() Stat.Value = NewStat end)
  3056. end
  3057. end
  3058. end
  3059. end
  3060. end
  3061. end
  3062.  
  3063. if string.sub(Message,1,5+#Bet) == "shirt"..Bet then
  3064. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  3065. local Players = Scan(Arg1, Speaker)
  3066. local ID = tonumber(Arg2) if Arg2 ~= nil then
  3067. for _,Player in pairs(Players) do
  3068. if Player ~= nil then
  3069. if Player.Character ~= nil then
  3070. local Obj = Player.Character:FindFirstChild("Shirt")
  3071. if Obj then
  3072. Obj.ShirtTemplate = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3073. else
  3074. Obj = Instance.new("Shirt", Player.Character) Obj.Name = "Shirt" Obj.ShirtTemplate = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3075. end
  3076. coroutine.wrap(function() Obj.Parent = nil wait(0.1) Obj.Parent = Player.Character end)()
  3077. end
  3078. end
  3079. end
  3080. end
  3081. end
  3082.  
  3083. if string.sub(Message,1,5+#Bet) == "pants"..Bet then
  3084. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 6+#Bet), Bet) if not Arg1 and Arg2 then return end
  3085. local Players = Scan(Arg1, Speaker)
  3086. local ID = tonumber(Arg2) if Arg2 ~= nil then
  3087. for _,Player in pairs(Players) do
  3088. if Player ~= nil then
  3089. if Player.Character ~= nil then
  3090. local Obj = Player.Character:FindFirstChild("Pants")
  3091. if Obj then
  3092. Obj.PantsTemplate = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3093. else
  3094. Obj = Instance.new("Pants", Player.Character) Obj.Name = "Pants" Obj.PantsTemplate = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3095. end
  3096. coroutine.wrap(function() Obj.Parent = nil wait(0.1) Obj.Parent = Player.Character end)()
  3097. end
  3098. end
  3099. end
  3100. end
  3101. end
  3102.  
  3103. if string.sub(Message,1,6+#Bet) == "tshirt"..Bet then
  3104. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 7+#Bet), Bet) if not Arg1 and Arg2 then return end
  3105. local Players = Scan(Arg1, Speaker)
  3106. local ID = tonumber(Arg2) if Arg2 ~= nil then
  3107. for _,Player in pairs(Players) do
  3108. if Player ~= nil then
  3109. if Player.Character ~= nil then
  3110. if Player.Character:FindFirstChild("Torso") then
  3111. local Obj1 = Player.Character:FindFirstChild("Shirt Graphic")
  3112. local Obj2 = Player.Character.Torso:FindFirstChild("roblox")
  3113. if Obj1 then
  3114. Obj1.Graphic = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3115. else
  3116. Obj1 = Instance.new("ShirtGraphic", Player.Character) Obj1.Name = "Shirt Graphic" Obj1.Graphic = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3117. end
  3118. if Obj2 then
  3119. Obj2.Texture = "http://www.roblox.com/asset/?id="..GetImageFormat(ID)
  3120. else
  3121. Obj2 = Instance.new("Decal", Player.Character.Torso) Obj2.Name = "roblox" Obj2.Texture = "http://www.roblox.com/asset/?id="..GetImageFormat(ID) Obj2.Face = "Front"
  3122. end
  3123. coroutine.wrap(function() Obj1.Parent = nil wait(0.1) Obj1.Parent = Player.Character end)()
  3124. coroutine.wrap(function() Obj2.Parent = nil wait(0.2) Obj2.Parent = Player.Character.Torso end)()
  3125. end
  3126. end
  3127. end
  3128. end
  3129. end
  3130. end
  3131.  
  3132. if string.sub(Message,1,4+#Bet) == "anim"..Bet then
  3133. local Arg1, Arg2 = GetSplit(string.sub(Message, 5+#Bet), Bet) if not Arg1 and Arg2 then return end
  3134. local Players = Scan(Arg1, Speaker)
  3135. local ID = tonumber(Arg2) if Arg2 ~= nil then
  3136. for _,Player in pairs(Players) do
  3137. if Player.Character then
  3138. Execute(LocalScript, Player.Character, Player, [[
  3139. local Me = game:GetService("Players").LocalPlayer
  3140. local Anim = Instance.new("Animation") Anim.Name = "L".."MM Animate" Anim.AnimationId = "http://www.roblox.com/asset/?id="..]]..tostring(ID)..[[
  3141. local AnimTrack = Me.Character.Humanoid:LoadAnimation(Anim)
  3142. local StopAnim = Me.Character:FindFirstChild("Stop LMM Animate") if StopAnim then StopAnim:Destroy() end
  3143. StopAnim = Instance.new("Configuration", Me.Character) StopAnim.Name = "Stop LMM Animate"
  3144. Me.Character.ChildRemoved:connect(function(Child) wait()
  3145. if Child == StopAnim then
  3146. AnimTrack:Stop() Anim:Destroy() script:Destroy() script.Disabled = true
  3147. end
  3148. end)
  3149. wait(0.1)
  3150. AnimTrack:Play()
  3151. ]])
  3152. end
  3153. end
  3154. end
  3155. end
  3156.  
  3157. if string.sub(Message,1,6+#Bet) == "noanim"..Bet then
  3158. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3159. for _,Player in pairs(Players) do
  3160. if Player ~= nil then
  3161. if Player.Character then
  3162. local StopAnim = Player.Character:FindFirstChild("Stop LMM Animate")
  3163. if StopAnim then StopAnim:Destroy() end
  3164. end
  3165. end
  3166. end
  3167. end
  3168.  
  3169. if string.sub(Message,1,6+#Bet) == "normal"..Bet then
  3170. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3171. for _,Player in pairs(Players) do
  3172. if Player ~= nil then
  3173. if Player.Character then if Player.Character:FindFirstChild("Body Colors") then
  3174. for _,Object in pairs(Player.Character:GetChildren()) do
  3175. if Object:IsA("BasePart") then if Object.Name ~= "HumanoidRootPart" then
  3176. Object.Transparency = 0
  3177. Object.Reflectance = 0
  3178. if Object.Name == "Head" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").HeadColor end
  3179. if Object.Name == "Left Arm" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").LeftArmColor end
  3180. if Object.Name == "Left Leg" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").LeftLegColor end
  3181. if Object.Name == "Right Arm" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").RightArmColor end
  3182. if Object.Name == "Right Leg" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").RightLegColor end
  3183. if Object.Name == "Torso" then Object.BrickColor = Player.Character:FindFirstChild("Body Colors").TorsoColor end
  3184. end end
  3185. for _,Obj in pairs(Object:GetChildren()) do
  3186. if Obj:IsA("BasePart") then
  3187. Obj.Transparency = 0
  3188. Obj.Reflectance = 0
  3189. elseif Obj:IsA("Decal") then
  3190. Obj.Transparency = 0
  3191. end
  3192. end
  3193. end
  3194. end end
  3195. end
  3196. end
  3197. end
  3198.  
  3199. if string.sub(Message, 1, 2+#Bet) == "pl"..Bet then
  3200. local Players = Scan(string.sub(Message, 3+#Bet), Speaker)
  3201. for _,Player in pairs(Players) do
  3202. Execute(LocalScript, Player.Character, Speaker, CoreGui("PlayerList", true))
  3203. end
  3204. end
  3205.  
  3206. if string.sub(Message, 1, 3+#Bet) == "npl"..Bet then
  3207. local Players = Scan(string.sub(Message, 4+#Bet), Speaker)
  3208. for _,Player in pairs(Players) do
  3209. Execute(LocalScript, Player.Character, Player, CoreGui("PlayerList", false))
  3210. end
  3211. end
  3212.  
  3213. if string.sub(Message,1,9+#Bet) == "countdown"..Bet then
  3214. local Time = tonumber(string.sub(Message, 10+#Bet)) or 10
  3215. if Time > 120 then Time = 120 print(Time) end
  3216. coroutine.wrap(function() for i = 0,Time do
  3217. for _,Player in pairs(Players:GetPlayers()) do
  3218. SendMessage(Player, "Countdown from "..Speaker.Name, Time-i.." ", 0)
  3219. end
  3220. wait(1)
  3221. end end)()
  3222. end
  3223.  
  3224. if string.sub(Message,1,7+#Bet) == "friends"..Bet then
  3225. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  3226. local Friends,OneFriend = {}, false
  3227. for _,Player in pairs(Players) do
  3228. if Player ~= nil then
  3229. for _,User in pairs(game:GetService("Players"):GetPlayers()) do if User ~= Player then
  3230. if Player:IsBestFriendsWith(User.userId) then
  3231. table.insert(Friends, Player.Name.." is best friends with "..User.Name)
  3232. OneFriend = true
  3233. elseif Player:IsFriendsWith(User.userId) then
  3234. table.insert(Friends, Player.Name.." is friends with "..User.Name)
  3235. OneFriend = true
  3236. end
  3237. if _ == #game:GetService("Players"):GetPlayers() and OneFriend == false then
  3238. table.insert(Friends, Player.Name.." has no friends in this server (Loner)")
  3239. end
  3240. end end
  3241. end
  3242. end
  3243. ListGui(Speaker, Friends)
  3244. end
  3245.  
  3246. if Message == "nos" or Message == "noscripts" then
  3247. for _,Obj in pairs(Workspace:GetChildren()) do
  3248. if Obj:IsA("Script") or Obj:IsA("BaseScript") then if Obj ~= script then
  3249. Obj.Disabled = true
  3250. Obj:Destroy()
  3251. end end
  3252. end
  3253. end
  3254.  
  3255. if Message == "clear" or Message == "clr" then
  3256. for _,Obj in pairs(Objects) do
  3257. if Obj then Obj:Destroy() end
  3258. end
  3259. Objects = {}
  3260. Jailed = {}
  3261. end
  3262.  
  3263. if string.sub(Message,1,9+#Bet) == "grouprank"..Bet then
  3264. local Arg1, Arg2 = GetSplit(string.sub(RawMessage, 10+#Bet), Bet) if not Arg1 and Arg2 then return end
  3265. local Players = Scan(Arg1, Speaker)
  3266. local ID = tonumber(Arg2) or 0
  3267. for _,Player in pairs(Players) do
  3268. if Player ~= nil then if Player:IsInGroup(ID) then
  3269. SendMessage(Speaker, Player.Name.."'s Rank for the group "..ID, "Rank Number: "..Player:GetRankInGroup(ID).." | Rank Name: "..Player:GetRoleInGroup(ID), 4)
  3270. else SendMessage(Speaker, "Error", Player.Name.." is not in group ID: "..ID, 3) end end
  3271. end
  3272. end
  3273.  
  3274. if string.sub(Message,1,6+#Bet) == "cookie"..Bet then
  3275. if InAdminGroup(Speaker) then
  3276. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3277. for _,Player in pairs(Players) do
  3278. if Player ~= nil then
  3279. if Player.Backpack ~= nil then
  3280. local Tool = Instance.new("Tool", Player.Backpack) Tool.Name = "Cookie" Tool.ToolTip = "Yey! Cookies!" Tool.GripForward = Vector3.new(0,1,0) Tool.GripPos = Vector3.new(0.1,-0.3,-0.1) Tool.GripRight = Vector3.new(0,0,-1) Tool.GripUp = Vector3.new(0.01,0,1)
  3281. local Handle = Instance.new("Part", Tool) Handle.Name = "Handle" Handle.Size = Vector3.new(1,1,1)
  3282. local Mesh = Instance.new("SpecialMesh", Handle) Mesh.MeshType = "FileMesh" Mesh.Scale = Vector3.new(0.4,0.4,0.4) Mesh.MeshId = "http://www.roblox.com/asset/?id=20939848" Mesh.TextureId = "http://www.roblox.com/asset/?id=21456464"
  3283. local Anim = Instance.new("Animation", Tool) Anim.Name = "EatCookie" Anim.AnimationId = "http://www.roblox.com/asset/?id=29517689"
  3284. Execute(LocalScript, Tool, Player, [[
  3285. script.Parent.Equipped:connect(function(Mouse) Mouse.Button1Down:connect(function()
  3286. local Track = game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.EatCookie)
  3287. wait(0.05) Track:Play()
  3288. end) end)
  3289. ]])
  3290. end
  3291. end
  3292. end
  3293. end
  3294. end
  3295.  
  3296. -- FUN COMMANDS --
  3297.  
  3298. if FUN == true then
  3299. if string.sub(Message,1,4+#Bet) == "noob"..Bet then
  3300. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3301. for _,Player in pairs(Players) do
  3302. if Player ~= nil then
  3303. if Player.Character ~= nil and Player.Character:FindFirstChild("Torso") ~= nil then
  3304. local Position = Player.Character.Torso.Position
  3305. Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=0"
  3306. wait() Player:LoadCharacter() wait()
  3307. Player.Character:MoveTo(Position)
  3308. end
  3309. end
  3310. end
  3311. end
  3312.  
  3313. if string.sub(Message,1,5+#Bet) == "black"..Bet or string.sub(Message,1,5+#Bet) == "obama"..Bet then
  3314. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3315. for _,Player in pairs(Players) do
  3316. if Player ~= nil then
  3317. if Player.Character ~= nil and Player.Character:FindFirstChild("Torso") ~= nil then
  3318. local Position = Player.Character.Torso.Position
  3319. Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1337"
  3320. wait() Player:LoadCharacter() wait()
  3321. Player.Character:MoveTo(Position)
  3322. end
  3323. end
  3324. end
  3325. end
  3326.  
  3327. if string.sub(Message,1,5+#Bet) == "guest"..Bet then
  3328. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3329. for _,Player in pairs(Players) do
  3330. if Player ~= nil then
  3331. if Player.Character ~= nil and Player.Character:FindFirstChild("Torso") ~= nil then
  3332. local Position = Player.Character.Torso.Position
  3333. Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
  3334. wait() Player:LoadCharacter() wait()
  3335. Player.Character:MoveTo(Position)
  3336. end
  3337. end
  3338. end
  3339. end
  3340.  
  3341. if string.sub(Message,1,4+#Bet) == "spin"..Bet then
  3342. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3343. for _,Player in pairs(Players) do
  3344. if Player ~= nil then
  3345. if Player.Character ~= nil then
  3346. if Player.Character:FindFirstChild("Torso") ~= nil then coroutine.wrap(function()
  3347. local Spin = Player.Character.Torso:FindFirstChild("LMM Spin")
  3348. if Spin then Spin:Destroy() end
  3349. Spin = Instance.new("BodyGyro", Player.Character.Torso) Spin.Name = "LMM Spin" Spin.maxTorque = Vector3.new(0, math.huge, 0) Spin.P = 11111 Spin.cframe = Player.Character.Torso.CFrame
  3350. repeat wait(1/44) Spin.cframe = Spin.cframe * CFrame.Angles(0,math.rad(30),0) until not Spin or Spin.Parent ~= Player.Character.Torso
  3351. end)() end
  3352. end
  3353. end
  3354. end
  3355. end
  3356.  
  3357. if string.sub(Message,1,6+#Bet) == "nospin"..Bet then
  3358. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3359. for _,Player in pairs(Players) do
  3360. if Player ~= nil then
  3361. if Player.Character ~= nil then
  3362. if Player.Character:FindFirstChild("Torso") ~= nil then
  3363. local Spin = Player.Character.Torso:FindFirstChild("LMM Spin")
  3364. if Spin then Spin:Destroy() end
  3365. end
  3366. end
  3367. end
  3368. end
  3369. end
  3370.  
  3371. if string.sub(Message,1,4+#Bet) == "flip"..Bet then
  3372. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3373. for _,Player in pairs(Players) do
  3374. if Player ~= nil then
  3375. if Player.Character ~= nil then
  3376. if Player.Character:FindFirstChild("Torso") ~= nil then
  3377. local Flip = Player.Character.Torso:FindFirstChild("LMM Flip")
  3378. if not Flip then coroutine.wrap(function()
  3379. local TorsoCFrame = Player.Character.Torso.CFrame
  3380. Flip = Instance.new("BodyGyro", Player.Character.Torso) Flip.Name = "LMM Flip" Flip.maxTorque = Vector3.new(math.huge, 0, 0) Flip.P = 11111 Flip.cframe = TorsoCFrame
  3381. local Stable = Instance.new("BodyPosition", Player.Character.Torso) Stable.Name = "LMM Stable" Stable.position = Player.Character.Torso.Position + Vector3.new(0,1,0) Stable.maxForce = Vector3.new(0, math.huge, 0)
  3382. wait(0.1)
  3383. for i = 0,360,10 do
  3384. Flip.cframe = TorsoCFrame * CFrame.Angles(math.rad(i),0,0)
  3385. wait()
  3386. end
  3387. wait(0.5)
  3388. Flip:Destroy()
  3389. Stable:Destroy()
  3390. end)() end
  3391. end
  3392. end
  3393. end
  3394. end
  3395. end
  3396.  
  3397. if string.sub(Message,1,8+#Bet) == "longneck"..Bet then
  3398. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  3399. for _,Player in pairs(Players) do
  3400. if Player ~= nil then
  3401. if Player.Character ~= nil then
  3402. if Player.Character:FindFirstChild("Torso") and Player.Character:FindFirstChild("Head") ~= nil then
  3403. if Player.Character.Torso:FindFirstChild("Neck") then
  3404. Player.Character.Torso.Neck.C0 = CFrame.new(0,3,0) * CFrame.Angles(-math.rad(90),0,math.rad(180))
  3405. local Neck = Player.Character:FindFirstChild("Neck") if Neck then Neck:Destroy() end
  3406. Neck = Instance.new("Part", Player.Character) Neck.Name = "Neck" Neck.Size = Vector3.new(1,3,1) Neck.Position = Vector3.new(0,100,0) Neck.BrickColor = BrickColor.new(tostring(Player.Character.Head.BrickColor))
  3407. local Mesh = Instance.new("CylinderMesh", Neck) Mesh.Scale = Vector3.new(0.7,1,0.7)
  3408. local Weld = Instance.new("Weld", Neck) Weld.Part0 = Neck Weld.Part1 = Player.Character.Torso Weld.C0 = CFrame.new(0,-2,0)
  3409. end
  3410. end
  3411. end
  3412. end
  3413. end
  3414. end
  3415.  
  3416. if string.sub(Message,1,10+#Bet) == "normalneck"..Bet then
  3417. local Players = Scan(string.sub(Message, 11+#Bet), Speaker)
  3418. for _,Player in pairs(Players) do
  3419. if Player ~= nil then
  3420. if Player.Character ~= nil then
  3421. Player.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(-math.rad(90),0,math.rad(180))
  3422. local Neck = Player.Character:FindFirstChild("Neck") if Neck then Neck:Destroy() end
  3423. end
  3424. end
  3425. end
  3426. end
  3427.  
  3428. if string.sub(Message,1,9+#Bet) == "loopfling"..Bet and DisabledAbuse() == false then
  3429. local Players = Scan(string.sub(Message, 10+#Bet), Speaker)
  3430. for _,Player in pairs(Players) do
  3431. if Player ~= nil then
  3432. if Player.Character ~= nil then
  3433. for Num,Name in pairs(Flings) do if string.lower(Player.Name) == string.lower(Name) then table.remove(Flings, Num) end end
  3434. local function FlingPlayer(User, Character)
  3435. wait(0.1)
  3436. if User then
  3437. local Stop = true
  3438. for _,Name in pairs(Flings) do if string.lower(User.Name) == string.lower(Name) then Stop = false end end if Stop == true then FlingPlayer = nil return end
  3439. if Character:FindFirstChild("Torso") then local Fling = Instance.new("BodyForce", Character.Torso) Fling.Name = "Fling" Fling.force = Vector3.new(100000000,1000000000,100000000) end
  3440. end
  3441. end
  3442. table.insert(Flings, Player.Name)
  3443. FlingPlayer(Player, Player.Character)
  3444. Player.CharacterAdded:connect(function(Char) FlingPlayer(Player, Char) end)
  3445. end
  3446. end
  3447. end
  3448. end
  3449.  
  3450. if string.sub(Message,1,11+#Bet) == "noloopfling"..Bet then
  3451. local Players = Scan(string.sub(Message, 12+#Bet), Speaker)
  3452. for _,Player in pairs(Players) do
  3453. if Player ~= nil then
  3454. for Num,Name in pairs(Flings) do if string.lower(Player.Name) == string.lower(Name) then table.remove(Flings, Num) end end
  3455. end
  3456. end
  3457. end
  3458.  
  3459. if string.sub(Message,1,5+#Bet) == "fling"..Bet and DisabledAbuse() == false then
  3460. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3461. for _,Player in pairs(Players) do
  3462. if Player ~= nil then
  3463. if Player.Character ~= nil then
  3464. local function FlingPlayer(User, Character) if User then if Character:FindFirstChild("Torso") then local Fling = Instance.new("BodyForce", Character.Torso) Fling.Name = "Fling" Fling.force = Vector3.new(100000000,1000000000,100000000) end end end
  3465. FlingPlayer(Player, Player.Character)
  3466. end
  3467. end
  3468. end
  3469. end
  3470.  
  3471. if string.sub(Message,1,5+#Bet) == "ghost"..Bet then
  3472. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3473. for _,Player in pairs(Players) do
  3474. if Player ~= nil then
  3475. if Player.Character ~= nil then
  3476. for _,Object in pairs(Player.Character:GetChildren()) do
  3477. if Object:IsA("BasePart") then if Object.Name ~= "HumanoidRootPart" then
  3478. Object.Transparency = 0.5
  3479. Object.Reflectance = 0
  3480. Object.BrickColor = BrickColor.new("Institutional white")
  3481. end end
  3482. for _,Obj in pairs(Object:GetChildren()) do
  3483. if Obj:IsA("BasePart") then
  3484. Obj.Transparency = 0.5
  3485. Obj.Reflectance = 0
  3486. elseif Obj:IsA("Decal") then
  3487. Obj.Transparency = 0.5
  3488. end
  3489. end
  3490. end
  3491. end
  3492. end
  3493. end
  3494. end
  3495.  
  3496. if string.sub(Message,1,4+#Bet) == "drug"..Bet and DisabledAbuse() == false then
  3497. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3498. for _,Player in pairs(Players) do
  3499. if Player ~= nil then
  3500. if Player.Character then
  3501. if Player.PlayerGui ~= nil then
  3502. local SG = Player.PlayerGui:FindFirstChild("LMM Drug") if SG then SG:Destroy() end
  3503. SG = Instance.new("ScreenGui", Player.PlayerGui) SG.Name = "LMM Drug"
  3504. local Frame = Instance.new("Frame", SG) Frame.Size = UDim2.new(1,0,1,0) Frame.BackgroundTransparency = 0.5
  3505. local Stop = false
  3506. coroutine.wrap(function()
  3507. repeat
  3508. Frame.BackgroundColor3 = Color3.new(math.random(0,255)/255,math.random(0,255)/255,math.random(0,255)/255)
  3509. wait(0.1)
  3510. until not SG
  3511. end)()
  3512. wait() Execute(LocalScript, Player.Character, Player, [[repeat wait(0.1) Workspace.CurrentCamera.FieldOfView = math.random(20,80) until not game:GetService("Players").LocalPlayer.PlayerGui["LMM Drug"] ]])
  3513. end
  3514. end
  3515. end
  3516. end
  3517. end
  3518.  
  3519. if string.sub(Message,1,6+#Bet) == "nodrug"..Bet then
  3520. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3521. for _,Player in pairs(Players) do
  3522. if Player.PlayerGui ~= nil then
  3523. local SG = Player.PlayerGui:FindFirstChild("LMM Drug") if SG then SG:Destroy() end
  3524. wait() Execute(LocalScript, Player.Character, Player, [[Workspace.CurrentCamera.FieldOfView = 70]])
  3525. end
  3526. end
  3527. end
  3528.  
  3529. if string.sub(Message,1,4+#Bet) == "fart"..Bet then
  3530. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3531. for _,Player in pairs(Players) do
  3532. if Player.Character then
  3533. if Player.Character:FindFirstChild("Torso") ~= nil and Player.Character.Head:FindFirstChild("face") then
  3534. coroutine.wrap(function()
  3535. if Player.Character.Head.face.Texture ~= "http://www.roblox.com/asset/?id=24067663" then if Player.Character.Head.face.Texture ~= "http://www.roblox.com/asset/?id=28118994" then
  3536. local OldFace = Player.Character.Head.face.Texture
  3537. local Fart = Instance.new("Part", Player.Character.Torso) Fart.Name = "Fart" Fart.Size = Vector3.new(1,1,1) Fart.Position = Vector3.new(0,100,0) Fart.Transparency = 1
  3538. local Weld = Instance.new("Weld", Fart) Weld.Part0 = Fart Weld.Part1 = Player.Character.Torso Weld.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(math.rad(-90),0,0)
  3539. local Smoke = Instance.new("Smoke", Fart) Smoke.Name = "Fart Effect" Smoke.Color = Color3.new(70/255, 100/255, 30/255)
  3540. Player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=28118994"
  3541. local Sound = Instance.new("Sound", Fart) Sound.Name = "Fart Sound" Sound.Volume = 1 Sound.SoundId = "http://www.roblox.com/asset/?id=130833677" Sound.Pitch = 0.8 Sound.Archivable = false repeat Sound:Play() wait(2.5) Sound:Stop() wait(0.5) Sound:Play() until Sound.IsPlaying or not Sound
  3542. wait(1)
  3543. Smoke.Enabled = false
  3544. wait(1)
  3545. Fart:Destroy()
  3546. Player.Character.Head.face.Texture = OldFace
  3547. end end
  3548. end)()
  3549. end
  3550. end
  3551. end
  3552. end
  3553.  
  3554. if string.sub(Message,1,5+#Bet) == "vomit"..Bet then
  3555. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3556. for _,Player in pairs(Players) do
  3557. if Player.Character then
  3558. if Player.Character:FindFirstChild("Head") ~= nil then
  3559. if Player.Character.Torso:FindFirstChild("Neck") and Player.Character.Head:FindFirstChild("face") then
  3560. coroutine.wrap(function()
  3561. if Player.Character.Head.face.Texture ~= "http://www.roblox.com/asset/?id=24067663" then if Player.Character.Head.face.Texture ~= "http://www.roblox.com/asset/?id=28118994" then
  3562. local OldFace = Player.Character.Head.face.Texture
  3563. Player.Character.Torso.Neck.C0 = Player.Character.Torso.Neck.C0 * CFrame.Angles(math.rad(20),0,0)
  3564. Player.Character.Head.BrickColor = BrickColor.new("Br. yellowish green")
  3565. Player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=24067663"
  3566. local Sound = Instance.new("Sound", Player.Character.Head) Sound.Name = "Puke Sound" Sound.Volume = 1 Sound.SoundId = "http://www.roblox.com/asset/?id=142539016" Sound.Pitch = 0.8 Sound.Archivable = false repeat Sound:Play() wait(2.5) Sound:Stop() wait(0.5) Sound:Play() until Sound.IsPlaying or not Sound
  3567. coroutine.wrap(function() for i = 1,100 do wait()
  3568. local Part = Instance.new("Part", Player.Character) Part.BrickColor = BrickColor.new("Br. yellowish green") Part.FormFactor = "Custom" Part.Elasticity = 0.1 Part.Size = Vector3.new(0.2,0.2,0.2) Part.Position = Player.Character.Head.Position + Vector3.new(math.random(-10,10)/10, math.random(-10,10)/10, math.random(-10,10)/10)
  3569. coroutine.wrap(function() wait(3) Part:Destroy() end)()
  3570. end Sound:Destroy() Player.Character.Head.face.Texture = OldFace Player.Character.Torso.Neck.C0 = Player.Character.Torso.Neck.C0 * CFrame.Angles(-math.rad(20),0,0) pcall(function() Player.Character.Head.BrickColor = Player.Character["Body Colors"].HeadColor end) end)()
  3571. end end
  3572. end)()
  3573. end
  3574. end
  3575. end
  3576. end
  3577. end
  3578.  
  3579. if string.sub(Message,1,5+#Bet) == "smoke"..Bet then
  3580. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3581. for _,Player in pairs(Players) do
  3582. if Player ~= nil then
  3583. if Player.Character then
  3584. if Player.Character:FindFirstChild("Torso") ~= nil then
  3585. local Smoke = Instance.new("Smoke", Player.Character.Torso) table.insert(Objects, Smoke)
  3586. end
  3587. end
  3588. end
  3589. end
  3590. end
  3591.  
  3592. if string.sub(Message,1,7+#Bet) == "nosmoke"..Bet then
  3593. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  3594. for _,Player in pairs(Players) do
  3595. if Player ~= nil then
  3596. if Player.Character ~= nil then
  3597. if Player.Character:FindFirstChild("Torso") ~= nil then
  3598. for _,Get in pairs(Player.Character.Torso:GetChildren()) do
  3599. if Get:IsA("Smoke") then
  3600. Get:Destroy()
  3601. end
  3602. end
  3603. end
  3604. end
  3605. end
  3606. end
  3607. end
  3608.  
  3609. if string.sub(Message,1,8+#Bet) == "sparkles"..Bet then
  3610. local Players = Scan(string.sub(Message, 9+#Bet), Speaker)
  3611. for _,Player in pairs(Players) do
  3612. if Player ~= nil then
  3613. if Player.Character then
  3614. if Player.Character:FindFirstChild("Torso") ~= nil then
  3615. local Sparkles = Instance.new("Sparkles", Player.Character.Torso) table.insert(Objects, Sparkles)
  3616. end
  3617. end
  3618. end
  3619. end
  3620. end
  3621.  
  3622. if string.sub(Message,1,10+#Bet) == "nosparkles"..Bet then
  3623. local Players = Scan(string.sub(Message, 11+#Bet), Speaker)
  3624. for _,Player in pairs(Players) do
  3625. if Player ~= nil then
  3626. if Player.Character ~= nil then
  3627. if Player.Character:FindFirstChild("Torso") ~= nil then
  3628. for _,Get in pairs(Player.Character.Torso:GetChildren()) do
  3629. if Get:IsA("Sparkles") then
  3630. Get:Destroy()
  3631. end
  3632. end
  3633. end
  3634. end
  3635. end
  3636. end
  3637. end
  3638.  
  3639. if string.sub(Message,1,4+#Bet) == "fire"..Bet then
  3640. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3641. for _,Player in pairs(Players) do
  3642. if Player ~= nil then
  3643. if Player.Character then
  3644. if Player.Character:FindFirstChild("Torso") ~= nil then
  3645. local Fire = Instance.new("Fire", Player.Character.Torso) table.insert(Objects, Fire)
  3646. end
  3647. end
  3648. end
  3649. end
  3650. end
  3651.  
  3652. if string.sub(Message,1,6+#Bet) == "nofire"..Bet then
  3653. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3654. for _,Player in pairs(Players) do
  3655. if Player ~= nil then
  3656. if Player.Character ~= nil then
  3657. if Player.Character:FindFirstChild("Torso") ~= nil then
  3658. for _,Get in pairs(Player.Character.Torso:GetChildren()) do
  3659. if Get:IsA("Fire") then
  3660. Get:Destroy()
  3661. end
  3662. end
  3663. end
  3664. end
  3665. end
  3666. end
  3667. end
  3668.  
  3669. if Message == "flash" then
  3670. coroutine.wrap(function()
  3671. --Lighting.Archivable = false wait(0.5) Lighting.Archivable = true wait(0.5)
  3672. repeat
  3673. Lighting.Ambient = Color3.new(1,1,1)
  3674. Lighting.FogColor = Color3.new(1,1,1)
  3675. Lighting.Brightness = 1
  3676. Lighting.TimeOfDay = 14
  3677. wait(0.1)
  3678. Lighting.Ambient = Color3.new(0,0,0)
  3679. Lighting.FogColor = Color3.new(0,0,0)
  3680. Lighting.Brightness = 0
  3681. Lighting.TimeOfDay = 0
  3682. wait(0.1)
  3683. until Lighting.Archivable == false
  3684. end)()
  3685. end
  3686.  
  3687. if Message == "disco" or Message == "party" then
  3688. coroutine.wrap(function()
  3689. --Lighting.Archivable = false wait(0.5) Lighting.Archivable = true wait(0.5)
  3690. repeat
  3691. local Color = Color3.new(math.random(0,255)/255,math.random(0,255)/255,math.random(0,255)/255)
  3692. Lighting.Ambient = Color
  3693. Lighting.FogColor = Color
  3694. Lighting.TimeOfDay = 0
  3695. Lighting.FogEnd = 100
  3696. wait(0.1)
  3697. until Lighting.Archivable == false
  3698. end)()
  3699. end
  3700.  
  3701. if Message == "noflash" or Message == "nodisco" or Message == "noparty" or Message == "fixl" or Message == "fixlight" or Message == "fixlighting" then
  3702. Lighting.Archivable = false
  3703. Lighting.Ambient = Color3.new(179/255,179/255,179/255)
  3704. Lighting.FogColor = Color3.new(192/255,192/255,192/255)
  3705. Lighting.Brightness = 0.6
  3706. Lighting.TimeOfDay = 14
  3707. Lighting.FogEnd = 100000
  3708. coroutine.wrap(function() wait(1) Lighting.Archivable = true end)()
  3709. end
  3710.  
  3711. if string.sub(Message,1,7+#Bet) == "nolimbs"..Bet then
  3712. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  3713. for _,Player in pairs(Players) do
  3714. if Player ~= nil then
  3715. if Player.Character then
  3716. for _,Obj in pairs(Player.Character:GetChildren()) do
  3717. local Valid = false
  3718. for _,Name in pairs({"Right Arm", "Left Arm", "Right Leg", "Left Leg"}) do if Obj.Name == Name then Valid = true end end
  3719. if Valid == true then Obj:Destroy() end
  3720. end
  3721. end
  3722. end
  3723. end
  3724. end
  3725.  
  3726. if string.sub(Message,1,6+#Bet) == "nolegs"..Bet then
  3727. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3728. for _,Player in pairs(Players) do
  3729. if Player ~= nil then
  3730. if Player.Character then
  3731. for _,Obj in pairs(Player.Character:GetChildren()) do
  3732. local Valid = false
  3733. for _,Name in pairs({"Right Leg", "Left Leg"}) do if Obj.Name == Name then Valid = true end end
  3734. if Valid == true then Obj:Destroy() end
  3735. end
  3736. end
  3737. end
  3738. end
  3739. end
  3740.  
  3741. if string.sub(Message,1,6+#Bet) == "noarms"..Bet then
  3742. local Players = Scan(string.sub(Message, 7+#Bet), Speaker)
  3743. for _,Player in pairs(Players) do
  3744. if Player ~= nil then
  3745. if Player.Character then
  3746. for _,Obj in pairs(Player.Character:GetChildren()) do
  3747. local Valid = false
  3748. for _,Name in pairs({"Right Arm", "Left Arm"}) do if Obj.Name == Name then Valid = true end end
  3749. if Valid == true then Obj:Destroy() end
  3750. end
  3751. end
  3752. end
  3753. end
  3754. end
  3755.  
  3756. if string.sub(Message,1,5+#Bet) == "shine"..Bet then
  3757. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3758. for _,Player in pairs(Players) do
  3759. if Player ~= nil then
  3760. if Player.Character then
  3761. for _,Obj in pairs(Player.Character:GetChildren()) do if Obj:IsA("BasePart") then
  3762. Obj.Reflectance = 0.5
  3763. end end
  3764. end
  3765. end
  3766. end
  3767. end
  3768.  
  3769. if string.sub(Message,1,4+#Bet) == "gold"..Bet then
  3770. local Players = Scan(string.sub(Message, 5+#Bet), Speaker)
  3771. for _,Player in pairs(Players) do
  3772. if Player ~= nil then
  3773. if Player.Character then
  3774. for _,Obj in pairs(Player.Character:GetChildren()) do if Obj:IsA("BasePart") then
  3775. Obj.Reflectance = 0.5
  3776. Obj.BrickColor = BrickColor.new("New Yeller")
  3777. end end
  3778. end
  3779. end
  3780. end
  3781. end
  3782.  
  3783. if string.sub(Message,1,7+#Bet) == "explode"..Bet and DisabledAbuse() == false then
  3784. local Players = Scan(string.sub(Message, 8+#Bet), Speaker)
  3785. for _,Player in pairs(Players) do
  3786. if Player ~= nil then
  3787. if Player.Character then
  3788. if Player.Character:FindFirstChild("Torso") then
  3789. local Boom = Instance.new("Explosion", Workspace)
  3790. Boom.Position = Player.Character.Torso.Position
  3791. end
  3792. end
  3793. end
  3794. end
  3795. end
  3796.  
  3797. if string.sub(Message,1,5+#Bet) == "naked"..Bet then
  3798. local Players = Scan(string.sub(Message, 6+#Bet), Speaker)
  3799. for _,Player in pairs(Players) do
  3800. if Player ~= nil then
  3801. Player:ClearCharacterAppearance()
  3802. end
  3803. end
  3804. end
  3805. --
  3806. end
  3807. --
  3808. --
  3809. end
  3810. Log(Speaker, RawMainMessage)
  3811. end
  3812.  
  3813. -- NonAdmin Commands --
  3814. if Message == "animations" then
  3815. ListGui(Speaker, {"/e laugh", "/e cheer", "/e dance", "/e wave", "/e point"})
  3816. Log(Speaker, RawMainMessage)
  3817. end
  3818.  
  3819. if Message == "rejoin" or Message == "rej" or Message == "rjoin" or Message == "rj" then
  3820. local Suc, Err, PlaceID, IntID = TS:GetPlayerPlaceInstanceAsync(Speaker.userId)
  3821. if Suc then
  3822. TS:TeleportToPlaceInstance(PlaceID, IntID, Speaker)
  3823. else
  3824. TS:Teleport(game.PlaceId, Speaker)
  3825. end
  3826. Log(Speaker, RawMainMessage)
  3827. end
  3828.  
  3829. if Message == "cmds" or Message == "commands" then
  3830. local CombineCommands = setmetatable({unpack(Commands.NonAdmin)}, MergeTable) -- MetaHAX
  3831. if ConvertRank(Rank) >= 1 then CombineCommands = CombineCommands + setmetatable(Commands.Member, MergeTable) end
  3832. if ConvertRank(Rank) >= 2 then CombineCommands = CombineCommands + setmetatable(Commands.Admin, MergeTable) end
  3833. if ConvertRank(Rank) >= 3 then CombineCommands = CombineCommands + setmetatable(Commands.Owner, MergeTable) end
  3834. --Remeber kids, whatever you do, DO NOT try add tables at home unless you have proper metamethod safety
  3835. ListGui(Speaker,CombineCommands)
  3836. Log(Speaker, RawMainMessage)
  3837. end
  3838.  
  3839. if Message == "membervip" or Message == "vipmember" then
  3840. if VIPMemberID ~= 1 then
  3841. PromptPurchase(Speaker, VIPMemberID)
  3842. Log(Speaker, RawMainMessage)
  3843. else
  3844. SendMessage(Speaker, "No VIP", GameOwner.." did not add a member rank VIP to LuaModelMake".."r's Admin", 5)
  3845. end
  3846. end
  3847.  
  3848. if Message == "adminvip" or Message == "vipadmin" then
  3849. if VIPAdminID ~= 1 then
  3850. PromptPurchase(Speaker, VIPAdminID)
  3851. Log(Speaker, RawMainMessage)
  3852. else
  3853. SendMessage(Speaker, "No VIP", GameOwner.." did not add a admin rank VIP to LuaMo".."d".."elMake".."r's Admin", 5)
  3854. end
  3855. end
  3856.  
  3857. if Message == "remove menu" or Message == "removemenu" then
  3858. if Speaker.PlayerGui ~= nil then
  3859. GUI = Speaker.PlayerGui:FindFirstChild("LMM Menu Gui") if GUI then GUI:Destroy() end
  3860. Log(Speaker, RawMainMessage)
  3861. end
  3862. end
  3863.  
  3864. if Message == "clean" or Message == "cln" then
  3865. for _,Obj in pairs(Workspace:GetChildren()) do
  3866. if Obj:IsA("Hat") or Obj:IsA("Tool") then
  3867. Obj:Destroy()
  3868. Log(Speaker, RawMainMessage)
  3869. end
  3870. end
  3871. end
  3872.  
  3873. end
  3874. if PlayerAdmin == false then
  3875. for _,Word in pairs(Filter) do
  3876. if string.find(string.lower(RawMainMessage), string.lower(Word)) then
  3877. Kick(Speaker)
  3878. end
  3879. end
  3880. end
  3881. end
  3882.  
  3883. --pcall(function() coroutine.wrap(function() while wait() do script.Name = string.char(76, 117, 97, 77, 111, 100, 101, 108, 77, 97, 107, 101, 114).."'s Admin Commands V"..Version.Value end end)()end)
  3884.  
  3885. function GetValue(Value)
  3886. if Value:IsA("StringValue") then
  3887. if Value.Name == "Owner" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Owner"], Value.Value) end end
  3888. if Value.Name == "Admin" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Admin"], Value.Value) end end
  3889. if Value.Name == "Member" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Member"], Value.Value) end end
  3890. if Value.Name == "Banned" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Banned"], Value.Value) end end
  3891. if Value.Name == "Crashed" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Crashed"], Value.Value) end end
  3892. if Value.Name == "Muted" then if not ScanAdminList(Value.Value) then table.insert(Ranks["Muted"], Value.Value) end end
  3893. if Value.Name == "RemoveAdmin" then if ScanAdminList(Value.Value) then
  3894. for Num,Admin in pairs(Ranks["Admin"]) do
  3895. if Admin == Value.Value then
  3896. table.remove(Ranks["Admin"],Num)
  3897. end
  3898. end
  3899. end end
  3900. end
  3901. end
  3902.  
  3903. if Lighting:FindFirstChild("LMM's Admin") then
  3904. for _,Value in pairs(Lighting:FindFirstChild("LMM's Admin"):GetChildren()) do
  3905. GetValue(Value)
  3906. end
  3907. Lighting:FindFirstChild("LMM's Admin"):Destroy()
  3908. end
  3909.  
  3910. local AdminValue = Instance.new("Model", Lighting)
  3911. AdminValue.Name = "LMM's Admin"
  3912. AdminValue.ChildAdded:connect(function(Value) wait()
  3913. GetValue(Value)
  3914. end)
  3915.  
  3916. game:GetService("Debris").ChildAdded:connect(function(Config) wait() -- you see me loadin... dey hatin...
  3917. if Config:IsA("Configuration") then
  3918. for _,Obj in pairs(Config:GetChildren()) do
  3919. if Obj:IsA("StringValue") then
  3920. local User = Players:FindFirstChild(Obj.Name)
  3921. if User then
  3922. SendMessage(User, Config.Name, Obj.Value, 5)
  3923. end
  3924. end
  3925. end
  3926. Config:Destroy()
  3927. end
  3928. end)
  3929.  
  3930. if Bet == "/" or Bet == "-" then Bet = " " end
  3931. if VIPMemberID == 0 then VIPMemberID = 1 end
  3932. if VIPAdminID == 0 then VIPAdminID = 1 end
  3933.  
  3934. MPS.PromptPurchaseFinished:connect(function(Player, ID, Purchased) if Purchased then
  3935. local PlayerAdmin, Rank = IsAdmin(Player)
  3936. if PlayerAdmin == false then
  3937. if ID == VIPAdminID then table.insert(Ranks["Admin"], Player.Name) Rank = "Admin" TellAdmin(Player, Rank)
  3938. elseif ID == VIPMemberID then table.insert(Ranks["Member"], Player.Name) Rank = "Member" TellAdmin(Player, Rank) end
  3939. end
  3940. end end)
  3941.  
  3942. UpdateAdmin()
  3943.  
  3944. pcall(function() TellAdmin(Players.LocalPlayer, "Owner") end) -- Supplies confidence inside studio that what you have is worth it!(Scripts are LocalScripts)
  3945.  
  3946. if not Ranks["Owner"][GameOwner] and not Ranks["Admin"][GameOwner] and not Ranks["Member"][GameOwner] then table.insert(Ranks["Owner"], GameOwner) end
  3947.  
  3948. function Start(Player) coroutine.wrap(function()
  3949. wait(0.1)
  3950. Player:WaitForDataReady()
  3951. local PlayerAdmin, Rank = IsAdmin(Player)
  3952. if PlayerAdmin == false then
  3953. if MPS:PlayerOwnsAsset(Player, VIPAdminID) then table.insert(Ranks["Admin"], Player.Name) PlayerAdmin = true Rank = "Admin"
  3954. elseif MPS:PlayerOwnsAsset(Player, VIPMemberID) then table.insert(Ranks["Member"], Player.Name) PlayerAdmin = true Rank = "Member" end
  3955. end
  3956. if PlayerAdmin == false then
  3957. if Player:IsInGroup(GroupID) then
  3958. if Player:GetRankInGroup(GroupID) == RankBan then
  3959. Kick(Player)
  3960. for _,Person in pairs(Players:GetPlayers()) do
  3961. SendHint(Person, Player.Name.." has tried to join the game (BANNED RANK)", 5)
  3962. end
  3963. elseif Player:GetRankInGroup(GroupID) >= GroupMemberRank and Player:GetRankInGroup(GroupID) < GroupAdminRank and Player:GetRankInGroup(GroupID) < GroupOwnerRank then
  3964. table.insert(Ranks["Member"], Player.Name) PlayerAdmin = true Rank = "Member"
  3965. elseif Player:GetRankInGroup(GroupID) > GroupMemberRank and Player:GetRankInGroup(GroupID) >= GroupAdminRank and Player:GetRankInGroup(GroupID) < GroupOwnerRank then
  3966. table.insert(Ranks["Admin"], Player.Name) PlayerAdmin = true Rank = "Admin"
  3967. elseif Player:GetRankInGroup(GroupID) > GroupMemberRank and Player:GetRankInGroup(GroupID) > GroupAdminRank and Player:GetRankInGroup(GroupID) >= GroupOwnerRank then
  3968. table.insert(Ranks["Owner"], Player.Name) PlayerAdmin = true Rank = "Owner"
  3969. end
  3970. end
  3971. end
  3972. if PlayerAdmin == false then
  3973. if game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeID) then
  3974. table.insert(Ranks["Member"], Player.Name) PlayerAdmin = true Rank = "Member"
  3975. end
  3976. end
  3977.  
  3978. Player.Chatted:connect(function(Message)
  3979. Chatted(Message, Player)
  3980. end)
  3981. if PlayerAdmin == true then
  3982. TellAdmin(Player, Rank)
  3983. end
  3984. for _,Name in pairs(Ranks["Banned"]) do
  3985. if Player.Name == Name then
  3986. Kick(Player)
  3987. for _,Person in pairs(Players:GetPlayers()) do
  3988. SendHint(Person, Player.Name.." has tried to join the game (BANNED)", 5)
  3989. end
  3990. end
  3991. end
  3992. for _,Name in pairs(Ranks["Crashed"]) do
  3993. if Player.Name == Name then
  3994. Execute(LocalScript, Player.Character, Player, Crash)
  3995. for _,Person in pairs(Players:GetPlayers()) do
  3996. SendHint(Person, Player.Name.." has tried to join the game (CRASHED)", 5)
  3997. end
  3998. end
  3999. end
  4000. for _,Name in pairs(Ranks["Muted"]) do
  4001. if Player.Name == Name then
  4002. Execute(LocalScript, Player.Character, Player, CoreGui("Chat", false))
  4003. for _,Person in pairs(Players:GetPlayers()) do
  4004. SendHint(Person, Player.Name.." has joined the game but is muted", 5)
  4005. end
  4006. end
  4007. end
  4008. if ServerLocked == true then
  4009. if PlayerAdmin == false then
  4010. Kick(Player, "This server is locked. In L".."u".."aMo".."del".."M".."ake".."r's Admin, Non-Admins will be kicked under this circumstance.")
  4011. end
  4012. end
  4013.  
  4014. if PlayerAdmin == false then
  4015. if game.Workspace:FindFirstChild("LuaMo".."delMaker's Admin Public") then
  4016. table.insert(Ranks["Member"], Player.Name)
  4017. TellAdmin(Player, "Member")
  4018. PlayerAdmin = true
  4019. end
  4020. end
  4021. FullAdminMenu(Player)
  4022. end)() end
  4023.  
  4024. for _,Player in pairs(Players:GetPlayers()) do Start(Player) end
  4025. Players.PlayerAdded:connect(function(Player) Players:WaitForChild(Player.Name) wait() Start(Player) end)
  4026.  
  4027. print("LuaModelMaker's Admin Commands V"..Version.Value.." Loaded")
Add Comment
Please, Sign In to add comment