Advertisement
zombieslayerwtf

admin script

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