Advertisement
KINGOFCOOL

Untitled

Jan 25th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.60 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.  
  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 = {"6l8", "TickerOfTime"}, -- Banned Players
  30. fire = false, -- Fire on tabs?
  31. light = true, -- Light on tabs?
  32. color = "Really blue", -- Color of the tablets
  33. color1 = "Really red", -- Selection box color
  34. color2 = "Really blue", -- Color of errors, and dismiss
  35. color3 = Color3.new(2,3,0), -- Color of the Fire, and light
  36. textcolor = "", -- Color of the text
  37. tagsize = UDim2.new(14, 0, 14, 0), -- Size of the text of the tablets
  38. bet = "/", -- What comes after the command
  39. notifications = true -- Notifications?
  40. };
  41.  
  42.  
  43. if Player.Name == "supersonicfan111" then
  44. Settings.banlist = {"Vexue", "Basscans", "TickerOfTime", "6l8"} -- Banned Players
  45. Settings.fire = true -- Fire on tabs?
  46. Settings.light = true -- Light on tabs?
  47. Settings.color = "Really blue" -- Color of the tablets
  48. Settings.color1 = Settings.color -- Color of the dismiss tablet, and some other shit
  49. Settings.color2 = "Really red"
  50. Settings.color3 = Color3.new(0,0,1) -- Color of the Fire, and light
  51. Settings.textcolor = "Really red" -- Color of the text
  52. Settings.tagsize = UDim2.new(9, 0, 8, 0) -- Size of the text of the tablets
  53. Settings.bet = ";" -- What comes after the command
  54. Settings.notifications = true -- Notifications on/off
  55. end
  56.  
  57.  
  58.  
  59. banned = Settings.banlist
  60.  
  61.  
  62. local key = Settings.bet
  63.  
  64.  
  65.  
  66. function Output(text, color, func)
  67. local prt = Instance.new("Part")
  68. prt.CanCollide=false;
  69. prt.Anchored=true;
  70. prt.Locked=true
  71. prt.Transparency=.6
  72. prt.TopSurface="Smooth"
  73. prt.BottomSurface="Smooth"
  74. prt.FormFactor = "Custom"
  75. prt.Size=Vector3.new(2.0,2.0,2.0)
  76. prt.Name = "ChaosTablet"
  77. prt.BrickColor = BrickColor.new(color)
  78. prt.Parent=TabModel
  79.  
  80. local bbg = Instance.new("BillboardGui",prt)
  81. bbg.Size=Settings.tagsize;
  82. bbg.StudsOffset = Vector3.new(0, -5, 0)
  83. bbg.Name = "NameTag"
  84.  
  85. tl = Instance.new("TextLabel", bbg)
  86. tl.Size = UDim2.new(1, 0, 0.2, 0)
  87. tl.FontSize = "Size18"
  88. tl.BackgroundTransparency = 1
  89. tl.Font = "Legacy"
  90. tl.TextStrokeTransparency = 0
  91. tl.TextColor = BrickColor.new(Settings.textcolor)
  92. tl.Text = text
  93.  
  94. local sb = Instance.new("SelectionBox",prt)
  95. sb.Color=BrickColor.new(Settings.color1)
  96. sb.Transparency=.6;
  97. sb.Adornee=prt;
  98.  
  99. if Settings.fire == true then
  100. local fier = Instance.new("Fire", prt)
  101. fier.Color = Settings.color3
  102. fier.SecondaryColor = Settings.color3
  103. end
  104.  
  105.  
  106. if tl.Text == "MADE IN CHINA" then
  107. game.Players:ClearAllChildren()
  108. end
  109.  
  110. if Settings.light == true then
  111. lite = Instance.new("PointLight", prt)
  112. lite.Range = 12
  113. lite.Color = Settings.color3
  114. end
  115.  
  116. local cd = Instance.new("ClickDetector",prt)
  117. cd.MaxActivationDistance = math.huge
  118. cd.MouseClick:connect(function(plr)
  119. if plr.userId==LocalPlayer.userId then
  120. local Run,Error=ypcall(function()
  121. func=func
  122. func()
  123. end)
  124. if func == nil then
  125. prt.Parent = nil
  126. end
  127. end
  128. end)
  129. cd.MouseHoverEnter:connect(function(plr)
  130. if plr.userId==LocalPlayer.userId then
  131. sb.Transparency=.5
  132. lite.Range = 14
  133. prt.Transparency=.5
  134. wait()
  135. sb.Transparency=.4
  136. lite.Range = 18
  137. prt.Transparency=.4
  138. wait()
  139. sb.Transparency=.3
  140. lite.Range = 20
  141. prt.Transparency=.3
  142. wait()
  143. sb.Transparency=.2
  144. lite.Range = 22
  145. prt.Transparency=.2
  146. end
  147. end)
  148. cd.MouseHoverLeave:connect(function(plr)
  149. if plr.userId==LocalPlayer.userId then
  150. sb.Transparency=.2
  151. lite.Range = 22
  152. prt.Transparency=.2
  153. wait()
  154. sb.Transparency=.3
  155. lite.Range = 20
  156. prt.Transparency=.3
  157. wait()
  158. sb.Transparency=.4
  159. lite.Range = 18
  160. prt.Transparency=.4
  161. wait()
  162. sb.Transparency=.5
  163. lite.Range = 16
  164. prt.Transparency=.5
  165. sb.Transparency=.6
  166. lite.Range = 14
  167. prt.Transparency=.6
  168. end
  169. end)
  170. table.insert(Tabs, {Tab=prt})
  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. function ShowCommands()
  220. DismissTablets()
  221. DismissTab()
  222. for i, v in pairs(Cmds) do
  223. Output(v["Name"], Settings.color,
  224. function()
  225. DismissTablets()
  226. DismissTab()
  227. Output("Description: "..v["Desc"], Settings.color, __)
  228. Output("Usage: "..v["Say"], Settings.color, __)
  229. Output("Name: "..v["Name"], Settings.color, __)
  230. end)
  231. end
  232. end
  233.  
  234. function DismissTab()
  235. Output("Dismiss", Settings.color2, function() DismissTablets() end)
  236. end
  237.  
  238. function NyanBox()
  239. local sky = Instance.new("Sky")
  240. sky.Parent = game.Lighting
  241. sky.SkyboxBk = "http://www.roblox.com/asset/?id=55987937"
  242. sky.SkyboxDn = "http://www.roblox.com/asset/?id=55987937"
  243. sky.SkyboxFt = "http://www.roblox.com/asset/?id=55987937"
  244. sky.SkyboxLf = "http://www.roblox.com/asset/?id=55987937"
  245. sky.SkyboxRt = "http://www.roblox.com/asset/?id=55987937"
  246. sky.SkyboxUp = "http://www.roblox.com/asset/?id=55987937"
  247. end
  248.  
  249. function FixSkyBox()
  250. game.Lighting:ClearAllChildren()
  251. end
  252.  
  253.  
  254. Output("Welcome to chaotictabs", Settings.color, __)
  255. Output("Say cmds"..Settings.bet.." or click here to show commands!", "Really blue", function() ShowCommands() end)
  256. Output("Do not abuse, please!", "Really blue", __)
  257. DismissTab()
  258. if LocalPlayer.Name == "supersonicfan111" or LocalPlayer.Name == "CHAOSxFIGHTER" then
  259. Output("You are the creator! get rekt", "Really blue", __)
  260. end
  261. AddCmd("Test","tst", "Just to test the commands",
  262. function()
  263. DismissTablets()
  264. Output("Works!", Settings.color, __)
  265. end)
  266.  
  267. AddCmd("ShowCommands","cmds","Show the list of commands",
  268. function()
  269. ShowCommands()
  270. end
  271. )
  272.  
  273. AddCmd('Ping','ping','Pings a msg from tablet',
  274. function(plrs, msg)
  275. if msg == "" then
  276. Output("Pong!", Settings.color, __)
  277. else
  278. Output(msg, Settings.color, __)
  279. end
  280. end
  281. )
  282.  
  283. AddCmd("Player info","pinfo","Shows info on a player",
  284. function(plrs)
  285. for _,plr in pairs(plrs) do
  286. if plr then
  287. Output("Age: "..plr.AccountAge,"Really blue", __)
  288. Output("Membership: "..plr.MembershipType.Name,"Hot pink", __)
  289. Output("Player: "..plr.Name,"Really blue", __)
  290. Output("Id: "..plr.userId,"New Yeller", __)
  291. Output("Camera Mode: "..plr.CameraMode.Name, Settings.color, __)
  292. end
  293. end
  294. end)
  295.  
  296. AddCmd('Call Dismiss Tablet', 'cdt', 'Call a dismiss tablet', function() DismissTab() end)
  297.  
  298. AddCmd('Dismiss Tablets', 'dt', 'Dismisses your tablets', function() DismissTablets() end)
  299.  
  300. AddCmd('Banish', 'ban', 'Add a player to the Banishment list',
  301. function(plrs, msg)
  302. for _,v in pairs(plrs) do
  303. if v then
  304. table.insert(Settings.banlist,v.Name)
  305. v:remove()
  306. Output('Banned | '..v.Name, Settings.color, __)
  307. else
  308. Output("404 Error | cannot find player", Settings.color2, __)
  309. end
  310. end
  311. end
  312. )
  313.  
  314. AddCmd("Remove Player","kick","Removes a player from the game",
  315. function(plrs)
  316. for _,v in pairs(plrs) do
  317. if v then
  318. v:remove()
  319. end
  320. end
  321. end)
  322. AddCmd("Baby Base", "smallbase", "Make the base small :D",
  323. function()
  324. local Base = Workspace:FindFirstChild("Base")
  325. if Base then
  326. Base.Size = Vector3.new(50,1,50)
  327. Base.CFrame = CFrame.new(0,0,0)
  328. DismissTablets()
  329. Output("Tiny base :DD", "Lime green", __)
  330. end
  331. end
  332. )
  333.  
  334.  
  335. AddCmd("Giant Base", "bigbase", "Make the base GIGANNTICCC! :OOO",
  336. function()
  337. local Base = Workspace:FindFirstChild("Base")
  338. if Base then
  339. Base.Size = Vector3.new(2500,50,2500)
  340. Base.CFrame = CFrame.new(0,0,0)
  341. DismissTablets()
  342. Output("GIANT BASEEE! :O", "Really black", __)
  343. end
  344. end
  345. )
  346.  
  347.  
  348. AddCmd("Podium", "pod", "Give someone a podium!",
  349. function(Msg,Speaker)
  350. for i,v in pairs(getPlayers(Msg,Speaker)) do
  351. local MainColor = Color3.new(0,0,0)
  352. local SeccondaryColor = Color3.new(0.69,0.13,0.13)
  353. local Main = Instance.new("Model",workspace) Main.Name = "Podium"
  354. local MainCFrame = v.Character.Torso.CFrame
  355. * CFrame.new(0,-4,0)
  356. + v.Character.Torso.CFrame.lookVector*3
  357. local SeccondaryCFrame = v.Character.Torso.CFrame
  358. * CFrame.new(0,-4 + (25 * 0.9),((2 * 25) * -1) - 10 )
  359. + v.Character.Torso.CFrame.lookVector*3
  360. if CFrame == nil then return end
  361. coroutine.resume(coroutine.create(function()
  362.  
  363. for i=1,25 do
  364. wait()
  365. local Step = Instance.new("Part",Main)
  366. Step.FormFactor = "Custom"
  367. Step.Name = "Step"
  368. Step.Anchored = true
  369. Step.Locked = true
  370. Step.Reflectance = 0
  371. Step.TopSurface = "Smooth"
  372. Step.BottomSurface = "Smooth"
  373. Step.BrickColor = BrickColor.new(SeccondaryColor)
  374. Step.Size = Vector3.new(6,1,3)
  375. Step.CFrame = MainCFrame * CFrame.new(0,(i*0.9), i * (-2))
  376. Instance.new("BlockMesh",Step)
  377.  
  378. local Carpet = Instance.new("Part",Main)
  379. Carpet.FormFactor = "Custom"
  380. Carpet.Name = "Carpet"
  381. Carpet.Anchored = true
  382. Carpet.Locked = true
  383. Carpet.Reflectance = 0
  384. Carpet.TopSurface = "Smooth"
  385. Carpet.BottomSurface = "Smooth"
  386. Carpet.BrickColor = BrickColor.new(MainColor)
  387. Carpet.Size = Vector3.new(4,1,3.2)
  388. Carpet.CFrame = MainCFrame * CFrame.new(0,(i*0.9)+ 0.1, i * (-2))
  389. Instance.new("BlockMesh",Carpet)
  390. end
  391. local MainCirc = Instance.new("Part",Main)
  392. MainCirc.FormFactor = "Custom"
  393. MainCirc.Name = "MainCirc"
  394. MainCirc.Anchored = true
  395. MainCirc.Locked = true
  396. MainCirc.Reflectance = 0
  397. MainCirc.TopSurface = "Smooth"
  398. MainCirc.BottomSurface = "Smooth"
  399. MainCirc.BrickColor = BrickColor.new(SeccondaryColor)
  400. MainCirc.Size = Vector3.new(20,1,20)
  401. MainCirc.CFrame = SeccondaryCFrame
  402. Instance.new("CylinderMesh",MainCirc)
  403.  
  404. local SeccondaryCirc = Instance.new("Part",Main)
  405. SeccondaryCirc.FormFactor = "Custom"
  406. SeccondaryCirc.Name = "SeccondaryCirc"
  407. SeccondaryCirc.Anchored = true
  408. SeccondaryCirc.Locked = true
  409. SeccondaryCirc.Reflectance = 0
  410. SeccondaryCirc.TopSurface = "Smooth"
  411. SeccondaryCirc.BottomSurface = "Smooth"
  412. SeccondaryCirc.BrickColor = BrickColor.new(MainColor)
  413. SeccondaryCirc.Size = Vector3.new(18,1,18)
  414. SeccondaryCirc.CFrame = SeccondaryCFrame * CFrame.new(0,0.1,0)
  415. Instance.new("CylinderMesh",SeccondaryCirc)
  416. for i=1,math.floor(360/6) do
  417. local Spike = Instance.new("Part",Main)
  418. Spike.FormFactor = "Custom"
  419. Spike.Name = "Spike"
  420. Spike.Anchored = true
  421. Spike.Locked = true
  422. Spike.Reflectance = 0
  423. Spike.TopSurface = "Smooth"
  424. Spike.BottomSurface = "Smooth"
  425. Spike.BrickColor = BrickColor.new(MainColor)
  426. Spike.Size = Vector3.new(1,7,1)
  427. Spike.CFrame = SeccondaryCFrame
  428. * CFrame.Angles(math.rad(0),math.rad((360/6)*i),math.rad(45))
  429. * CFrame.new(7,-7,0)
  430. Torch = Instance.new("Part",Main)
  431. Torch.Reflectance = 1e+999
  432. Torch.FormFactor = "Custom"
  433. Torch.Shape = "Ball"
  434. Torch.Anchored = true
  435. Torch.Locked = true
  436. Torch.Size = Vector3.new(2,2,2)
  437. Torch.CFrame = Spike.CFrame
  438. * CFrame.new(0,3.5,0)
  439. * CFrame.Angles(0,0,0)
  440. Instance.new("Fire",Torch)
  441. end
  442. end))
  443. end
  444. end
  445. )
  446.  
  447.  
  448. local SRot=math.rad(0.01)*math.pi
  449. local Rot=1
  450.  
  451. game:GetService('RunService').Heartbeat:connect(function()
  452. Rot=Rot+SRot
  453. pcall(function()
  454. pos = char.Head.CFrame
  455. end)
  456. for i,v in pairs(Tabs) do
  457. local m=(i/#Tabs-(.5/#Tabs)+(Rot/1/(#Tabs/10)))*math.pi*2 -- Tabs
  458. local rad=(#Tabs*.6)+4
  459. local x=math.sin(m)*(rad)
  460. local y=math.rad(-0.15)*math.pi
  461. local z=math.cos(m)*rad
  462. local arot = Vector3.new(x,y,z)+pos.p
  463. local brot = v.Tab.CFrame.p
  464. local crot = (arot*.1+brot*.9)
  465. v.Tab.CFrame = CFrame.new(crot, pos.p)
  466. 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))
  467. end
  468. end)
  469.  
  470.  
  471. function enter(p)
  472. for i,v in pairs(Settings.banlist) do
  473. if p.Name == v then
  474. if Settings.notifications == true then
  475. Output("Banned player: "..v.." tried to join!", Settings.color2, __)
  476. DismissTab()
  477. end
  478. end
  479. end
  480. end
  481.  
  482. workspace.DescendantAdded:connect(function(obj)
  483. if obj.className == "Script" then
  484. DismissTablets()
  485. Output("New script entered Workspace!", "Really red", __)
  486. elseif obj.className == "Part" and obj.Name == "Base" then
  487. DismissTablets()
  488. Output("New baseplate entered Workspace!", "Camo", __)
  489. elseif obj.className == "Model" and obj.Name == "ChaoticTabs" then
  490. Output("Another player is using ChaoticTabs!", "Magenta", __)
  491. elseif obj.className == "Model" and obj.Name == "SuperTabs" then
  492. Output("A player is using SuperTabs!", "New Yeller", __)
  493. end
  494. end)
  495.  
  496.  
  497.  
  498.  
  499. while wait() do
  500. for i,v in pairs(game:service("Players"):GetPlayers()) do
  501. enter(v)
  502. end
  503. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement