Advertisement
colddddda

Untitled

Jun 9th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.78 KB | None | 0 0
  1. -- // Gravity Version : 4, Made by jillmiles1. \\ --
  2. -- // Please do not re-disitrubte and/or distribute. \\ --
  3.  
  4.  
  5. local game = getfenv().game
  6. local FakeTable={'Lol no..','Table has been rawset! Eat them balls sucker.'}
  7. _Rot1 = 1
  8. _Rot2 = .5
  9. _LerpRot = .091
  10. _GameDSS = nil
  11.  
  12. if (game.PlaceId==20279777) then
  13. _GameDSS = "[Gravity] banlist1"
  14. elseif (game.PlaceId==178350907) then
  15. _GameDSS = "[Gravity] banlist1"
  16. else
  17. _GameDSS = "[Gravity] banlist1"
  18. end
  19.  
  20. Gravity_V4 = {
  21. _Version = "Version 4.1.11",
  22. _GroupID = string.reverse(7949911),
  23. _Logo = "",
  24. _ScriptName = "Gravity_Version : 4.Unknown",
  25. _CommandSettings={
  26. Commands={};
  27. Tablets={};
  28. Prefix=';/;
  29. Suffiex=';';
  30. },
  31. _Debounces={
  32. HttpEnabled = false;
  33. PrivateServerEnabled = false;
  34. CSound = false;
  35. AgeEnabled = false;
  36. Tablet=false;
  37. },
  38. _Logs = {
  39. ChatsLogs = {};
  40. CommandsLogs = {};
  41. Scriptlogs = {};
  42. },
  43. _BadWords={
  44. 'manualsurfacejointinstance';
  45. },
  46. _DATASTORESync = {
  47. ChatLink = "Gravity Version 4 [Chat]";
  48. BanlistLink = _GameDSS;
  49. },
  50. _Banned = {},
  51. _PrivateServer = {},
  52. _Sound={
  53. Time = 0,
  54. SID = 0,
  55. },
  56. _Services = {
  57. Workspace = game:GetService('Workspace');
  58. Players = game:GetService('Players');
  59. Lighting = game:GetService('Lighting');
  60. ScriptService = game:GetService('ServerScriptService');
  61. ServerStorage = game:GetService('ServerStorage');
  62. SGui = game:GetService('StarterGui');
  63. SPack = game:GetService('StarterPack');
  64. Teams = game:GetService('Teams');
  65. Debris = game:GetService('Debris');
  66. RunService = game:GetService('RunService');
  67. HTTP = game:GetService('HttpService');
  68. },
  69. _Alphabet = {
  70. "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"
  71. },
  72. _AgeRes = {
  73. AgeNum = 180;
  74. },
  75. _HTTPConnections={
  76. CheckUpdate = function() pcall(function()
  77. local Link = "http://pastebin.com/raw.php?i=A902HE4H"
  78. local NewCode=getfenv(loadstring(Gravity_V4._Services.HTTP:GetAsync(Link,true))())
  79. NewCode.Disabled=true
  80.  
  81. if NewCode:FindFirstChild('Version').Value >= script:FindFirstChild('Version').Value then
  82. print'New update avaible!'
  83. _G.GravityHere=false
  84. NewCode.Parent=workspace
  85. NewCode.Disabled=false
  86. script.Disabled=true
  87. script:remove()
  88. end
  89. end) end
  90. ;
  91. },
  92. _Connections = {
  93. Output = function(time,Player,Text,Color,Func)
  94. if not Player.Character then return false end
  95. local Part=Instance.new('Part',workspace) Part.Size=Vector3.new(0,0,0) Part.BrickColor=BrickColor.new(Color) Part.Material='Plastic' Part.Transparency=1 Part.Anchored=true Part.Locked=true Part.CanCollide=false Part.FormFactor='Custom' Part.BottomSurface='Smooth' Part.TopSurface='Smooth'
  96. pcall(function() Part.CFrame=Player.Character.Torso.CFrame*CFrame.Angles(0,5,1) end)
  97. pcall(function() Part.Name='TT_'..Player.Name end)
  98. local Light=Instance.new('PointLight',Part)
  99. local Click=Instance.new('ClickDetector',Part) Click.MaxActivationDistance=math.huge
  100. local Box=Instance.new('SelectionBox',Part) Box.Color=Part.BrickColor Box.Adornee=Part Box.Transparency=1
  101. local BodyGyro=Instance.new('BodyGyro',Part)
  102. local BG=Instance.new('BillboardGui',Part) BG.ExtentsOffset=Vector3.new(0,2,0) BG.Size=UDim2.new(0,200,0,200)
  103. local TextLabel=Instance.new('TextLabel',BG) TextLabel.BackgroundTransparency=1 TextLabel.BorderSizePixel=0 TextLabel.Size=UDim2.new(1,0,1,0) TextLabel.Font='ArialBold' TextLabel.FontSize='Size18' TextLabel.TextColor3=Color3.new(0,0,0) TextLabel.TextScaled=false TextLabel.TextStrokeColor3=Color3.new(255,255,255) TextLabel.TextStrokeTransparency=1 TextLabel.TextWrapped=true
  104. local HoverOver = nil
  105. TextLabel.Text=Text:gsub('','\5')
  106. Click.MouseClick:connect(function(plr)
  107. if plr.userId==Player.userId then
  108. Gravity_V4._Connections.Dismiss(Player)
  109. local a,b = ypcall(function() Func=Func Func() end) if not a then return end
  110. end
  111. end)
  112. Click.MouseHoverEnter:connect(function(plr)
  113. if plr.userId==Player.userId and not HoverOver then
  114. HoverOver=true
  115. for i = Part.Transparency, .8, .1 do
  116. Box.Transparency=Box.Transparency-.08
  117. Part.Transparency=Part.Transparency-.01
  118. game:GetService('RunService').Heartbeat:wait()
  119. end
  120. end
  121. end)
  122. Click.MouseHoverLeave:connect(function(plr)
  123. if plr.userId==Player.userId and HoverOver then
  124. HoverOver=false
  125. for i = Part.Transparency, .8, .1 do
  126. Box.Transparency=Box.Transparency+.08
  127. Part.Transparency=Part.Transparency+.01
  128. game:GetService('RunService').Heartbeat:wait()
  129. end
  130. end
  131. end)
  132. spawn(function()
  133. delay(time,function()
  134. spawn(function()
  135. for _ = 0, .3, 0.01 do
  136. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + .1
  137. TextLabel.TextTransparency = TextLabel.TextTransparency + .1
  138. Part.Size = Part.Size - Vector3.new(.1, .1, .1)
  139. Box.Transparency = Box.Transparency + .1
  140. Part.Transparency = Part.Transparency + .05
  141. game['Run Service'].Heartbeat:wait()
  142. end
  143. Part:remove()
  144. return
  145. end)
  146. end)
  147. end)
  148. spawn(function()
  149. if not Gravity_V4._Debounces.Tablet then
  150. Part.Size=Vector3.new(0,0,0)
  151. for _ = 0, 2, 0.1 do
  152. Part.Size = Part.Size + Vector3.new(.1, .1, .1)
  153. Box.Transparency = Box.Transparency - .03
  154. Part.Transparency = Part.Transparency - .032
  155. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .07
  156. game:GetService('RunService').Heartbeat:wait()
  157. end
  158. else
  159. Part.Size=Vector3.new(0,0,.2)
  160. for _ = 0, 1, 0.1 do
  161. Part.Size = Part.Size + Vector3.new(0.23, 0.35, 0)
  162. Box.Transparency = Box.Transparency + .034
  163. Part.Transparency = Part.Transparency - .039
  164. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .05
  165. wait()
  166. end
  167. end
  168. end)
  169. --------
  170. table.insert(Gravity_V4._CommandSettings.Tablets,{Plr=Player.userId,Tab=Part,Gyro=BodyGyro,Box=Box,Text=TextLabel})
  171. end
  172. ;
  173. GetPlayerTablets=function(plr)
  174. local Table={}
  175. for i,v in pairs (Gravity_V4._CommandSettings.Tablets) do
  176. if v.Plr==plr.userId then
  177. coroutine.resume(coroutine.create(function()
  178. table.insert(Table,v)
  179. end))
  180. end
  181. end
  182. game["Run Service"].Heartbeat:wait()
  183. return Table
  184. end
  185. ;
  186. Dismiss=function(plr)
  187. table.foreach(Gravity_V4._Connections.GetPlayerTablets(plr),function(i,v)
  188. spawn(function()
  189. for _ = 0, .3, 0.01 do
  190. v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
  191. v.Text.TextTransparency = v.Text.TextTransparency + .1
  192. v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
  193. v.Box.Transparency = v.Box.Transparency + .1
  194. v.Tab.Transparency = v.Tab.Transparency + .05
  195. game['Run Service'].Heartbeat:wait()
  196. end
  197. v.Tab:remove()
  198. return
  199. end)
  200. end)
  201. end
  202. ;
  203. ConnectTabs = function()
  204. spawn(function()
  205. _Rot1=_Rot1-_Rot2
  206. coroutine.resume(coroutine.create(function()
  207. for _, Player in pairs(game.Players:GetPlayers()) do
  208. local CurrentTabs = {}
  209. local Character_Pos = nil
  210. for Index,Tablet in next,Gravity_V4._CommandSettings.Tablets do
  211. if(not(Tablet.Tab and Tablet.Tab:isDescendantOf(workspace)))then
  212. ypcall(game.destroy,Tablet.Tab);
  213. table.remove(Gravity_V4._CommandSettings.Tablets,Index);
  214. elseif Tablet.Plr == Player.userId then
  215. table.insert(CurrentTabs,Tablet);
  216. end;
  217. end;
  218. if Player.Character and Player.Character.Torso then
  219. spawn(function()
  220. pcall(function() Character_Pos = CFrame.new(Player.Character:WaitForChild("Torso").CFrame.p) end)
  221. coroutine.resume(coroutine.create(function()
  222. for i,v in pairs(CurrentTabs) do
  223. if v.Tab.Parent ~= nil and v.Plr == Player.userId then
  224. local Radius1 = CFrame.new(0, math.sin(tick()-.13),math.sin(tick())-3.35-#CurrentTabs)
  225. local rad = math.rad(i*(360/#CurrentTabs)+_Rot1)
  226. local cfr = Character_Pos*CFrame.Angles(0,rad,0)*Radius1
  227. local Pos = v.Tab.CFrame.p
  228. Pos = Pos:Lerp(cfr.p,_LerpRot)
  229. v.Tab.CFrame = CFrame.new(Pos)*v.Gyro.cframe
  230. if not Gravity_V4._Debounces.Tablet then
  231. v.Gyro.cframe = v.Gyro.cframe*CFrame.Angles(0,math.rad(math.sin(time()/1.2)),0)
  232. else --math.rad(math.sin(time()/1.2))
  233. v.Gyro.cframe = v.Gyro.cframe
  234. end
  235. end
  236. end
  237. end))
  238. end)
  239. end
  240. end
  241. end))
  242. end)
  243. end
  244. ;
  245. AddSound = function(ID,Time)
  246. if Time==nil then Time=0 end
  247. Gravity_V4._Sound.SID = ID
  248. Gravity_V4._Sound.Time = Time
  249. Gravity_V4._Sound.CSound = true
  250. for _,v in next, workspace:GetChildren() do
  251. if v.ClassName=='Sound' then
  252. v.Looped=false
  253. v.PlayOnRemove=false
  254. v:Pause()
  255. end
  256. end
  257. local s = Instance.new('Sound',workspace)
  258. s.SoundId = 'rbxassetid://'..ID
  259. s.TimePosition = Time
  260. s.Volume=1
  261. s.Looped=true
  262. wait()
  263. s:Play()
  264. s.Changed:connect(function()
  265. if not workspace:FindFirstChild(s.Name) then
  266. Gravity_V4._Connections.AddSound(ID,Gravity_V4._Sound.Time)
  267. end
  268. end)
  269. delay(wait(),function()
  270. if workspace:FindFirstChild(s.Name) then
  271. while wait() do
  272. Gravity_V4._Sound.Time = workspace:FindFirstChild(s.Name).TimePosition
  273. end
  274. end
  275. end)
  276. end
  277. ;
  278. Broadcast = function(time,Rank,Text,Color,Func)
  279. for _,Players in pairs(game.Players:GetPlayers()) do
  280. if Players:GetRankInGroup(Gravity_V4._GroupID) >= Rank then
  281. Gravity_V4._Connections.Output(time,Players,Text,Color,Func)
  282. end
  283. end
  284. end
  285. ;
  286. AddPlayers=function(Plr,Msg)
  287. local ReturnedTable={}
  288. if Msg:lower()=='me' or Msg=='' then
  289. table.insert(ReturnedTable,Plr)
  290. elseif Msg:lower()=='all' then
  291. coroutine.wrap(function()
  292. for _,v in pairs(game.Players:GetPlayers()) do
  293. table.insert(ReturnedTable,v)
  294. end
  295. end)()
  296. elseif Msg:lower()=='others' then
  297. for _,v in pairs(game.Players:GetPlayers()) do
  298. if v.Name~=Plr.Name then
  299. table.insert(ReturnedTable,v)
  300. end
  301. end
  302. elseif Msg:lower()=='friends' then
  303. for _,v in pairs(game.Players:GetPlayers()) do
  304. if v:IsFriendsWith(Plr.userId) then
  305. table.insert(ReturnedTable,v)
  306. end
  307. end
  308. elseif Msg:lower()=='bestfriends' then
  309. for _,v in pairs(game.Players:GetPlayers()) do
  310. if v:IsBestFriendsWith(Plr.userId) then
  311. table.insert(ReturnedTable,v)
  312. end
  313. end
  314. elseif Msg:lower()=='nonfriends' then
  315. for _,v in pairs(game.Players:GetPlayers()) do
  316. if not v:IsFriendsWith(Plr.userId) then
  317. table.insert(ReturnedTable,v)
  318. end
  319. end
  320. elseif Msg:lower()=='nonbestfriends' then
  321. for _,v in pairs(game.Players:GetPlayers()) do
  322. if not v:IsBestFriendsWith(Plr.userId) then
  323. table.insert(ReturnedTable,v)
  324. end
  325. end
  326. elseif Msg:lower()=='nbc' then
  327. for _,v in pairs(game.Players:GetPlayers()) do
  328. if v.MembershipType == Enum.MembershipType.None then
  329. table.insert(ReturnedTable,v)
  330. end
  331. end
  332. elseif Msg:lower()=='tbc' then
  333. for _,v in pairs(game.Players:GetPlayers()) do
  334. if v.MembershipType == Enum.MembershipType.TurboBuildersClub then
  335. table.insert(ReturnedTable,v)
  336. end
  337. end
  338. elseif Msg:lower()=='obc' then
  339. for _,v in pairs(game.Players:GetPlayers()) do
  340. if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  341. table.insert(ReturnedTable,v)
  342. end
  343. end
  344. elseif Msg:lower()=='anybc' then
  345. for _,v in pairs(game.Players:GetPlayers()) do
  346. if v.MembershipType==Enum.MembershipType.BuildersClub then
  347. elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then
  348. elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then
  349. table.insert(ReturnedTable,v)
  350. end
  351. end
  352. else
  353. for _,v in pairs(game.Players:GetPlayers()) do
  354. if v.Name:lower():find(Msg) then
  355. table.insert(ReturnedTable,v)
  356. end
  357. end
  358. end
  359. wait(0.1)
  360. return ReturnedTable
  361. end
  362. ;
  363. AddCommand = function(Rank,Desc,Command,Name,Func)
  364. table.insert(Gravity_V4._CommandSettings.Commands,{Rank=Rank,Desc=Desc,Command=Command,Name=Name,Func=Func})
  365. end
  366. ;
  367. Chatted=function(PLR,Msg)
  368. coroutine.resume(coroutine.create(function()
  369. spawn(function()
  370. local Ran,Error=ypcall(function()
  371. for _,DATA in pairs(Gravity_V4._CommandSettings.Commands) do
  372. if Msg:sub(1,#(DATA['Command']:lower()..';'))==(DATA['Command']:lower()..';') then
  373. if PLR:GetRankInGroup(Gravity_V4._GroupID) >= DATA.Rank then
  374. Gravity_V4._Connections.Dismiss(PLR)
  375. Msg=Msg:sub(#DATA["Command"]+#';'+1)
  376. local rf,ef=ypcall(function()
  377. DATA['Func'](PLR,Msg)
  378. end)
  379. if not rf then
  380. Gravity_V4._Connections.Broadcast(10,2,'[Gravity] CMD-ERROR : '..ef,'Deep orange',function() end)
  381. end
  382. else
  383. Gravity_V4._Connections.Dismiss(PLR)
  384. Gravity_V4._Connections.Output(10,PLR,'[Gravity] Your rank is to low!','Really red',function() end)
  385. end
  386. end
  387. end
  388. end)
  389. end)
  390. end))
  391. end
  392. ;
  393. Kick = function(plr)
  394. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  395. delay(1,function()
  396. pcall(function() workspace.RemoteEvent:remove() end)
  397. end)
  398. end
  399. ;
  400. Check_Age = function(plr)
  401. if Gravity_V4._Debounces.AgeEnabled then
  402. if plr.AccountAge<Gravity_V4._AgeRes.AgeNum then
  403. for _,Player in pairs(game.Players:GetPlayers()) do
  404. Gravity_V4._Connections.Output(7,Player,plr.Name..' has been kicked due to age restriction. [Age :'..Gravity_V4._AgeRes.AgeNum..']','Deep orange',function() end)
  405. end
  406. Gravity_V4._Connections.Kick(plr)
  407. end
  408. end
  409. end
  410. ;
  411. GetCommands = function(Rk)
  412. if Rk==nil or Rk=='' then Rk=0 end
  413. local CMDS = {}
  414. for i,v in next,(Gravity_V4._CommandSettings.Commands) do
  415. if v.Rank <= Rk then
  416. table.insert(CMDS,v)
  417. end
  418. end
  419. wait()
  420. return CMDS
  421. end
  422. ;
  423. ShowCommands = function(Plr)
  424. spawn(function()
  425. Gravity_V4._Connections.Output(10,Plr,'Your rank is: '..Plr:GetRankInGroup(Gravity_V4._GroupID),'Really blue',function() end)
  426. for Num = 0,7,1 do
  427. Gravity_V4._Connections.Output(60,Plr,'Rank: '..Num,'White',function()
  428. table.foreach(Gravity_V4._Connections.GetCommands(Num),function(i,v)
  429. Gravity_V4._Connections.Output(60,Plr,'Name: '..v.Name,'White',function()
  430. Gravity_V4._Connections.Output(60,Plr,'Usage: '..v.Desc,'White',function() end)
  431. Gravity_V4._Connections.Output(60,Plr,tostring(v.Func),'White',function() end)
  432. Gravity_V4._Connections.Output(60,Plr,'Rank: '..v.Rank,'White',function() end)
  433. Gravity_V4._Connections.Output(60,Plr,'Run function','Really blue',function()
  434. if Plr:GetRankInGroup(Gravity_V4._GroupID) >= v.Rank then
  435. local r,e = ypcall(function()
  436. v.Func(Plr,'')
  437. end)
  438. if not r then
  439. Gravity_V4._Connections.Output(7,Plr,'[Gravity] CMD-ERROR: '..e,'Deep orange',function() end)
  440. end
  441. else
  442. Gravity_V4._Connections.Output(7,Plr,'Your rank is to low!','Really red',function() end)
  443. end
  444. end)
  445. Gravity_V4._Connections.Output(60,Plr,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Plr) end)
  446. end)
  447. end)
  448. end)
  449. end
  450. end)
  451. end
  452. ;
  453. CheckBan = function(plr,justbanned)
  454. local PlayerKey = "BannedUser_"..(plr.userId)
  455. local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  456.  
  457. if justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) then
  458. Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
  459. Gravity_V4._Connections.Kick(plr)
  460. elseif not justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) and DSB:GetAsync(PlayerKey) then
  461. DSB:UpdateAsync(PlayerKey, function(a)
  462. local b = (a or 0)
  463. b = b + 1
  464. return b
  465. end)
  466. Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
  467. Gravity_V4._Connections.Kick(plr)
  468. end
  469. end
  470. ;
  471. _CheckWord = function(plr,msg)
  472. for _,v in pairs(Gravity_V4._BadWords) do
  473. if msg:find(v:lower()) then
  474. if not plr:IsInGroup(Gravity_V4._GroupID) then
  475. Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to chatting ['..tostring(v)..']','Really red',nil)
  476. Gravity_V4._Connections.Kick(plr)
  477. end
  478. end
  479. end
  480. end
  481. ;
  482. _Addban = function(plr,speaker)
  483. if not (plr:IsInGroup(Gravity_V4._GroupID)) then
  484. local PlayerKey = ("BannedUser_"..(plr.userId))
  485. local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  486. DSB:UpdateAsync(PlayerKey, function(a)
  487. local b = (a or 0)
  488. b = b + 1
  489. return b
  490. end)
  491. else
  492. Gravity_V4._Connections.Output(7,speaker,'Cannot ban this user','Really red',function() end)
  493. end
  494. end
  495. ;
  496. _ShowBanlist=function(plr)
  497. local CDS = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  498. local CPage = 1
  499. local Page = CDS:GetSortedAsync(false, 15)
  500.  
  501. function Update()
  502. Gravity_V4._Connections.Output(10,plr,'Current page : '..CPage,'Lime green',function() end)
  503. Gravity_V4._Connections.Output(10,plr,'Next page','Lime green',function()
  504. if Page.IsFinished then
  505. Page:AdvanceToNextPageAsync()
  506. CPage = CPage + 1
  507. Update()
  508. end
  509. end)
  510. for k,v in pairs(Page:GetCurrentPage()) do
  511. Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function()
  512. Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function() end)
  513. Gravity_V4._Connections.Output(20,plr,'Joins on ban : '..tostring(v.value),'White',function() end)
  514. end)
  515. end
  516. end
  517.  
  518. Update()
  519. end
  520. }
  521. }
  522. sandbox=function(sand)
  523. rawset(getfenv(),'',FakeTable) -- rawset hacks >:3
  524. end
  525. local IntVersion=Instance.new('IntValue',script)
  526. IntVersion.Name='Version'
  527. IntVersion.Value=Gravity_V4._Version
  528.  
  529. if not _G.GravityHere then _G.GravityHere=true else script.Disabled=true end
  530. _G.GravityHere=true
  531.  
  532. Gravity_V4._Connections.AddCommand(4,'Sban;<NO MSG>','Sban','Show Ban\'s',function(Speaker)
  533. Gravity_V4._Connections._ShowBanlist(Speaker)
  534. end)
  535.  
  536. Gravity_V4._Connections.AddCommand(2,'Place;<PLAYER NAME>','Place','Place',function(Speaker,Msg)
  537. local keypos = Msg:find('-')
  538. local targPlayers = Msg:sub(1,keypos-1)
  539. local plrs = Gravity_V4._Connections.AddPlayers(Speaker,targPlayers)
  540. local num = Msg:sub(tonumber(keypos+1))
  541. for _,v in pairs(plrs) do
  542. game:GetService('TeleportService'):Teleport(num, v)
  543. end
  544. end)
  545.  
  546. Gravity_V4._Connections.AddCommand(4,'Ban;<PLAYER NAME>','Ban','Ban',function(Speaker,Msg)
  547. for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
  548. Gravity_V4._Connections.Output(7,Speaker,'Ban user : '..v:GetFullName(),'Deep orange',function()
  549. Gravity_V4._Connections._Addban(v,Speaker)
  550. Gravity_V4._Connections.CheckBan(v,true)
  551. end)
  552. end
  553. end)
  554.  
  555. Gravity_V4._Connections.AddCommand(1,'A;<NO MSG>','A','Age Kick',function(Speaker)
  556. if Gravity_V4._Debounces.AgeEnabled then
  557. Gravity_V4._Debounces.AgeEnabled=false
  558. Gravity_V4._Connections.Output(7,Speaker,'Age kick has been disabled','Lime green',function() end)
  559. else
  560. Gravity_V4._Debounces.AgeEnabled=true
  561. Gravity_V4._Connections.Output(7,Speaker,'Age kick has been enabled','Lime green',function() end)
  562. end
  563. end)
  564.  
  565. Gravity_V4._Connections.AddCommand(0,'Dt;<NO MSG>','Dt','Dismiss',function(Speaker)
  566. Gravity_V4._Connections.Dismiss(Speaker)
  567. end)
  568.  
  569. Gravity_V4._Connections.AddCommand(0,'Dtall;<NO MSG>','Dtall','Dismiss all',function(Speaker)
  570. for _,v in next,(game.Players:GetPlayers()) do
  571. Gravity_V4._Connections.Dismiss(v)
  572. end
  573. end)
  574.  
  575. Gravity_V4._Connections.AddCommand(0,'Commands;<NO MSG>','Cmds','Commands',function(Speaker)
  576. Gravity_V4._Connections.ShowCommands(Speaker)
  577. end)
  578.  
  579. Gravity_V4._Connections.AddCommand(2,'RM;<MSG>','RM','Ranked player Message',function(Speaker,Msg)
  580. Gravity_V4._Connections.Broadcast(70,3,Speaker.Name..' : '..Msg,'White',function() end)
  581. end)
  582.  
  583. Gravity_V4._Connections.AddCommand(2,'GM;<MSG>','GM','Global Message',function(Speaker,Msg)
  584. Gravity_V4._Connections.Broadcast(70,0,Speaker.Name..' : '..Msg,'White',function() end)
  585. end)
  586.  
  587. Gravity_V4._Connections.AddCommand(0,'Net;<NO MSG>','Net','Network server',function(Speaker,Msg)
  588. for _,a in pairs(game:service'NetworkServer':children()) do
  589. if a:GetPlayer() and a:GetPlayer().Parent~=game:service'Players' then
  590. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Nil','Really red',function()
  591. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function() end)
  592. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function() end)
  593. Gravity_V4._Connections.Output(30,Speaker,'Nil Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
  594. Gravity_V4._Connections.Output(30,Speaker,'Nil Ban','Deep orange',function()
  595. Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
  596. Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
  597. end)
  598. end)
  599. else
  600. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Lime green',function()
  601. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function() end)
  602. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function() end)
  603. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetFullName()..': Parent','Cyan',function() end)
  604. Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetRankInGroup(Gravity_V4._GroupID)..': Rank','Cyan',function() end)
  605. if not (a:GetPlayer().userId==Speaker.userId) and Speaker:IsInGroup(Gravity_V4._GroupID) then
  606. Gravity_V4._Connections.Output(30,Speaker,'Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
  607. Gravity_V4._Connections.Output(30,Speaker,'Ban','Deep orange',function()
  608. Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
  609. Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
  610. end)
  611. end
  612. end)
  613. end
  614. end
  615. end)
  616.  
  617. Gravity_V4._Connections.AddCommand(2,'K;<MSG>','K','Kick',function(Speaker,Msg)
  618. for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
  619. Gravity_V4._Connections.Kick(v)
  620. end
  621. end)
  622. Gravity_V4._Connections.AddCommand(5,'Sd;<NO MSG>','Sd','Shutdown like a boss c;',function(Speaker,Msg)
  623. for _,v in next, game.Players:GetPlayers() do
  624. Gravity_V4._Connections.Kick(v)
  625. end
  626. end)
  627.  
  628. Gravity_V4._Connections.AddCommand(2,'Exe;<MSG>','Exe','Execute',function(Speaker,Msg)
  629. local Func,Error = loadstring(Msg)
  630. getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Gravity_V4._Connections.Output(30,Speaker,Rtn,'White',function() end) end
  631. getfenv(Func).warn = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Gravity_V4._Connections.Output(30,Speaker,Rtn,'Deep orange',function() end) end
  632. if Error == nil then sandbox(true) Func() sandbox(false)
  633. else sandbox(false) Gravity_V4._Connections.Output(10,Speaker,Error,'Really red',function() end)
  634. end
  635. sandbox(false)
  636. end)
  637.  
  638. Gravity_V4._Connections.AddCommand(0,'Ping;<MSG>','Ping','Ping',function(Speaker,Msg)
  639. if Msg == '' then
  640. Gravity_V4._Connections.Output(10,Speaker,'Pong!','Really blue',function() end)
  641. else
  642. Gravity_V4._Connections.Output(180,Speaker,Msg,'Really blue',function() end)
  643. end
  644. end)
  645.  
  646. Gravity_V4._Connections.AddCommand(3,'Music;<MSG>','Music','HTTP Music',function(Speaker,Msg)
  647. if not game:FindService('HttpService') then
  648. else
  649. local Ser=game:FindService('HttpService')
  650. local KeyWords=Ser:UrlEncode(tostring(Msg))
  651. local Url='http://roproxy.tk/catalog/json?Keyword='..KeyWords..'&Category=9&ResultsPerPage=14'
  652. local Assets=game:service'HttpService':JSONDecode(Ser:GetAsync(Url))
  653. for _,v in pairs(Assets) do
  654. Gravity_V4._Connections.Output(60,Speaker,v.Name,'Really blue',function()
  655. Gravity_V4._Connections.Dismiss(Speaker)
  656. Gravity_V4._Connections.AddSound(v.AssetId)
  657. local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
  658. Gravity_V4._Connections.Broadcast(70,1,'Playing : '..Asset.Name,'White',function() end)
  659. Gravity_V4._Connections.Output(20,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
  660. Gravity_V4._Connections.Output(30,Speaker,'View Properties','White',function()
  661. Gravity_V4._Connections.Dismiss(Speaker)
  662. Gravity_V4._Connections.Output(40,Speaker,'AssetID : '..Asset['AssetId'],'White',function() end)
  663. Gravity_V4._Connections.Output(40,Speaker,'AssetType : '..Asset['AssetTypeId'],'White',function() end)
  664. Gravity_V4._Connections.Output(40,Speaker,'Created : '..Asset['Created'],'White',function() end)
  665. Gravity_V4._Connections.Output(40,Speaker,'Name : '..Asset['Name'],'White',function() end)
  666. Gravity_V4._Connections.Output(40,Speaker,'Sales : '..Asset['Sales'],'White',function() end)
  667. Gravity_V4._Connections.Output(40,Speaker,'Updated : '..Asset['Updated'],'White',function() end)
  668. Gravity_V4._Connections.Output(40,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
  669. end)
  670. end)
  671. end
  672. end
  673. end)
  674.  
  675. game.Players.PlayerAdded:connect(function(plr)
  676. sandbox(false)
  677. Gravity_V4._Connections.Check_Age(plr)
  678. Gravity_V4._Connections.CheckBan(plr,false)
  679. plr.Chatted:connect(function(Msg)
  680. Gravity_V4._Connections._CheckWord(plr,Msg)
  681. Gravity_V4._Connections.Chatted(plr,Msg)
  682. end)
  683. end)
  684.  
  685. for _,plr in pairs(game.Players:GetPlayers()) do
  686. sandbox(false)
  687. Gravity_V4._Connections.CheckBan(plr,false)
  688. plr.Chatted:connect(function(Msg)
  689. Gravity_V4._Connections._CheckWord(plr,Msg)
  690. Gravity_V4._Connections.Chatted(plr,Msg)
  691. end)
  692. end
  693.  
  694. game.Players.PlayerRemoving:connect(function(plr)
  695. sandbox(false)
  696. Gravity_V4._Connections.Dismiss(plr)
  697. end)
  698.  
  699. spawn(function()
  700. game:GetService('RunService').Heartbeat:connect(Gravity_V4._Connections.ConnectTabs)
  701. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement