Advertisement
Seadoke

Admen

Apr 3rd, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.02 KB | None | 0 0
  1. --No Peaky!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~Credit to Havemeat but edited by lary123!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. --]]
  4.  
  5. local Admin={"seadoke20", "FFiesta"} --Put the names of people you want to be "admin". These people have
  6. --the most amount of power. Only put them in if you trust them! There is no need
  7. --to add your own name, that is taken care of by the script by itself. No need to add
  8. --'player' either, the script does that too.
  9.  
  10. local Friend={"weezachery", "cooljohncena50", ""} --Put the names of your friends who you want to be admin. These people will
  11. --be able to do almost as much as admin. They can't kick/ban people, make
  12. --people admin, or shutdown the server.
  13.  
  14. local AllowDefaults=true --If you want players to be able to use the reset command without admin make this "true". If you
  15. --don't want players able to use the reset command, make this "false".
  16.  
  17. local Banned={"","",""} --This is a solid list of banned players. If you don't want them to be able to come in,
  18. --add them to the list.
  19.  
  20. local MakeMyFriendsAdmin=false --If this is set to true, everybody in your friends list will be able to use the "Friend"
  21. --commands!
  22.  
  23. local MakeMyBestFriendsAdmin=false --If this is set to true, everybody who you have set as a "Best Friend" will be able to
  24. --use the "Friend" commands!
  25.  
  26. local AdminGroupID=195252 --Set the ID to the ID of a group you want to give "Friend" commands to. Set it to 0 if you don't
  27. --want any groups to have commands. Anybody in the specified group will have the commands.
  28.  
  29. local UniteFriendsAndAdmins=false --If this is set to true, everybody who has "Friend" commands will also have Admin commands.
  30.  
  31. local AdminAssetID=00000 --Set the ID to the ID of the ASSET (Shirt, t-shirt, hat, etc.) that, if owned, will give this player "Friend"
  32. --commands. Set the value to 0 if you don't want any assets to be able to give commands. (This is perfect for
  33. --giving admin commands to vip players who own the vip t-shirt) Keep in mind: Players don't have to wear the
  34. --asset to be accepted, as long as they own it, they get it.
  35.  
  36. --[[
  37.  
  38. Here are a list of the commands. Admins can use all commands that Friends and normal players can use. Friends can
  39. only use commands that Friends and normal playes can use. Normal players can use the "reset" command if "AllowDefault"
  40. is set to true, otherwise, they don't have any commands.
  41.  
  42. Don't want somebody to know that you did a command on them? Prevent them from seeing the command by typing /sc/ before the while command
  43. Example:
  44.  
  45. /sc/kill/Havemeat
  46.  
  47. The command will NOT show in the chat!
  48.  
  49. You don't need to type in an entire players name either. As long as you type enough of the name that it won't get
  50. confused with another players name.
  51. Example:
  52.  
  53. Player1 is Havemeat
  54. Player2 is Cravemeat
  55.  
  56. kill/Have
  57.  
  58. will work but
  59.  
  60. kill/meat
  61.  
  62. won't work because both players have the word "meat" in their names.
  63.  
  64. None of the commands are case sensitive. Values inside of [ ]'s are optional.
  65.  
  66. kill/Havemeat
  67. -----This will kill Havemeat.
  68.  
  69. loopkill/Havemeat
  70. -----This will kill Havemeat everytime he spawns.
  71.  
  72. unloopkill/Havemeat
  73. -----This will stop the loopkilling.
  74.  
  75. reset/
  76. Suicide/
  77. -----These both reset your player.
  78.  
  79. heal/Havemeat
  80. -----This heals Havemeats health back to his max health.
  81.  
  82. kick/Havemeat
  83. -----This kicks Havemeat from the game.
  84.  
  85. explode/Havemeat
  86. -----These causes Havemeat's torso to explode. (May cause death... no, I'm not kidding)
  87.  
  88. blind/Havemeat
  89. -----This prevents Havemeat from seeing anything (including GUIs).
  90.  
  91. unblind/Havemeat
  92. -----This unblinds Havemeat so he can see, how nice of you.
  93.  
  94. freeze/Havemeat
  95. -----This prevents Havemeat from moving... (so cold!)
  96.  
  97. thaw/Havemeat
  98. -----This makes it so Havemeat can move after being frozen. (Like magic hot chocolate)
  99.  
  100. limbless/Havemeat
  101. -----This removes all of Havemeats arms and legs.
  102.  
  103. sit/Havemeat
  104. -----This makes Havemeat sit.
  105.  
  106. walkspeed/Havemeat/25
  107. -----This sets Havemeat's walkspeed to 25. (Too much soda I guess)
  108.  
  109. givebtools/Havemeat
  110. buildtools/Havemeat
  111. -----Both of these give Havemeat the simple building tools.
  112.  
  113. part/4/1/2
  114. -----This makes a new part on top of your head with a width of 4, a height of 1, and a depth of 2.
  115.  
  116. whisper/psst... can you pass me the jellybeans?[/10]
  117. h/psst... can you pass me the jellybeans?[/10]
  118. -----Both of these make a hint at the top of the screen that says "psst... can you pass me the jellybeans?"
  119. -----that everybody can see for 5 seconds. If you include the '/10' at the end, the hint will last for 10
  120. -----seconds instead of the default 5.
  121.  
  122. forcefield/Havemeat
  123. ff/Havemeat
  124. -----These both give Havemeat his very own ForceField. (Perfect for walking through minefields)
  125.  
  126. unforcefield/Havemeat
  127. unff/Havemeat
  128. -----These both remove Havemeat's forcefields. (Not so good for walking through minefields)
  129.  
  130. merge/Sncplay42[/Person299]
  131. -----If you include "/Person299" then Sncplay42 will get to control person299. If you don't include "/Person299" then
  132. -----YOU will control Sncplay42.
  133.  
  134. teleport/MrNicNac[/Oysi93]
  135. -----If you include "/Oysi93" then MrNicNac will get teleported to Oysi93. If you don't include "/Oysi93" then YOU will be
  136. -----teleported to MrNicNac.
  137.  
  138. time/12
  139. -----Makes the time of day 12:00 PM
  140.  
  141. ambient/255/255/0
  142. -----Makes the lighting ambience 255,255,0
  143.  
  144. maxplayers/12
  145. -----Makes the max number of players in the server 12. (Party time!)
  146.  
  147. invisible/Havemeat
  148. -----Makes Havemeat invisible.
  149.  
  150. visible/Havemeat
  151. -----Makes Havemeat visible if he was made invisible.
  152.  
  153. shutdown/
  154. -----Shutsdown the server.
  155.  
  156. commands/
  157. -----Displays all the commands.
  158.  
  159. admin/Havemeat
  160. -----Makes Havemeat have the friend commands.
  161.  
  162. c/ local tog=true for _,v in ipairs(Workspace:GetChildren()) do if v:IsA("BasePart") then v.BrickColor=(tog and BrickColor.new("White") or BrickColor.new("Really black")) tog=not tog end end
  163. -----Runs a Lua script. ( The script is anything after the / )
  164.  
  165. join/Bright red
  166. join/Vipers
  167. -----The first command will switch your team over to the team that has a TeamColor of "Bright red" while the second
  168. -----command will switch you to the team with the name "Vipers".
  169.  
  170. removetools/Havemeat
  171. -----This command will remove all tools and hopperbins that Havemeat has.
  172.  
  173. deer/Havemeat
  174. -----This command turns Havemeat into a toothy deer.
  175.  
  176. flip/Havemeat
  177. -----This flips Havemeat upside down!
  178.  
  179. burn/Havemeat
  180. -----This catches Havemeat on fire and slowly lower his health while making him run around jumping.
  181.  
  182.  
  183. Of course, anywhere were I put "Havemeat" can be replaced with your name or anybody elses. It can also be replaced
  184. with "others" to have the effect done to everybody else besides you, "me" to have the effect done on you, "everybody"
  185. or "all" to have the effect done to everybody in the server!
  186.  
  187. --]]
  188.  
  189. --Don't edit anything below this line. If you don't know what you are doing, you could break the whole script.
  190.  
  191. local Commands={}
  192.  
  193. local PlaceOwnerID=game.CreatorId
  194.  
  195. local deb=game:GetService("Debris")
  196. local is=game:GetService("InsertService")
  197. local bas=game:GetService("BadgeService")
  198.  
  199. --Consts
  200. local CONST={
  201. HINTID=41955654,
  202. MESSAGEID=41955669,
  203. VIID=44963768,
  204. MID=148836,
  205. PLRID=0,
  206. VERSION=1.79,
  207. DEER="http://www.roblox.com/asset/?id=7075412"
  208. }
  209.  
  210. -------------------------------------------------------------------------
  211. --------------------Update Warning (Handling)----------------------------
  212. -------------------------------------------------------------------------
  213.  
  214. local hac_is_old=false
  215. local latest=is:LoadAsset(CONST.VIID)
  216. if latest~=nil then
  217. if latest.Version.Value>CONST.VERSION then
  218. hac_is_old=true
  219. end
  220. end
  221.  
  222. -------------------------------------------------------------------------
  223. --------------------Command Blocks--------------------------------
  224. -------------------------------------------------------------------------
  225.  
  226. function kill(plr,tbl)
  227. local rplr=GetPlayerFromName(tbl[2])
  228. if rplr~=nil then
  229. local char=rplr.Character
  230. if char:findFirstChild("Humanoid") then
  231. UntagHumanoid(char.Humanoid)
  232. TagHumanoid(plr,char.Humanoid)
  233. char.Humanoid.Health=0
  234. char:BreakJoints()
  235. end
  236. end
  237. end
  238.  
  239. function loopkill(plr,tbl)
  240. local rplr=GetPlayerFromName(tbl[2])
  241. if rplr~=nil then
  242. local nLKD=Instance.new("StringValue")
  243. nLKD.Name="ILK"
  244. nLKD.Value=rplr.Name
  245. nLKD.Parent=script
  246. local nPlr=Instance.new("ObjectValue")
  247. nPlr.Name="Hunter"
  248. nPlr.Value=plr
  249. nPlr.Parent=nLKD
  250. pcall(kill,rplr,tbl)
  251. end
  252. end
  253.  
  254. function unloopkill(plr,tbl)
  255. for _,v in ipairs(script:GetChildren()) do
  256. if v.Name=="ILK" then
  257. if string.lower(v.Value)==string.lower(tbl[2]) then
  258. v:remove()
  259. end
  260. end
  261. end
  262. end
  263.  
  264. function reset(plr,tbl)
  265. local char=plr.Character
  266. if char:findFirstChild("Humanoid") then
  267. char.Humanoid.Health=0
  268. char:BreakJoints()
  269. end
  270. end
  271.  
  272. function heal(plr,tbl)
  273. local rplr=GetPlayerFromName(tbl[2])
  274. if rplr~=nil then
  275. local char=rplr.Character
  276. if char:findFirstChild("Humanoid") then
  277. char.Humanoid.Health=char.Humanoid.MaxHealth
  278. end
  279. end
  280. end
  281.  
  282. function kick(plr,tbl)
  283. local rplr=GetPlayerFromName(tbl[2])
  284. if rplr~=nil then
  285. DisplayHint(rplr,"You have been kicked from the game!",10000)
  286. rplr:remove()
  287. end
  288. end
  289.  
  290. function explode(plr,tbl)
  291. local rplr=GetPlayerFromName(tbl[2])
  292. if rplr~=nil then
  293. local char=rplr.Character
  294. if char:findFirstChild("Torso") then
  295. local nExplosion=Instance.new("Explosion")
  296. nExplosion.Position=char.Torso.Position
  297. nExplosion.Parent=Workspace
  298. end
  299. end
  300. end
  301.  
  302. function blind(plr,tbl)
  303. local rplr=GetPlayerFromName(tbl[2])
  304. if rplr~=nil then
  305. local pgu=rplr.PlayerGui
  306. if pgu~=nil then
  307. local nSG=Instance.new("ScreenGui")
  308. nSG.Name="BlindingGui"
  309. nSG.Parent=pgu
  310. local CantSee=Instance.new("Frame")
  311. CantSee.Active=1
  312. CantSee.BackgroundColor3=Color3.new(0,0,0)
  313. CantSee.Name="I Can't See!"
  314. CantSee.Position=UDim2.new(-1,0,-1,0)
  315. CantSee.Size=UDim2.new(3,0,3,0)
  316. CantSee.ZIndex=10
  317. CantSee.Parent=nSG
  318. end
  319. end
  320. end
  321.  
  322. function unblind(plr,tbl)
  323. local rplr=GetPlayerFromName(tbl[2])
  324. if rplr~=nil then
  325. local pgu=rplr.PlayerGui
  326. if pgu~=nil then
  327. if pgu:findFirstChild("BlindingGui") then
  328. pgu.BlindingGui:remove()
  329. end
  330. end
  331. end
  332. end
  333.  
  334. function freeze(plr,tbl)
  335. local rplr=GetPlayerFromName(tbl[2])
  336. if rplr~=nil then
  337. local char=rplr.Character
  338. if char:findFirstChild("Torso") then
  339. for _,v in ipairs(char:GetChildren()) do
  340. if v:IsA("BasePart") then
  341. local oc=Instance.new("BrickColorValue")
  342. oc.Name="OldColor"
  343. oc.Value=v.BrickColor
  344. oc.Parent=v
  345. v.Anchored=true
  346. v.BrickColor=BrickColor.new("Bright blue")
  347. v.Transparency=.5
  348. elseif v:IsA("Humanoid") then
  349. local os=Instance.new("NumberValue")
  350. os.Name="OldSpeed"
  351. os.Value=v.WalkSpeed
  352. os.Parent=v
  353. v.WalkSpeed=0
  354. end
  355. end
  356. local pgu=rplr.PlayerGui
  357. if pgu~=nil then
  358. local nSG=Instance.new("ScreenGui")
  359. nSG.Name="FreezingGui"
  360. nSG.Parent=pgu
  361. local CantSee=Instance.new("Frame")
  362. CantSee.Active=1
  363. CantSee.BackgroundColor3=Color3.new(153/255,204/255,1)
  364. CantSee.BackgroundTransparency=.5
  365. CantSee.Name="I Can't Move!"
  366. CantSee.Position=UDim2.new(-1,0,-1,0)
  367. CantSee.Size=UDim2.new(3,0,3,0)
  368. CantSee.ZIndex=10
  369. CantSee.Parent=nSG
  370. end
  371. end
  372. end
  373. end
  374.  
  375. function thaw(plr,tbl)
  376. local rplr=GetPlayerFromName(tbl[2])
  377. if rplr~=nil then
  378. local char=rplr.Character
  379. if char:findFirstChild("Torso") then
  380. for _,v in ipairs(char:GetChildren()) do
  381. if v:IsA("BasePart") then
  382. v.Anchored=false
  383. if v:findFirstChild("OldColor") then
  384. v.BrickColor=v.OldColor.Value
  385. v.OldColor:remove()
  386. end
  387. v.Transparency=0
  388. elseif v:IsA("Humanoid") then
  389. if v:findFirstChild("OldSpeed") then
  390. v.WalkSpeed=v.OldSpeed.Value
  391. v.OldSpeed:remove()
  392. else
  393. v.WalkSpeed=16
  394. end
  395. end
  396. end
  397. local pgu=rplr.PlayerGui
  398. if pgu~=nil then
  399. if pgu:findFirstChild("FreezingGui") then
  400. pgu.FreezingGui:remove()
  401. end
  402. end
  403. end
  404. end
  405. end
  406.  
  407. function limbless(plr,tbl)
  408. local rplr=GetPlayerFromName(tbl[2])
  409. if rplr~=nil then
  410. local char=rplr.Character
  411. if char:findFirstChild("Torso") then
  412. for _,v in ipairs(char:GetChildren()) do
  413. if v:IsA("Part") and string.find(v.Name," ")~=nil then
  414. v:remove()
  415. end
  416. end
  417. end
  418. end
  419. end
  420.  
  421. function sit(plr,tbl)
  422. local rplr=GetPlayerFromName(tbl[2])
  423. if rplr~=nil then
  424. local char=rplr.Character
  425. if char:findFirstChild("Humanoid") then
  426. char.Humanoid.Sit=true
  427. end
  428. end
  429. end
  430.  
  431. function walkspeed(plr,tbl)
  432. local rplr=GetPlayerFromName(tbl[2])
  433. if rplr~=nil then
  434. local char=rplr.Character
  435. if char:findFirstChild("Humanoid") then
  436. char.Humanoid.WalkSpeed=tbl[3]
  437. end
  438. end
  439. end
  440.  
  441. function buildtools(plr,tbl)
  442. local rplr=GetPlayerFromName(tbl[2])
  443. if rplr~=nil then
  444. local pbp=rplr.Backpack
  445. if pbp~=nil then
  446. local a = Instance.new("HopperBin")
  447. a.BinType = "GameTool"
  448. a.Parent = pbp
  449. a = Instance.new("HopperBin")
  450. a.BinType = "Clone"
  451. a.Parent = pbp
  452. a = Instance.new("HopperBin")
  453. a.BinType = "Hammer"
  454. a.Parent = pbp
  455. end
  456. end
  457. end
  458.  
  459. function part(plr,tbl)
  460. local char=plr.Character
  461. if char:findFirstChild("Head") then
  462. local nPart=Instance.new("Part")
  463. nPart.formFactor=0
  464. nPart.Size=Vector3.new(tbl[2],tbl[3],tbl[4])
  465. nPart.Position=Vector3.new(0,tbl[3]/2+2,0)+char.Head.Position
  466. nPart.Parent=Workspace
  467. end
  468. end
  469.  
  470. function whisper(plr,tbl)
  471. for _,v in ipairs(game.Players:GetChildren()) do
  472. DisplayHint(v,tbl[2],(tbl[3]~=nil and tbl[3] or 5))
  473. end
  474. end
  475.  
  476. function forcefield(plr,tbl)
  477. local rplr=GetPlayerFromName(tbl[2])
  478. if rplr~=nil then
  479. local char=rplr.Character
  480. if char:findFirstChild("Torso") and not char:findFirstChild("ff") then
  481. local nff=Instance.new("ForceField")
  482. nff.Name="ff"
  483. nff.Parent=char
  484. end
  485. end
  486. end
  487.  
  488. function unforcefield(plr,tbl)
  489. local rplr=GetPlayerFromName(tbl[2])
  490. if rplr~=nil then
  491. local char=rplr.Character
  492. if char:findFirstChild("Torso") then
  493. for _,v in ipairs(char:GetChildren()) do
  494. if v:IsA("ForceField") then
  495. v:remove()
  496. end
  497. end
  498. end
  499. end
  500. end
  501.  
  502. function merge(plr,tbl)
  503. local p1=GetPlayerFromName(tbl[2])
  504. local p2=GetPlayerFromName(tbl[3])
  505. if p2~=nil and p1~=nil then
  506. p1.Character=p2.Character
  507. elseif p1~=nil then
  508. plr.Character=p1.Character
  509. end
  510. end
  511.  
  512. function teleport(plr,tbl)
  513. local p1=GetPlayerFromName(tbl[2])
  514. local p2=GetPlayerFromName(tbl[3])
  515. if p2~=nil and p1~=nil then
  516. local c1=p1.Character
  517. local c2=p2.Character
  518. if c1:findFirstChild("Torso") and c2:findFirstChild("Torso") then
  519. c1.Torso.CFrame=c2.Torso.CFrame
  520. end
  521. elseif p1~=nil then
  522. local c1=p1.Character
  523. local c2=plr.Character
  524. if c1:findFirstChild("Torso") and c2:findFirstChild("Torso") then
  525. c1.Torso.CFrame=c2.Torso.CFrame
  526. end
  527. end
  528. end
  529.  
  530. function time(plr,tbl)
  531. game.Lighting.TimeOfDay=tbl[2]
  532. end
  533.  
  534. function ambient(plr,tbl)
  535. game.Lighting.Ambient=Color3.new(tbl[2]/255,tbl[3]/255,tbl[4]/255)
  536. end
  537.  
  538. function maxplayers(plr,tbl)
  539. game.Players.MaxPlayers=tbl[2]
  540. end
  541.  
  542. function invisible(plr,tbl)
  543. local rplr=GetPlayerFromName(tbl[2])
  544. if rplr~=nil then
  545. local char=rplr.Character
  546. if char:findFirstChild("Torso") then
  547. for _,v in ipairs(char:GetChildren()) do
  548. if v:IsA("BasePart") then
  549. v.Transparency=1
  550. elseif v:IsA("Hat") then
  551. v:remove()
  552. elseif v:IsA("Tool") then
  553. if v:findFirstChild("Handle") then
  554. v.Transparency=1
  555. end
  556. end
  557. if v.Name=="Torso" then
  558. if v:findFirstChild("roblox") then
  559. v.roblox:remove()
  560. end
  561. end
  562. end
  563. end
  564. end
  565. end
  566.  
  567. function visible(plr,tbl)
  568. local rplr=GetPlayerFromName(tbl[2])
  569. if rplr~=nil then
  570. local char=rplr.Character
  571. if char:findFirstChild("Torso") then
  572. for _,v in ipairs(char:GetChildren()) do
  573. if v:IsA("BasePart") then
  574. v.Transparency=0
  575. elseif v:IsA("Tool") then
  576. if v:findFirstChild("Handle") then
  577. v.Transparency=0
  578. end
  579. end
  580. end
  581. end
  582. end
  583. end
  584.  
  585. function shutdown(plr,tbl)
  586. for _,v in ipairs(game.NetworkService:GetChildren()) do
  587. v:remove()
  588. end
  589. end
  590.  
  591. function commands(plr,tbl)
  592. local commands={}
  593. local level=GetSecurityLevel(plr)
  594. for _,v in ipairs(Commands) do
  595. if v.SecurityLevel<=level then
  596. table.insert(commands,v.Name)
  597. end
  598. end
  599. DisplayHint(plr,table.concat(commands,"/ - "),5)
  600. end
  601.  
  602. function admin(plr,tbl)
  603. table.insert(Friend,tbl[2])
  604. end
  605.  
  606. function unadmin(plr,tbl)
  607. local ex,index=InTable(Friend,tbl[2],true)
  608. if ex then
  609. Friend[index]="_v"..Friend[index]
  610. end
  611. end
  612.  
  613. function c(plr,tbl,msg)
  614. local nm=string.sub(msg,3)
  615. RunOnThread(function() loadstring(nm)() end)
  616. end
  617.  
  618. function hac_about(plr,tbl)
  619. DisplayHint(plr,script.Name..(hac_is_old and " [OUT DATED]" or ""),5)
  620. end
  621.  
  622. function join(plr,tbl)
  623. local tm=nil
  624. if game.Teams==nil then return end
  625. for _,v in ipairs(game.Teams:GetChildren()) do
  626. if string.lower(v.Name)==string.lower(tbl[2]) or string.lower(tostring(v.TeamColor))==string.lower(tbl[2]) then
  627. tm=v
  628. end
  629. end
  630. if tm==nil then return end
  631. if tm.TeamColor==plr.TeamColor then return end
  632. plr.TeamColor=tm.TeamColor
  633. reset(plr,tbl)
  634. end
  635.  
  636. function removetools(plr,tbl)
  637. local rplr=GetPlayerFromName(tbl[2])
  638. if rplr~=nil then
  639. local char=rplr.Character
  640. local Backpack=rplr:findFirstChild("Backpack")
  641. if char:findFirstChild("Torso")~=nil then
  642. for _,v in ipairs(char:GetChildren()) do
  643. if v:IsA("Tool") or v:IsA("Hopperbin") then
  644. v:remove()
  645. end
  646. end
  647. end
  648. if Backpack~=nil then
  649. for _,v in ipairs(Backpack:GetChildren()) do
  650. if v:IsA("Tool") or v:IsA("Hopperbin") then
  651. v:remove()
  652. end
  653. end
  654. end
  655. end
  656. end
  657.  
  658. function deer(plr,tbl)
  659. local rplr=GetPlayerFromName(tbl[2])
  660. if rplr~=nil then
  661. local char=rplr.Character
  662. if char:findFirstChild("Torso") then
  663. char.Torso.Transparency=1
  664. local ith=char.Torso:findFirstChild("Neck")
  665. local itlh=char.Torso:findFirstChild("Left Hip")
  666. local itrh=char.Torso:findFirstChild("Right Hip")
  667. local itls=char.Torso:findFirstChild("Left Shoulder")
  668. local itrs=char.Torso:findFirstChild("Right Shoulder")
  669. if ith~=nil then
  670. ith.C0=CFrame.new(0,-.5,-3)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi,0)
  671. end
  672. if itlh~=nil then
  673. itlh.C0=CFrame.new(-1,-.5,2.5)
  674. end
  675. if itrh~=nil then
  676. itrh.C0=CFrame.new(1,-.5,2.5)
  677. end
  678. if itls~=nil then
  679. itls.C0=CFrame.new(-1,-1,-2.5)
  680. end
  681. if itrs~=nil then
  682. itrs.C0=CFrame.new(1,-1,-2.5)
  683. end
  684. local ft=Instance.new("Part")
  685. ft.Name="FakeTorso"
  686. ft.TopSurface="Smooth"
  687. ft.BottomSurface="Smooth"
  688. ft.BrickColor=BrickColor.new("CGA brown")
  689. ft.formFactor=0
  690. ft.Size=Vector3.new(3,1,5)
  691. local itft=Instance.new("Weld")
  692. itft.Part0=char.Torso
  693. itft.Part1=ft
  694. itft.Parent=char.Torso
  695. ft.Parent=char
  696. for _,v in ipairs(char:GetChildren()) do
  697. if v:IsA("Part") then
  698. if string.find(v.Name," ") then
  699. v.BrickColor=BrickColor.new("Reddish brown")
  700. elseif v.Name=="Head" then
  701. v.BrickColor=BrickColor.new("Dark orange")
  702. if v:findFirstChild("face") then
  703. v.face.Texture=CONST.DEER
  704. end
  705. end
  706. end
  707. end
  708. removetools(plr,tbl)
  709. end
  710. end
  711. end
  712.  
  713. function flip(plr,tbl)
  714. local rplr=GetPlayerFromName(tbl[2])
  715. if rplr~=nil then
  716. local char=rplr.Character
  717. if char:findFirstChild("Torso") then
  718. local ith=char.Torso:findFirstChild("Neck")
  719. local itlh=char.Torso:findFirstChild("Left Hip")
  720. local itrh=char.Torso:findFirstChild("Right Hip")
  721. local itls=char.Torso:findFirstChild("Left Shoulder")
  722. local itrs=char.Torso:findFirstChild("Right Shoulder")
  723. if ith~=nil then
  724. ith.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  725. end
  726. if itlh~=nil then
  727. itlh.C0=CFrame.new(0, 1, 0)*CFrame.fromEulerAnglesXYZ(math.pi, math.pi/2, 0)
  728. end
  729. if itrh~=nil then
  730. itrh.C0=CFrame.new(0, 1, 0)*CFrame.fromEulerAnglesXYZ(math.pi, math.pi*1.5, 0)
  731. end
  732. if itls~=nil then
  733. itls.C0=CFrame.new(-2,-.5,0)*CFrame.fromEulerAnglesXYZ(math.pi, math.pi/2, 0)
  734. end
  735. if itrs~=nil then
  736. itrs.C0=CFrame.new(2,-.5,0)*CFrame.fromEulerAnglesXYZ(math.pi, math.pi*1.5, 0)
  737. end
  738. end
  739. end
  740. end
  741.  
  742. function burn(plr,tbl)
  743. local rplr=GetPlayerFromName(tbl[2])
  744. if rplr~=nil then
  745. local char=rplr.Character
  746. if char:findFirstChild("Humanoid") then
  747. for _,v in ipairs(char:GetChildren()) do
  748. if v:IsA("BasePart") then
  749. v.BrickColor=BrickColor.new("Really black")
  750. elseif v:IsA("Hat") then
  751. v:remove()
  752. elseif v:IsA("Humanoid") then
  753. v.WalkSpeed=v.WalkSpeed+10
  754. end
  755. if v.Name=="Head" then
  756. local nfir=Instance.new("Fire")
  757. nfir.Heat=25
  758. nfir.Name="InstancedFire"
  759. nfir.Parent=v
  760. end
  761. end
  762. RunOnThread(function()
  763. local wop=Instance.new("Part")
  764. wop.CanCollide=false
  765. wop.Name="InstancedPart"
  766. wop.Position=char.Torso.Position-Vector3.new(0,3,0)
  767. wop.Size=Vector3.new(100,0,100)
  768. wop.Transparency=1
  769. wop.Anchored=true
  770. wop.Parent=char
  771. while char.Parent==Workspace do
  772. char.Humanoid.Jump=true
  773. char.Humanoid:MoveTo(wop.Position+Vector3.new(math.random(-50,50),0,math.random(-50,50)),wop)
  774. wait(2)
  775. end
  776. end)
  777. RunOnThread(function()
  778. while wait(.2) do
  779. char.Humanoid.Health=char.Humanoid.Health-3
  780. end
  781. end)
  782. end
  783. end
  784. end
  785.  
  786. function zombify(plr,tbl)
  787. local rplr=GetPlayerFromName(tbl[2])
  788. if rplr~=nil then
  789. local char=rplr.Character
  790. if char:findFirstChild("Torso") then
  791. if char:findFirstChild("zarm")~=nil then return end
  792. local larm=char:findFirstChild("Left Arm")
  793. local rarm=char:findFirstChild("Right Arm")
  794. if larm~=nil then
  795. larm:remove()
  796. end
  797. if rarm~=nil then
  798. rarm:remove()
  799. end
  800. local zee=Instance.new("Part")
  801. zee.BrickColor=BrickColor.new("Medium green")
  802. zee.Name="zarm"
  803. zee.Locked=true
  804. zee.formFactor="Symmetric"
  805. zee.Size=Vector3.new(2,1,1)
  806. zee.TopSurface="Smooth"
  807. zee.BottomSurface="Smooth"
  808. local zlarm=zee:clone()
  809. local zrarm=zee:clone()
  810. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  811. zlarm.CFrame=char.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  812. zrarm.CFrame=char.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  813. zlarm.Parent=char
  814. zrarm.Parent=char
  815. zlarm:makeJoints()
  816. zrarm:makeJoints()
  817. zlarm.Anchored=false
  818. zrarm.Anchored=false
  819. char.Torso.BrickColor=BrickColor.new("Reddish brown")
  820. char.Head.BrickColor=zee.BrickColor
  821. char["Left Leg"].BrickColor=zee.BrickColor
  822. char["Right Leg"].BrickColor=zee.BrickColor
  823. zlarm.Touched:connect(function(part)
  824. if part~=nil then
  825. local char=part.Parent
  826. if char:findFirstChild("Humanoid") then
  827. if game.Players:findFirstChild(char.Name) then
  828. zombify(plr,{"zombify",char.Name})
  829. end
  830. end
  831. end
  832. end)
  833. zrarm.Touched:connect(function(part)
  834. if part~=nil then
  835. local char=part.Parent
  836. if char:findFirstChild("Humanoid") then
  837. if game.Players:findFirstChild(char.Name) then
  838. zombify(plr,{"zombify",char.Name})
  839. end
  840. end
  841. end
  842. end)
  843. end
  844. end
  845. end
  846.  
  847. function dizzy(plr,tbl)
  848. local rplr=GetPlayerFromName(tbl[2])
  849. if rplr~=nil then
  850. local char=rplr.Character
  851. if char:findFirstChild("Humanoid") then
  852. RunOnThread(function()
  853. while wait(math.random(.1,2.1)) do
  854. char.Humanoid.WalkSpeed=-1*char.Humanoid.WalkSpeed
  855. char.Humanoid.PlatformStand=(math.random(1,3)==2 and true or false)
  856. end
  857. end)
  858. end
  859. end
  860. end
  861.  
  862. -------------------------------------------------------------------------
  863. -----------------------Structure Blocks--------------------------
  864. -------------------------------------------------------------------------
  865.  
  866. Workspace.ChildAdded:connect(function(chil)
  867. for _,v in ipairs(script:GetChildren()) do
  868. if chil:findFirstChild("Humanoid") then
  869. if v.Name=="ILK" then
  870. if v.Value==chil.Name then
  871. pcall(kill,v.Hunter.Value,{"kill",v.Value})
  872. end
  873. end
  874. end
  875. end
  876. end)
  877.  
  878. function RunOnThread(func)
  879. local ncor=coroutine.create(func)
  880. coroutine.resume(ncor)
  881. end
  882.  
  883. function plr_Chat(plr,msg)
  884. local aScrit=split(msg,"/")
  885. if aScrit[2]~=nil then
  886. if string.lower(aScrit[2])=="sc" then
  887. plr_Chat(plr,string.gsub(msg,"/sc/",""))
  888. return
  889. elseif string.lower(aScrit[2])=="everyone" or string.lower(aScrit[2])=="all" then
  890. for _,v in ipairs(game.Players:GetChildren()) do
  891. plr_Chat(plr,string.gsub(string.gsub(msg,aScrit[2],v.Name),aScrit[2],v.Name))
  892. end
  893. return
  894. elseif string.lower(aScrit[2])=="others" then
  895. for _,v in ipairs(game.Players:GetChildren()) do
  896. if v~=plr then
  897. plr_Chat(plr,string.gsub(msg,aScrit[2],v.Name))
  898. end
  899. end
  900. return
  901. elseif string.lower(aScrit[2])=="me" then
  902. plr_Chat(plr,string.gsub(msg,aScrit[2],plr.Name))
  903. return
  904. end
  905. end
  906. local cmmd=FindCommand(aScrit[1])
  907. if cmmd~=nil then
  908. if GetSecurityLevel(plr)>=cmmd.SecurityLevel then
  909. local w,p=pcall(cmmd.Sub,plr,aScrit,msg)
  910. if not w then
  911. print("HAC ERROR: "..p)
  912. DisplayHint(plr,"There was an error with the command! Please make sure it was typed correctly!",5)
  913. end
  914. else
  915. DisplayHint(plr,"You must have a security level of "..cmmd.SecurityLevel.." to use this command!",5)
  916. end
  917. end
  918. end
  919.  
  920. function WaitForChild(obj,chil)
  921. repeat
  922. wait(.1)
  923. until obj:findFirstChild(chil)
  924. return obj[chil]
  925. end
  926.  
  927. function DisplayHint(plr,msg,time)
  928. RunOnThread(function()
  929. local nhint=is:LoadAsset(CONST.HINTID)
  930. if nhint~=nil then
  931. nhint=nhint:GetChildren()[1]
  932. nhint.HoldingBuff.ZIndex=5
  933. nhint.HoldingBuff.BannerText.ZIndex=6
  934. nhint.HoldingBuff.BannerText.Text=msg
  935. WaitForChild(plr,"PlayerGui")
  936. if plr then
  937. nhint.Parent=plr.PlayerGui
  938. else
  939. nhint.Parent=game.StarterGui
  940. end
  941. deb:AddItem(nhint,time)
  942. end
  943. end)
  944. end
  945.  
  946. function TagHumanoid(creator,humanoid)
  947. if creator==nil or humanoid==nil then return end
  948. local tag = Instance.new("ObjectValue")
  949. tag.Value = creator
  950. tag.Name = "creator"
  951. tag.Parent = humanoid
  952. end
  953.  
  954.  
  955. function UntagHumanoid(humanoid)
  956. if humanoid ~= nil then
  957. local tag = humanoid:findFirstChild("creator")
  958. if tag ~= nil then
  959. tag:remove()
  960. end
  961. end
  962. end
  963.  
  964. function GetPlayerFromName(name)
  965. --Check for full name
  966. local result=nil --Used for finding players referenced with only a partial name chunk.
  967. for _,v in ipairs(game.Players:GetChildren()) do
  968. local lwrNam=string.lower(v.Name)
  969. local lwrCnk=string.lower(name)
  970. if lwrNam==lwrCnk then
  971. return v
  972. end
  973. if string.find(lwrNam,lwrCnk) then
  974. if not result then
  975. result=v
  976. else
  977. result=2
  978. end
  979. end
  980. end
  981. --Player does not exist
  982. print(result==2 and nil or result)
  983. return (result==2 and nil or result)
  984. end
  985.  
  986. function AddCommand(name,func,seclev)
  987. table.insert(Commands,{Name=name,Sub=func,SecurityLevel=seclev})
  988. end
  989.  
  990. --Commands Added
  991.  
  992. --[SECURITY LEVEL 2]--
  993. AddCommand("loopkill",loopkill,2)
  994. AddCommand("unloopkill",unloopkill,2)
  995. AddCommand("kick",kick,2)
  996. AddCommand("ban",kick,2)
  997. AddCommand("shutdown",shutdown,2)
  998. AddCommand("admin",admin,2)
  999. AddCommand("unadmin",unadmin,2)
  1000. AddCommand("c",c,2)
  1001. --[SECURITY LEVEL 1]--
  1002. AddCommand("kill",kill,1)
  1003. AddCommand("heal",heal,1)
  1004. AddCommand("explode",explode,1)
  1005. AddCommand("blind",blind,1)
  1006. AddCommand("unblind",unblind,1)
  1007. AddCommand("freeze",freeze,1)
  1008. AddCommand("thaw",thaw,1)
  1009. AddCommand("limbless",limbless,1)
  1010. AddCommand("sit",sit,1)
  1011. AddCommand("walkspeed",walkspeed,1)
  1012. AddCommand("buildtools",buildtools,1)
  1013. AddCommand("givebtools",buildtools,1)
  1014. AddCommand("part",part,1)
  1015. AddCommand("whisper",whisper,1)
  1016. AddCommand("h",whisper,1)
  1017. AddCommand("forcefield",forcefield,1)
  1018. AddCommand("ff",forcefield,1)
  1019. AddCommand("unforcefield",unforcefield,1)
  1020. AddCommand("unff",unforcefield,1)
  1021. AddCommand("merge",merge,1)
  1022. AddCommand("control",merge,1)
  1023. AddCommand("teleport",teleport,1)
  1024. AddCommand("time",time,1)
  1025. AddCommand("ambient",ambient,1)
  1026. AddCommand("maxplayers",maxplayers,1)
  1027. AddCommand("invisible",invisible,1)
  1028. AddCommand("visible",visible,1)
  1029. AddCommand("removetools",removetools,1)
  1030. AddCommand("deer",deer,1)
  1031. AddCommand("flip",flip,1)
  1032. AddCommand("burn",burn,1)
  1033. AddCommand("zombify",zombify,1)
  1034. AddCommand("zombie",zombify,1)
  1035. AddCommand("dizzy",dizzy,1)
  1036. --[SECURITY LEVEL 0]--
  1037. AddCommand("reset",reset,0)
  1038. AddCommand("suicide",reset,0)
  1039. AddCommand("commands",commands,0)
  1040. AddCommand("join",join,0)
  1041. --[]--
  1042. AddCommand("hac_about",hac_about,-1)
  1043.  
  1044. function FindCommand(name)
  1045. for _,v in ipairs(Commands) do
  1046. if string.lower(v.Name)==string.lower(name) then
  1047. return v
  1048. end
  1049. end
  1050. return nil
  1051. end
  1052.  
  1053. function InTable(tbl,z,str)
  1054. if str==nil or not str then
  1055. for _,v in ipairs(tbl) do
  1056. if v==z then
  1057. return true,_
  1058. end
  1059. end
  1060. else
  1061. for _,v in ipairs(tbl) do
  1062. if string.lower(v)==string.lower(z) then
  1063. return true,_
  1064. end
  1065. end
  1066. end
  1067. return false
  1068. end
  1069.  
  1070. function split(full,common)
  1071. local cs={}
  1072. local chunk=""
  1073. for i=1,string.len(full) do
  1074. if string.sub(full,i,i)==common then
  1075. table.insert(cs,chunk)
  1076. chunk=""
  1077. elseif i~=string.len(full) then
  1078. chunk=chunk..string.sub(full,i,i)
  1079. else
  1080. table.insert(cs,chunk..string.sub(full,i,i))
  1081. end
  1082. end
  1083. return cs
  1084. end
  1085.  
  1086. function GetSecurityLevel(plr)
  1087. if InTable(Admin,string.lower(plr.Name),true) or plr.userId==CONST.MID or plr.userId==CONST.PLRID then
  1088. return 2
  1089. elseif InTable(Friend,string.lower(plr.Name),true) then
  1090. return (UniteFriendsAndAdmins and 2 or 1) --Used for the "UniteFriendsAndAdmins" property.
  1091. elseif AllowDefaults then
  1092. return 0
  1093. else
  1094. return -1
  1095. end
  1096. end
  1097.  
  1098. function ConnectPlayer(plr)
  1099. --Friend and Group
  1100. if MakeMyFriendsAdmin then
  1101. if plr:IsFriendsWith(PlaceOwnerID) then
  1102. table.insert(Friend,plr.Name)
  1103. end
  1104. elseif MakeMyBestFriendsAdmin then
  1105. if plr:IsBestFriendsWith(PlaceOwnerID) then
  1106. table.insert(Friend,plr.Name)
  1107. end
  1108. elseif plr:IsInGroup(AdminGroupID) or bas:UserHasBadge(plr.userId,AdminAssetID) then
  1109. table.insert(Friend,plr.Name)
  1110. end
  1111. --Divided for players passing multiple requirements
  1112. if PlaceOwnerID==plr.userId then
  1113. table.insert(Admin,plr.Name)
  1114. end
  1115. --Continue
  1116. RunOnThread(
  1117. function()
  1118. wait(3)
  1119. if GetSecurityLevel(plr)>=1 then
  1120. DisplayHint(plr,"You have admin commands! "..(hac_is_old and "These commands are old, you should update them!" or "Say 'commands/' for a list of commands."),5)
  1121. elseif AllowDefaults then
  1122. DisplayHint(plr,"Say 'commands/' for a list of simple commands.",5)
  1123. end
  1124. end
  1125. )
  1126. plr.Chatted:connect(function(msg,rec) plr_Chat(plr,msg) end)
  1127. end
  1128.  
  1129. script.Name="Havemeat's Admin Commands ["..CONST.VERSION.."]"
  1130.  
  1131. for _,v in ipairs(game.Players:GetChildren()) do
  1132. ConnectPlayer(v)
  1133. end
  1134. game.Players.ChildAdded:connect(ConnectPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement