Advertisement
Jaden11

My tablets

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