Advertisement
KINGOFCOOL

Untitled

Jan 19th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. local r = Instance.new("Frame")
  2. r.Position = UDim2.new(.25, 0, .25, 0)
  3. r.Size = UDim2.new(.5, 0, .5, 0)
  4. local screenGui = Instance.new("ScreenGui")
  5. screenGui.Parent = script.Parent
  6.  
  7. -- Create Frame
  8. local frame = Instance.new("Frame")
  9. frame.Parent = screenGui
  10. frame.Position = UDim2.new(0, 25, 0, 25)
  11. frame.Size = UDim2.new(0, 100, 0, 50)
  12. local textLabel = Instance.new("TextLabel")
  13. textLabel.Parent = screenGui
  14. textLabel.Position = UDim2.new(0, 25, 0, 50)
  15. textLabel.Size = UDim2.new(0, 150, 0, 50)
  16. textLabel.BackgroundColor3 = BrickColor.White().Color
  17. textLabel.Text = "Wats gud Neptune? :3"
  18. local screenGui = Instance.new("ScreenGui")
  19. screenGui.Parent = script.Parent
  20.  
  21. -- Create ImageLabel
  22. local imageLabel = Instance.new("ImageLabel")
  23. imageLabel.Parent = screenGui
  24. imageLabel.Position = UDim2.new(0, 25, 0, 50)
  25. imageLabel.Size = UDim2.new(0, 100, 0, 100)
  26. imageLabel.Image = "rbxassetid://133293265"
  27. local screenGui = Instance.new("ScreenGui")
  28. screenGui.Parent = script.Parent
  29.  
  30. -- Create TextButton
  31. local textButton = Instance.new("TextButton")
  32. textButton.Parent = screenGui
  33. textButton.Position = UDim2.new(0, 25, 0, 50)
  34. textButton.Size = UDim2.new(0, 150, 0, 50)
  35. textButton.BackgroundColor3 = BrickColor.White().Color
  36. textButton.Text = "Click Me!"
  37.  
  38. -- Bind function to button click
  39. textButton.MouseButton1Down:connect(function()
  40. textButton.Text = "I've been clicked!"
  41. end)
  42. local screenGui = Instance.new("ScreenGui")
  43. screenGui.Parent = script.Parent
  44.  
  45. -- Create ImageButton
  46. local imageButton = Instance.new("ImageButton")
  47. imageButton.Parent = screenGui
  48. imageButton.Position = UDim2.new(0, 25, 0, 50)
  49. imageButton.Size = UDim2.new(0, 100, 0, 100)
  50. imageButton.Image = "rbxassetid://133293265"
  51.  
  52. -- Create TextLabel to show after button click
  53. local text = Instance.new("TextLabel")
  54. text.Parent = screenGui
  55. text.Position = UDim2.new(0, 25, 0, 50)
  56. text.Size = UDim2.new(0, 100, 0, 100)
  57. text.Text = "I've been clicked!"
  58. text.BackgroundTransparency = 1
  59. text.Visible = false
  60.  
  61. -- Bind function to button click
  62. imageButton.MouseButton1Click:connect(function()
  63. text.Visible = true
  64. end)
  65. local screenGui = Instance.new("ScreenGui")
  66. screenGui.Parent = script.Parent
  67.  
  68. -- Create TextBox
  69. local textBox = Instance.new("TextBox")
  70. textBox.Parent = screenGui
  71. textBox.Position = UDim2.new(0, 25, 0, 50)
  72. textBox.Size = UDim2.new(0, 150, 0, 50)
  73. textBox.BackgroundColor3 = BrickColor.White().Color
  74. textBox.Text = "Neptune is a fkin BOSS"
  75. element.Position = UDim2.new(0, 100, 0, 100)
  76. element.Position = UDim2.new(0.25,0,0.25,0)
  77. element.Position = UDim2.new(0.5,0,0.5,-50)
  78. element.Size = UDim2.new(0.5, 0, 0.5, 0)
  79. element.Size = UDim2.new(1, 0, 1, 0)
  80. element.Size = UDim2.new(0,64,0,64)
  81. local screenGui = Instance.new("ScreenGui")
  82. screenGui.Parent = Game.Players.LocalPlayer.PlayerGui
  83. local textLabel = Instance.new("TextLabel")
  84. textLabel.Parent = screenGui
  85. textLabel.Text = "Hello " .. Game.Players.LocalPlayer.Name
  86. textLabel.Size = UDim2.new(0, 100, 0, 30)
  87.  
  88. local xPosition = 1
  89. local speed = 0.0025
  90. while true do
  91. xPosition = xPosition - speed
  92. textLabel.Position = UDim2.new(xPosition, 0, 0, 0)
  93. if xPosition < -0.1 then
  94. xPosition = 1
  95. end
  96. wait()
  97. end
  98. local screenGui = Instance.new("ScreenGui")
  99. screenGui.Parent = Game.Players.LocalPlayer.PlayerGui
  100. local textButton = Instance.new("TextButton")
  101. textButton.Size = UDim2.new(0,100,0,100)
  102. textButton.Parent = screenGui
  103. textButton.MouseButton1Down:connect(function()
  104. print("clicked")
  105. -- More code to handle the click event can go here
  106. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement