Advertisement
Hektz

Admin Tabs 1

Feb 23rd, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.23 KB | None | 0 0
  1. --[[If there's any errors PM me, my name on Roblox is TheHaxx00rr,aka,LuaScripter12]]--
  2.  
  3. wait()
  4. print("This is made by TheHaxx00rr,aka,LuaScripter12");
  5. print("Enjoy the GravityV2.1 Tabs :D");
  6.  
  7.  
  8. local GravityTech={
  9. ["Removed"]=false;
  10. ["Coded"]=false;
  11. ["Hidden"]=false;
  12. ["Disabled"]=false;
  13. ["Discofloor"]=false;
  14. ["GravityHasLoaded"]=false;
  15. ["Counted"]=false;
  16. };
  17.  
  18. key = ";"
  19. Cmds={};
  20.  
  21. Allowed={'TheHaxx00rr','LuaScripter12','supersonicfan111','TickerOfTime','jillmiles1'};
  22. Banned={'islandmaker2012','neontails190','CHAOSxFIGHTER','legomaster38','iLordVex'};
  23.  
  24.  
  25. TabModel = Instance.new("Model",workspace)
  26. TabModel.Name = "GravityTech2.1"
  27.  
  28.  
  29. Logs={};
  30. Commands={};
  31. GravityRotation={};
  32. GravityMsgRotation={};
  33. HttpService={};
  34. GravityTablets={};
  35.  
  36. TabletMadeBy={'TheHaxx00rr,LuaScripter12'};
  37. TabletLines={8007};
  38.  
  39. Devlopers={'TheHaxx00rr','LuaScripter12'};
  40. Helpers={''}--No one. ,_,
  41. GravityTechers={'jillmiles1','Vexue'};
  42.  
  43. --Found an error.
  44. function Error(txt)
  45. tostring(error(print('Workspace cannot find part')))
  46. end
  47.  
  48. --Check if Gravity is loaded.
  49. function GravityLoaded()
  50. if game.Lighting:FindFirstChild('Gravity2.1')~=nil then
  51. wait()
  52. local Hint = Instance.new("Hint",workspace)
  53. hint.Text = "Welcome to GravityTech 2.1"
  54. Loaded()
  55. Hint:remove()
  56. end
  57. end
  58.  
  59. --Found Log
  60. function Log()
  61. for i,v in pairs(Log)do
  62.     if v:IsA("Log") then
  63.     elseif game:GetService("HttpService") then
  64.           end
  65.       end
  66. end
  67.  
  68. function RemoveScript()
  69.     for i,v in pairs(Script)do
  70.         if v:IsA("Script")then
  71.             Script:remove()
  72.         end
  73.     end
  74. end
  75.  
  76. function GravityIsHere()
  77. GravityIsHere=false;
  78. local Val=Instance.new("StringValue",game.Lighting)
  79. Val.Source="Source"
  80. Val.Name="GravityTech"
  81. end
  82.  
  83. function Update()
  84. if GravityAdmin==true then
  85. local Val=Instance.new("StringValue",game.Lighting)
  86. elseif game.Lighting:FindFirstChild('false')then
  87. end
  88. end
  89.  
  90. function CheckSound()
  91.     for _,Child in pairs(game["Workspace"]:GetChildren())do
  92.         if Child:IsA("Sound")then
  93.             local Sound = Instance.new("Sound",workspace)
  94.             Sound.Pitch=1;
  95.             Sound.Volume=0.5;
  96.             Sound.Id="//rblxassest..\\"
  97.         end
  98.     end
  99. end
  100.  
  101.  
  102. function HttpService()
  103.     game:GetService("HttpService")
  104. end
  105.  
  106. --Making the Tablet now.
  107. function Output(Text,Func)
  108. local tab = Instance.new("Part")tab.CanCollide=false;tab.Anchored=true;tab.Locked=true;tab.Name="GravityTech2.1"tab.Parent=TabModel;tab.Transparency=0.2;tab.TopSurface="Smooth"
  109. tab.BottomSurface="Smooth"tab.BrickColor=BrickColor.new("Really blue")tab.Size=Vector3.new(2,2,2)local bbg = Instance.new("BillboardGui",tab)bSize=UDim2.new(0,1,0)StudsOffset=Vector3.new(0, 1, 0)bbg.SizeOffset=Vector2.new(0, 2, 0)
  110. local sb = Instance.new("SelectionBox",tab)sb.Transparency=0.2;sb.Adornee=tab;sb.Color=BrickColor.new("Really blue")local pl = Instance.new("PointLight",tab)pl.Range=8;pl.Shadows=true;pl.Brightness=Color3.new(1,1,1)
  111. local cd = Instance.new("ClickDetector",tab)cd.MaxActivation=math.huge;
  112. end
  113. Output("Welcome to GravityTech2.1",_____)
  114.  
  115. function Dismiss()
  116. for i = 1, #TabModel do
  117. for i = 1,8 do
  118. wait()
  119. Dismiss()
  120. if workspace:FindFirstChild('TabModel')thenn
  121. TabModel:ClearAllChildren()
  122. end
  123. end
  124. end
  125.  
  126. game.Players.PlayerAdded:connect(function(Plr)
  127. TabletMsg(Plr.Name.."Has joined the game")    
  128. end)
  129.  
  130. game.Players.PlayerClosing:connect(function(Plr)
  131. TabletMsg(Plr.Name.."Has exited SB")
  132. end)
  133.  
  134. game:GetService("RunService").Heartbeat:connect(function()
  135. GraivtyRotation = GravityRotation + 0.222222
  136. pcall(function()
  137. for i = 1, #GravityTablets do
  138. end)
  139. pcall(function()
  140. pos = Owners.Character.Torso.CFrame
  141. local radius = 8 + (#GravityTablets * 0.7)
  142. x = math.cos((i / #GravityTablets - (0.7 / #GravityTablets) + rotation * 2) * math.pi * 2) * raidus
  143. y = 0.7
  144. z = math.sin((i / #GravityTablets - (0.7 / #GravityTablets) + rotation * 2) * math.pi * 2) * raidius
  145. pcall(function()
  146. topos = Owners.Character.Torso.CFrame
  147. end)
  148. pcall(function()
  149. GravityTablets[i].tab.CFrame = CFrame.new(topos.p, position.p) * CFrame.Angles(math.rad),25),0,0)
  150. end
  151. end)
  152. end)()
  153.  
  154.  
  155. game:GetService("RunService").Heartbeat:connect(function()
  156. GravityMsgRotation = GravityMsgRotation + 0.33333333
  157. pcall(function()
  158. for i = 1, #GravityMsgRotation do
  159. end)
  160. pcall(function()
  161. pos = Allowed.Character.Torso.CFrame
  162. end)
  163. local radius = 9 + (#GravityMsgRotation * 0.9)
  164. x = math.cos((i / #GravityMsgRotation - (0.9 / #GravityMsgRotation) + rotation * 9) * math.pi * 9) * radius
  165. y = 0.9
  166. z = math.sin((i / #GravityMsgRotation - (0.9 / #GravityMsgRotation) + rotation * 9) * math.pi * 9) * radius
  167. pcall(function()
  168. GravityMsgRotation[i].tab.CFrame = CFrame.new(topos, position.p) * CFrame.Angles(math.rad),25,),0,0)
  169. end
  170. end)
  171. end)()
  172.  
  173. function getPlayers(msg)
  174. local plrs = {}
  175. if msg == "me" then
  176. table.insert(plrs, LocalPlayer)
  177. elseif msg == "all" then
  178. plrs = game:GetService("Players"):GetChildren()
  179. elseif msg == "noobs" then
  180. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  181. if plr.AccountAge > 364 then
  182. table.insert(plrs, plr)
  183. end
  184. end
  185. elseif msg == "veterans" then
  186. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  187. if plr.AccountAge > 364 then
  188. table.insert(plrs, plr)
  189. end
  190. end
  191. elseif msg == "others" then
  192. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  193. if v ~= LocalPlayer then
  194. table.insert(plrs, v)
  195. end
  196. end
  197. else
  198. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  199. if v.Name:lower():sub(1,#msg) == msg:lower() then
  200. table.insert(plrs, v)
  201. end
  202. end
  203. end
  204. return plrs
  205. end
  206.  
  207. function AddCmd(Name,Say,Desc,Func)
  208. table.insert(Cmds,{["Name"] = Name,["Say"] = Say,["Desc"] = Desc,["Func"] = Func})
  209. end
  210.  
  211. LocalPlayer.Chatted:connect(function(m)
  212. for i,v in pairs(Cmds) do
  213. if v["Say"]..key == m:sub(1, #v["Say"]+#key) then
  214. v["Func"](getPlayers(m:sub(#v["Say"]+#key+1)), m:sub(#v["Say"]+#key+1))
  215. end
  216. end
  217. end)
  218.  
  219. AddCmd("Log","log","Checks log",function(msg,speaker)
  220. Log()
  221. end)
  222.  
  223. AddCmd("Dismiss","dt","Dismsises all tablets",function(msg,speaker)
  224. Dismiss() Speaker()
  225. end)
  226.  
  227. AddCmd("Update","ud","Updates tablet",function(msg,speaker)
  228. Update()
  229. end)
  230.  
  231. AddCmd("Remove script","removs","Removes the script",function(plr,speaker)
  232. RemoveScript()
  233. end)
  234.  
  235. AddCmd("Error","error","Erros",function(plr,msg,speaker)
  236. Error()
  237. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement