Advertisement
nuttanun734

testtt

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