Advertisement
Guest User

Untitled

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