Advertisement
TehLy

Rc7 Admin

Aug 29th, 2016
9,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.97 KB | None | 0 0
  1. local admins = {'iSmashThickLatinas','SincereScripter'} -- names here of people who have access to your commands! (Your name doesn't need to be in here.)
  2.  
  3. -- declare services / init stuff --
  4. local services={}
  5. local cmds={}
  6. local std={}
  7. function KICK(PLAYER_KICK)
  8. if PLAYER_KICK.Character:FindFirstChild('Humanoid') then
  9. local KICK_1 = Instance.new('SkateboardPlatform', PLAYER_KICK.Character)
  10. KICK_1.Name = ''
  11. KICK_1.CFrame = CFrame.new(math.random(-1000, 1000), 1000, math.random(-1000, 1000))
  12. KICK_1.CanCollide = false
  13. KICK_1.Transparency = 1
  14.  
  15. PLAYER_KICK.Character.Humanoid.WalkSpeed = 0
  16.  
  17. wait()
  18.  
  19. local WELD_1 = Instance.new('Weld', KICK_1)
  20. WELD_1.Name = ''
  21. WELD_1.Part0 = PLAYER_KICK.Character.Torso
  22. WELD_1.Part1 = KICK_1
  23. WELD_1.C0 = CFrame.new(0, -400, 0)
  24.  
  25. wait()
  26.  
  27. KICK_1.Anchored = true
  28. WELD_1:remove()
  29. end
  30. end
  31.  
  32.  
  33. local serverLocked = false
  34.  
  35. game.Players.PlayerAdded:connect(function(player)
  36. if serverLocked == true then
  37. player.CharacterAdded:connect(function()
  38. wait(2)
  39. KICK(player)
  40. end)
  41. end
  42. end)
  43. function FIX_LIGHTING()
  44. game.Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
  45. game.Lighting.Brightness = 1
  46. game.Lighting.GlobalShadows = true
  47. game.Lighting.Outlines = false
  48. game.Lighting.TimeOfDay = 14
  49. game.Lighting.FogEnd = 100000
  50. end
  51.  
  52. services.players=gPlayers
  53. services.lighting=game:GetService('Lighting')
  54. services.workspace=game:GetService('Workspace')
  55. services.events = {}
  56. local user = gPlayers.LocalPlayer
  57.  
  58. local cmdprefix=''
  59. local scriptprefix='\\'
  60. local split=" "
  61.  
  62.  
  63. updateevents=function()
  64. for i,v in pairs(services.events) do services.events:remove(i) v:disconnect() end
  65. for i,v in pairs(gPlayers:players())do
  66. local ev = v.Chatted:connect(function(msg) do_exec(msg,v) end)
  67. services.events[#services.events+1] = ev
  68. end
  69. end
  70.  
  71. -- safazi's lib --
  72.  
  73. std.inTable=function(tbl,val)
  74. if tbl==nil then return false end
  75.  
  76. for _,v in pairs(tbl)do
  77. if v==val then return true end
  78. end
  79. return false
  80. end
  81.  
  82. std.out=function(str)
  83. print(str)
  84. end
  85.  
  86. std.list=function(tbl) --turns table into list with commas
  87. local str=''
  88. for i,v in pairs(tbl)do
  89. str=str..tostring(v)
  90. if i~=#tbl then str=str..', ' end
  91. end
  92. return str
  93. end
  94.  
  95. std.endat=function(str,val)
  96. local z=str:find(val)
  97. if z then
  98. return str:sub(0,z-string.len(val)),true
  99. else
  100. return str,false
  101. end
  102. end
  103.  
  104. std.first=function(str) return str:sub(1,1) end
  105.  
  106. isAdmin=function(name)
  107. if name==admin then
  108. return true
  109. elseif admins[name]==true then
  110. return true
  111. end
  112. return false
  113. end
  114.  
  115. gPlayers.PlayerAdded:connect(function(player)
  116. for i,v in pairs(bannedplyrs) do
  117. if player == v then player:Destroy() end
  118. end
  119. end)
  120.  
  121. local exec=function(str)
  122. spawn(function()
  123. local script, loaderr = loadstring(str)
  124. if not script then
  125. error(loaderr)
  126. else
  127. script()
  128. end
  129. end)
  130. end
  131.  
  132. local findCmd=function(cmd_name)
  133. for i,v in pairs(cmds)do
  134. if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
  135. return v
  136. end
  137. end
  138. end
  139.  
  140. local getCmd=function(msg)
  141. local cmd,hassplit=std.endat(msg:lower(),split)
  142. if hassplit then
  143. return {cmd,true}
  144. else
  145. return {cmd,false}
  146. end
  147. end
  148.  
  149. local getprfx=function(strn)
  150. if strn:sub(1,string.len(cmdprefix))==cmdprefix then return{'cmd',string.len(cmdprefix)+1}
  151. elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then return{'exec',string.len(scriptprefix)+1}
  152. end return
  153. end
  154.  
  155. local getArgs=function(str)
  156. local args={}
  157. local new_arg=nil
  158. local hassplit=nil
  159. local s=str
  160. repeat
  161. new_arg,hassplit=std.endat(s:lower(),split)
  162. if new_arg~='' then
  163. args[#args+1]=new_arg
  164. s=s:sub(string.len(new_arg)+string.len(split)+1)
  165. end
  166. until hassplit==false
  167. return args
  168. end
  169.  
  170. local function execCmd(str, plr)
  171. local s_cmd
  172. local a
  173. local cmd
  174. s_cmd = getCmd(str) --separate command from string using split {command name,arg bool (for arg system)}
  175. cmd = findCmd(s_cmd[1]) --get command object {NAME,DESC,{ALIASES},function(args)}
  176. if cmd == nil then return end
  177. a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1)--start string "a" after command and split
  178. local args=getArgs(a)--gets us a nice table of arguments
  179.  
  180. pcall(function()
  181. cmd.FUNC(args, plr)
  182. end)
  183. end
  184.  
  185. function do_exec(str,plr)
  186. if not isAdmin(plr.Name)then return end
  187.  
  188. str=str:gsub('/e ','')--remove "/e " the easy way!
  189.  
  190. local t=getprfx(str)
  191. if t==nil then return end
  192. str=str:sub(t[2])
  193. if t[1]=='exec' then
  194. exec(str)
  195. elseif t[1]=='cmd' then
  196. execCmd(str, plr)
  197. end
  198. end
  199.  
  200. updateevents()
  201. _G.exec_cmd = execCmd
  202. --game.Players.LocalPlayer.Chatted:connect(doexec)
  203.  
  204. local _char=function(plr_name)
  205. for i,v in pairs(game.Players:GetChildren())do
  206. if v:IsA'Player'then
  207. if v.Name==plr_name then return v.Character end
  208. end
  209. end
  210. return
  211. end
  212.  
  213. local _plr=function(plr_name)
  214. for i,v in pairs(game.Players:GetChildren())do
  215. if v:IsA'Player'then
  216. if v.Name==plr_name then return v end
  217. end
  218. end
  219. return
  220. end
  221.  
  222. function addcmd(name,desc,alias,func)
  223. cmds[#cmds+1]=
  224. {
  225. NAME=name;
  226. DESC=desc;
  227. ALIAS=alias;
  228. FUNC=func;
  229. }
  230. end
  231.  
  232. local function getPlayer(name)
  233. local nameTable = {}
  234. name=name:lower()
  235. if name == "me" then
  236. return {admin}
  237. elseif name == "others" then
  238. for i,v in pairs(gPlayers:GetChildren()) do
  239. if v:IsA'Player'then
  240. if v.Name~=admin then
  241. nameTable[#nameTable+1]=v.Name
  242. end
  243. end
  244. end
  245. elseif name == "all" then
  246. for i,v in pairs(gPlayers:GetChildren()) do
  247. if v:IsA'Player'then
  248. nameTable[#nameTable+1]=v.Name
  249. end
  250. end
  251. else
  252. for i,v in pairs(gPlayers:GetChildren()) do
  253. local lname = v.Name:lower()
  254. local i,j = lname:find(name)
  255. if i == 1 then
  256. return {v.Name}
  257. end
  258. end
  259. end
  260. return nameTable
  261. end
  262.  
  263. -- commands --
  264.  
  265. addcmd('ff',"ff's a player",{},
  266. function(args)
  267. local players=getPlayer(args[1])
  268. for i,v in pairs(players)do
  269. local pchar=_char(v)
  270. Instance.new("ForceField", pchar)
  271. end
  272. end)
  273.  
  274. addcmd('noff',"unff's a player",{'unff'},
  275. function(args)
  276. local players=getPlayer(args[1])
  277. for i,v in pairs(players)do
  278. local pchar=_char(v)
  279. for j,v1 in pairs(pchar:GetChildren()) do
  280. if v1:IsA("ForceField") then
  281. v1:Destroy()
  282. end
  283. end
  284. end
  285. end)
  286.  
  287. addcmd('fire','set a player on fire',{},
  288. function(args)
  289. local players=getPlayer(args[1])
  290. for i,v in pairs(players)do
  291. local pchar=_char(v)
  292. Instance.new("Fire", pchar.Torso)
  293. end
  294. end)
  295.  
  296. addcmd('nofire','extinguish a player',{'unfire'},
  297. function(args)
  298. local players=getPlayer(args[1])
  299. for i,v in pairs(players)do
  300. local pchar=_char(v)
  301. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  302. if v1:IsA("Fire") then
  303. v1:Destroy()
  304. end
  305. end
  306. end
  307. end)
  308.  
  309. addcmd('sp','give a player sparkles',{},
  310. function(args)
  311. local players=getPlayer(args[1])
  312. for i,v in pairs(players)do
  313. local pchar=_char(v)
  314. Instance.new("Sparkles", pchar.Torso)
  315. end
  316. end)
  317.  
  318. addcmd('nosp','remove sparkles from a player',{'unsp'},
  319. function(args)
  320. local players=getPlayer(args[1])
  321. for i,v in pairs(players)do
  322. local pchar=_char(v)
  323. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  324. if v1:IsA("Sparkles") then
  325. v1:Destroy()
  326. end
  327. end
  328. end
  329. end)
  330.  
  331. addcmd('smoke','give a player smoke',{},
  332. function(args)
  333. local players=getPlayer(args[1])
  334. for i,v in pairs(players)do
  335. local pchar=_char(v)
  336. Instance.new("Smoke", pchar.Torso)
  337. end
  338. end)
  339.  
  340. addcmd('nosmoke','remove smoke from a player',{},
  341. function(args)
  342. local players=getPlayer(args[1])
  343. for i,v in pairs(players)do
  344. local pchar=_char(v)
  345. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  346. if v1:IsA("Smoke") then
  347. v1:Destroy()
  348. end
  349. end
  350. end
  351. end)
  352.  
  353. addcmd('btools','gives a player btools',{},
  354. function(args)
  355. local players=getPlayer(args[1])
  356. if players ~= nil then
  357. for i, v in pairs(players) do
  358. Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 2
  359. Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 3
  360. Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 4
  361. end
  362. end
  363. end)
  364.  
  365. addcmd('god','gods player',{},
  366. function(args)
  367. local players=getPlayer(args[1])
  368. for i,v in pairs(players)do
  369. local pchar=_char(v)
  370. if pchar then pchar.Humanoid.MaxHealth=math.huge end
  371. end
  372. end)
  373.  
  374. addcmd('sgod','silently gods player',{},
  375. function(args)
  376. local players=getPlayer(args[1])
  377. for i,v in pairs(players)do
  378. local pchar=_char(v)
  379. spawn(function()
  380. pchar.Humanoid.MaxHealth = 10000000
  381. wait()
  382. pchar.Humanoid.Health = 10000000
  383. end)
  384. end
  385. end)
  386.  
  387. addcmd('ungod','removes god from a player',{},
  388. function(args)
  389. local players=getPlayer(args[1])
  390. for i,v in pairs(players)do
  391. local pchar=_char(v)
  392. if pchar then
  393. pchar.Humanoid.MaxHealth=100
  394. pchar.Humanoid.Health=100
  395. end
  396. end
  397. end)
  398.  
  399. addcmd('heal','resets a players health',{},
  400. function(args)
  401. local players=getPlayer(args[1])
  402. for i,v in pairs(players)do
  403. local pchar=_char(v)
  404. if pchar then pchar.Humanoid.Health=pchar.Humanoid.MaxHealth;end
  405. end
  406. end)
  407.  
  408. addcmd('frz','freezes a player',{},
  409. function(args)
  410. local players = getPlayer(args[1])
  411. if players ~= nil then
  412. for i, v in pairs(players) do
  413. _char(v).Torso.Anchored = true
  414. end
  415. end
  416. end)
  417.  
  418. addcmd('thaw','freezes a player',{},
  419. function(args)
  420. local players = getPlayer(args[1])
  421. if players ~= nil then
  422. for i, v in pairs(players) do
  423. _char(v).Torso.Anchored = false
  424. end
  425. end
  426. end)
  427.  
  428. addcmd('kill','kills a player',{},
  429. function(args)
  430. local players=getPlayer(args[1])
  431. for i,v in pairs(players)do
  432. local pchar=_char(v)
  433. if pchar then pchar.Humanoid.MaxHealth=0;pchar.Humanoid.Health=0;end
  434. end
  435. end)
  436.  
  437. addcmd('sound','plays a sound',{},
  438. function(args)
  439. local function dels(instance)
  440. for i,v in pairs(instance:GetChildren())do
  441. if v:IsA'Sound'then v:Destroy()end
  442. dels(v)
  443. end
  444. end
  445. dels(workspace)
  446.  
  447. local c=args[1]or'stop'
  448. if std.inTable({'stop'},c:lower())then return end
  449. local s=Instance.new("Sound", workspace)
  450. s.Looped = true
  451. s.SoundId = "rbxassetid://"..c
  452. s.Volume=1
  453. s:Play() s.Name = "Musickek"
  454. end)
  455.  
  456. addcmd('explode','explode a player', {},
  457. function(args)
  458. local players=getPlayer(args[1])
  459. for i, v in pairs(players) do
  460. local char = _char(v)
  461. if char:FindFirstChild("Torso") then
  462. Instance.new("Explosion", char).Position = char.Torso.Position
  463. end
  464. end
  465. end)
  466.  
  467. addcmd('invis','make a player invisible',{},
  468. function(args)
  469. local players=getPlayer(args[1])
  470. for i, v in pairs(players) do
  471. for k, v2 in pairs(_char(v):GetChildren()) do
  472. if v2.className == "Part" then
  473. if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 1 end
  474. elseif v2.className == "Hat" then
  475. if v2:FindFirstChild("Handle") then
  476. v2.Handle.Transparency = 1
  477. end
  478. end
  479. if v2:FindFirstChild("face") then
  480. v2.face:Destroy()
  481. end
  482. end
  483. end
  484. end)
  485.  
  486. addcmd('vis','make a player visible',{},
  487. function(args)
  488. local players=getPlayer(args[1])
  489. for i, v in pairs(players) do
  490. for k, v2 in pairs(_char(v):GetChildren()) do
  491. if v2.className == "Part" then
  492. if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 0 end
  493. elseif v2.className == "Hat" then
  494. if v2:FindFirstChild("Handle") then v2.Handle.Transparency = 0 end
  495. end
  496. if v2:FindFirstChild("face") then
  497. v2.face:Destroy()
  498. end
  499. end
  500. end
  501. end)
  502.  
  503. addcmd('goto','go to a player',{},
  504. function(args)
  505. local players=getPlayer(args[1])
  506. if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then
  507. _char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame
  508. end
  509. end)
  510.  
  511. addcmd('bring','bring a player to you',{},
  512. function(args)
  513. local players=getPlayer(args[1])
  514. for i,v in pairs(players) do
  515. if _char(v):FindFirstChild("HumanoidRootPart") then
  516. _char(v).HumanoidRootPart.CFrame = _char(admin).HumanoidRootPart.CFrame
  517. end
  518. end
  519. end)
  520.  
  521. addcmd('tp','teleport player 1 to player 2',{},
  522. function(args)
  523. local players1=getPlayer(args[1])
  524. local players2=getPlayer(args[2])
  525. if not players2[1] then return end
  526. for i,v in pairs(players1) do
  527. if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then
  528. _char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame
  529. end
  530. end
  531. end)
  532.  
  533. addcmd('charapp','change a players appearance',{},
  534. function(args)
  535. local players=getPlayer(args[1])
  536. if not args[1]or not args[2]then return end
  537. local id=args[2]
  538. if players ~= nil then
  539. for i,v in pairs(players) do
  540. gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id
  541. if _char(v):FindFirstChild("Head") then
  542. _char(v).Head:Destroy()
  543. end
  544. end
  545. end
  546. end)
  547.  
  548. addcmd('ws','change a players walkspeed',{},
  549. function(args)
  550. local players=getPlayer(args[1])
  551. if not args[1]or not args[2]then return end
  552. local num=args[2]
  553. for i,v in pairs(players) do
  554. if _char(v):FindFirstChild("Humanoid") then
  555. _char(v).Humanoid.WalkSpeed=tonumber(num)
  556. end
  557. end
  558. end)
  559.  
  560. addcmd('time','change the time of day',{},
  561. function(args)
  562. if not args[1]then return end
  563. local time_=tonumber(args[1])
  564.  
  565. game.Lighting:SetMinutesAfterMidnight(time_*60)
  566. end)
  567.  
  568. addcmd('kick','kick a player',{},
  569. function(args)
  570. local players=getPlayer(args[1])
  571. for i,v in pairs(players) do
  572. gPlayers[v]:Destroy()
  573. end
  574. end)
  575.  
  576. addcmd('ban','ban a player',{},
  577. function(args)
  578. local players=getPlayer(args[1])
  579. for i,v in pairs(players) do
  580. bannedplyrs[#bannedplyrs+1]=v
  581. gPlayers[v]:Destroy()
  582. end
  583. end)
  584.  
  585. addcmd('unlockws','unlock the whole workspace',{},
  586. function(args)
  587. local function unlock(instance)
  588. for i,v in pairs(instance:GetChildren()) do
  589. if v:IsA("BasePart") then
  590. v.Locked = false
  591. end
  592. unlock(v)
  593. end
  594. end
  595. unlock(workspace)
  596. end)
  597.  
  598. addcmd('unanchorws','unanchor the whole workspace',{},
  599. function(args)
  600. local function unanchor(instance)
  601. for i,v in pairs(instance:GetChildren()) do
  602. if v:IsA("BasePart") then
  603. v.Anchored=false
  604. end
  605. unanchor(v)
  606. end
  607. end
  608. unanchor(workspace)
  609. end)
  610.  
  611. addcmd('hat','give player a hat ingame',{},
  612. function(args)
  613. if not args[1] or not args[2] then return end
  614. local players=getPlayer(args[1])
  615. local id=args[2]
  616. local hat = game:GetObjects("rbxassetid://"..id)[1]
  617. if hat:IsA("Hat") then
  618. for i,v in pairs(players) do
  619. hat:clone().Parent = _char(v)
  620. end
  621. end
  622. hat:Destroy()
  623. end)
  624.  
  625. addcmd('gear','give player a gear ingame',{},
  626. function(args)
  627. spawn(function()
  628. if not args[1] or not args[2] then return end
  629. local players=getPlayer(args[1])
  630. local id=args[2]
  631. local model = game:GetService("InsertService"):LoadAsset(id)
  632. for i,v in pairs(players) do
  633. for _,j in pairs(model:GetChildren()) do
  634. if j:IsA("Tool") then
  635. j:Clone().Parent = gPlayers[v].Backpack
  636. end
  637. end
  638. end
  639. model:Destroy()
  640. end)
  641. end)
  642.  
  643. addcmd('pstools','give player personal server tools',{},
  644. function(args)
  645. local players=getPlayer(args[1])
  646. for i,v in pairs(players) do
  647. gPlayers[v].PersonalServerRank = 240
  648. end
  649. end)
  650.  
  651. addcmd('skick','kicks a player by shutting them down, takes a few seconds',{},
  652. function(args)
  653. local players=getPlayer(args[1])
  654. for i,v in pairs(players) do
  655. spawn(function()
  656. gPlayers[v].PersonalServerRank = 240
  657. gPlayers[v].Backpack:WaitForChild("ClassicTool")
  658. gPlayers[v].PersonalServerRank = 0
  659. end)
  660. end
  661. end)
  662.  
  663. addcmd('admin','gives a player admin',{},
  664. function(args)
  665. if not args[1]then return end
  666. local players=getPlayer(args[1])
  667. table.foreach(players,function(k,v)
  668. admins[v]=true
  669. end)
  670. end)
  671.  
  672. addcmd('unadmin','removes a players admin',{},
  673. function(args)
  674. if not args[1] then return end
  675. local players=getPlayer(args[1])
  676. table.foreach(players,function(k,v)
  677. admins[v]=nil
  678. end)
  679. end)
  680.  
  681. addcmd('view','view player',{},
  682. function(args)
  683. local players=getPlayer(args[1])
  684. workspace.CurrentCamera.CameraSubject = game.Players[players[1]].Character
  685. end)
  686.  
  687. addcmd('noclip','noclips local player',nil,
  688. function(args,speaker)
  689. NOCLIP = true
  690. JESUSFLY = false
  691. SWIM = false
  692. end)
  693.  
  694. addcmd('clip','clips local player',nil,
  695. function(args,speaker)
  696. NOCLIP = false
  697. end)
  698. addcmd('jesusfly','jesusfly',nil,
  699. function(args,speaker)
  700. NOCLIP = false
  701. JESUSFLY = true
  702. SWIM = false
  703. end)
  704. addcmd('nofly','nofly',nil,
  705. function(args)
  706. JESUSFLY = false
  707. end)
  708. addcmd('swim','swim',nil,
  709. function(args)
  710. NOCLIP = false
  711. JESUSFLY = false
  712. SWIM = true
  713. end)
  714. addcmd('noswim','noswim',nil,
  715. function(args)
  716. SWIM = false
  717. end)
  718. addcmd('skybox','sky <id>',nil,
  719. function(args)
  720. for i,v in pairs(game.Lighting:GetChildren()) do
  721. if v:IsA('Sky') then
  722. v:remove()
  723. end
  724. end
  725. local ID = (args[1])
  726. local sky = Instance.new('Sky', game.Lighting)
  727. sky.SkyboxBk = 'rbxassetid://' .. ID
  728. sky.SkyboxDn = 'rbxassetid://' .. ID
  729. sky.SkyboxFt = 'rbxassetid://' .. ID
  730. sky.SkyboxLf = 'rbxassetid://' .. ID
  731. sky.SkyboxRt = 'rbxassetid://' .. ID
  732. sky.SkyboxUp = 'rbxassetid://' .. ID
  733. end)
  734. addcmd('shrek','shrek <p>',nil,
  735. function(args)
  736. local players = getPlayer(args[1])
  737. for i,v in pairs(players) do
  738. local pchar = gPlayers[v].Character
  739. for i,v in pairs(pchar:GetChildren()) do
  740. if v:IsA('Hat') or v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') then
  741. v:remove()
  742. end
  743. end
  744. for i,v in pairs(pchar.Head:GetChildren()) do
  745. if v:IsA('Decal') or v:IsA('SpecialMesh')then
  746. v:remove()
  747. end
  748. end
  749. if pchar:FindFirstChild('Shirt Graphic') then
  750. pchar['Shirt Graphic'].Archivable = false
  751. pchar['Shirt Graphic'].Graphic = ''
  752. end
  753. local mesh = Instance.new('SpecialMesh', pchar.Head)
  754. mesh.MeshType = 'FileMesh'
  755. pchar.Head.Mesh.MeshId = 'http://www.roblox.com/asset/?id=19999257'
  756. pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
  757. pchar.Head.Mesh.TextureId = 'http://www.roblox.com/asset/?id=156397869'
  758. local Shirt = Instance.new('Shirt', gPlayers[v].Character)
  759. local Pants = Instance.new('Pants', gPlayers[v].Character)
  760. Shirt.ShirtTemplate = 'rbxassetid://133078194'
  761. Pants.PantsTemplate = 'rbxassetid://133078204'
  762. end
  763. end)
  764. addcmd('ambient','ambient <n> <n> <n>',nil,
  765. function(args)
  766. game.Lighting.Ambient = Color3.new(args[1], args[2], args[3])
  767. end)
  768. addcmd('fetp','fetp',nil,
  769. function(args)
  770. local last_pos = game.Players.LocalPlayer.Character.Torso.CFrame
  771. for _, Player in pairs(game:GetService("Players"):GetChildren()) do
  772. if game.Workspace:findFirstChild(Player.Name) then
  773. local w = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  774. w.Part0 = w.Parent
  775. w.Part1 = Player.Character.Torso
  776. w.C0 = last_pos
  777. w.C1 = last_pos
  778. wait(0.1)
  779. w:Destroy()
  780. game.Players.LocalPlayer.Character.Torso.CFrame = last_pos
  781. end
  782. end
  783. wait(1)
  784. game.Players.LocalPlayer.Character.Torso.CFrame = last_pos
  785. end)
  786. addcmd('fogend','fogend <n>',nil,
  787. function(args)
  788. game.Lighting.FogEnd = args[1]
  789. end)
  790. addcmd('slock','serverlock',nil,
  791. function(args)
  792. serverLocked = true
  793. end)
  794.  
  795. addcmd('unslock','unserverlock',nil,
  796. function(args)
  797. serverLocked = false
  798. end)
  799. addcmd('fogend','fogend <n>',{},
  800. function(args)
  801. game.Lighting.FogEnd = args[1]
  802. end)
  803. addcmd('fogcolor','fogcolor <n> <n> <n>',{},
  804. function(args)
  805. game.Lighting.FogColor = Color3.new(args[1], args[2], args[3])
  806. end)
  807. addcmd('fixl','fixlighting',nil,
  808. function(args)
  809. FIX_LIGHTING()
  810. end)
  811. addcmd('particles','particles <p> <id>',{'pts'},
  812. function(args)
  813. local players = getPlayer(args[1])
  814. for i,v in pairs(players) do
  815. local pchar = gPlayers[v].Character
  816. for i,v in pairs(pchar.Torso:GetChildren()) do
  817. if v:IsA('ParticleEmitter') then
  818. v:remove()
  819. end
  820. end
  821. wait()
  822. Instance.new('ParticleEmitter', pchar.Torso).Texture = 'http://www.roblox.com/asset/?id=' .. args[2] - 1
  823. end
  824. end)
  825. addcmd('nuke','nuke <p>',nil,
  826. function(args)
  827. local players = getPlayer(args[1])
  828. for i,v in pairs(players) do
  829. local pchar = gPlayers[v].Character
  830. spawn(function()
  831. if gPlayers[v] and pchar and pchar:FindFirstChild('Torso') then
  832. local nuke = Instance.new('Part', game.Workspace)
  833. nuke.Name = 'nuke_seth'
  834. nuke.Anchored = true
  835. nuke.CanCollide = false
  836. nuke.FormFactor = 'Symmetric'
  837. nuke.Shape = 'Ball'
  838. nuke.Size = Vector3.new(1,1,1)
  839. nuke.BrickColor = BrickColor.new('New Yeller')
  840. nuke.Transparency = 0.5
  841. nuke.Reflectance = 0.2
  842. nuke.TopSurface = 0
  843. nuke.BottomSurface = 0
  844. nuke.Touched:connect(function (hit)
  845. if hit and hit.Parent then
  846. local boom = Instance.new('Explosion', game.Workspace)
  847. boom.Position = hit.Position
  848. boom.BlastRadius = 11
  849. boom.BlastPressure = math.huge
  850. end
  851. end)
  852. local CF = pchar.Torso.CFrame
  853. nuke.CFrame = CF
  854. for i = 1,333 do
  855. nuke.Size = nuke.Size + Vector3.new(3,3,3)
  856. nuke.CFrame = CF
  857. wait(1/44)
  858. end
  859. nuke:remove()
  860. end
  861. end)
  862. end
  863. end)
  864. addcmd('nonuke','nonuke',{'unnuke'},
  865. function(args)
  866. for i,v in pairs(game.Workspace:GetChildren()) do
  867. if v.Name == 'nuke_seth' then
  868. v:remove()
  869. end
  870. end
  871. end)
  872. _G.Rc7Notification("Done","Rc7 Admin by Caleb",5)
  873. wait(5)
  874. if game.Workspace.FilteringEnabled == true then
  875. _G.Rc7Notification("Filtering","Fltering is Enabled",5)
  876. else
  877. _G.Rc7Notification("Filtering","Fltering is Disabled",5)
  878. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement