Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local MainP3rnHub = Instance.new("Frame")
- local P3rn = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- local hub = Instance.new("TextLabel")
- local UICorner_2 = Instance.new("UICorner")
- local hub_2 = Instance.new("TextLabel")
- local UICorner_3 = Instance.new("UICorner")
- local UICorner_4 = Instance.new("UICorner")
- local UICorner_5 = Instance.new("UICorner")
- local CloseButton = Instance.new("TextButton")
- local UICorner_6 = Instance.new("UICorner")
- local Scripts = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local UICorner_8 = Instance.new("UICorner")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- MainP3rnHub.Name = "MainP3rnHub"
- MainP3rnHub.Parent = ScreenGui
- MainP3rnHub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MainP3rnHub.BorderSizePixel = 0
- MainP3rnHub.Position = UDim2.new(0.265377432, 0, 0.304201424, 0)
- MainP3rnHub.Size = UDim2.new(0, 400, 0, 195)
- P3rn.Name = "P3rn"
- P3rn.Parent = MainP3rnHub
- P3rn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- P3rn.BorderSizePixel = 0
- P3rn.Size = UDim2.new(0, 202, 0, 195)
- P3rn.Font = Enum.Font.SourceSansBold
- P3rn.Text = "P3rn"
- P3rn.TextColor3 = Color3.fromRGB(255, 255, 255)
- P3rn.TextScaled = true
- P3rn.TextSize = 14.000
- P3rn.TextWrapped = true
- UICorner.Parent = P3rn
- hub.Name = "hub"
- hub.Parent = MainP3rnHub
- hub.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- hub.BorderSizePixel = 0
- hub.Position = UDim2.new(0.462500006, 0, 0, 0)
- hub.Size = UDim2.new(0, 224, 0, 195)
- hub.Font = Enum.Font.SourceSans
- hub.Text = "P3rn"
- hub.TextColor3 = Color3.fromRGB(0, 0, 0)
- hub.TextScaled = true
- hub.TextSize = 14.000
- hub.TextWrapped = true
- UICorner_2.Parent = hub
- hub_2.Name = "hub"
- hub_2.Parent = MainP3rnHub
- hub_2.BackgroundColor3 = Color3.fromRGB(182, 121, 0)
- hub_2.BorderSizePixel = 0
- hub_2.Position = UDim2.new(0.462500006, 0, 0.29743591, 0)
- hub_2.Size = UDim2.new(0, 215, 0, 80)
- hub_2.Font = Enum.Font.SourceSansBold
- hub_2.Text = "hub"
- hub_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- hub_2.TextScaled = true
- hub_2.TextSize = 14.000
- hub_2.TextWrapped = true
- UICorner_3.Parent = hub_2
- UICorner_4.Parent = MainP3rnHub
- UICorner_5.Parent = MainP3rnHub
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = MainP3rnHub
- CloseButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
- CloseButton.BorderSizePixel = 0
- CloseButton.Position = UDim2.new(0.922500014, 0, 0, 0)
- CloseButton.Size = UDim2.new(0, 40, 0, 40)
- CloseButton.Font = Enum.Font.SourceSansBold
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14.000
- CloseButton.TextWrapped = true
- UICorner_6.Parent = CloseButton
- Scripts.Name = "Scripts ;)"
- Scripts.Parent = MainP3rnHub
- Scripts.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
- Scripts.Size = UDim2.new(0, 50, 0, 50)
- Scripts.Font = Enum.Font.SourceSansBold
- Scripts.Text = "Scripts"
- Scripts.TextColor3 = Color3.fromRGB(0, 0, 0)
- Scripts.TextScaled = true
- Scripts.TextSize = 14.000
- Scripts.TextWrapped = true
- UICorner_7.Parent = Scripts
- UICorner_8.Parent = ScreenGui
- local function EWARXE_fake_script() -- MainP3rnHub.Smooth GUI Dragging
- local script = Instance.new('LocalScript', MainP3rnHub)
- local UserInputService = game:GetService("UserInputService")
- local runService = (game:GetService("RunService"));
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- function Lerp(a, b, m)
- return a + (b - a) * m
- end;
- local lastMousePos
- local lastGoalPos
- local DRAG_SPEED = (8); -- // The speed of the UI darg.
- function Update(dt)
- if not (startPos) then return end;
- if not (dragging) and (lastGoalPos) then
- gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
- return
- end;
- local delta = (lastMousePos - UserInputService:GetMouseLocation())
- local xGoal = (startPos.X.Offset - delta.X);
- local yGoal = (startPos.Y.Offset - delta.Y);
- lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
- gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
- end;
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- lastMousePos = UserInputService:GetMouseLocation()
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- runService.Heartbeat:Connect(Update)
- end
- coroutine.wrap(EWARXE_fake_script)()
- local function HAZRXZX_fake_script() -- CloseButton.LocalScript
- local script = Instance.new('LocalScript', CloseButton)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.Visible = false
- end)
- end
- coroutine.wrap(HAZRXZX_fake_script)()
- local function HNKQG_fake_script() -- Scripts.Localscript
- local script = Instance.new('LocalScript', Scripts)
- function Playsound()
- script.Parent.Parent.sound1:Play()
- end
- script.Parent.MouseButton1Click:Connect(Playsound)
- end
- coroutine.wrap(HNKQG_fake_script)()
- local function JQRBM_fake_script() -- Scripts.LocalScript
- local script = Instance.new('LocalScript', Scripts)
- local frame = script.Parent.Parent.Test
- local open = false
- script.Parent.MouseButton1Click:Connect(function()
- if frame.Visible == false then
- frame.Visible = true
- end
- end)
- end
- coroutine.wrap(JQRBM_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement