Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local OPToolsGui = Instance.new("ScreenGui")
- local OPToolsFrame = Instance.new("Frame")
- local SpeedTool = Instance.new("TextButton")
- local InvisTool = Instance.new("TextButton")
- local Items = Instance.new("Folder")
- local ToolGui = Instance.new("ScreenGui")
- local SpeedGui = Instance.new("Frame")
- local ToggleButton = Instance.new("TextButton")
- local InvisGui = Instance.new("Frame")
- local ToggleButton_2 = Instance.new("TextButton")
- local NotifyBool = Instance.new("TextButton")
- --Properties:
- OPToolsGui.Name = "OPToolsGui"
- OPToolsGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- OPToolsFrame.Name = "OPToolsFrame"
- OPToolsFrame.Parent = OPToolsGui
- OPToolsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OPToolsFrame.BackgroundTransparency = 0.500
- OPToolsFrame.BorderSizePixel = 0
- OPToolsFrame.Position = UDim2.new(0.82657516, 0, 0.397101462, 0)
- OPToolsFrame.Size = UDim2.new(0, 278, 0, 228)
- SpeedTool.Name = "SpeedTool"
- SpeedTool.Parent = OPToolsFrame
- SpeedTool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SpeedTool.BackgroundTransparency = 0.750
- SpeedTool.BorderSizePixel = 0
- SpeedTool.Position = UDim2.new(0.140287772, 0, 0.127659574, 0)
- SpeedTool.Size = UDim2.new(0, 200, 0, 50)
- SpeedTool.Font = Enum.Font.SourceSansSemibold
- SpeedTool.Text = "Speed Tool"
- SpeedTool.TextColor3 = Color3.fromRGB(255, 255, 255)
- SpeedTool.TextSize = 18.000
- InvisTool.Name = "InvisTool"
- InvisTool.Parent = OPToolsFrame
- InvisTool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InvisTool.BackgroundTransparency = 0.750
- InvisTool.BorderSizePixel = 0
- InvisTool.Position = UDim2.new(0.140287772, 0, 0.389884263, 0)
- InvisTool.Size = UDim2.new(0, 200, 0, 50)
- InvisTool.Font = Enum.Font.SourceSansSemibold
- InvisTool.Text = "Invisibility Tool"
- InvisTool.TextColor3 = Color3.fromRGB(255, 255, 255)
- InvisTool.TextSize = 18.000
- Items.Name = "Items"
- Items.Parent = OPToolsFrame
- ToolGui.Name = "ToolGui"
- ToolGui.Parent = Items
- SpeedGui.Name = "SpeedGui"
- SpeedGui.Parent = ToolGui
- SpeedGui.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SpeedGui.BackgroundTransparency = 0.500
- SpeedGui.BorderSizePixel = 0
- SpeedGui.Position = UDim2.new(0.744229555, 0, 0.397101462, 0)
- SpeedGui.Size = UDim2.new(0, 122, 0, 104)
- SpeedGui.Visible = false
- ToggleButton.Name = "ToggleButton"
- ToggleButton.Parent = SpeedGui
- ToggleButton.BackgroundColor3 = Color3.fromRGB(53, 53, 243)
- ToggleButton.BackgroundTransparency = 0.750
- ToggleButton.BorderSizePixel = 0
- ToggleButton.Size = UDim2.new(0, 122, 0, 104)
- ToggleButton.Font = Enum.Font.SourceSansSemibold
- ToggleButton.Text = "Toggle"
- ToggleButton.TextColor3 = Color3.fromRGB(53, 53, 243)
- ToggleButton.TextSize = 36.000
- ToggleButton.TextWrapped = true
- InvisGui.Name = "InvisGui"
- InvisGui.Parent = ToolGui
- InvisGui.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InvisGui.BackgroundTransparency = 0.500
- InvisGui.BorderSizePixel = 0
- InvisGui.Position = UDim2.new(0.744229555, 0, 0.566666663, 0)
- InvisGui.Size = UDim2.new(0, 122, 0, 111)
- InvisGui.Visible = false
- ToggleButton_2.Name = "ToggleButton"
- ToggleButton_2.Parent = InvisGui
- ToggleButton_2.BackgroundColor3 = Color3.fromRGB(53, 53, 243)
- ToggleButton_2.BackgroundTransparency = 0.750
- ToggleButton_2.BorderSizePixel = 0
- ToggleButton_2.Size = UDim2.new(0, 122, 0, 111)
- ToggleButton_2.Font = Enum.Font.SourceSansSemibold
- ToggleButton_2.Text = "Toggle"
- ToggleButton_2.TextColor3 = Color3.fromRGB(53, 53, 243)
- ToggleButton_2.TextSize = 36.000
- ToggleButton_2.TextWrapped = true
- NotifyBool.Name = "NotifyBool"
- NotifyBool.Parent = OPToolsFrame
- NotifyBool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- NotifyBool.BackgroundTransparency = 0.750
- NotifyBool.BorderSizePixel = 0
- NotifyBool.Position = UDim2.new(0.140287772, 0, 0.661814094, 0)
- NotifyBool.Size = UDim2.new(0, 200, 0, 50)
- NotifyBool.Font = Enum.Font.SourceSansSemibold
- NotifyBool.Text = "Notifications (Yes)"
- NotifyBool.TextColor3 = Color3.fromRGB(255, 255, 255)
- NotifyBool.TextSize = 18.000
- -- Scripts:
- local function GRYESYM_fake_script() -- ToolGui.ButtonClient
- local script = Instance.new('LocalScript', ToolGui)
- local plr = game.Players.LocalPlayer
- function WaitForTool(tool, guiName)
- game.StarterGui:SetCore('SendNotification', {
- Title = guiName,
- Text = 'Waiting for player to collect '..tool..' tool.',
- Duration = 5
- })
- end
- WaitForTool('speed', 'SpeedGui')
- WaitForTool('invis', 'InvisGui')
- local tools = { plr.Backpack:WaitForChild('Speed'), plr.Backpack:WaitForChild('Invisibility') }
- script.Parent.SpeedGui.ToggleButton.MouseButton1Click:connect(function()
- workspace[plr.Name].Speed.Toggle.Value = not workspace[plr.Name].Speed.Toggle.Value
- end)
- script.Parent.InvisGui.ToggleButton.MouseButton1Click:connect(function()
- workspace[plr.Name].Invisibility.Toggle.Value = not workspace[plr.Name].Invisibility.Toggle.Value
- end)
- end
- coroutine.wrap(GRYESYM_fake_script)()
- local function LLRRSX_fake_script() -- OPToolsFrame.ButtonClient
- local script = Instance.new('LocalScript', OPToolsFrame)
- local plr = game.Players.LocalPlayer
- local backpack = plr.Backpack
- local items = script.Parent.Items
- local notify = script.Parent.Notification.Value
- local debounce = false
- script.Parent.Items.ToolGui.Parent = script.Parent.Parent.Parent
- script.Parent.SpeedTool.MouseButton1Click:connect(function()
- local tool = items.Speed:clone()
- tool.Parent = backpack
- end)
- script.Parent.InvisTool.MouseButton1Click:connect(function()
- local tool = items.Invisibility:clone()
- tool.Parent = backpack
- end)
- script.Parent.NotifyBool.MouseButton1Click:connect(function()
- notify = not notify
- if not debounce then
- debounce = true
- if (notify == true) then
- script.Parent.NotifyBool.Text = 'Notifications (Yes)'
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Tool Notifications',
- Text = 'Tools notifications have been enabled.\nYou will now be notified.',
- Duration = 7
- })
- elseif (notify == false) then
- script.Parent.NotifyBool.Text = 'Notifcations (No)'
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Tool Notifications',
- Text = 'Tools notifications have been disabled.\nYou will no longer be notified.',
- Duration = 7
- })
- end
- wait(7)
- debounce = false
- end
- end)
- end
- coroutine.wrap(LLRRSX_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement