Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local ImageLabel = Instance.new("ImageLabel")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local TextButton_2 = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local TextButton_3 = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ImageLabel.Parent = ScreenGui
- ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ImageLabel.BorderSizePixel = 0
- ImageLabel.Position = UDim2.new(0.0876249075, 0, 0.21129033, 0)
- ImageLabel.Size = UDim2.new(0, 248, 0, 255)
- ImageLabel.Image = "http://www.roblox.com/asset/?id=12970925459"
- UICorner.Parent = ImageLabel
- TextButton.Parent = ImageLabel
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0.0443548374, 0, 0.403921574, 0)
- TextButton.Size = UDim2.new(0, 225, 0, 67)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Normal"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- UICorner_2.Parent = TextButton
- TextButton_2.Parent = ImageLabel
- TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.BorderSizePixel = 0
- TextButton_2.Position = UDim2.new(0.0443548374, 0, 0.0392156877, 0)
- TextButton_2.Size = UDim2.new(0, 225, 0, 84)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "God Mod"
- TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.TextSize = 14.000
- UICorner_3.Parent = TextButton_2
- TextButton_3.Parent = ImageLabel
- TextButton_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_3.BorderSizePixel = 0
- TextButton_3.Position = UDim2.new(0.0443548374, 0, 0.701960802, 0)
- TextButton_3.Size = UDim2.new(0, 225, 0, 67)
- TextButton_3.Font = Enum.Font.SourceSans
- TextButton_3.Text = "Reset"
- TextButton_3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_3.TextSize = 14.000
- UICorner_4.Parent = TextButton_3
- -- Scripts:
- local function GQPSN_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local function OnClick()
- game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(100)
- end
- local button = script.Parent
- button.MouseButton1Click:Connect(OnClick)
- end
- coroutine.wrap(GQPSN_fake_script)()
- local function LBPOZHO_fake_script() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript', TextButton_2)
- local function OnClick()
- game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(0/0)
- end
- local button = script.Parent
- button.MouseButton1Click:Connect(OnClick)
- end
- coroutine.wrap(LBPOZHO_fake_script)()
- local function OAXYDFX_fake_script() -- TextButton_3.LocalScript
- local script = Instance.new('LocalScript', TextButton_3)
- local function OnClick()
- game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(0)
- end
- local button = script.Parent
- button.MouseButton1Click:Connect(OnClick)
- end
- coroutine.wrap(OAXYDFX_fake_script)()
- local function QRBV_fake_script() -- ImageLabel.LocalScript
- local script = Instance.new('LocalScript', ImageLabel)
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- 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
- 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)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- coroutine.wrap(QRBV_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement