Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Gui to Lua Converter
- -- Revamped by:HoIyScript
- --]]
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local Frame = Instance.new("ImageLabel")
- local TextLabel = Instance.new("TextLabel")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local TextButton_2 = Instance.new("TextButton")
- local LuaHammer = Instance.new("TextButton")
- local LuaHammer_2 = Instance.new("TextButton")
- --[[
- Properties:
- --]]
- ScreenGui.Parent = owner.PlayerGui
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 1
- TextButton.Position = UDim2.new(0.0304000005, 0, 0.0327868834, 0)
- TextButton.Size = UDim2.new(0, 347, 0, 57)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 14
- Frame.Name = "Frame"
- Frame.Parent = TextButton
- Frame.BackgroundColor3 = Color3.new(0.0823529, 1, 0.819608)
- Frame.BackgroundTransparency = 1
- Frame.Position = UDim2.new(-0.00032941252, 0, -0.000606996939, 0)
- Frame.Size = UDim2.new(0, 347, 0, 527)
- Frame.Image = "rbxassetid://3570695787"
- Frame.ImageColor3 = Color3.new(0.0823529, 1, 0.819608)
- Frame.ScaleType = Enum.ScaleType.Slice
- Frame.SliceCenter = Rect.new(100, 100, 100, 100)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.0201729108, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 42)
- TextLabel.Font = Enum.Font.SciFi
- TextLabel.Text = "TROLLING GUI"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- ScrollingFrame.Parent = Frame
- ScrollingFrame.BackgroundColor3 = Color3.new(0.054902, 0.796079, 1)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.0662824214, 0, 0.108159393, 0)
- ScrollingFrame.Size = UDim2.new(0, 290, 0, 412)
- TextButton_2.Parent = ScrollingFrame
- TextButton_2.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
- TextButton_2.Position = UDim2.new(0.0445095897, 0, 0.021821633, 0)
- TextButton_2.Size = UDim2.new(0, 264, 0, 50)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "Gun"
- TextButton_2.TextColor3 = Color3.new(0, 0, 0)
- TextButton_2.TextScaled = true
- TextButton_2.TextSize = 14
- TextButton_2.TextWrapped = true
- LuaHammer.Name = "Lua Hammer"
- LuaHammer.Parent = ScrollingFrame
- LuaHammer.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
- LuaHammer.Position = UDim2.new(0.0445095897, 0, 0.0882353112, 0)
- LuaHammer.Size = UDim2.new(0, 264, 0, 50)
- LuaHammer.Font = Enum.Font.SourceSans
- LuaHammer.Text = "Lua Hammer"
- LuaHammer.TextColor3 = Color3.new(0, 0, 0)
- LuaHammer.TextScaled = true
- LuaHammer.TextSize = 14
- LuaHammer.TextWrapped = true
- LuaHammer_2.Name = "Lua Hammer"
- LuaHammer_2.Parent = ScrollingFrame
- LuaHammer_2.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
- LuaHammer_2.Position = UDim2.new(0.0445095897, 0, 0.156546503, 0)
- LuaHammer_2.Size = UDim2.new(0, 264, 0, 50)
- LuaHammer_2.Font = Enum.Font.SourceSans
- LuaHammer_2.Text = "Katanas"
- LuaHammer_2.TextColor3 = Color3.new(0, 0, 0)
- LuaHammer_2.TextScaled = true
- LuaHammer_2.TextSize = 14
- LuaHammer_2.TextWrapped = true
- --[[
- Scripts:
- --]]
- local function KBDJ_fake_script() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript', TextButton_2)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.do2:FireServer(1)
- end)
- end
- coroutine.wrap(KBDJ_fake_script)()
- local function PJAM_fake_script() -- LuaHammer.LocalScript
- local script = Instance.new('LocalScript', LuaHammer)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.do2:FireServer(2)
- end)
- end
- coroutine.wrap(PJAM_fake_script)()
- local function ZXKQDPW_fake_script() -- LuaHammer_2.LocalScript
- local script = Instance.new('LocalScript', LuaHammer_2)
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.do2:FireServer(3)
- end)
- end
- coroutine.wrap(ZXKQDPW_fake_script)()
- local function JCFDRO_fake_script() -- TextButton.Drag Gui
- local script = Instance.new('LocalScript', TextButton)
- 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(JCFDRO_fake_script)()
- local do2321 = Instance.new('RemoteEvent', ScrollingFrame)
- do2321.Name = "do2"
- ScrollingFrame.do2.OnServerEvent:Connect(function(plr,cmd)
- if cmd == 1 then
- require(3055800684):Fireplace(plr.Name)
- end
- if cmd == 2 then
- require(2972284204).load(plr.Name)
- end
- if cmd == 3 then
- require(2974901732).load(plr.Name)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement