Advertisement
Guest User

no

a guest
May 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.60 KB | None | 0 0
  1. -- credit to aqua#1213
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local red = Instance.new("TextButton")
  6. local blue = Instance.new("TextButton")
  7. local green = Instance.new("TextButton")
  8. local yellow = Instance.new("TextButton")
  9.  
  10. ScreenGui.Parent = game.CoreGui
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. Frame.BorderSizePixel = 8
  15. Frame.Position = UDim2.new(0, 1200, 0, 50)
  16. Frame.Size = UDim2.new(0, 100, 0, 100)
  17. Frame.Active = true
  18. Frame.Draggable = true
  19.  
  20. red.Name = "red"
  21. red.Parent = Frame
  22. red.BackgroundColor3 = Color3.new(1, 0, 0)
  23. red.BorderColor3 = Color3.new(0.423529, 0, 0)
  24. red.Size = UDim2.new(0, 50, 0, 50)
  25. red.Font = Enum.Font.SourceSans
  26. red.FontSize = Enum.FontSize.Size32
  27. red.Text = "RED"
  28. red.TextColor3 = Color3.new(0, 0, 0)
  29. red.TextSize = 30
  30.  
  31. blue.Name = "blue"
  32. blue.Parent = Frame
  33. blue.BackgroundColor3 = Color3.new(0, 0, 1)
  34. blue.BorderColor3 = Color3.new(0.00784314, 0, 0.313726)
  35. blue.Position = UDim2.new(0, 0, 0, 50)
  36. blue.Size = UDim2.new(0, 50, 0, 50)
  37. blue.Font = Enum.Font.SourceSans
  38. blue.FontSize = Enum.FontSize.Size24
  39. blue.Text = "BLUE"
  40. blue.TextColor3 = Color3.new(0, 0, 0)
  41. blue.TextScaled = true
  42. blue.TextSize = 20
  43. blue.TextWrapped = true
  44.  
  45. green.Name = "green"
  46. green.Parent = Frame
  47. green.BackgroundColor3 = Color3.new(0, 1, 0.2)
  48. green.BorderColor3 = Color3.new(0.168627, 0.313726, 0.0901961)
  49. green.Position = UDim2.new(0, 50, 0, 50)
  50. green.Size = UDim2.new(0, 50, 0, 50)
  51. green.Font = Enum.Font.SourceSans
  52. green.FontSize = Enum.FontSize.Size24
  53. green.Text = "GREEN"
  54. green.TextColor3 = Color3.new(0, 0, 0)
  55. green.TextSize = 20
  56. green.TextWrapped = true
  57.  
  58. yellow.Name = "yellow"
  59. yellow.Parent = Frame
  60. yellow.BackgroundColor3 = Color3.new(1, 0.917647, 0)
  61. yellow.BorderColor3 = Color3.new(0.647059, 0.54902, 0)
  62. yellow.Position = UDim2.new(0, 50, 0, 0)
  63. yellow.Size = UDim2.new(0, 50, 0, 50)
  64. yellow.Font = Enum.Font.SourceSans
  65. yellow.FontSize = Enum.FontSize.Size18
  66. yellow.Text = "YELLOW"
  67. yellow.TextColor3 = Color3.new(0, 0, 0)
  68. yellow.TextSize = 17
  69. yellow.TextWrapped = true
  70.  
  71. blue.MouseButton1Down:connect(function()
  72. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(6, 27, 124)
  73. end)
  74. green.MouseButton1Down:connect(function()
  75. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(7, 31, -125)
  76. end)
  77. red.MouseButton1Down:connect(function()
  78. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-138, 30, -7)
  79. end)
  80. yellow.MouseButton1Down:connect(function()
  81. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(120, 27, -2)
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement