Advertisement
KINGOFCOOL

Untitled

Jan 26th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.05 KB | None | 0 0
  1. local tablets = {}
  2. Player=game.Players.LocalPlayer
  3. char=Player.Character
  4. LocalPlayer = Player
  5. Cmds = {}
  6. Tabs = {}
  7. TabModel = Instance.new("Model", workspace)
  8. TabModel.Name = "ChaoticTabs"
  9. SRot=math.rad(0.0007)*math.pi
  10.  
  11. if Player.Name == "supersonicfan111" then
  12. TabModel.Name = "Cha0ticTabs"
  13. end
  14.  
  15. function DismissTablets()
  16. for i = 1, 10 do
  17. for i = 1, #Tabs do
  18. table.remove(Tabs, i)
  19. if TabModel then
  20. TabModel:ClearAllChildren()
  21. end
  22. end
  23. end
  24. end
  25.  
  26.  
  27.  
  28. Settings = {
  29. banlist = {"tusKOr661","6l8", "MiniNob", "haqer", "HugeNob", "aceahmedmoh", "aceahmedmoh22"}, -- Banned Players
  30. fire = false, -- Fire on tabs?
  31. light = false, -- Light on tabs?
  32. color = "Really blue", -- Color of the tablets
  33. color1= "New Yeller", -- Selection box color1
  34. color2= "Really red", -- Color of errors, and dismiss1
  35. color3 = Color3.new(3,5,0), -- Color of the Fire, and light
  36. textcolor = "Lime green", -- Color of the text
  37. tagsize = UDim2.new(9, 9, 9, 9), -- Size of the text of the tablets
  38. bet = "!", -- What comes after the command
  39. notifications = true,
  40. tabsize=Vector3.new(2,2,2) -- this is my stuff
  41. };
  42.  
  43.  
  44. if Player.Name == "supersonicfan111" then
  45. Settings.banlist = {"tusKOr661","Vexue", "Basscans", "Ticker", "6l8", "aceahmedmoh"} -- Banned Players
  46. Settings.fire = true -- Fire on tabs?
  47. Settings.light = true -- Light on tabs?
  48. Settings.color = "Really red"
  49. Settings.color1 = "Navy blue"
  50. Settings.color2 = "Really Black" -- Color of dismiss, etc
  51. Settings.color3 = Color3.new(0,0,1) -- Color of the Fire, and light
  52. Settings.textcolor = "Royal purple" -- Color of the text
  53. Settings.tagsize = UDim2.new(9, 0, 8, 0) -- Size of the text of the tablets
  54. Settings.bet = ";" -- What comes after the command
  55. Settings.notifications = true -- Notifications on/off
  56. Settings.tabsize=Vector3.new(3,5,0.1)
  57. SRot=math.rad(0.0006)*math.pi
  58. end
  59.  
  60.  
  61.  
  62. banned = Settings.banlist
  63.  
  64.  
  65. local key = Settings.bet
  66.  
  67.  
  68.  
  69. function Output(text, color, func)
  70. local prt = Instance.new("Part")
  71. prt.CanCollide=false;
  72. prt.Anchored=true;
  73. prt.Locked=true
  74. prt.Transparency=.1
  75. prt.TopSurface="Smooth"
  76. prt.BottomSurface="Smooth"
  77. prt.FormFactor = "Custom"
  78. prt.Size=Settings.tabsize
  79. prt.Name = "ChaosTablet"
  80. prt.BrickColor = BrickColor.new(color)
  81. prt.Parent=TabModel
  82.  
  83. local bbg = Instance.new("BillboardGui",prt)
  84. bbg.Size=Settings.tagsize;
  85. bbg.StudsOffset = Vector3.new(0, -5, 0)
  86. bbg.Name = "NameTag"
  87.  
  88. local tl = Instance.new("TextLabel", bbg)
  89. tl.Size = UDim2.new(1, 0, 0.2, 0)
  90. tl.FontSize = "Size18"
  91. tl.BackgroundTransparency = 1
  92. tl.Font = "Legacy"
  93. tl.TextStrokeTransparency = 0
  94. tl.TextColor = BrickColor.new(Settings.textcolor)
  95. tl.Text = text
  96.  
  97. sbox = Instance.new("SelectionBox",prt)
  98. sbox.Color=BrickColor.new(Settings.color1)
  99. sbox.Transparency=.2;
  100. sbox.Adornee=prt;
  101.  
  102. if Settings.fire == true then
  103. local fier = Instance.new("Fire", prt)
  104. fier.Color = Settings.color3
  105. fier.SecondaryColor = Settings.color3
  106. end
  107.  
  108. if Settings.light == true then
  109. lite = Instance.new("PointLight", prt)
  110. lite.Range = 18
  111. lite.Color = Settings.color3
  112. end
  113.  
  114. local cd = Instance.new("ClickDetector",prt)
  115. cd.MaxActivationDistance = math.huge
  116. cd.MouseClick:connect(function(plr)
  117. if plr.userId==LocalPlayer.userId then
  118. local Run,Error=ypcall(function()
  119. func=func
  120. func()
  121. end)
  122. if func == nil then
  123. prt.Parent = nil
  124. end
  125. end
  126. end)
  127. cd.MouseHoverEnter:connect(function(plr)
  128. if plr.userId==LocalPlayer.userId then
  129. sbox.Transparency = .2
  130. prt.Transparency = .2
  131. end
  132. end)
  133. cd.MouseHoverLeave:connect(function(plr)
  134. if plr.userId==LocalPlayer.userId then
  135. sbox.Transparency=.4
  136. prt.Transparency=.4
  137. end
  138. end)
  139. table.insert(Tabs, {Tab=prt})
  140. end
  141.  
  142. function getPlayers(msg)
  143. local plrs = {}
  144. if msg == "me" then
  145. table.insert(plrs, LocalPlayer)
  146. elseif msg == "all" then
  147. plrs = game:GetService("Players"):GetChildren()
  148. elseif msg == "noobs" then
  149. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  150. if plr.AccountAge > 364 then
  151. table.insert(plrs, plr)
  152. end
  153. end
  154. elseif msg == "veterans" then
  155. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  156. if plr.AccountAge > 364 then
  157. table.insert(plrs, plr)
  158. end
  159. end
  160. elseif msg == "others" then
  161. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  162. if v ~= LocalPlayer then
  163. table.insert(plrs, v)
  164. end
  165. end
  166. else
  167. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  168. if v.Name:lower():sub(1,#msg) == msg:lower() then
  169. table.insert(plrs, v)
  170. end
  171. end
  172. end
  173. return plrs
  174. end
  175.  
  176. function AddCmd(Name,Say,Desc,Func)
  177. table.insert(Cmds,{["Name"] = Name,["Say"] = Say,["Desc"] = Desc,["Func"] = Func})
  178. end
  179.  
  180. LocalPlayer.Chatted:connect(function(m)
  181. for i,v in pairs(Cmds) do
  182. if v["Say"]..key == m:sub(1, #v["Say"]+#key) then
  183. v["Func"](getPlayers(m:sub(#v["Say"]+#key+1)), m:sub(#v["Say"]+#key+1))
  184. end
  185. end
  186. end)
  187.  
  188. function ShowCommands()
  189. DismissTablets()
  190. DismissTab()
  191. for i, v in pairs(Cmds) do
  192. Output(v["Name"], Settings.color,
  193. function()
  194. DismissTablets()
  195. DismissTab()
  196. Output("Back", "Really black", function() ShowCommands() end)
  197. Output("Description: "..v["Desc"], Settings.color, __)
  198. Output("Usage: "..v["Say"], Settings.color, __)
  199. Output("Name: "..v["Name"], Settings.color, __)
  200. end)
  201. end
  202. end
  203.  
  204. function DismissTab()
  205. Output("Dismiss", Settings.color2, function() DismissTablets() end)
  206. end
  207.  
  208. function NyanBox()
  209. local sky = Instance.new("Sky")
  210. sky.Parent = game.Lighting
  211. sky.SkyboxBk = "http://www.roblox.com/asset/?id=55987937"
  212. sky.SkyboxDn = "http://www.roblox.com/asset/?id=55987937"
  213. sky.SkyboxFt = "http://www.roblox.com/asset/?id=55987937"
  214. sky.SkyboxLf = "http://www.roblox.com/asset/?id=55987937"
  215. sky.SkyboxRt = "http://www.roblox.com/asset/?id=55987937"
  216. sky.SkyboxUp = "http://www.roblox.com/asset/?id=55987937"
  217. end
  218.  
  219. function FixSkyBox()
  220. game.Lighting:ClearAllChildren()
  221. end
  222.  
  223.  
  224. Output("Welcome, creator.", "Really blue", __)
  225. Output("Click here or say cmds"..Settings.bet.." to view commands!", "Really blue", function() ShowCommands() end)
  226. DismissTab()
  227. AddCmd("Test","tst", "Just to test the commands",
  228. function()
  229. DismissTablets()
  230. Output("Works!", Settings.color, __)
  231. end)
  232.  
  233. AddCmd("ShowCommands","cmds","Show the list of commands",
  234. function()
  235. ShowCommands()
  236. end
  237. )
  238.  
  239. AddCmd('Ping','ping','Pings a msg from tablet',
  240. function(plrs, msg)
  241. if msg == "" then
  242. Output("Pong!", Settings.color, __)
  243. else
  244. Output(msg, Settings.color, __)
  245. end
  246. end
  247. )
  248.  
  249. AddCmd("Player info","pinfo","Shows info on a player",
  250. function(plrs)
  251. for _,plr in pairs(plrs) do
  252. if plr then
  253. Output("Age: "..plr.AccountAge,"Really blue", __)
  254. Output("Membership: "..plr.MembershipType.Name,"Hot pink", __)
  255. Output("Player: "..plr.Name,"Really blue", __)
  256. Output("Id: "..plr.userId,"New Yeller", __)
  257. Output("Camera Mode: "..plr.CameraMode.Name, Settings.color, __)
  258. end
  259. end
  260. end)
  261.  
  262. AddCmd('Call Dismiss Tablet', 'cdt', 'Call a dismiss tablet', function() DismissTab() end)
  263.  
  264. AddCmd('Dismiss Tablets', 'dt', 'Dismisses your tablets', function() DismissTablets() end)
  265.  
  266. AddCmd('Banish', 'ban', 'Add a player to the Banishment list',
  267. function(plrs, msg)
  268. for _,v in pairs(plrs) do
  269. if v then
  270. table.insert(Settings.banlist,v.Name)
  271. v:remove()
  272. Output('Banned | '..v.Name, Settings.color, __)
  273. else
  274. Output("404 Error | cannot find player", Settings.color2, __)
  275. end
  276. end
  277. end
  278. )
  279.  
  280. AddCmd("Remove Player","kick","Removes a player from the game",
  281. function(plrs)
  282. for _,v in pairs(plrs) do
  283. if v then
  284. v:remove()
  285. end
  286. end
  287. end)
  288.  
  289. AddCmd("Remove Character","nilc","Parent a player's character to nil",
  290. function(plrs)
  291. for _,v in pairs(plrs) do
  292. if v and v.Character then
  293. v.Character.Parent = nil
  294. end
  295. end
  296. end)
  297. AddCmd("Baby Base", "smallbase", "Make the base small :D",
  298. function()
  299. local Base = Workspace:FindFirstChild("Base")
  300. if Base then
  301. Base.Size = Vector3.new(50,1,50)
  302. Base.CFrame = CFrame.new(0,0,0)
  303. DismissTablets()
  304. Output("Tiny base :DD", "Lime green", __)
  305. end
  306. end
  307. )
  308.  
  309.  
  310. AddCmd("Giant Base", "bigbase", "Make the base GIGANNTICCC! :OOO",
  311. function()
  312. local Base = Workspace:FindFirstChild("Base")
  313. if Base then
  314. Base.Size = Vector3.new(250000,-1,250000)
  315. Base.CFrame = CFrame.new(0,0,0)
  316. DismissTablets()
  317. Output("GIANT BASEEE! :O", "Really black", __)
  318. end
  319. end
  320. )
  321.  
  322. AddCmd("Kill","kill","Kills a player",
  323. function(plrs)
  324. for _,v in pairs(plrs) do
  325. if v then
  326. v.Character.Humanoid.MaxHealth = 0
  327. end
  328. end
  329. end)
  330.  
  331.  
  332. local Rot=1
  333.  
  334. game:GetService('RunService').Heartbeat:connect(function()
  335. Rot=Rot+SRot
  336. pcall(function()
  337. pos = char.Head.CFrame
  338. end)
  339. for i,v in pairs(Tabs) do
  340. local m=(i/#Tabs-(.5/#Tabs)+(Rot/1/(#Tabs/10)))*math.pi*2 -- Tabs
  341. local rad=(#Tabs*.6)+4
  342. local x=math.sin(m)*(rad)
  343. local y=math.rad(0.)*math.pi
  344. local z=math.cos(m)*rad
  345. local arot = Vector3.new(x,y,z)+pos.p
  346. local brot = v.Tab.CFrame.p
  347. local crot = (arot*.1+brot*.9)
  348. v.Tab.CFrame = CFrame.new(crot, pos.p)
  349. v.Tab.CFrame = v.Tab.CFrame*CFrame.Angles(math.rad(Rot*800*math.pi),math.rad(Rot*800*math.pi),math.rad(Rot*800*math.pi))
  350. end
  351. end)
  352.  
  353.  
  354. function enter(p)
  355. for i,v in pairs(Settings.banlist) do
  356. if p.Name == v then
  357. p:remove()
  358. if Settings.notifications == true then
  359. Output("Banned player: "..v.." tried to join!", Settings.color, __)
  360. DismissTab()
  361. end
  362. end
  363. end
  364. end
  365.  
  366. workspace.DescendantAdded:connect(function(obj)
  367. if obj.className == "Part" and obj.Name == "Base" then
  368. Output("New baseplate entered Workspace!", "Camo", __)
  369. elseif obj.className == "Model" and obj.Name == "ChaoticTabs" then
  370. Output("Another player is using ChaoticTabs!", "Magenta", __)
  371. elseif obj.className == "Model" and obj.Name == "SuperTabs" then
  372. Output("A player is using ApertureTabs!", "White", __)
  373. elseif obj.className == "Script" and obj.Name == "IlluminatiScript" then
  374. Output("Sanic was prevented from spawning", "Lime green", __)
  375. obj:remove()
  376. elseif obj.className == "Script" and not obj.Name == "IlluminatiScript" then
  377. Output("New script entered Workspace!", "Really red", __)
  378. end
  379. end)
  380.  
  381.  
  382. while wait() do
  383. for i,v in pairs(game.Players:GetChildren()) do
  384. enter(v)
  385. end
  386. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement