Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local MadGamesGUI = Instance.new("ScreenGui")
- local Opener = Instance.new("Frame")
- local Open = Instance.new("TextButton")
- local Closer = Instance.new("Frame")
- local Close = Instance.new("TextButton")
- local MainFrame = Instance.new("Frame")
- local Name = Instance.new("TextBox")
- local GetOPKnife = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- -- Properties
- MadGamesGUI.Name = "MadGamesGUI"
- MadGamesGUI.Parent = game.CoreGui
- Opener.Name = "Opener"
- Opener.Parent = MadGamesGUI
- Opener.BackgroundColor3 = Color3.new(1, 1, 1)
- Opener.BackgroundTransparency = 1
- Opener.Position = UDim2.new(0, 0, 0.459770113, 0)
- Opener.Size = UDim2.new(0, 100, 0, 43)
- Open.Name = "Open"
- Open.Parent = Opener
- Open.BackgroundColor3 = Color3.new(0, 0, 0)
- Open.BackgroundTransparency = 0.5
- Open.Position = UDim2.new(4.23000002, 0, -7.4418602, 0)
- Open.Size = UDim2.new(0, 122, 0, 32)
- Open.Font = Enum.Font.SourceSansBold
- Open.FontSize = Enum.FontSize.Size14
- Open.Text = "OPEN"
- Open.TextColor3 = Color3.new(0.333333, 1, 0.498039)
- Open.TextScaled = true
- Open.TextSize = 14
- Open.TextWrapped = true
- Closer.Name = "Closer"
- Closer.Parent = MadGamesGUI
- Closer.BackgroundColor3 = Color3.new(1, 1, 1)
- Closer.BackgroundTransparency = 1
- Closer.Position = UDim2.new(0, 0, 0.459770113, 0)
- Closer.Size = UDim2.new(0, 100, 0, 43)
- Closer.Visible = false
- Close.Name = "Close"
- Close.Parent = Closer
- Close.BackgroundColor3 = Color3.new(0, 0, 0)
- Close.BackgroundTransparency = 0.5
- Close.Position = UDim2.new(10.1999998, 0, -7.4418602, 0)
- Close.Size = UDim2.new(0, 122, 0, 32)
- Close.Font = Enum.Font.SourceSansBold
- Close.FontSize = Enum.FontSize.Size14
- Close.Text = "CLOSE"
- Close.TextColor3 = Color3.new(1, 0.101961, 0.113725)
- Close.TextScaled = true
- Close.TextSize = 14
- Close.TextWrapped = true
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = MadGamesGUI
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BackgroundTransparency = 0.5
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.0856423154, 0, 0.261494249, 0)
- MainFrame.Size = UDim2.new(0, 198, 0, 188)
- MainFrame.Visible = false
- Name.Name = "Name"
- Name.Parent = MainFrame
- Name.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Name.BackgroundTransparency = 0.5
- Name.BorderSizePixel = 0
- Name.Position = UDim2.new(0.128787875, 0, 0.38513422, 0)
- Name.Size = UDim2.new(0, 146, 0, 31)
- Name.Font = Enum.Font.SourceSansBold
- Name.FontSize = Enum.FontSize.Size14
- Name.Text = "NAME"
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextScaled = true
- Name.TextSize = 14
- Name.TextWrapped = true
- GetOPKnife.Name = "GetOPKnife"
- GetOPKnife.Parent = MainFrame
- GetOPKnife.BackgroundColor3 = Color3.new(0.333333, 1, 1)
- GetOPKnife.BackgroundTransparency = 0.5
- GetOPKnife.BorderSizePixel = 0
- GetOPKnife.Position = UDim2.new(0.0782828331, 0, 0.658601046, 0)
- GetOPKnife.Size = UDim2.new(0, 169, 0, 36)
- GetOPKnife.Font = Enum.Font.SourceSansBold
- GetOPKnife.FontSize = Enum.FontSize.Size14
- GetOPKnife.Text = "GET OP KNIFE"
- GetOPKnife.TextColor3 = Color3.new(1, 1, 1)
- GetOPKnife.TextScaled = true
- GetOPKnife.TextSize = 14
- GetOPKnife.TextWrapped = true
- TextLabel.Parent = MainFrame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 198, 0, 36)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Mad Games OP Knife GUI"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- Open.MouseButton1Click:connect(function()
- game.CoreGui.MadGamesGUI.Opener.Visible = false
- game.CoreGui.MadGamesGUI.MainFrame.Visible = true
- game.CoreGui.MadGamesGUI.Closer.Visible = true
- end)
- Close.MouseButton1Click:connect(function()
- game.CoreGui.MadGamesGUI.Closer.Visible = false
- game.CoreGui.MadGamesGUI.Opener.Visible = true
- game.CoreGui.MadGamesGUI.MainFrame.Visible = false
- end)
- GetOPKnife.MouseButton1Click:connect(function()
- local OPKnife = Name.Text
- KnifePart = game.Players[OPKnife].Backpack.Knife:Clone()
- KnifePart.Parent = game.Players.LocalPlayer.Backpack
- local knife = game.Players.LocalPlayer.Backpack.Knife
- knife.KnifeSkin.Value = "RainbowShard"
- knife.KnifeAbility.Value = 'OP'
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement