Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = Instance.new("Frame")
- r.Position = UDim2.new(.25, 0, .25, 0)
- r.Size = UDim2.new(.5, 0, .5, 0)
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- -- Create Frame
- local frame = Instance.new("Frame")
- frame.Parent = screenGui
- frame.Position = UDim2.new(0, 25, 0, 25)
- frame.Size = UDim2.new(0, 100, 0, 50)
- local textLabel = Instance.new("TextLabel")
- textLabel.Parent = screenGui
- textLabel.Position = UDim2.new(0, 25, 0, 50)
- textLabel.Size = UDim2.new(0, 150, 0, 50)
- textLabel.BackgroundColor3 = BrickColor.White().Color
- textLabel.Text = "Wats gud Neptune? :3"
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- -- Create ImageLabel
- local imageLabel = Instance.new("ImageLabel")
- imageLabel.Parent = screenGui
- imageLabel.Position = UDim2.new(0, 25, 0, 50)
- imageLabel.Size = UDim2.new(0, 100, 0, 100)
- imageLabel.Image = "rbxassetid://133293265"
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- -- Create TextButton
- local textButton = Instance.new("TextButton")
- textButton.Parent = screenGui
- textButton.Position = UDim2.new(0, 25, 0, 50)
- textButton.Size = UDim2.new(0, 150, 0, 50)
- textButton.BackgroundColor3 = BrickColor.White().Color
- textButton.Text = "Click Me!"
- -- Bind function to button click
- textButton.MouseButton1Down:connect(function()
- textButton.Text = "I've been clicked!"
- end)
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- -- Create ImageButton
- local imageButton = Instance.new("ImageButton")
- imageButton.Parent = screenGui
- imageButton.Position = UDim2.new(0, 25, 0, 50)
- imageButton.Size = UDim2.new(0, 100, 0, 100)
- imageButton.Image = "rbxassetid://133293265"
- -- Create TextLabel to show after button click
- local text = Instance.new("TextLabel")
- text.Parent = screenGui
- text.Position = UDim2.new(0, 25, 0, 50)
- text.Size = UDim2.new(0, 100, 0, 100)
- text.Text = "I've been clicked!"
- text.BackgroundTransparency = 1
- text.Visible = false
- -- Bind function to button click
- imageButton.MouseButton1Click:connect(function()
- text.Visible = true
- end)
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- -- Create TextBox
- local textBox = Instance.new("TextBox")
- textBox.Parent = screenGui
- textBox.Position = UDim2.new(0, 25, 0, 50)
- textBox.Size = UDim2.new(0, 150, 0, 50)
- textBox.BackgroundColor3 = BrickColor.White().Color
- textBox.Text = "Neptune is a fkin BOSS"
- element.Position = UDim2.new(0, 100, 0, 100)
- element.Position = UDim2.new(0.25,0,0.25,0)
- element.Position = UDim2.new(0.5,0,0.5,-50)
- element.Size = UDim2.new(0.5, 0, 0.5, 0)
- element.Size = UDim2.new(1, 0, 1, 0)
- element.Size = UDim2.new(0,64,0,64)
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = Game.Players.LocalPlayer.PlayerGui
- local textLabel = Instance.new("TextLabel")
- textLabel.Parent = screenGui
- textLabel.Text = "Hello " .. Game.Players.LocalPlayer.Name
- textLabel.Size = UDim2.new(0, 100, 0, 30)
- local xPosition = 1
- local speed = 0.0025
- while true do
- xPosition = xPosition - speed
- textLabel.Position = UDim2.new(xPosition, 0, 0, 0)
- if xPosition < -0.1 then
- xPosition = 1
- end
- wait()
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = Game.Players.LocalPlayer.PlayerGui
- local textButton = Instance.new("TextButton")
- textButton.Size = UDim2.new(0,100,0,100)
- textButton.Parent = screenGui
- textButton.MouseButton1Down:connect(function()
- print("clicked")
- -- More code to handle the click event can go here
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement