Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService'Players';
- repeat wait() until Players.LocalPlayer and Players.LocalPlayer.Character
- local Player = Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:wait();
- local Banned = {
- ["Om3gapro5ooo"] = true,
- [""] = true,
- };
- --Do not touch below this line.
- local Debounce = false;
- local Tablets = {};
- script.Parent = nil;
- local FilteredMessages = {
- "kick",
- "ban",
- "bsod",
- "crash",
- "game\.players\.%w+:destroy",
- "game\.players\.%w+:remove",
- "game\.players\.%w+:kick",
- "game.players:clearallchildren",
- ".remove(game\.players\.%w+)",
- ".kick(game\.players\.%w+",
- ".clearallchildren(game\.players)",
- "workspace:clearallchildren",
- ".clearallchildren(workspace)",
- ".clearallchildren(game.workspace)",
- ".remove(game:service'players')",
- ".kick(game:service'players')",
- ".clearallchildren(game:service'players')",
- '.remove(game:service"players")',
- '.kick(game:service"players")',
- '.clearallchildren(game:service"players")',
- ".remove(game:getservice'players')",
- ".kick(game:getservice'players')",
- ".clearallchildren(game:getservice'players')",
- '.remove(game:getservice"players")',
- '.kick(game:getservice"players")',
- '.clearallchildren(game:getservice"players")',
- '.clearallchildren(game:getservice"workspace")',
- '.clearallchildren(game:service"workspace")',
- ".clearallchildren(game:getservice'workspace')",
- ".clearallchildren(game:service'workspace')",
- };
- local TabletModel = Instance.new("Model",workspace)
- TabletModel.Name = "Diamond Tablets"
- function CreateTablet(Text,Color,Function)
- if not Text or Text == nil then
- Text = ""
- end;
- if Color == nil then
- Color = "Toothpaste"
- end;
- Text = string.gsub(Text,"","\5");
- local Tablet = Instance.new("Part",TabletModel)
- Tablet.BrickColor = BrickColor.new("Toothpaste")
- Tablet.Transparency = 0.5;
- Tablet.Name = "Diamond"
- Tablet.FormFactor = Enum.FormFactor.Custom
- Tablet.Size = Vector3.new(1.5,1.5,1.5);
- Tablet.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-4);
- Tablet.Anchored = true;
- Tablet.CanCollide = false;
- Tablet.Locked = true;
- Tablet.BottomSurface = Enum.SurfaceType.Smooth
- Tablet.TopSurface = Enum.SurfaceType.Smooth
- local Fire = Instance.new("Fire",Tablet)
- Fire.Size = 2;
- Fire.Heat = 0;
- Fire.Color = Color3.new(1,85/255,1);
- Fire.SecondaryColor = Color3.new(1,0,1);
- local TabletMesh = Instance.new("SpecialMesh",Tablet)
- TabletMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- TabletMesh.TextureId = ""
- TabletMesh.MeshType = Enum.MeshType.FileMesh
- TabletMesh.Name = "Mesh"
- local LabelGui = Instance.new("BillboardGui",Tablet)
- LabelGui.Name = "LabelGui"
- LabelGui.Active = true;
- LabelGui.Adornee = Tablet
- LabelGui.Size = UDim2.new(0,1,0,1);
- LabelGui.StudsOffset = Vector3.new(0,2.5,0);
- local TextLabel = Instance.new("TextLabel",LabelGui)
- TextLabel.BackgroundColor3 = Color3.new(0,0,0);
- TextLabel.BackgroundTransparency = 1;
- TextLabel.BorderColor3 = Color3.new(0,0,0);
- TextLabel.BorderSizePixel = 0;
- TextLabel.Size = UDim2.new(0,1,0,1);
- TextLabel.Text = Text
- TextLabel.TextColor3 = Color3.new(1,1,1);
- TextLabel.TextStrokeColor3 = Color3.new(1,1,1);
- TextLabel.Font = Enum.Font.Arial
- TextLabel.FontSize = Enum.FontSize.Size18
- table.insert(Tablets,Tablet);
- local Detector = Instance.new("ClickDetector",Tablet)
- Detector.MaxActivationDistance = math.huge;
- Detector.MouseClick:connect(function(Clicker)
- if Clicker.Name == Player.Name then
- if Function ~= nil then
- Function();
- else
- Fire:Destroy();
- repeat Tablet.Transparency = Tablet.Transparency + 0.1 until Tablet.Transparency >= 1;
- Tablet:Destroy();
- for i,v in pairs(Tablets) do
- if v.Name == Tablet.Name then
- table.remove(Tablets,i);
- end;
- end;
- end;
- end;
- end);
- end;
- function Dismiss()
- Tablets = {};
- TabletModel:ClearAllChildren();
- end;
- local x = 1;
- local x2 = 1;
- game:GetService("RunService").RenderStepped:connect(function()
- for i = 1,#Tablets do
- Tablets[i].CFrame = Character.Torso.CFrame*CFrame.Angles(0,math.rad(360/#Tablets*x),0)*CFrame.new(0,0,-2*#Tablets);
- x = x + 1;
- end;
- for i = 1,#Tablets do
- Tablets[i].CFrame = Tablets[i].CFrame*CFrame.Angles(math.rad(x),math.rad(x2*1.5),0);
- end
- x2 = x2 + 1;
- if Debounce == true then return end;
- if workspace:FindFirstChild("Diamond Tablets") == nil then
- Debounce = true;
- Tablets = {};
- TabletModel = Instance.new("Model",workspace)
- TabletModel.Name = "Diamond Tablets"
- Tablets = {};
- wait();
- Debounce = false;
- end;
- end);
- CreateTablet("Diamond Tablets has loaded!","Toothpaste");
- CreateTablet("This was created by: iSpecializinq, penguin0616, and XQo9.","Toothpaste");
- local function FindPlayer(String)
- for _,v in next,Players:GetPlayers() do
- if v.Name:sub(1,#String):lower() == String:lower() then
- return v;
- end;
- end;
- end;
- Player.Chatted:connect(function(Message)
- if Message:sub(1,5):lower() == "kill/" then
- local Player = FindPlayer(Message:sub(6));
- if Player then
- Player.Character:BreakJoints();
- end;
- elseif Message:sub(1,5):lower() == "kick/" then
- local Plr = FindPlayer(Message:sub(6));
- if Plr then
- CreateTablet("Kicked "..Plr.Name,"Really red");
- Instance.new("StringValue",Plr).Name = "DoNotCreate"
- Plr:Destroy();
- end;
- elseif Message:sub(1,4):lower() == "ban/" then
- local Plr = FindPlayer(SplitString(Message,"/")[2]);
- if Plr then
- CreateTablet("Banned "..Plr.Name,"Really red");
- Instance.new("StringValue",Plr).Name = "DoNotCreate"
- Banned[Plr.Name] = true;
- Plr:Destroy();
- end;
- elseif Message:lower() == "dt/" then
- Dismiss();
- elseif Message:sub(1,6):lower() == "unban/" then
- local String = Message:sub(7);
- for i,v in next,Banned do
- if v:sub(1,#String):lower() == String:lower() then
- CreateTablet("Unbanned "..v,"Really red");
- Banned[i] = nil;
- end;
- end;
- end;
- end);
- local function ConnectFilterChat(User)
- User.Chatted:connect(function(Message)
- for _,v in next,FilteredMessages do
- if Message:lower():match(v) then
- CreateTablet(User.Name.." was kicked. Reason: malicious chat.","Really red");
- User:Destroy();
- end;
- end;
- end);
- end;
- Players.ChildAdded:connect(function(Child)
- if Child:IsA'Player' and Child.name ~= Player.Name then
- ConnectFilterChat(Child)
- if Banned[Child.Name] and Banned[Child.Name] == true then
- Instance.new("StringValue",Child).Text = "DoNotCreate"
- CreateTablet(Child.Name.." was kicked. Reason: banned.","Really red");
- Child:Destroy();
- else
- CreateTablet(Child.Name.." has joined the game.","Institutional white");
- end;
- end;
- end);
- Players.ChildRemoved:connect(function(Child)
- if Child:IsA'Player' and not Child:FindFirstChild'DoNotCreate' then
- CreateTablet(Child.Name.." has left the game.","Institutional white");
- end;
- end);
- for _,v in next,Players:GetPlayers() do
- if v.Name ~= Player.Name then
- ConnectFilterChat(v);
- end;
- if Banned[v.Name] and Banned[v.Name] == true then
- Instance.new("StringValue",v).Text = "DoNotCreate"
- CreateTablet(Child.Name.." has been kicked. Reason: banned.","Really red");
- v:Destroy();
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement