Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- edited by bork so it works with proto XD
- local topkek = {}
- topkek.patch = '1.0.5a'
- topkek.data = {}
- topkek.commandbase = {}
- topkek.navigation = {}
- topkek.banmgr = {}
- topkek.lplr = game:GetService('Players').LocalPlayer
- topkek.tools = {}
- topkek.tools.gui = {}
- topkek.tools.util = {}
- topkek.tools.animator = {}
- topkek.windows = {}
- topkek.windows.lplr = {}
- topkek.windows.server = {}
- topkek.windows.players = {}
- topkek.windows.destruction = {}
- topkek.windows.scripts = {}
- topkek.windows.misc = {}
- topkek.misc = {}
- local NewGuiPart1 = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- NewGuiPart1.Name = "4.0"
- -------
- local NewGuiPart2 = Instance.new("Frame")
- NewGuiPart2.Active = true
- NewGuiPart2.BackgroundColor3 = Color3.new(0.509804, 0.184314, 0.184314)
- NewGuiPart2.BorderSizePixel = 0
- NewGuiPart2.Name = "Main"
- NewGuiPart2.Position = UDim2.new(0, 300, 0, 50)
- NewGuiPart2.Selectable = true
- NewGuiPart2.Size = UDim2.new(0, 470, 0, 395)
- NewGuiPart2.Visible = false
- NewGuiPart2.ClipsDescendants = true
- NewGuiPart2.Draggable = true
- NewGuiPart2.Parent = NewGuiPart1
- -------
- local NewGuiPart3 = Instance.new("Frame")
- NewGuiPart3.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart3.BorderSizePixel = 0
- NewGuiPart3.Name = "Topbar"
- NewGuiPart3.Position = UDim2.new(0, 150, 0, 0)
- NewGuiPart3.Size = UDim2.new(0, 320, 0, 30)
- NewGuiPart3.Parent = NewGuiPart2
- -------
- local NewGuiPart4 = Instance.new("TextLabel")
- NewGuiPart4.BackgroundTransparency = 1
- NewGuiPart4.Name = "PlayerName"
- NewGuiPart4.Position = UDim2.new(0, -140, 0, 0)
- NewGuiPart4.Size = UDim2.new(0.5, 0, 1, 0)
- NewGuiPart4.Visible = false
- NewGuiPart4.ZIndex = 4
- NewGuiPart4.Font = Enum.Font.Arcade
- NewGuiPart4.FontSize = Enum.FontSize.Size18
- NewGuiPart4.Text = "Player1"
- NewGuiPart4.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart4.TextXAlignment = Enum.TextXAlignment.Left
- NewGuiPart4.Parent = NewGuiPart3
- -------
- local NewGuiPart5 = Instance.new("Frame")
- NewGuiPart5.BackgroundTransparency = 1
- NewGuiPart5.Name = "Controllers"
- NewGuiPart5.Position = UDim2.new(1, -128, 0, 3)
- NewGuiPart5.Size = UDim2.new(0, 125, 1, -6)
- NewGuiPart5.Parent = NewGuiPart3
- -------
- local NewGuiPart6 = Instance.new("TextButton")
- NewGuiPart6.Active = true
- NewGuiPart6.AutoButtonColor = false
- NewGuiPart6.BackgroundColor3 = Color3.new(0.552941, 0.105882, 0.105882)
- NewGuiPart6.BorderSizePixel = 0
- NewGuiPart6.Name = "Exit"
- NewGuiPart6.Position = UDim2.new(1, -24, 0, 0)
- NewGuiPart6.Selectable = true
- NewGuiPart6.Size = UDim2.new(0, 24, 0, 24)
- NewGuiPart6.Style = Enum.ButtonStyle.Custom
- NewGuiPart6.FontSize = Enum.FontSize.Size14
- NewGuiPart6.Text = ""
- NewGuiPart6.Parent = NewGuiPart5
- -------
- local NewGuiPart7 = Instance.new("TextButton")
- NewGuiPart7.Active = true
- NewGuiPart7.AutoButtonColor = false
- NewGuiPart7.BackgroundColor3 = Color3.new(0.780392, 0.34902, 0)
- NewGuiPart7.BorderSizePixel = 0
- NewGuiPart7.Name = "Hide"
- NewGuiPart7.Position = UDim2.new(1, -50, 0, 0)
- NewGuiPart7.Selectable = true
- NewGuiPart7.Size = UDim2.new(0, 24, 0, 24)
- NewGuiPart7.Style = Enum.ButtonStyle.Custom
- NewGuiPart7.FontSize = Enum.FontSize.Size14
- NewGuiPart7.Text = ""
- NewGuiPart7.Parent = NewGuiPart5
- -------
- local NewGuiPart8 = Instance.new("TextLabel")
- NewGuiPart8.BackgroundTransparency = 1
- NewGuiPart8.Name = "IsFE"
- NewGuiPart8.Size = UDim2.new(0, 65, 1, 0)
- NewGuiPart8.FontSize = Enum.FontSize.Size18
- NewGuiPart8.Text = "Not FE"
- NewGuiPart8.TextColor3 = Color3.new(0.333333, 0.666667, 0)
- NewGuiPart8.TextStrokeTransparency = 0.69999998807907
- NewGuiPart8.TextXAlignment = Enum.TextXAlignment.Right
- NewGuiPart8.Parent = NewGuiPart5
- -------
- local NewGuiPart9 = Instance.new("TextLabel")
- NewGuiPart9.BackgroundTransparency = 1
- NewGuiPart9.Name = "Stella"
- NewGuiPart9.Position = UDim2.new(0, -150, 0, 0)
- NewGuiPart9.Size = UDim2.new(1, 150, 1, 0)
- NewGuiPart9.ZIndex = 2
- NewGuiPart9.Font = Enum.Font.Arcade
- NewGuiPart9.FontSize = Enum.FontSize.Size18
- NewGuiPart9.Text = "[Stella]"
- NewGuiPart9.TextColor3 = Color3.new(0.054902, 0.0745098, 0.498039)
- NewGuiPart9.Parent = NewGuiPart3
- -------
- local NewGuiPart10 = Instance.new("Frame")
- NewGuiPart10.BackgroundTransparency = 1
- NewGuiPart10.Name = "Holder"
- NewGuiPart10.Position = UDim2.new(0, 150, 0, 30)
- NewGuiPart10.Size = UDim2.new(0, 320, 0, 365)
- NewGuiPart10.Parent = NewGuiPart2
- -------
- local NewGuiPart11 = Instance.new("Frame")
- NewGuiPart11.BackgroundTransparency = 1
- NewGuiPart11.Name = "Home"
- NewGuiPart11.Size = UDim2.new(1, 0, 1, 0)
- NewGuiPart11.Parent = NewGuiPart10
- -------
- local NewGuiPart12 = Instance.new("TextLabel")
- NewGuiPart12.BackgroundTransparency = 1
- NewGuiPart12.BorderSizePixel = 0
- NewGuiPart12.Name = "Title1"
- NewGuiPart12.Position = UDim2.new(0, 30, 0, 3)
- NewGuiPart12.Selectable = true
- NewGuiPart12.Size = UDim2.new(1, -30, 0, 40)
- NewGuiPart12.Font = Enum.Font.SourceSansBold
- NewGuiPart12.FontSize = Enum.FontSize.Size42
- NewGuiPart12.Text = "T0PK3K 4.0"
- NewGuiPart12.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart12.TextStrokeTransparency = 0.5
- NewGuiPart12.TextXAlignment = Enum.TextXAlignment.Left
- NewGuiPart12.Parent = NewGuiPart11
- -------
- local NewGuiPart13 = Instance.new("TextLabel")
- NewGuiPart13.BackgroundTransparency = 1
- NewGuiPart13.BorderSizePixel = 0
- NewGuiPart13.Name = "Title2"
- NewGuiPart13.Position = UDim2.new(0.600000024, 5, 0, -5)
- NewGuiPart13.Size = UDim2.new(0.400000006, 0, 1, 0)
- NewGuiPart13.Font = Enum.Font.SourceSansBold
- NewGuiPart13.FontSize = Enum.FontSize.Size18
- NewGuiPart13.Text = "by nosyliam"
- NewGuiPart13.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart13.TextStrokeTransparency = 0.5
- NewGuiPart13.TextXAlignment = Enum.TextXAlignment.Left
- NewGuiPart13.TextYAlignment = Enum.TextYAlignment.Bottom
- NewGuiPart13.Parent = NewGuiPart12
- -------
- local NewGuiPart14 = Instance.new("Frame")
- NewGuiPart14.BackgroundColor3 = Color3.new(0.509804, 0.184314, 0.184314)
- NewGuiPart14.BorderColor3 = Color3.new(0.32549, 0, 0)
- NewGuiPart14.Name = "Container"
- NewGuiPart14.Position = UDim2.new(0, 16, 0, 50)
- NewGuiPart14.Size = UDim2.new(1, -30, 0, 250)
- NewGuiPart14.Parent = NewGuiPart11
- -------
- local NewGuiPart15 = Instance.new("TextLabel")
- NewGuiPart15.BackgroundColor3 = Color3.new(0.639216, 0.223529, 0.223529)
- NewGuiPart15.BorderSizePixel = 0
- NewGuiPart15.Name = "Message"
- NewGuiPart15.Position = UDim2.new(0, 15, 0, 305)
- NewGuiPart15.Size = UDim2.new(1, -30, 0, 25)
- NewGuiPart15.Font = Enum.Font.Highway
- NewGuiPart15.FontSize = Enum.FontSize.Size14
- NewGuiPart15.Text = "Server Message: variable is gay"
- NewGuiPart15.TextColor3 = Color3.new(0.886275, 0.886275, 0.886275)
- NewGuiPart15.TextStrokeTransparency = 0.69999998807907
- NewGuiPart15.Parent = NewGuiPart11
- -------
- local NewGuiPart16 = Instance.new("TextBox")
- NewGuiPart16.BackgroundColor3 = Color3.new(0.639216, 0.223529, 0.223529)
- NewGuiPart16.BorderColor3 = Color3.new(0.32549, 0, 0)
- NewGuiPart16.Name = "Command"
- NewGuiPart16.Position = UDim2.new(0, 15, 0, 335)
- NewGuiPart16.Size = UDim2.new(1, -30, 0, 20)
- NewGuiPart16.Font = Enum.Font.Code
- NewGuiPart16.FontSize = Enum.FontSize.Size12
- NewGuiPart16.Text = "Press ; to enter a command"
- NewGuiPart16.TextColor3 = Color3.new(0.819608, 0.819608, 0.819608)
- NewGuiPart16.TextStrokeTransparency = 0.80000001192093
- NewGuiPart16.TextTransparency = 0.30000001192093
- NewGuiPart16.Parent = NewGuiPart10
- -------
- local NewGuiPart17 = Instance.new("Frame")
- NewGuiPart17.BackgroundTransparency = 1
- NewGuiPart17.Name = "Template"
- NewGuiPart17.Size = UDim2.new(1, 0, 1, 0)
- NewGuiPart17.Visible = false
- NewGuiPart17.ZIndex = 2
- NewGuiPart17.Parent = NewGuiPart10
- -------
- local NewGuiPart18 = Instance.new("ScrollingFrame")
- NewGuiPart18.Active = true
- NewGuiPart18.BackgroundColor3 = Color3.new(0.509804, 0.184314, 0.184314)
- NewGuiPart18.BorderColor3 = Color3.new(0.32549, 0, 0)
- NewGuiPart18.Name = "Container"
- NewGuiPart18.Position = UDim2.new(0, 15, 0, 10)
- NewGuiPart18.Selectable = true
- NewGuiPart18.Size = UDim2.new(1, -30, 0, 320)
- NewGuiPart18.ZIndex = 2
- NewGuiPart18.BottomImage = "rbxassetid://368504177"
- NewGuiPart18.CanvasSize = UDim2.new(0, 0, 0, 0)
- NewGuiPart18.MidImage = "rbxassetid://368504177"
- NewGuiPart18.ScrollBarThickness = 5
- NewGuiPart18.TopImage = "rbxassetid://368504177"
- NewGuiPart18.ClipsDescendants = true
- NewGuiPart18.Parent = NewGuiPart17
- -------
- local NewGuiPart19 = Instance.new("Frame")
- NewGuiPart19.BackgroundColor3 = Color3.new(0.509804, 0.184314, 0.184314)
- NewGuiPart19.BackgroundTransparency = 1
- NewGuiPart19.BorderColor3 = Color3.new(0.32549, 0, 0)
- NewGuiPart19.Name = "Navigator"
- NewGuiPart19.Position = UDim2.new(0, 16, 0, 10)
- NewGuiPart19.Size = UDim2.new(1, -30, 0, 60)
- NewGuiPart19.Visible = false
- NewGuiPart19.Parent = NewGuiPart10
- -------
- local NewGuiPart20 = Instance.new("Frame")
- NewGuiPart20.BackgroundColor3 = Color3.new(0.509804, 0.184314, 0.184314)
- NewGuiPart20.BorderColor3 = Color3.new(0.32549, 0, 0)
- NewGuiPart20.Name = "NavMain"
- NewGuiPart20.Position = UDim2.new(0, 22, 0, 0)
- NewGuiPart20.Size = UDim2.new(1, -44, 0, 60)
- NewGuiPart20.Parent = NewGuiPart19
- -------
- local NewGuiPart21 = Instance.new("TextButton")
- NewGuiPart21.Active = true
- NewGuiPart21.BackgroundColor3 = Color3.new(0.631373, 0.223529, 0.223529)
- NewGuiPart21.BorderSizePixel = 0
- NewGuiPart21.Name = "NavLeft"
- NewGuiPart21.Selectable = true
- NewGuiPart21.Size = UDim2.new(0, 17, 1, 0)
- NewGuiPart21.Style = Enum.ButtonStyle.Custom
- NewGuiPart21.FontSize = Enum.FontSize.Size14
- NewGuiPart21.Text = ""
- NewGuiPart21.Parent = NewGuiPart19
- -------
- local NewGuiPart22 = Instance.new("TextButton")
- NewGuiPart22.Active = true
- NewGuiPart22.BackgroundColor3 = Color3.new(0.631373, 0.223529, 0.223529)
- NewGuiPart22.BorderSizePixel = 0
- NewGuiPart22.Name = "NavRight"
- NewGuiPart22.Position = UDim2.new(1, -17, 0, 0)
- NewGuiPart22.Selectable = true
- NewGuiPart22.Size = UDim2.new(0, 17, 1, 0)
- NewGuiPart22.Style = Enum.ButtonStyle.Custom
- NewGuiPart22.FontSize = Enum.FontSize.Size14
- NewGuiPart22.Text = ""
- NewGuiPart22.Parent = NewGuiPart19
- -------
- local NewGuiPart23 = Instance.new("Frame")
- NewGuiPart23.Active = true
- NewGuiPart23.BackgroundColor3 = Color3.new(0.470588, 0.164706, 0.164706)
- NewGuiPart23.BorderSizePixel = 0
- NewGuiPart23.Name = "Navigation"
- NewGuiPart23.Size = UDim2.new(0, 150, 1, 0)
- NewGuiPart23.ZIndex = 2
- NewGuiPart23.Parent = NewGuiPart2
- -------
- local NewGuiPart24 = Instance.new("Frame")
- NewGuiPart24.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart24.BorderSizePixel = 0
- NewGuiPart24.Name = "Topbar"
- NewGuiPart24.Size = UDim2.new(1, 0, 0, 30)
- NewGuiPart24.ZIndex = 3
- NewGuiPart24.Parent = NewGuiPart23
- -------
- local NewGuiPart25 = Instance.new("ScrollingFrame")
- NewGuiPart25.BackgroundColor3 = Color3.new(0.470588, 0.164706, 0.164706)
- NewGuiPart25.BorderSizePixel = 0
- NewGuiPart25.Name = "Scroll"
- NewGuiPart25.Position = UDim2.new(0, 0, 0, 30)
- NewGuiPart25.Selectable = true
- NewGuiPart25.Size = UDim2.new(1, 0, 1, -30)
- NewGuiPart25.ZIndex = 3
- NewGuiPart25.BottomImage = "rbxassetid://368504177"
- NewGuiPart25.MidImage = "rbxassetid://368504177"
- NewGuiPart25.ScrollBarThickness = 6
- NewGuiPart25.TopImage = "rbxassetid://368504177"
- NewGuiPart25.ClipsDescendants = true
- NewGuiPart25.Parent = NewGuiPart23
- -------
- local NewGuiPart26 = Instance.new("Frame")
- NewGuiPart26.BackgroundTransparency = 1
- NewGuiPart26.Name = "Composite1"
- NewGuiPart26.Position = UDim2.new(-1, 0, 0.5, -50)
- NewGuiPart26.Size = UDim2.new(0, 50, 0, 100)
- NewGuiPart26.ClipsDescendants = true
- NewGuiPart26.Parent = NewGuiPart1
- -------
- local NewGuiPart27 = Instance.new("TextLabel")
- NewGuiPart27.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart27.BorderSizePixel = 0
- NewGuiPart27.Name = "Label"
- NewGuiPart27.Size = UDim2.new(2, 0, 1, 0)
- NewGuiPart27.Font = Enum.Font.SourceSansBold
- NewGuiPart27.FontSize = Enum.FontSize.Size96
- NewGuiPart27.Text = "T"
- NewGuiPart27.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart27.Parent = NewGuiPart26
- -------
- local NewGuiPart28 = Instance.new("Frame")
- NewGuiPart28.BackgroundTransparency = 1
- NewGuiPart28.Name = "Composite2"
- NewGuiPart28.Position = UDim2.new(1, 0, 0.5, -50)
- NewGuiPart28.Size = UDim2.new(0, 50, 0, 100)
- NewGuiPart28.ClipsDescendants = true
- NewGuiPart28.Parent = NewGuiPart1
- -------
- local NewGuiPart29 = Instance.new("TextLabel")
- NewGuiPart29.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart29.BorderSizePixel = 0
- NewGuiPart29.Name = "Label"
- NewGuiPart29.Position = UDim2.new(-1, 0, 0, 0)
- NewGuiPart29.Size = UDim2.new(2, 0, 1, 0)
- NewGuiPart29.Font = Enum.Font.SourceSansBold
- NewGuiPart29.FontSize = Enum.FontSize.Size96
- NewGuiPart29.Text = "T"
- NewGuiPart29.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart29.Parent = NewGuiPart28
- -------
- local NewGuiPart30 = Instance.new("Frame")
- NewGuiPart30.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart30.Name = "Solid"
- NewGuiPart30.Position = UDim2.new(0.5, -50, 0.5, -50)
- NewGuiPart30.Visible = false
- NewGuiPart30.ClipsDescendants = true
- NewGuiPart30.Parent = NewGuiPart1
- -------
- local NewGuiPart31 = Instance.new("TextLabel")
- NewGuiPart31.BackgroundColor3 = Color3.new(0.623529, 0.223529, 0.223529)
- NewGuiPart31.BorderSizePixel = 0
- NewGuiPart31.Name = "Label"
- NewGuiPart31.Size = UDim2.new(1, 0, 1, 0)
- NewGuiPart31.Font = Enum.Font.SourceSansBold
- NewGuiPart31.FontSize = Enum.FontSize.Size96
- NewGuiPart31.Text = "T"
- NewGuiPart31.TextColor3 = Color3.new(1, 1, 1)
- NewGuiPart31.Parent = NewGuiPart30
- topkek.center = game.Players.LocalPlayer.PlayerGui["4.0"].Main
- topkek.holder = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Holder
- topkek.topbar = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Topbar
- topkek.template = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Holder.Template
- topkek.navigator = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Holder.Navigator
- AllowHovers = false
- PlayerChatHook, UpdateBanlist = nil
- cmd = {}
- --// data //--
- topkek.data.windows = {
- 'Home',
- 'LocalPlayer',
- 'Server',
- 'Players',
- 'Destruction',
- 'Scripts',
- 'Catalog',
- 'Music',
- 'Hats',
- 'Faces',
- 'Settings',
- 'Commands',
- 'Banlist',
- }
- color3 = function(r,g,b)
- return Color3.new(r/255, g/255, b/255)
- end
- --// doggo dropdown //--
- -- thanks krystal
- GUI = {
- TextBox = {
- Settings = {
- Font = Enum.Font.SourceSans;
- FontSize = Enum.FontSize.Size14;
- };
- Color = {
- Main = Color3.fromRGB(5,8,11);
- Border = Color3.fromRGB(27,42,53);
- Text = Color3.fromRGB(199,199,199);
- };
- New = function(Position, Size, Parent, ...)
- local arguments = {...};
- local TextBox = Instance.new("TextBox", Parent);
- TextBox.BackgroundColor3 = GUI.DropDown.Color.Main;
- TextBox.BorderColor3 = GUI.DropDown.Color.Border;
- TextBox.Font = GUI.TextBox.Settings.Font;
- TextBox.FontSize = GUI.TextBox.Settings.FontSize;
- TextBox.TextColor3 = GUI.TextBox.Color.Text;
- TextBox.Position = Position;
- TextBox.Size = Size;
- if #arguments then
- if arguments[1] then
- TextBox.Text = tostring(arguments[1]);
- else
- TextBox.Text = "";
- end
- end
- return TextBox;
- end;
- };
- DropDown = {
- Settings = {
- ScrollerAmount = 5; --A scroller will appear at this amount.
- ScrollBarThickness = 6;
- };
- Gfx = {
- Scroller = "rbxassetid://606572419";
- };
- Color = {
- Main = color3(107, 36, 36);
- Secondary = color3(113, 39, 39);
- Border = color3(127, 44, 44);
- Text = Color3.fromRGB(199,199,199);
- };
- New = function(Position, Size, Parent, ...)
- local vValue = {};
- local arguments = {...};
- local vSelected = Instance.new("StringValue");
- vSelected.Value = "nil";
- if arguments then
- if type(arguments) == "table" then
- for i=1,#(arguments) do
- if type(arguments[i]) == "table" then
- for f=1,#(arguments[i]) do
- table.insert(vValue, tostring((arguments[i])[f]));
- end
- else
- table.insert(vValue, tostring(arguments[i]));
- end
- end
- vSelected.Value = (vValue[1]);
- end
- end
- local Main = Instance.new("TextButton", Parent);
- Main.BackgroundColor3 = GUI.DropDown.Color.Main;
- Main.BorderColor3 = GUI.DropDown.Color.Border;
- Main.Position = Position;
- Main.Size = Size;
- Main.TextColor3 = GUI.DropDown.Color.Text;
- Main.FontSize = Enum.FontSize.Size14;
- Main.TextStrokeTransparency = 0.5;
- Main.TextXAlignment = Enum.TextXAlignment.Left;
- Main.Font = Enum.Font.SourceSans;
- Main.Text = " "..tostring(vSelected.Value);
- Main.ZIndex = 3
- local Icon = Instance.new("TextLabel", Main);
- Icon.SizeConstraint = Enum.SizeConstraint.RelativeYY;
- Icon.BackgroundColor3 = GUI.DropDown.Color.Secondary;
- Icon.BorderColor3 = GUI.DropDown.Color.Border;
- Icon.Position = UDim2.new(1,-2,1,-2);
- Icon.Size = UDim2.new(-1,4,-1,4);
- Icon.TextColor3 = GUI.DropDown.Color.Text;
- Icon.FontSize = Enum.FontSize.Size14;
- Icon.TextStrokeTransparency = 0.5;
- Icon.Font = Enum.Font.SourceSans;
- Icon.Text = "V"
- Icon.ZIndex = 4
- local Holder, Search;
- local ClearHolder = function()
- if Holder then
- Holder:ClearAllChildren();
- Holder.Size = UDim2.new(1,0,0,0);
- Holder.Visible = false;
- if Search then
- Search.Visible = false;
- end
- end
- end;
- local CreateButton;
- local RefreshDropDown = function()
- if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
- if not Holder or not Holder:IsA("Frame") then
- Holder = nil; Search = nil;
- Holder = Instance.new("Frame",Main);
- Holder.Size = UDim2.new(1,0,0,0);
- Holder.BackgroundColor3 = GUI.DropDown.Color.Main;
- Holder.BorderColor3 = GUI.DropDown.Color.Border;
- Holder.Visible = false;
- Holder.ZIndex = 3
- end
- elseif #vValue > (GUI.DropDown.Settings.ScrollerAmount) then
- if not Holder or not Holder:IsA("ScrollingFrame") then
- Holder = nil; Search = nil;
- Search = GUI.TextBox.New(UDim2.new(0,0,0,0),UDim2.new(1,0,0,Main.AbsoluteSize.Y),Main);
- Search.Visible = false;
- Search.ZIndex = 4
- Search.Changed:connect(function(p)
- if p == "Text" then
- CreateButton(Search.Text);
- end
- end)
- Holder = Instance.new("ScrollingFrame",Main);
- Holder.BackgroundColor3 = GUI.DropDown.Color.Main;
- Holder.BorderColor3 = GUI.DropDown.Color.Border;
- Holder.TopImage = GUI.DropDown.Gfx.Scroller;
- Holder.MidImage = GUI.DropDown.Gfx.Scroller;
- Holder.BottomImage = GUI.DropDown.Gfx.Scroller;
- Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * (GUI.DropDown.Settings.ScrollerAmount-1));
- Holder.Position = UDim2.new(0,0,0,Main.AbsoluteSize.Y)
- Holder.ScrollBarThickness = GUI.DropDown.Settings.ScrollBarThickness;
- Holder.Visible = false;
- Holder.ZIndex = 3;
- end
- end
- if #vValue == 1 and vSelected.Value ~= vValue[1] then
- vSelected.Value = vValue[1];
- elseif #vValue == 0 then
- vSelected.Value = "nil";
- warn("Table amount is nil.");
- end
- Main.Text = " "..tostring(vSelected.Value);
- --ClearHolder();
- end;
- local Debounce = false;
- CreateButton = function(searches)
- if Debounce == false then
- Debounce = true;
- ClearHolder()
- Holder.Visible = true;
- local Searched = 0;
- if #vValue > 0 then
- for i=1,#vValue do
- if (searches ~= nil and string.find(string.lower(vValue[i]), string.lower(searches)) and searches ~= "") then
- Searched = Searched + 1;
- end
- end
- for i=1,#vValue do
- if (searches ~= nil and string.find(string.lower(vValue[i]), string.lower(searches)) and searches ~= "" and Searched > 0) or searches == nil or searches == "" or Searched <= 0 then
- local Select = Instance.new("TextButton", Holder);
- Select.BackgroundColor3 = GUI.DropDown.Color.Main;
- Select.BorderColor3 = GUI.DropDown.Color.Border;
- Select.BackgroundTransparency = 1;
- Select.BorderSizePixel = 0;
- Select.Position = Position;
- if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
- Select.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y);
- else
- Select.Size = UDim2.new(1,-(GUI.DropDown.Settings.ScrollBarThickness),0,Main.AbsoluteSize.Y);
- end
- Select.Position = UDim2.new(0,0,0,(Main.AbsoluteSize.Y) * (#Holder:GetChildren() - 1))
- Select.TextColor3 = GUI.DropDown.Color.Text;
- Select.FontSize = Enum.FontSize.Size14;
- Select.TextStrokeTransparency = 0.5;
- Select.Font = Enum.Font.SourceSans;
- Select.Text = tostring(vValue[i]);
- Select.ZIndex = 3
- Select.MouseButton1Click:connect(function()
- vSelected.Value = vValue[i];
- ClearHolder();
- RefreshDropDown();
- end)
- if #vValue <= (GUI.DropDown.Settings.ScrollerAmount) then
- Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * i);
- elseif Holder:IsA("ScrollingFrame") then
- Search.Visible = true;
- if #Holder:GetChildren() >= 1 then
- Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());
- Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());--GUI.DropDown.Settings.ScrollerAmount);
- if #Holder:GetChildren() >= GUI.DropDown.Settings.ScrollerAmount then
- Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * GUI.DropDown.Settings.ScrollerAmount);
- Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * #Holder:GetChildren());
- end
- elseif #Holder:GetChildren() < 1 then
- Holder.CanvasSize = UDim2.new(1,0,0,Main.AbsoluteSize.Y * 1);
- Holder.Size = UDim2.new(1,0,0,Main.AbsoluteSize.Y * 1);
- end
- end
- end
- end
- end
- Debounce = false;
- end
- end;
- RefreshDropDown();
- Main.MouseButton1Click:connect(function()
- CreateButton()
- if #vValue >= GUI.DropDown.Settings.ScrollerAmount and Search ~= nil then
- Search:CaptureFocus();
- Search.Text = "";
- end
- end)
- topkek.lplr:GetMouse().Button1Down:connect(function()
- ClearHolder()
- end)
- return {
- Update = function()
- RefreshDropDown();
- end;
- GetValue = function()
- RefreshDropDown();
- return vValue;
- end;
- GetSelected = function()
- RefreshDropDown();
- return vSelected.Value;
- end;
- SetTable = function(F)
- vValue = F;
- RefreshDropDown();
- end;
- Changed = function(F)
- vSelected.Changed:connect(function()
- ypcall(function()
- F(vSelected.Value);
- end)
- end)
- return "ChangedEvent Hooked";
- end;
- AddValue = function(obj)
- local Type = type(obj);
- if Type == "table" then
- for i=1,#obj do
- table.insert(vValue, obj[i])
- end
- elseif Type == "string" or Type == "number" or Type == "boolean" then
- table.insert(vValue, obj)
- end
- RefreshDropDown();
- end;
- RemoveValue = function(obj)
- local Type = type(obj);
- if Type == "table" then
- for i=1,#vValue do
- for f=1,#obj do
- if tostring(obj[f]) == tostring(vValue[i]) then
- table.remove(vValue,i)
- end
- end
- end
- else
- for i=1,#vValue do
- if tostring(obj) == tostring(vValue[i]) then
- table.remove(vValue,i)
- end
- end
- end
- RefreshDropDown();
- end;
- ClearValue = function()
- vValue = {};
- RefreshDropDown();
- end;
- }
- end;
- };
- };
- --// util //--
- function topkek.tools.util.Object(o, p)
- local a, b = pcall(function()
- Instance.new(o)
- end)
- if not a then
- return
- end
- local obj = Instance.new(o)
- for prop, val in pairs(p) do
- pcall(function()
- obj[prop] = val
- end)
- end
- return obj
- end
- function topkek.tools.util.getContainer(n)
- if game.Players.LocalPlayer.PlayerGui["4.0"].Main.Holder:FindFirstChild(n) then
- return game.Players.LocalPlayer.PlayerGui["4.0"].Main.Holder[n]
- else
- print("menu not found; returning template")
- return topkek.holder['Template']
- end
- end
- function topkek.tools.util.play(id)
- local mu = Instance.new("Sound", game:GetService('Workspace'))
- mu.Volume = 1
- mu.Looped = true
- mu.Pitch = 1
- mu.SoundId = "rbxassetid://"..tostring(id)
- mu:Play()
- end
- function topkek.tools.util.getTorso(plr) --r15 compatibility lole
- if plr.Character then
- if plr.Character:FindFirstChild('UpperTorso') then
- return plr.Character.UpperTorso
- elseif plr.Character:FindFirstChild('Torso') then
- return plr.Character.Torso
- else
- return nil
- end
- end
- end
- function topkek.tools.util.recurseRemove(x,type_)
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function()
- if v:IsA(type_) then
- v:Destroy()
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(x)
- end
- function topkek.tools.util.recurseFunc(type_,func)
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function()
- if v:IsA(type_) then
- func(v)
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(game)
- end
- function topkek.tools.util.trowel()
- local T = Instance.new('Tool', game.Players.LocalPlayer.Backpack)
- T.Name = 'Custom Trowel'
- local p = Instance.new('Part')
- p.Name = 'Handle'
- p.Size = Vector3.new(1,4.4,1)
- p.Parent = T
- local specialMesh = Instance.new('SpecialMesh')
- specialMesh.MeshId = 'rbxasset://fonts/trowel.mesh'
- specialMesh.MeshType = 'FileMesh'
- specialMesh.TextureId = 'rbxasset://textures/TrowelTexture.png'
- specialMesh.Parent = T.Handle
- local sound = Instance.new'Sound'
- sound.Name = 'build'
- sound.SoundId = 'rbxasset://sounds//bass.wav'
- sound.Volume = 1
- sound.Parent = T.Handle
- local brickHeight = 100
- local trowelSpeed = 0.05
- local brickWidth = 500
- local mouseConnection
- function newBrick(CF, P, color)
- local brick = Instance.new('Part')
- brick.BrickColor = color
- brick.CFrame = CF * CFrame.new(P + brick.Size / 2)
- brick.Parent = game.Workspace
- brick:MakeJoints()
- brick.Material = 'Neon'
- brick.Name = 'DeleteMe'
- return brick, P + brick.Size
- end
- function genBrick(cFrame)
- local randBrickColor = BrickColor.Random()
- assert(brickWidth > 0)
- local yPos = 0
- while yPos < brickHeight do
- local vPos
- local X = -brickWidth / 2
- while X < brickWidth / 2 do
- local brick
- brick, vPos = newBrick(cFrame, Vector3.new(X, yPos, 0), randBrickColor)
- X = vPos.x
- wait(trowelSpeed)
- end
- yPos = vPos.y
- end
- end
- function calcPos(vec)
- if (math.abs(vec.x) > math.abs(vec.z)) then
- if vec.x > 0 then
- return Vector3.new(1, 0, 0)
- else
- return Vector3.new(-1, 0, 0)
- end
- else
- if (vec.z > 0) then
- return Vector3.new(0, 0, 1)
- else
- return Vector3.new(0, 0, -1)
- end
- end
- end
- T.Enabled = true
- T.Activated:connect(function()
- if T.Enabled and game.Players.LocalPlayer.Character:FindFirstChild('Humanoid') then
- T.Enabled = false
- T.Handle.build:Play()
- genBrick(CFrame.new(game.Players.LocalPlayer.Character.Humanoid.TargetPoint, game.Players.LocalPlayer.Character.Humanoid.TargetPoint + calcPos((game.Players.LocalPlayer.Character.Humanoid.TargetPoint - game.Players.LocalPlayer.Character.Head.Position).unit)))
- T.Enabled = true
- end
- end)
- T.Equipped:connect(function()
- mouseConnection = game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
- if (key == 'r') then
- for i,v in next, workspace:children'' do
- if (v.Name == 'DeleteMe') then
- v:Destroy()
- end
- end
- end
- end)
- end)
- T.Unequipped:connect(function()
- mouseConnection:disconnect()
- end)
- end
- function topkek.tools.util.recurseSet(type_,prop,val)
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function()
- if v:IsA(type_) then
- v[prop]=val
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(game)
- end
- function topkek.tools.util.recurseUltimate(d)
- topkek.tools.util.recurseDecal(d)
- topkek.tools.util.recurseParticles(d)
- end
- function topkek.tools.util.recurseDecal(img)
- img = 'rbxassetid://' .. img
- local function skybox(x)
- local sky = Instance.new("Sky",game.Lighting)
- local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
- for i,v in pairs(fcs) do
- sky["Skybox"..v]=x
- end
- end
- local function decal(p, b)
- local sides = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
- for i, v in pairs(sides) do
- local a = Instance.new("Decal", p)
- a.Texture = b
- a.Face = v
- end
- end
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function() -- 'error occured, no output from Lua' LOLE
- if v:IsA("BasePart") then
- decal(v, img)
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(game)
- skybox(img)
- end
- function topkek.tools.util.recurseParticles(img)--topkek2.0 code tbh
- img = 'rbxassetid://' .. img
- local function skybox(x)
- local sky = Instance.new("Sky",game.Lighting)
- local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
- for i,v in pairs(fcs) do
- sky["Skybox"..v]=x
- end
- end
- local function particle(p, b)
- local a = Instance.new("ParticleEmitter", p)
- a.Rate = 500
- a.Lifetime = NumberRange.new(20, 30)
- a.VelocitySpread = 200
- a.Texture = b
- end
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function() -- 'error occured, no output from Lua' LOLE
- if v:IsA("BasePart") then
- particle(v, img)
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(game)
- skybox(img)
- end
- function topkek.tools.util.recurseSetObj(obj,type_,prop,val)
- local function recurse(x)
- for i, v in pairs(x:GetChildren()) do
- pcall(function()
- if v:IsA(type_) then
- v[prop]=val
- end
- if #(v:GetChildren())>0 then
- recurse(v)
- end
- end)
- end
- end
- recurse(obj)
- end
- function topkek.tools.util.doPlayers(cval, func)
- local plrs = {}
- if cval == 'All' then
- plrs = game:GetService('Players'):GetPlayers()
- else
- plrs = {game:GetService('Players'):FindFirstChild(cval)}
- end
- for i, v in pairs(plrs) do
- func(v)
- end
- end
- function topkek.tools.util.scalePlayer(sc,plr)
- local pchar = plr.Character
- if pchar:FindFirstChild("UpperTorso") then
- warn("Player [" ..plr.Name.. "] is R15.")
- return
- end
- local function scale(chr,scl)
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Hat") then
- v:Clone()
- v.Parent = game.Lighting
- end
- end
- local Head = chr['Head']
- local Torso = chr['Torso']
- local LA = chr['Left Arm']
- local RA = chr['Right Arm']
- local LL = chr['Left Leg']
- local RL = chr['Right Leg']
- local HRP = chr['HumanoidRootPart']
- wait(0.1)
- Head.formFactor = 3
- Torso.formFactor = 3
- LA.formFactor = 3
- RA.formFactor = 3
- LL.formFactor = 3
- RL.formFactor = 3
- HRP.formFactor = 3
- Head.Size = Vector3.new(scl * 2, scl, scl)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- LA.Size = Vector3.new(scl, scl * 2, scl)
- RA.Size = Vector3.new(scl, scl * 2, scl)
- LL.Size = Vector3.new(scl, scl * 2, scl)
- RL.Size = Vector3.new(scl, scl * 2, scl)
- HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
- local Motor1 = Instance.new('Motor6D', Torso)
- Motor1.Part0 = Torso
- Motor1.Part1 = Head
- Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.Name = "Neck"
- local Motor2 = Instance.new('Motor6D', Torso)
- Motor2.Part0 = Torso
- Motor2.Part1 = LA
- Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.Name = "Left Shoulder"
- local Motor3 = Instance.new('Motor6D', Torso)
- Motor3.Part0 = Torso
- Motor3.Part1 = RA
- Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.Name = "Right Shoulder"
- local Motor4 = Instance.new('Motor6D', Torso)
- Motor4.Part0 = Torso
- Motor4.Part1 = LL
- Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.Name = "Left Hip"
- local Motor5 = Instance.new('Motor6D', Torso)
- Motor5.Part0 = Torso
- Motor5.Part1 = RL
- Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.Name = "Right Hip"
- local Motor6 = Instance.new('Motor6D', HRP)
- Motor6.Part0 = HRP
- Motor6.Part1 = Torso
- Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- end
- scale(pchar, sc)
- for _,v in pairs(game.Lighting:GetChildren()) do
- if v:IsA("Hat") then
- v.Parent = pchar
- end
- end
- end
- function topkek.tools.util.applyFace(id)
- local Char = topkek.lplr.Character
- if(Char)then
- local Type = id
- local Meme=id
- local BBG_SIZE=Char.Head.Size.X*1.25;
- local STUD_VECTOR_1=Char.Head.Size.Z/4;
- local STUD_VECTOR_2=Char.Head.Size.Z;
- local bbg=Char:FindFirstChild'BBGMEME'or Instance.new('BillboardGui',Char);
- bbg.StudsOffset=Vector3.new(0,STUD_VECTOR_1,STUD_VECTOR_2);
- bbg.Size=UDim2.new(BBG_SIZE,0,BBG_SIZE);
- bbg.Adornee=Char.Head;
- bbg.Name='BBGMEME';
- local img=bbg:FindFirstChild'Meme'or Instance.new('ImageLabel',bbg);
- img.BackgroundTransparency=1;
- img.Image="rbxassetid://"..Meme;
- img.Size=UDim2.new(1,0,1,0)
- img.Name='Meme';
- for i,v in next,Char:children()do
- if(v.className=='Hat')then
- v=v:FindFirstChild'Handle';
- if(v)then
- v.Transparency=0
- end;
- end;
- end;
- end;
- end;
- function topkek.tools.util.weenieHutJunior(plr)
- plr=plr.Character
- Shaft=Instance.new("Part", plr)
- Shaft.Name='Shaft'
- Shaft.Size=Vector3.new(1, 2.5, 1)
- Shaft.TopSurface=0
- Shaft.BottomSurface=0
- Shaft.CanCollide=true
- Cyln=Instance.new("CylinderMesh", Shaft)
- Cyln.Scale=Vector3.new(0.5,0.7,0.5)
- Instance.new("Weld", plr)
- plr.Weld.Part0=plr:FindFirstChild("Torso") or plr:FindFirstChild("LowerTorso")
- plr.Weld.Part1=plr.Shaft
- plr.Weld.C0=CFrame.new(0,-0.35,-0.9)*CFrame.fromEulerAnglesXYZ(2.2,0,0)
- Shaft.BrickColor=BrickColor.new("Pastel brown")
- Tip=Instance.new("Part", plr)
- Tip.Name='Tip'
- Tip.TopSurface=0
- Tip.BottomSurface=0
- Tip.Size=Vector3.new(1, 1, 1)
- Tip.CanCollide=true
- Tip.Touched:connect(function(prt) if prt.Parent~=player then spawn(function() for i=1, 5 do local pert=Instance.new("Part", player) pert.CFrame=CFrame.new(prt.Position) pert.CanCollide=true local mesh=Instance.new("BlockMesh", pert) mesh.Scale=Vector3.new(0.2,0.2,0.2) pert.BrickColor=BrickColor.new("White") end end) end end)
- Cyln2=Instance.new("SpecialMesh", Tip)
- Cyln2.MeshType='Sphere'
- Cyln2.Scale=Vector3.new(0.6,0.6,0.6)
- Instance.new("Weld", plr).Name='Weld2'
- plr.Weld2.Part0=plr.Shaft
- plr.Weld2.Part1=plr.Tip
- plr.Weld2.C0=CFrame.new(0,-.9,0)
- Tip.BrickColor=BrickColor.new("Pink")
- -----
- Ball1=Instance.new("Part", plr)
- Ball1.Name='Ball1'
- Ball1.Size=Vector3.new(1, 1, 1)
- Ball1.TopSurface=0
- Ball1.BottomSurface=0
- Cyln3=Instance.new("SpecialMesh", Ball1)
- Cyln3.MeshType='Sphere'
- Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
- Instance.new("Weld", plr).Name='Weld3'
- plr.Weld3.Part0=plr.Shaft
- plr.Weld3.Part1=plr.Ball1
- plr.Weld3.C0=CFrame.new(0.225,.4,0.2)
- Ball1.BrickColor=BrickColor.new("Pastel brown")
- -----
- Ball2=Instance.new("Part", plr)
- Ball2.Name='Ball2'
- Ball2.Size=Vector3.new(1, 1, 1)
- Ball2.TopSurface=0
- Ball2.BottomSurface=0
- Cyln3=Instance.new("SpecialMesh", Ball2)
- Cyln3.MeshType='Sphere'
- Cyln3.Scale=Vector3.new(0.4,0.4,0.4)
- Instance.new("Weld", plr).Name='Weld4'
- plr.Weld4.Part0=plr.Shaft
- plr.Weld4.Part1=plr.Ball2
- plr.Weld4.C0=CFrame.new(-0.225,.4,0.2)
- Ball2.BrickColor=BrickColor.new("Pastel brown")
- end
- --// banmgr //--
- topkek.banmgr.isPrivate = false
- topkek.banmgr.whitelist = {}
- topkek.banmgr.bans = {}
- function topkek.banmgr.executeKick(z)
- local function doKick()
- if z.Character and z.Character:FindFirstChild('HumanoidRootPart') and z.Character:FindFirstChild('Torso') then
- z.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
- local SP = Instance.new('SkateboardPlatform', z.Character) SP.Position = z.Character.HumanoidRootPart.Position SP.Transparency = 1
- spawn(function()
- repeat wait()
- if z.Character and z.Character:FindFirstChild('HumanoidRootPart') then
- SP.Position = z.Character.HumanoidRootPart.Position
- end
- until not game:GetService('Players'):FindFirstChild(z.Name)
- end)
- z.Character.Torso.Anchored = true
- end
- end
- repeat
- doKick()
- wait()
- until not z
- end
- function topkek.banmgr.loadFromFile()
- -- todo: read file
- topkek.settings.get()
- topkek.banmgr.bans = topkek.settingsTable['Bans']
- end
- function topkek.banmgr.addHardBan(p)
- -- todo: write file
- table.insert(topkek.banmgr.bans, p.Name)
- topkek.settings.get()
- table.insert(topkek.settingsTable['Bans'], p.Name)
- topkek.settings.write()
- print("Hardbanned " .. p.Name)
- UpdateBanlist()
- topkek.banmgr.executeKick(p)
- topkek.banmgr.loadFromFile()
- end
- function topkek.banmgr.addSoftBan(p)
- table.insert(topkek.banmgr.bans, p.Name)
- topkek.banmgr.executeKick(p)
- end
- function topkek.banmgr.plrBanned(p)
- for x, m in pairs(topkek.banmgr.bans) do
- if m == p.Name then
- return true
- end
- end
- return false
- end
- function topkek.banmgr.doWhitelist(p)
- print(p .. " whitelisted")
- table.insert(topkek.banmgr.whitelist, p)
- end
- function topkek.banmgr.unwhitelist(p)
- for x, m in pairs(topkek.banmgr.whitelist) do
- if m == p then
- print(m .. " unwhitelisted")
- table.remove(topkek.banmgr.whitelist, x)
- if game:GetService('Players'):FindFirstChild(p) then
- topkek.banmgr.executeKick(game:GetService('Players')[p])
- end
- end
- end
- end
- function topkek.banmgr.plrWhitelisted(p)
- for x, m in pairs(topkek.banmgr.whitelist) do
- if m == p.Name then
- return true
- end
- end
- return false
- end
- function topkek.banmgr.makePrivate()
- topkek.banmgr.isPrivate = true
- for i, v in pairs(game:GetService('Players'):GetPlayers()) do
- if not topkek.banmgr.plrWhitelisted(v) and v ~= topkek.lplr then
- spawn(function()
- topkek.banmgr.executeKick(v)
- end)
- end
- end
- end
- function topkek.banmgr.unprivate()
- topkek.banmgr.isPrivate = false
- end
- function topkek.banmgr.init()
- topkek.banmgr.loadFromFile()
- game:GetService('Players').PlayerAdded:connect(function(p)
- if topkek.banmgr.plrBanned(p) or (topkek.banmgr.isPrivate and not topkek.banmgr.plrWhitelisted(p)) then
- print("Player " .. p.Name .. " is banned (or private on)! Kicking now.")
- topkek.banmgr.executeKick(p)
- end
- end)
- end
- --// settings //--
- topkek.settings = {}
- topkek.settingsTable = {}
- function topkek.settings.write()
- --writefile("testplzignore.lua", "", game:GetService('HttpService'):JSONEncode(topkek.settingsTable))
- end
- function topkek.settings.get()
- if game.Players.LocalPlayer.Character then
- print("No settings! Making new ...")
- topkek.settingsTable = {
- ['Bans'] = {
- },
- ['Themes'] = {
- {Primary = {0,0,0}, Secondary = {0,0,0}, Tertiary = {0,0,0}}
- };
- }
- topkek.settings.write()
- return topkek.settingsTable
- else
- local lset = game:GetService('HttpService'):JSONDecode(set)
- topkek.settingsTable = lset
- return lset
- end
- end
- --// shortcuts //--
- tk = {}
- tk.ob = topkek.tools.util.Object
- tk.dp = topkek.tools.util.doPlayers
- tk.rcm = topkek.tools.util.recurseRemove
- tk.rcs = topkek.tools.util.recurseSet
- tk.rcf = topkek.tools.util.recurseFunc
- tk.rco = topkek.tools.util.recurseSetObj
- tk.play = topkek.tools.util.play
- tk.gt = topkek.tools.util.getTorso
- --// gui //--
- -- copying this from topkek3.0 because i'm
- -- too lazy to rewrite my lib
- topkek.tools.gui.seperation = 12
- function topkek.tools.gui:addLeftIcon(parent, img, sz)
- topkek.tools.util.Object('ImageLabel', {
- Parent = parent;
- BackgroundTransparency = 1;
- Position = UDim2.new(0, 2, 0, 2);
- Size = UDim2.new(0, sz, 0, sz);
- Image = img;
- })
- end
- function topkek.tools.gui:makeContainer(n)
- local temp = topkek.template:Clone()
- temp.Name = n
- temp.Parent = topkek.holder
- temp.Container.Visible = false
- end
- function topkek.tools.gui:hookContainer(o, ncan, sepr, stt)
- if not o:IsA("ScrollingFrame") and (not ncan) then
- return nil
- elseif o:IsA("ScrollingFrame") then
- o.CanvasSize = UDim2.new(0, 0, 0, 0)
- end
- local self = {}
- self.main = o
- self.drawX = 0
- self.drawY = stt or topkek.tools.gui.seperation/2
- self.drawHeight = 0
- self.sepr = sepr or topkek.tools.gui.seperation
- function self:drawButton(sz, txt, func, ysz, cbgd)
- local xposOffset = 0
- local xposScale = self.drawX
- local xszOffset = 0
- local xszScale = sz
- if not (self.drawX == 0) then
- xszOffset = -5
- if sz + self.drawX > 0.998 then
- xszOffset = -10
- end
- elseif sz == 1 then
- local bzz = 4
- if ncan then
- bzz = 0
- end
- xszOffset = -(self.sepr) - bzz
- xposOffset = self.sepr/2
- else
- xszOffset = -4 + -(self.sepr/2)
- xposOffset = self.sepr/2
- end
- if not ysz then ysz = 20 end
- local obj = topkek.tools.util.Object("TextButton", {
- Parent = self.main;
- BackgroundColor3 = cbgd or Color3.new(163/255, 57/255, 57/255);
- BorderSizePixel = 0;
- Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
- Size = UDim2.new(xszScale, xszOffset, 0, ysz);
- Font = 'SourceSans';
- FontSize = 'Size14';
- Text = txt;
- TextSize = 14;
- TextColor3 = Color3.new(199/255, 199/255, 199/255);
- })
- obj.MouseButton1Down:connect(function()
- spawn(func)
- end)
- if ysz > self.drawHeight then
- self.drawHeight = ysz
- end
- self.drawX = self.drawX + sz
- if self.drawX > 0.998 then
- self.drawY = self.drawY + 3 + self.drawHeight
- self.drawX = 0
- self.drawHeight = 0
- if (not ncan) then
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- end
- return obj
- end
- function self:GetChildren()
- return self.main:GetChildren()
- end
- function self:getDrawY()
- return self.drawY
- end
- function self:setDrawY(y)
- self.drawY = y
- end
- function self:drawTextBox(sz, txt, ysz, cbgd)
- local xposOffset = 0
- local xposScale = self.drawX
- local xszOffset = 0
- local xszScale = sz
- if not (self.drawX == 0) then
- xszOffset = -5
- if sz + self.drawX > 0.998 then
- xszOffset = -10
- end
- elseif sz == 1 then
- xszOffset = -(self.sepr) - 5
- xposOffset = self.sepr/2
- else
- xszOffset = -4 + -(self.sepr/2)
- xposOffset = self.sepr/2
- end
- if not ysz then ysz = 20 end
- local obj = topkek.tools.util.Object("TextBox", {
- Parent = self.main;
- BackgroundColor3 = cbgd or color3(153, 52, 52);
- BorderSizePixel = 0;
- Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
- Size = UDim2.new(xszScale, xszOffset, 0, ysz);
- Font = 'SourceSans';
- FontSize = 'Size14';
- Text = txt;
- TextSize = 14;
- TextColor3 = Color3.new(199/255, 199/255, 199/255);
- })
- if ysz > self.drawHeight then
- self.drawHeight = ysz
- end
- self.drawX = self.drawX + sz
- if self.drawX > 0.998 then
- self.drawY = self.drawY + 3 + self.drawHeight
- self.drawX = 0
- self.drawHeight = 0
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- return obj
- end
- function self:drawImage(sz, img, ysz)
- local xposOffset = 0
- local xposScale = self.drawX
- local xszOffset = 0
- local xszScale = sz
- if not (self.drawX == 0) then
- xszOffset = -5
- if sz + self.drawX > 0.998 then
- xszOffset = -12
- end
- elseif sz == 1 then
- xszOffset = -(self.sepr) - 5
- xposOffset = self.sepr/2
- else
- xszOffset = -5 + -(self.sepr/2)
- xposOffset = self.sepr/2
- end
- if not ysz then ysz = 20 end
- local obj = topkek.tools.util.Object("ImageLabel", {
- Parent = self.main;
- BackgroundTransparency = 1;
- BorderColor3 = Color3.new(27, 42, 53);
- BorderSizePixel = 0;
- Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
- Size = UDim2.new(xszScale, xszOffset, 0, ysz);
- Image = img;
- })
- if ysz > self.drawHeight then
- self.drawHeight = ysz
- end
- self.drawX = self.drawX + sz
- if self.drawX > 0.998 then
- self.drawY = self.drawY + 3 + self.drawHeight
- self.drawX = 0
- self.drawHeight = 0
- if (not ncan) then
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- end
- return obj
- end
- function self:drawText(sz, txt, ysz)
- local xposOffset = 0
- local xposScale = self.drawX
- local xszOffset = 0
- local xszScale = sz
- if not (self.drawX == 0) then
- xszOffset = -5
- if sz + self.drawX > 0.998 then
- xszOffset = -10
- end
- elseif sz == 1 then
- local bzz = 5
- if ncan then
- bzz = 0
- end
- xszOffset = -(self.sepr) - bzz
- xposOffset = self.sepr/2
- else
- xszOffset = -4 + -(self.sepr/2)
- xposOffset = self.sepr/2
- end
- if not ysz then ysz = 20 end
- local obj = topkek.tools.util.Object("TextLabel", {
- Parent = self.main;
- BackgroundColor3 = Color3.new(148/255, 51/255, 51/255);
- BorderSizePixel = 0;
- Position = UDim2.new(xposScale, xposOffset, 0, self.drawY);
- Size = UDim2.new(xszScale, xszOffset, 0, ysz);
- Font = 'SourceSans';
- FontSize = 'Size14';
- Text = txt;
- TextSize = 14;
- TextColor3 = Color3.new(199/255, 199/255, 199/255);
- })
- if ysz > self.drawHeight then
- self.drawHeight = ysz
- end
- self.drawX = self.drawX + sz
- if self.drawX > 0.998 then
- self.drawY = self.drawY + 3 + self.drawHeight
- self.drawX = 0
- self.drawHeight = 0
- if (not ncan) then
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- end
- return obj
- end
- function self:drawScrollingContainer(ysz)
- local sz = UDim2.new(1, -(self.sepr/2) - 11, 0, ysz)
- local pos = UDim2.new(0, self.sepr/2, 0, self.drawY)
- local obj = topkek.tools.util.Object("ScrollingFrame", {
- Parent = self.main;
- BackgroundColor3 = color3(117, 42, 42);
- BorderSizePixel = 0;
- Position = pos;
- Size = sz;
- BottomImage = 'rbxassetid://368504177';
- MidImage = 'rbxassetid://368504177';
- TopImage = 'rbxassetid://368504177';
- ScrollBarThickness = 5;
- })
- self.drawY = self.drawY + 5 + ysz
- self.drawX = 0
- self.drawHeight = 0
- if (not ncan) then
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- return topkek.tools.gui:hookContainer(obj, false, 10, 3)
- end
- function self:drawContainer(xsz, ysz, xz, tz, sep)
- local sz = UDim2.new(xsz, -(self.sepr/2) - 11, 0, ysz)
- local pos = UDim2.new(tz or 0, self.sepr/2, 0, self.drawY)
- local obj = topkek.tools.util.Object("Frame", {
- Parent = self.main;
- BackgroundColor3 = color3(117, 42, 42);
- BorderSizePixel = 0;
- Position = pos;
- Size = sz;
- })
- if not xz then
- self.drawY = self.drawY + 5 + ysz
- end
- self.drawX = 0
- self.drawHeight = 0
- if (not ncan) then
- self.main.CanvasSize = UDim2.new(0, 0, 0, self.drawY + 5)
- end
- return topkek.tools.gui:hookContainer(obj, sep or 12, 5)
- end
- function self:addSpacing()
- self.drawY = self.drawY + 3
- end
- function self:center()
- local a,c,b=
- self.main.Position.X.Scale,
- self.main.Position.X.Offset,self.main.Size.Y.Offset
- self.main.Position=UDim2.new(a,c+2, 0.5, -(b/2))
- end
- return self
- end
- --//anim//--
- topkek.tools.animator.animateTo = function(source, dest)
- -- holder2holder:
- -- invis holder
- -- clone holder; vis
- -- move holder to right
- -- vis dest container
- -- tween clone holder left
- -- tween dest holder right
- print("nav",source,dest)
- topkek.holder.Visible = false
- local hclone = topkek.holder:Clone()
- hclone.Parent = topkek.center
- hclone.Name = 'animclone'
- hclone.Visible = true
- topkek.holder.Position = UDim2.new(-1, 0, 0, 30)
- source.Visible = false
- dest.Visible = true
- dest.Container.Visible = true
- dest.Container.ZIndex = 1
- dest.ZIndex = 1
- topkek.holder.Visible = true
- topkek.holder:TweenPosition(UDim2.new(0, 150, 0, 30), "Out", "Quad", 0.3)
- hclone:TweenPosition(UDim2.new(1, 0, 0, 30), "Out", "Quad", 0.3)
- wait(0.3)
- end
- topkek.tools.animator.initialAnimation = function()
- -- initanim:
- -- join both composites
- -- delete composites; vis solid
- -- tween solid to nav topbar
- -- copy topbar plrname; move outside region
- -- tween in clone topbar
- -- delete clone and solid; vis topbar
- -- tween down topbar
- -- tween holder out
- local function abspos(x)
- return UDim2.new(0, x.AbsolutePosition.X, 0, x.AbsolutePosition.Y)
- end
- local function abssz(x)
- return UDim2.new(0, x.AbsoluteSize.X, 0, x.AbsoluteSize.Y)
- end
- local holder = topkek.holder
- local nav = topkek.navigator
- local topnav = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Navigation.Topbar
- local topbar = topkek.topbar
- local pname = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Topbar.PlayerName:Clone()
- local solid = game.Players.LocalPlayer.PlayerGui["4.0"].Solid
- topkek.center.Size = UDim2.new(0, 150, 0, 30)
- game.Players.LocalPlayer.PlayerGui["4.0"].Composite1:TweenPosition(UDim2.new(0.5, -50, 0.5, -50), 'Out', 'Quad', 0.5)
- game.Players.LocalPlayer.PlayerGui["4.0"].Composite2:TweenPosition(UDim2.new(0.5, 0, 0.5, -50), 'Out', 'Quad', 0.5)
- wait(0.52)
- solid.Visible = true
- game.Players.LocalPlayer.PlayerGui["4.0"].Composite1:Destroy()
- game.Players.LocalPlayer.PlayerGui["4.0"].Composite2:Destroy()
- wait(3)
- solid.Label:TweenPosition(UDim2.new(0, 0, 1.5, 0), 'Out', 'Quad', 0.5)
- solid:TweenSizeAndPosition(abssz(topnav), abspos(topnav), 'Out', 'Linear', 0.6)
- wait(0.52)
- solid.Label:Destroy()
- wait(0.12)
- topkek.center.Visible = true
- topnav.Visible = true
- solid:Destroy()
- pname.Position = UDim2.new(0, -170, 0, 0)
- pname.Parent = topnav
- pname.Visible = true
- pname:TweenPosition(UDim2.new(0, 10, 0, 0), 'Out', 'Quad', 0.2)
- wait(0.25)
- topkek.center:TweenSize(UDim2.new(0, 150, 0, 395), 'Out', 'Quad', 0.3)
- spawn(topkek.navigation.buildNavigator)
- wait(0.35)
- topkek.center:TweenSize(UDim2.new(0, 470, 0, 395), 'In', 'Quad', 0.3)
- wait(0.35)
- topbar.PlayerName.Visible = true
- pname:Destroy()
- AllowHovers = true
- end
- --//nav//--
- topkek.navigation.currentContainer = topkek.tools.util.getContainer('Home')
- topkek.navigation.windowState = 0
- topkek.navigation.gotoContainer = function(cont)
- topkek.tools.animator.animateTo(topkek.navigation.currentContainer, cont)
- topkek.navigation.currentContainer = cont
- end
- topkek.navigation.buildNavigator = function()
- local nav = game.Players.LocalPlayer.PlayerGui["4.0"].Main.Navigation
- local hook = topkek.tools.gui:hookContainer(nav.Scroll, false)
- local btns = {}
- for l, x in pairs(topkek.data.windows) do
- local container = topkek.tools.util.getContainer(x)
- local btn = hook:drawButton(1, x, function() topkek.navigation.gotoContainer(container) end, 25)
- local ZPos = btn.Position
- btn.Position = btn.Position - UDim2.new(0, 0, 0, 5)
- btn:TweenPosition(ZPos, 'Out', 'Bounce', 0.2)
- btn.LayoutOrder = l
- btn.ZIndex = 4
- local OPos = btn.Position
- btn.MouseEnter:connect(function()
- if AllowHovers == false then
- return
- end
- for i, v in pairs(btns) do
- if v[1] ~= btn then
- v[1]:TweenPosition(v[2], 'Out', 'Quad', 0.1)
- end
- end
- btn:TweenPosition(OPos + UDim2.new(0, 3, 0, 0), 'Out', 'Quad', 0.1)
- end)
- btn.MouseLeave:connect(function()
- btn:TweenPosition(OPos, 'Out', 'Quad', 0.1)
- end)
- table.insert(btns, {btn, OPos})
- wait()
- end
- end
- topkek.navigation.buildTopbar = function()
- local top = topkek.topbar
- local FELabel = top.Controllers.IsFE
- top.PlayerName.Text = topkek.lplr.Name
- if game:GetService('Workspace').FilteringEnabled == true then
- FELabel.Text = "FE Game"
- FELabel.TextColor3 = BrickColor.new("Bright red").Color
- else
- FELabel.Text = "Not FE"
- FELabel.TextColor3 = BrickColor.new("Bright green").Color
- end
- top.Controllers.Hide.MouseButton1Down:connect(function()
- if topkek.navigation.windowState == 0 then
- topkek.navigation.windowState = 1
- topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.2)
- else
- topkek.navigation.windowState = 0
- topkek.center:TweenSize(UDim2.new(0, 470, 0, 395), 'Out', 'Quint', 0.2)
- end
- end)
- top.Controllers.Exit.MouseButton1Down:connect(function()
- topkek.center:TweenSize(UDim2.new(0, 470, 0, 30), 'Out', 'Quint', 0.3)
- wait(0.31)
- topkek.center:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 'Quint', 0.3)
- PlayerChatHook:disconnect()
- end)
- end
- topkek.navigation.initCommandBar = function()
- DistributedCmdBar, cmd = topkek.holder.Command, {}
- --weathered-down version of my cmdscript for topkek
- cmd = {}
- -- ** defines ** --
- cmd.service = (function(a) return game:service(a) end)
- cmd.gplayers = (function() return cmd.service'Players':GetPlayers() end)
- cmd.players = cmd.service('Players')
- cmd.localplayer = cmd.players.LocalPlayer
- cmd.prefix = ';'
- cmd.hidden = '/'
- cmd.commands = {}
- cmd.util = {}
- cmd.interface = {}
- cmd.admins = {}
- cmd.noclip = false
- -- ** util ** --
- cmd.util.pos = function(str, pos)
- local increment = 1
- for spc in str:gmatch("[^ ]+") do
- if increment == pos then
- return spc
- end
- increment = increment + 1
- end
- return ''
- end
- cmd.util.pstr = function(str, re_enc)
- str = string.lower(str)
- local players = {}
- if re_enc == true then
- if str == 'me' then
- return {game.Players.LocalPlayer}
- end
- if str == 'all' then
- return game.Players:GetPlayers()
- end
- if str == 'others' then
- for i, v in pairs(game.Players:GetPlayers()) do
- if v ~= cmd.localplayer then
- table.insert(players, v)
- end
- end
- end
- for i, v in pairs(game.Players:GetPlayers()) do
- if string.lower(v.Name):sub(1, #str) == str then
- table.insert(players, v)
- end
- end
- return players
- else
- for seper in str:gmatch("[^,]+") do
- for i, v in pairs(cmd.util.pstr(seper, true)) do
- table.insert(players, v)
- end
- end
- return players
- end
- end
- cmd.util.parse = function(str, fmt)
- local args = {}
- local encountered = 0
- local position = 1
- for form in fmt:gmatch("[^%%]+") do
- if position == 1 then
- args['command'] = cmd.util.pos(str, position)
- end
- if form == 'inf' then
- args[position] = str:sub(encountered, #str)
- end
- if form == 'int' then
- local fetch = cmd.util.pos(str, position)
- if tonumber(fetch) == nil then
- return nil
- end
- args[position] = {'integer', data = fetch}
- end
- if form == 'str' then
- local fetch = cmd.util.pos(str, position)
- args[position] = {'string', data = fetch}
- end
- if form == 'plrs' then
- args[position] = cmd.util.pstr(cmd.util.pos(str, position), false)
- end
- encountered = encountered + ((#cmd.util.pos(str, position)) + 1)
- position = position + 1
- end
- return args
- end
- cmd.util.isadmin = function(p)
- if p == cmd.localplayer.Name then
- return true
- else
- for i, v in pairs(cmd.admins) do
- if v == p.Name then
- return true
- end
- end
- return false
- end
- end
- cmd.util.BombVest = function(Players)
- -- modified by nosyliam
- local TickWait = 1
- local Dead = false
- local BeltPositions = { }
- local ExplodeSounds = { }
- for ___, player in pairs(Players) do
- pcall(function()
- local Me = player
- local Char = Me.Character
- local Torso = Char.Torso
- local Color = "Medium stone gray"
- local Dead = false
- local Position = Vector3.new(0,100,0)
- local function NewPart(Parent)
- local Part = Instance.new("Part", Parent)
- Part.CanCollide = false
- Part.FormFactor = "Custom"
- Part.Position = Position
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Part.BrickColor = BrickColor.new(Color)
- Position = Position + Vector3.new(0,Part.Size.Y + 10,0)
- return Part
- end
- local Model = Char:FindFirstChild("Bomb")
- if Model then Model:Destroy() end
- Model = Instance.new("Model", Char)
- Model.Name = "Bomb"
- local Belt = NewPart(Model)
- Belt.Size = Vector3.new(2.2,0.5,1.2)
- table.insert(BeltPositions, Belt)
- local Weld = Instance.new("Weld", Belt)
- Weld.Part0 = Belt
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(0,1.1,0)
- local Light = Instance.new("PointLight", Belt)
- Light.Range = 15
- Light.Brightness = 5
- Light.Color = Color3.new(1,0,0)
- local Beep = Instance.new("Sound", Belt)
- Beep.SoundId = "http://www.roblox.com/asset/?id=188588790"
- local ExplodeSound = Instance.new("Sound", Belt)
- ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
- ExplodeSound.Pitch = 2.8
- ExplodeSound.Volume = 3
- table.insert(ExplodeSounds, ExplodeSound)
- local Back = NewPart(Model)
- Back.Size = Vector3.new(1.5,1.5,0.5)
- local Weld = Instance.new("Weld", Back)
- Weld.Part0 = Back
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(0,0.1,-0.75)
- local StrapLeft = NewPart(Model)
- StrapLeft.Size = Vector3.new(0.2,0.5,1.6)
- local Weld = Instance.new("Weld", StrapLeft)
- Weld.Part0 = StrapLeft
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(0.65,-0.9,-0.2)
- local BuckleLeft = NewPart(Model)
- BuckleLeft.Size = Vector3.new(0.2,1.5,0.2)
- local Weld = Instance.new("Weld", BuckleLeft)
- Weld.Part0 = BuckleLeft
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(0.65,0.1,0.5)
- local StrapRight = NewPart(Model)
- StrapRight.Size = Vector3.new(0.2,0.5,1.6)
- local Weld = Instance.new("Weld", StrapRight)
- Weld.Part0 = StrapRight
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(-0.65,-0.9,-0.2)
- local BuckleRight = NewPart(Model)
- BuckleRight.Size = Vector3.new(0.2,1.5,0.2)
- local Weld = Instance.new("Weld", BuckleRight)
- Weld.Part0 = BuckleRight
- Weld.Part1 = Torso
- Weld.C0 = CFrame.new(-0.65,0.1,0.5)
- coroutine.wrap(function()
- repeat
- wait(TickWait)
- Light.Enabled = not Light.Enabled
- Beep:Play()
- until Dead == true
- end)()
- end)
- end
- local Tool = Instance.new("HopperBin", cmd.localplayer.Backpack)
- Tool.Name = "Bomb Vest"
- Tool.Selected:connect(function(Mouse)
- TickWait = 0.3
- Mouse.Icon = "http://www.roblox.com/asset/?id=9109985"
- Mouse.Button1Down:connect(function()
- if Dead == false then
- Dead = true
- for i, Belt in pairs(BeltPositions) do
- coroutine.wrap(function()
- pcall(function() ExplodeSounds[i]:Play() end)
- wait(1.4)
- local Explosion = Instance.new("Explosion", workspace)
- Explosion.Position = Belt.Position
- Explosion.BlastPressure = 100000
- Explosion.DestroyJointRadiusPercent = 0.7
- Explosion.ExplosionType = "CratersAndDebris"
- Explosion.BlastRadius = 50
- Explosion.Hit:connect(function(Part, Distance)
- Part.Anchored = false
- if Distance <= 10 then
- Part:BreakJoints()
- end
- end)
- end)()
- end
- end
- end)
- end)
- Tool.Deselected:connect(function()
- TickWait = 1
- end)
- end
- cmd.util.hulk = function(p)
- function giant(p, size)
- local pchar = p.Character
- if pchar then
- local function scale(chr,scl)
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Hat") then
- v:Clone()
- v.Parent = game.Lighting
- end
- end
- local Head = chr['Head']
- local Torso = chr['Torso']
- local LA = chr['Left Arm']
- local RA = chr['Right Arm']
- local LL = chr['Left Leg']
- local RL = chr['Right Leg']
- local HRP = chr['HumanoidRootPart']
- wait(0.1)
- Head.formFactor = 3
- Torso.formFactor = 3
- LA.formFactor = 3
- RA.formFactor = 3
- LL.formFactor = 3
- RL.formFactor = 3
- HRP.formFactor = 3
- Head.Size = Vector3.new(scl * 2, scl, scl)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- LA.Size = Vector3.new(scl, scl * 2, scl)
- RA.Size = Vector3.new(scl, scl * 2, scl)
- LL.Size = Vector3.new(scl, scl * 2, scl)
- RL.Size = Vector3.new(scl, scl * 2, scl)
- HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
- local Motor1 = Instance.new('Motor6D', Torso)
- Motor1.Part0 = Torso
- Motor1.Part1 = Head
- Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.Name = "Neck"
- local Motor2 = Instance.new('Motor6D', Torso)
- Motor2.Part0 = Torso
- Motor2.Part1 = LA
- Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.Name = "Left Shoulder"
- local Motor3 = Instance.new('Motor6D', Torso)
- Motor3.Part0 = Torso
- Motor3.Part1 = RA
- Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.Name = "Right Shoulder"
- local Motor4 = Instance.new('Motor6D', Torso)
- Motor4.Part0 = Torso
- Motor4.Part1 = LL
- Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.Name = "Left Hip"
- local Motor5 = Instance.new('Motor6D', Torso)
- Motor5.Part0 = Torso
- Motor5.Part1 = RL
- Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.Name = "Right Hip"
- local Motor6 = Instance.new('Motor6D', HRP)
- Motor6.Part0 = HRP
- Motor6.Part1 = Torso
- Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- end
- scale(pchar, size)
- pchar.Humanoid.WalkSpeed = 15 * size
- for _,v in pairs(game.Lighting:GetChildren()) do
- if v:IsA("Hat") then
- v.Parent = pchar
- end
- end
- end
- end
- local plr = p
- giant(plr, 3)
- for i, v in pairs(plr.Character:GetChildren()) do
- if v:IsA("BasePart") then
- v.Touched:connect(function(p)
- if p.Size.X<30 then
- p.Anchored = false
- p:BreakJoints()
- end
- end)
- end
- end
- local csize = 3
- local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- local base = Instance.new("Frame", sgui)
- base.BackgroundTransparency = 1
- base.Size = UDim2.new(0, 110, 0, 200)
- base.Position = UDim2.new(1, -120, 1, -180)
- local indicator = Instance.new("TextLabel", base)
- indicator.Size = UDim2.new(1, 0, 0, 25)
- indicator.TextColor3 = Color3.new(1, 1, 1)
- indicator.BackgroundTransparency = 0
- indicator.FontSize = Enum.FontSize.Size18
- indicator.Font = Enum.Font.SourceSans
- indicator.Text = "Current Size: 3"
- local PlusOne = Instance.new("TextButton", base)
- PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
- PlusOne.Position = UDim2.new(0, 0, 0, 40)
- PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
- PlusOne.BorderSizePixel = 2
- PlusOne.Font = Enum.Font.SourceSansBold
- PlusOne.FontSize = Enum.FontSize.Size24
- PlusOne.Text = "+1 Size"
- local MinusOne = Instance.new("TextButton", base)
- MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
- MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
- MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
- MinusOne.Text = "-1 Size"
- MinusOne.BorderSizePixel = 2
- MinusOne.Font = Enum.Font.SourceSansBold
- MinusOne.FontSize = Enum.FontSize.Size24
- PlusOne.MouseButton1Down:connect(function()
- csize = csize + 1
- giant(plr, csize)
- indicator.Text = "Current Size: "..tostring(csize)
- end)
- MinusOne.MouseButton1Down:connect(function()
- csize = csize - 1
- giant(plr, csize)
- indicator.Text = "Current Size: "..tostring(csize)
- end)
- end
- cmd.util.R15 = function()
- rcode=[[local function Init()
- wait()
- local function ConChar(P)
- Character = P.Character
- local R15Model = Instance.new("Model")
- R15Model.Name = "R15Model"
- R15Model.Parent = Character
- local function CreateLimb(Name,Color,Size,Transparency,ConnectToLimb,MotorName,C0,C1,MeshId)
- local Part = Instance.new("Part")
- Part.FormFactor = "Custom"
- Part.Size = Size
- Part.BrickColor = Color
- Part.CanCollide = false
- Part.Name = Name
- Part.Transparency = (Transparency == 0.001 and 0 or Transparency)
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- local Motor = Instance.new("Motor6D")
- Motor.C0 = C0
- Motor.C1 = C1
- Motor.Part0 = ConnectToLimb
- Motor.Part1 = Part
- Motor.Name = MotorName
- Motor.MaxVelocity = 0.1
- Motor.Parent = ConnectToLimb
- if MeshId then
- local Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = MeshId
- Mesh.Scale = Vector3.new(0.99,0.99,0.99)
- Mesh.Parent = Part
- end
- if MeshId and Transparency == 0.001 then
- local ShirtTexturePart = Instance.new("Part")
- ShirtTexturePart.FormFactor = "Custom"
- ShirtTexturePart.Size = Size
- ShirtTexturePart.BrickColor = Color
- ShirtTexturePart.CanCollide = false
- ShirtTexturePart.Name = "ShirtTexturePart"
- ShirtTexturePart.Transparency = Transparency
- ShirtTexturePart.TopSurface = "Smooth"
- ShirtTexturePart.BottomSurface = "Smooth"
- local Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = MeshId
- Mesh.Parent = ShirtTexturePart
- local Weld = Instance.new("Weld")
- Weld.Part0 = Part
- Weld.Part1 = ShirtTexturePart
- Weld.Parent = ShirtTexturePart
- ShirtTexturePart.Parent = Part
- end
- Part.Parent = R15Model
- return Part
- end
- local HumanoidRootPart = CreateLimb("HumanoidRootPart",BrickColor.new("Medium stone grey"),Vector3.new(1,1,1),1,Character.HumanoidRootPart,"RootConnector",CFrame.new(),CFrame.new(0,0.7,0))
- local LowerTorso = CreateLimb("LowerTorso",BrickColor.new("Bright blue"),Vector3.new(1,1,1),0.001,HumanoidRootPart,"Root",CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941715")
- local UpperTorso = CreateLimb("UpperTorso",BrickColor.new("Bright blue"),Vector3.new(1,1,1),0.001,LowerTorso,"Waist",CFrame.new(0, 0.404105991, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941468")
- local Head = CreateLimb("Head",BrickColor.new("Bright yellow"),Vector3.new(1,1,1),0,UpperTorso,"Neck",CFrame.new(0, 1.26949596, 0.0428609997, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.635110021, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941905")
- local LeftUpperArm = CreateLimb("LeftUpperArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.672, 1),0.001,UpperTorso,"LeftShoulder",CFrame.new(-1.50177097, 0.924546003, 0, 1, 0, -0, 0, 0.999044001, 0.0437170006, 0, -0.0437170006, 0.999044001),CFrame.new(0, 0.336115986, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387938468")
- local LeftLowerArm = CreateLimb("LeftLowerArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.703, 1),0.001,LeftUpperArm,"LeftElbow",CFrame.new(0, -0.336115986, 0, 1, 0, 0, 0, 0.999044001, -0.0437170006, 0, 0.0437170006, 0.999044001),CFrame.new(0, 0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387938971")
- local LeftHand = CreateLimb("LeftHand",BrickColor.new("Bright yellow"),Vector3.new(1, 0.352, 1),0.001,LeftLowerArm,"LeftWrist",CFrame.new(0, -0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.175756007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939233")
- local RightUpperArm = CreateLimb("RightUpperArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.671, 1),0.001,UpperTorso,"RightShoulder",CFrame.new(1.50049305, 0.923726022, 0, 1, 0, -0, 0, 0.999041617, 0.0437709838, 0, -0.0437709838, 0.999041617),CFrame.new(0, 0.335705996, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940113")
- local RightLowerArm = CreateLimb("RightLowerArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.703, 1),0.001,RightUpperArm,"RightElbow",CFrame.new(0, -0.335705996, 0, 1, 0, 0, 0, 0.999041617, -0.0437709838, 0, 0.0437709838, 0.999041617),CFrame.new(0, 0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940356")
- local RightHand = CreateLimb("RightHand",BrickColor.new("Bright yellow"),Vector3.new(1, 0.352, 1),0.001,RightLowerArm,"RightWrist",CFrame.new(0, -0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.175756007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940548")
- local LeftUpperLeg = CreateLimb("LeftUpperLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.775, 1),0.001,LowerTorso,"LeftHip",CFrame.new(-0.457044005, -0.498115987, 0, 1, 0, -0, 0, 1, 0.000100999998, 0, -0.000100999998, 1),CFrame.new(0, 0.387418985, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939645")
- local LeftLowerLeg = CreateLimb("LeftLowerLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.829, 1),0.001,LeftUpperLeg,"LeftKnee",CFrame.new(0, -0.387418985, 0, 1, 9.95820074e-007, 9.13360125e-008, -9.99999997e-007, 0.995820105, 0.0913360119, 0, -0.0913360119, 0.995820105),CFrame.new(0, 0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939489")
- local LeftFoot = CreateLimb("LeftFoot",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.415, 1),0.001,LeftLowerLeg,"LeftAnkle",CFrame.new(0, -0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.207286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939912")
- local RightUpperLeg = CreateLimb("RightUpperLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.775, 1),0.001,LowerTorso,"RightHip",CFrame.new(0.451141, -0.498115987, 0, 1, 0, -0, 0, 1, 0.000100999998, 0, -0.000100999998, 1),CFrame.new(0, 0.387418985, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940976")
- local RightLowerLeg = CreateLimb("RightLowerLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.829, 1),0.001,RightUpperLeg,"RightKnee",CFrame.new(0, -0.387418985, 0, 1, 0, -0, 0, 0.995820105, 0.0913360119, 0, -0.0913360119, 0.995820105),CFrame.new(0, 0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940802")
- local RightFoot = CreateLimb("RightFoot",BrickColor.new("Br.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement