Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScriptHelper = Instance.new("ScreenGui")
- local Sidebar = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIPadding = Instance.new("UIPadding")
- local UIListLayout = Instance.new("UIListLayout")
- local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
- local Executor = Instance.new("ImageButton")
- local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
- local UICorner_2 = Instance.new("UICorner")
- local Output = Instance.new("ImageButton")
- local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint")
- local UICorner_3 = Instance.new("UICorner")
- local ScriptPackage = Instance.new("ImageButton")
- local UIAspectRatioConstraint_4 = Instance.new("UIAspectRatioConstraint")
- local UICorner_4 = Instance.new("UICorner")
- local Executor_2 = Instance.new("Frame")
- local UICorner_5 = Instance.new("UICorner")
- local UIPadding_2 = Instance.new("UIPadding")
- local TopBar = Instance.new("TextLabel")
- local Close = Instance.new("TextButton")
- local UIAspectRatioConstraint_5 = Instance.new("UIAspectRatioConstraint")
- local UICorner_6 = Instance.new("UICorner")
- local Execute = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local Script = Instance.new("TextBox")
- local Save = Instance.new("TextButton")
- local UICorner_8 = Instance.new("UICorner")
- local Load = Instance.new("TextButton")
- local UICorner_9 = Instance.new("UICorner")
- local FileName = Instance.new("TextBox")
- local UICorner_10 = Instance.new("UICorner")
- local Output_2 = Instance.new("Frame")
- local UICorner_11 = Instance.new("UICorner")
- local UIPadding_3 = Instance.new("UIPadding")
- local TopBar_2 = Instance.new("TextLabel")
- local Close_2 = Instance.new("TextButton")
- local UIAspectRatioConstraint_6 = Instance.new("UIAspectRatioConstraint")
- local UICorner_12 = Instance.new("UICorner")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local PrintLabel = Instance.new("TextLabel")
- local Notif = Instance.new("Frame")
- local UICorner_13 = Instance.new("UICorner")
- local UIPadding_4 = Instance.new("UIPadding")
- local TopBar_3 = Instance.new("TextLabel")
- local Close_3 = Instance.new("TextButton")
- local UIAspectRatioConstraint_7 = Instance.new("UIAspectRatioConstraint")
- local UICorner_14 = Instance.new("UICorner")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- ScriptHelper.Name = "ScriptHelper"
- ScriptHelper.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScriptHelper.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Sidebar.Name = "Sidebar"
- Sidebar.Parent = ScriptHelper
- Sidebar.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
- Sidebar.Position = UDim2.new(0, -32, 0.164000005, 0)
- Sidebar.Size = UDim2.new(0.100000001, 0, 0.66989243, 0)
- UICorner.CornerRadius = UDim.new(0, 32)
- UICorner.Parent = Sidebar
- UIPadding.Parent = Sidebar
- UIPadding.PaddingBottom = UDim.new(0, 10)
- UIPadding.PaddingLeft = UDim.new(0, 42)
- UIPadding.PaddingRight = UDim.new(0, 10)
- UIPadding.PaddingTop = UDim.new(0, 10)
- UIListLayout.Parent = Sidebar
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 10)
- UIAspectRatioConstraint.Parent = Sidebar
- UIAspectRatioConstraint.AspectRatio = 0.340
- Executor.Name = "Executor"
- Executor.Parent = Sidebar
- Executor.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- Executor.Size = UDim2.new(1, 0, 1, 0)
- Executor.Image = "rbxassetid://13621204682"
- UIAspectRatioConstraint_2.Parent = Executor
- UICorner_2.CornerRadius = UDim.new(0, 32)
- UICorner_2.Parent = Executor
- Output.Name = "Output"
- Output.Parent = Sidebar
- Output.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- Output.Size = UDim2.new(1, 0, 1, 0)
- Output.Image = "rbxassetid://13621223490"
- UIAspectRatioConstraint_3.Parent = Output
- UICorner_3.CornerRadius = UDim.new(0, 32)
- UICorner_3.Parent = Output
- ScriptPackage.Name = "ScriptPackage"
- ScriptPackage.Parent = Sidebar
- ScriptPackage.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- ScriptPackage.Size = UDim2.new(1, 0, 1, 0)
- ScriptPackage.Image = "http://www.roblox.com/asset/?id=13622585393"
- UIAspectRatioConstraint_4.Parent = ScriptPackage
- UICorner_4.CornerRadius = UDim.new(0, 32)
- UICorner_4.Parent = ScriptPackage
- Executor_2.Name = "Executor"
- Executor_2.Parent = ScriptHelper
- Executor_2.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
- Executor_2.Position = UDim2.new(0.434841335, 0, 0.305683553, 0)
- Executor_2.Size = UDim2.new(0.325523317, 0, 0.437941641, 0)
- Executor_2.Visible = false
- UICorner_5.CornerRadius = UDim.new(0, 32)
- UICorner_5.Parent = Executor_2
- UIPadding_2.Parent = Executor_2
- UIPadding_2.PaddingBottom = UDim.new(0, 10)
- UIPadding_2.PaddingLeft = UDim.new(0, 10)
- UIPadding_2.PaddingRight = UDim.new(0, 10)
- UIPadding_2.PaddingTop = UDim.new(0, 10)
- TopBar.Name = "TopBar"
- TopBar.Parent = Executor_2
- TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopBar.BackgroundTransparency = 1.000
- TopBar.Position = UDim2.new(0, -10, 0, -10)
- TopBar.Size = UDim2.new(1, 20, 0.100000001, 15)
- TopBar.Font = Enum.Font.SourceSans
- TopBar.Text = " Executor"
- TopBar.TextColor3 = Color3.fromRGB(255, 255, 255)
- TopBar.TextScaled = true
- TopBar.TextSize = 14.000
- TopBar.TextWrapped = true
- TopBar.TextXAlignment = Enum.TextXAlignment.Left
- Close.Name = "Close"
- Close.Parent = Executor_2
- Close.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Close.Position = UDim2.new(0.936029613, 0, 0.0113164634, 0)
- Close.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextColor3 = Color3.fromRGB(255, 255, 255)
- Close.TextScaled = true
- Close.TextSize = 14.000
- Close.TextWrapped = true
- UIAspectRatioConstraint_5.Parent = Close
- UICorner_6.CornerRadius = UDim.new(1, 0)
- UICorner_6.Parent = Close
- Execute.Name = "Execute"
- Execute.Parent = Executor_2
- Execute.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- Execute.Position = UDim2.new(0, 0, 0.167999998, 0)
- Execute.Size = UDim2.new(0.171413064, 0, 0.100000009, 0)
- Execute.Font = Enum.Font.SourceSans
- Execute.Text = "Execute"
- Execute.TextColor3 = Color3.fromRGB(255, 255, 255)
- Execute.TextScaled = true
- Execute.TextSize = 14.000
- Execute.TextWrapped = true
- UICorner_7.CornerRadius = UDim.new(1, 0)
- UICorner_7.Parent = Execute
- Script.Name = "Script"
- Script.Parent = Executor_2
- Script.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- Script.Position = UDim2.new(0, 0, 0.316000015, 0)
- Script.Size = UDim2.new(1, 0, 0.649999976, 0)
- Script.ClearTextOnFocus = false
- Script.Font = Enum.Font.SourceSans
- Script.MultiLine = true
- Script.Text = "cprint(\"Henlo, World!\") --this will put \"Henlo, World!\" into the console window."
- Script.TextColor3 = Color3.fromRGB(255, 255, 255)
- Script.TextSize = 14.000
- Script.TextXAlignment = Enum.TextXAlignment.Left
- Script.TextYAlignment = Enum.TextYAlignment.Top
- Save.Name = "Save"
- Save.Parent = Executor_2
- Save.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- Save.Position = UDim2.new(0.826660812, 0, 0.167999998, 0)
- Save.Size = UDim2.new(0.171413064, 0, 0.100000009, 0)
- Save.Font = Enum.Font.SourceSans
- Save.Text = "Save"
- Save.TextColor3 = Color3.fromRGB(255, 255, 255)
- Save.TextScaled = true
- Save.TextSize = 14.000
- Save.TextWrapped = true
- UICorner_8.CornerRadius = UDim.new(1, 0)
- UICorner_8.Parent = Save
- Load.Name = "Load"
- Load.Parent = Executor_2
- Load.BackgroundColor3 = Color3.fromRGB(118, 118, 118)
- Load.Position = UDim2.new(0.634061813, 0, 0.167999998, 0)
- Load.Size = UDim2.new(0.171413064, 0, 0.100000009, 0)
- Load.Font = Enum.Font.SourceSans
- Load.Text = "Load"
- Load.TextColor3 = Color3.fromRGB(255, 255, 255)
- Load.TextScaled = true
- Load.TextSize = 14.000
- Load.TextWrapped = true
- UICorner_9.CornerRadius = UDim.new(1, 0)
- UICorner_9.Parent = Load
- FileName.Name = "FileName"
- FileName.Parent = Executor_2
- FileName.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- FileName.Position = UDim2.new(0.18592228, 0, 0.167517275, 0)
- FileName.Size = UDim2.new(0.428933024, 0, 0.100000009, 0)
- FileName.Font = Enum.Font.SourceSans
- FileName.PlaceholderText = "FileName"
- FileName.Text = ""
- FileName.TextColor3 = Color3.fromRGB(0, 0, 0)
- FileName.TextSize = 14.000
- UICorner_10.CornerRadius = UDim.new(1, 0)
- UICorner_10.Parent = FileName
- Output_2.Name = "Output"
- Output_2.Parent = ScriptHelper
- Output_2.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
- Output_2.Position = UDim2.new(0.118163407, 0, 0.196620584, 0)
- Output_2.Size = UDim2.new(0.325523317, 0, 0.437941641, 0)
- Output_2.Visible = false
- UICorner_11.CornerRadius = UDim.new(0, 32)
- UICorner_11.Parent = Output_2
- UIPadding_3.Parent = Output_2
- UIPadding_3.PaddingBottom = UDim.new(0, 10)
- UIPadding_3.PaddingLeft = UDim.new(0, 10)
- UIPadding_3.PaddingRight = UDim.new(0, 10)
- UIPadding_3.PaddingTop = UDim.new(0, 10)
- TopBar_2.Name = "TopBar"
- TopBar_2.Parent = Output_2
- TopBar_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopBar_2.BackgroundTransparency = 1.000
- TopBar_2.Position = UDim2.new(0, -10, 0, -10)
- TopBar_2.Size = UDim2.new(1, 20, 0.100000001, 15)
- TopBar_2.Font = Enum.Font.SourceSans
- TopBar_2.Text = " Output"
- TopBar_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TopBar_2.TextScaled = true
- TopBar_2.TextSize = 14.000
- TopBar_2.TextWrapped = true
- TopBar_2.TextXAlignment = Enum.TextXAlignment.Left
- Close_2.Name = "Close"
- Close_2.Parent = Output_2
- Close_2.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Close_2.Position = UDim2.new(0.936029613, 0, 0.0113164634, 0)
- Close_2.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Close_2.Font = Enum.Font.SourceSans
- Close_2.Text = "X"
- Close_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Close_2.TextScaled = true
- Close_2.TextSize = 14.000
- Close_2.TextWrapped = true
- UIAspectRatioConstraint_6.Parent = Close_2
- UICorner_12.CornerRadius = UDim.new(1, 0)
- UICorner_12.Parent = Close_2
- ScrollingFrame.Parent = Output_2
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- ScrollingFrame.Position = UDim2.new(0, 0, 0.116937004, 0)
- ScrollingFrame.Size = UDim2.new(1, 0, 0.850000024, 0)
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- UIListLayout_2.Parent = ScrollingFrame
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- PrintLabel.Name = "PrintLabel"
- PrintLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PrintLabel.BackgroundTransparency = 1.000
- PrintLabel.Size = UDim2.new(1, 0, 0, 14)
- PrintLabel.Font = Enum.Font.SourceSans
- PrintLabel.Text = "Henlo, World!"
- PrintLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- PrintLabel.TextSize = 14.000
- PrintLabel.TextXAlignment = Enum.TextXAlignment.Left
- Notif.Name = "Notif"
- Notif.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
- Notif.Position = UDim2.new(0.336934507, 0, 0.196620584, 0)
- Notif.Size = UDim2.new(0.325523317, 0, 0.437941641, 0)
- UICorner_13.CornerRadius = UDim.new(0, 32)
- UICorner_13.Parent = Notif
- UIPadding_4.Parent = Notif
- UIPadding_4.PaddingBottom = UDim.new(0, 10)
- UIPadding_4.PaddingLeft = UDim.new(0, 10)
- UIPadding_4.PaddingRight = UDim.new(0, 10)
- UIPadding_4.PaddingTop = UDim.new(0, 10)
- TopBar_3.Name = "TopBar"
- TopBar_3.Parent = Notif
- TopBar_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopBar_3.BackgroundTransparency = 1.000
- TopBar_3.Position = UDim2.new(0, -10, 0, -10)
- TopBar_3.Size = UDim2.new(1, 20, 0.100000001, 15)
- TopBar_3.Font = Enum.Font.SourceSans
- TopBar_3.Text = " Notification"
- TopBar_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- TopBar_3.TextScaled = true
- TopBar_3.TextSize = 14.000
- TopBar_3.TextWrapped = true
- TopBar_3.TextXAlignment = Enum.TextXAlignment.Left
- Close_3.Name = "Close"
- Close_3.Parent = Notif
- Close_3.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Close_3.Position = UDim2.new(0.936029613, 0, 0.0113164634, 0)
- Close_3.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Close_3.Font = Enum.Font.SourceSans
- Close_3.Text = "X"
- Close_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Close_3.TextScaled = true
- Close_3.TextSize = 14.000
- Close_3.TextWrapped = true
- UIAspectRatioConstraint_7.Parent = Close_3
- UICorner_14.CornerRadius = UDim.new(1, 0)
- UICorner_14.Parent = Close_3
- TextLabel.Parent = Notif
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0, 0, 0.116999999, 0)
- TextLabel.Size = UDim2.new(1, 0, 0.899999976, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "uhh hi there the notif broke i think"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- -- Module Scripts:
- local fake_module_scripts = {}
- do -- ScriptHelper.Module
- local script = Instance.new('ModuleScript', ScriptHelper)
- script.Name = "Module"
- local function module_script()
- local module = {}
- function module:print(text, color)
- local clone = PrintLabel:Clone()
- clone.Text = text
- clone.TextColor3 = color
- clone.Parent = script.Parent.Output.ScrollingFrame
- end
- function module:notif(text)
- local clone = Notif:Clone()
- clone.TextLabel.Text = text
- clone.Parent = script.Parent
- end
- return module
- end
- fake_module_scripts[script] = module_script
- end
- -- Scripts:
- local function GKOK_fake_script() -- Sidebar.LocalScript
- local script = Instance.new('LocalScript', Sidebar)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- script.Parent.Executor.MouseButton1Click:Connect(function()
- script.Parent.Parent.Executor.Visible = true
- end)
- script.Parent.Output.MouseButton1Click:Connect(function()
- script.Parent.Parent.Output.Visible = true
- end)
- script.Parent.ScriptPackage.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/XZu4VMFe"))()
- end)
- end
- coroutine.wrap(GKOK_fake_script)()
- local function QFDRO_fake_script() -- Executor_2.DragScript
- local script = Instance.new('LocalScript', Executor_2)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- local UIS = game:GetService("UserInputService")
- local MainFrame = script.Parent
- local TopBar = MainFrame.TopBar
- local Camera = workspace:WaitForChild("Camera")
- local DragMousePosition
- local FramePosition
- local Draggable = false
- TopBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = true
- DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
- FramePosition = Vector2.new(MainFrame.Position.X.Scale,MainFrame.Position.Y.Scale)
- end
- end)
- TopBar.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = false
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if Draggable == true then
- local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
- MainFrame.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
- end
- end)
- end
- coroutine.wrap(QFDRO_fake_script)()
- local function XRLRE_fake_script() -- Executor_2.LocalScript
- local script = Instance.new('LocalScript', Executor_2)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- local customFunctions = [[
- function cprint(text)
- require(script.Parent.Parent.Module):print(text, Color3.New(255,255,255))
- end
- function cwarn(text)
- require(script.Parent.Parent.Module):print(text, Color3.New(0,255,0))
- end
- function cerror(text)
- require(script.Parent.Parent.Module):print(text, Color3.New(255,0,0))
- end
- function notify(text)
- require(script.Parent.Parent.Module):notif(text)
- end
- ]]
- script.Parent.Execute.MouseButton1Click:Connect(function()
- if game:GetService("RunService"):IsStudio() then
- game.ReplicatedStorage.runCode:FireServer(customFunctions.."\n"..script.Parent.Script.Text)
- else
- loadstring(customFunctions.."\n"..script.Parent.Script.Text)()
- end
- end)
- script.Parent.Load.MouseButton1Click:Connect(function()
- if (readfile and isfolder and makefolder) then
- if not isfolder("ScriptHelper") then
- makefolder("ScriptHelper")
- end
- if not isfolder("ScriptHelper//SavedScripts") then
- makefolder("ScriptHelper//SavedScripts")
- end
- if isfile("ScriptHelper//SavedScripts//"..script.Parent.FileName.Text..".lua") then
- script.Parent.Script.Text = readfile("ScriptHelper//SavedScripts//"..script.Parent.FileName.Text..".lua")
- else
- print("ScriptHelper: Sorry, but we couldn't find the file you were looking for.")
- end
- else
- print("ScriptHelper: Sorry, but your executor does not support loading.")
- end
- end)
- script.Parent.Save.MouseButton1Click:Connect(function()
- if (writefile and isfolder and makefolder) then
- if not isfolder("ScriptHelper") then
- makefolder("ScriptHelper")
- end
- if not isfolder("ScriptHelper//SavedScripts") then
- makefolder("ScriptHelper//SavedScripts")
- end
- writefile("ScriptHelper//SavedScripts//"..script.Parent.FileName.Text..".lua", script.Parent.Script.Text)
- else
- print("ScriptHelper: Sorry, but your executor does not support saving.")
- end
- end)
- script.Parent.Close.MouseButton1Click:Connect(function()
- script.Parent.Visible = false
- end)
- end
- coroutine.wrap(XRLRE_fake_script)()
- local function IZOCTRO_fake_script() -- Output_2.DragScript
- local script = Instance.new('LocalScript', Output_2)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- local UIS = game:GetService("UserInputService")
- local MainFrame = script.Parent
- local TopBar = MainFrame.TopBar
- local Camera = workspace:WaitForChild("Camera")
- local DragMousePosition
- local FramePosition
- local Draggable = false
- TopBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = true
- DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
- FramePosition = Vector2.new(MainFrame.Position.X.Scale,MainFrame.Position.Y.Scale)
- end
- end)
- TopBar.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = false
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if Draggable == true then
- local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
- MainFrame.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
- end
- end)
- end
- coroutine.wrap(IZOCTRO_fake_script)()
- local function JTLSTS_fake_script() -- Output_2.LocalScript
- local script = Instance.new('LocalScript', Output_2)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- script.Parent.Close.MouseButton1Click:Connect(function()
- script.Parent.Visible = false
- end)
- end
- coroutine.wrap(JTLSTS_fake_script)()
- local function NXFREJU_fake_script() -- Notif.DragScript
- local script = Instance.new('LocalScript', Notif)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- local UIS = game:GetService("UserInputService")
- local MainFrame = script.Parent
- local TopBar = MainFrame.TopBar
- local Camera = workspace:WaitForChild("Camera")
- local DragMousePosition
- local FramePosition
- local Draggable = false
- TopBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = true
- DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
- FramePosition = Vector2.new(MainFrame.Position.X.Scale,MainFrame.Position.Y.Scale)
- end
- end)
- TopBar.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Draggable = false
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if Draggable == true then
- local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
- MainFrame.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
- end
- end)
- end
- coroutine.wrap(NXFREJU_fake_script)()
- local function FEJDZ_fake_script() -- Notif.LocalScript
- local script = Instance.new('LocalScript', Notif)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- script.Parent.Close.MouseButton1Click:Connect(function()
- script.Parent:Destroy()
- end)
- end
- coroutine.wrap(FEJDZ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement