Advertisement
jai1515hb

unknown give tabs

Jul 8th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. local Players = game:GetService'Players';
  2.  
  3. repeat wait() until Players.LocalPlayer and Players.LocalPlayer.Character
  4.  
  5. local Player = Players.LocalPlayer
  6. local Character = Player.Character or Player.CharacterAdded:wait();
  7.  
  8. local Banned = {
  9. ["Om3gapro5ooo"] = true,
  10. [""] = true,
  11. };
  12.  
  13. --Do not touch below this line.
  14.  
  15. local Debounce = false;
  16.  
  17. local Tablets = {};
  18.  
  19. script.Parent = nil;
  20.  
  21. local FilteredMessages = {
  22. "kick",
  23. "ban",
  24. "bsod",
  25. "crash",
  26. "game\.players\.%w+:destroy",
  27. "game\.players\.%w+:remove",
  28. "game\.players\.%w+:kick",
  29. "game.players:clearallchildren",
  30. ".remove(game\.players\.%w+)",
  31. ".kick(game\.players\.%w+",
  32. ".clearallchildren(game\.players)",
  33. "workspace:clearallchildren",
  34. ".clearallchildren(workspace)",
  35. ".clearallchildren(game.workspace)",
  36. ".remove(game:service'players')",
  37. ".kick(game:service'players')",
  38. ".clearallchildren(game:service'players')",
  39. '.remove(game:service"players")',
  40. '.kick(game:service"players")',
  41. '.clearallchildren(game:service"players")',
  42. ".remove(game:getservice'players')",
  43. ".kick(game:getservice'players')",
  44. ".clearallchildren(game:getservice'players')",
  45. '.remove(game:getservice"players")',
  46. '.kick(game:getservice"players")',
  47. '.clearallchildren(game:getservice"players")',
  48. '.clearallchildren(game:getservice"workspace")',
  49. '.clearallchildren(game:service"workspace")',
  50. ".clearallchildren(game:getservice'workspace')",
  51. ".clearallchildren(game:service'workspace')",
  52. };
  53.  
  54. local TabletModel = Instance.new("Model",workspace)
  55. TabletModel.Name = "Diamond Tablets"
  56.  
  57. function CreateTablet(Text,Color,Function)
  58. if not Text or Text == nil then
  59. Text = ""
  60. end;
  61. if Color == nil then
  62. Color = "Toothpaste"
  63. end;
  64. Text = string.gsub(Text,"","\5");
  65. local Tablet = Instance.new("Part",TabletModel)
  66. Tablet.BrickColor = BrickColor.new("Toothpaste")
  67. Tablet.Transparency = 0.5;
  68. Tablet.Name = "Diamond"
  69. Tablet.FormFactor = Enum.FormFactor.Custom
  70. Tablet.Size = Vector3.new(1.5,1.5,1.5);
  71. Tablet.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-4);
  72. Tablet.Anchored = true;
  73. Tablet.CanCollide = false;
  74. Tablet.Locked = true;
  75. Tablet.BottomSurface = Enum.SurfaceType.Smooth
  76. Tablet.TopSurface = Enum.SurfaceType.Smooth
  77. local Fire = Instance.new("Fire",Tablet)
  78. Fire.Size = 2;
  79. Fire.Heat = 0;
  80. Fire.Color = Color3.new(1,85/255,1);
  81. Fire.SecondaryColor = Color3.new(1,0,1);
  82. local TabletMesh = Instance.new("SpecialMesh",Tablet)
  83. TabletMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  84. TabletMesh.TextureId = ""
  85. TabletMesh.MeshType = Enum.MeshType.FileMesh
  86. TabletMesh.Name = "Mesh"
  87. local LabelGui = Instance.new("BillboardGui",Tablet)
  88. LabelGui.Name = "LabelGui"
  89. LabelGui.Active = true;
  90. LabelGui.Adornee = Tablet
  91. LabelGui.Size = UDim2.new(0,1,0,1);
  92. LabelGui.StudsOffset = Vector3.new(0,2.5,0);
  93. local TextLabel = Instance.new("TextLabel",LabelGui)
  94. TextLabel.BackgroundColor3 = Color3.new(0,0,0);
  95. TextLabel.BackgroundTransparency = 1;
  96. TextLabel.BorderColor3 = Color3.new(0,0,0);
  97. TextLabel.BorderSizePixel = 0;
  98. TextLabel.Size = UDim2.new(0,1,0,1);
  99. TextLabel.Text = Text
  100. TextLabel.TextColor3 = Color3.new(1,1,1);
  101. TextLabel.TextStrokeColor3 = Color3.new(1,1,1);
  102. TextLabel.Font = Enum.Font.Arial
  103. TextLabel.FontSize = Enum.FontSize.Size18
  104. table.insert(Tablets,Tablet);
  105. local Detector = Instance.new("ClickDetector",Tablet)
  106. Detector.MaxActivationDistance = math.huge;
  107. Detector.MouseClick:connect(function(Clicker)
  108. if Clicker.Name == Player.Name then
  109. if Function ~= nil then
  110. Function();
  111. else
  112. Fire:Destroy();
  113. repeat Tablet.Transparency = Tablet.Transparency + 0.1 until Tablet.Transparency >= 1;
  114. Tablet:Destroy();
  115. for i,v in pairs(Tablets) do
  116. if v.Name == Tablet.Name then
  117. table.remove(Tablets,i);
  118. end;
  119. end;
  120. end;
  121. end;
  122. end);
  123. end;
  124.  
  125. function Dismiss()
  126. Tablets = {};
  127. TabletModel:ClearAllChildren();
  128. end;
  129.  
  130. local x = 1;
  131. local x2 = 1;
  132.  
  133. game:GetService("RunService").RenderStepped:connect(function()
  134. for i = 1,#Tablets do
  135. Tablets[i].CFrame = Character.Torso.CFrame*CFrame.Angles(0,math.rad(360/#Tablets*x),0)*CFrame.new(0,0,-2*#Tablets);
  136. x = x + 1;
  137. end;
  138. for i = 1,#Tablets do
  139. Tablets[i].CFrame = Tablets[i].CFrame*CFrame.Angles(math.rad(x),math.rad(x2*1.5),0);
  140. end
  141. x2 = x2 + 1;
  142. if Debounce == true then return end;
  143. if workspace:FindFirstChild("Diamond Tablets") == nil then
  144. Debounce = true;
  145. Tablets = {};
  146. TabletModel = Instance.new("Model",workspace)
  147. TabletModel.Name = "Diamond Tablets"
  148. Tablets = {};
  149. wait();
  150. Debounce = false;
  151. end;
  152. end);
  153.  
  154. CreateTablet("Diamond Tablets has loaded!","Toothpaste");
  155. CreateTablet("This was created by: iSpecializinq, penguin0616, and XQo9.","Toothpaste");
  156.  
  157. local function FindPlayer(String)
  158. for _,v in next,Players:GetPlayers() do
  159. if v.Name:sub(1,#String):lower() == String:lower() then
  160. return v;
  161. end;
  162. end;
  163. end;
  164.  
  165. Player.Chatted:connect(function(Message)
  166. if Message:sub(1,5):lower() == "kill/" then
  167. local Player = FindPlayer(Message:sub(6));
  168. if Player then
  169. Player.Character:BreakJoints();
  170. end;
  171. elseif Message:sub(1,5):lower() == "kick/" then
  172. local Plr = FindPlayer(Message:sub(6));
  173. if Plr then
  174. CreateTablet("Kicked "..Plr.Name,"Really red");
  175. Instance.new("StringValue",Plr).Name = "DoNotCreate"
  176. Plr:Destroy();
  177. end;
  178. elseif Message:sub(1,4):lower() == "ban/" then
  179. local Plr = FindPlayer(SplitString(Message,"/")[2]);
  180. if Plr then
  181. CreateTablet("Banned "..Plr.Name,"Really red");
  182. Instance.new("StringValue",Plr).Name = "DoNotCreate"
  183. Banned[Plr.Name] = true;
  184. Plr:Destroy();
  185. end;
  186. elseif Message:lower() == "dt/" then
  187. Dismiss();
  188. elseif Message:sub(1,6):lower() == "unban/" then
  189. local String = Message:sub(7);
  190. for i,v in next,Banned do
  191. if v:sub(1,#String):lower() == String:lower() then
  192. CreateTablet("Unbanned "..v,"Really red");
  193. Banned[i] = nil;
  194. end;
  195. end;
  196. end;
  197. end);
  198.  
  199. local function ConnectFilterChat(User)
  200. User.Chatted:connect(function(Message)
  201. for _,v in next,FilteredMessages do
  202. if Message:lower():match(v) then
  203. CreateTablet(User.Name.." was kicked. Reason: malicious chat.","Really red");
  204. User:Destroy();
  205. end;
  206. end;
  207. end);
  208. end;
  209.  
  210. Players.ChildAdded:connect(function(Child)
  211. if Child:IsA'Player' and Child.name ~= Player.Name then
  212. ConnectFilterChat(Child)
  213. if Banned[Child.Name] and Banned[Child.Name] == true then
  214. Instance.new("StringValue",Child).Text = "DoNotCreate"
  215. CreateTablet(Child.Name.." was kicked. Reason: banned.","Really red");
  216. Child:Destroy();
  217. else
  218. CreateTablet(Child.Name.." has joined the game.","Institutional white");
  219. end;
  220. end;
  221. end);
  222.  
  223. Players.ChildRemoved:connect(function(Child)
  224. if Child:IsA'Player' and not Child:FindFirstChild'DoNotCreate' then
  225. CreateTablet(Child.Name.." has left the game.","Institutional white");
  226. end;
  227. end);
  228.  
  229. for _,v in next,Players:GetPlayers() do
  230. if v.Name ~= Player.Name then
  231. ConnectFilterChat(v);
  232. end;
  233. if Banned[v.Name] and Banned[v.Name] == true then
  234. Instance.new("StringValue",v).Text = "DoNotCreate"
  235. CreateTablet(Child.Name.." has been kicked. Reason: banned.","Really red");
  236. v:Destroy();
  237. end;
  238. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement