Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- credit to aqua#1213
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local red = Instance.new("TextButton")
- local blue = Instance.new("TextButton")
- local green = Instance.new("TextButton")
- local yellow = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderSizePixel = 8
- Frame.Position = UDim2.new(0, 1200, 0, 50)
- Frame.Size = UDim2.new(0, 100, 0, 100)
- Frame.Active = true
- Frame.Draggable = true
- red.Name = "red"
- red.Parent = Frame
- red.BackgroundColor3 = Color3.new(1, 0, 0)
- red.BorderColor3 = Color3.new(0.423529, 0, 0)
- red.Size = UDim2.new(0, 50, 0, 50)
- red.Font = Enum.Font.SourceSans
- red.FontSize = Enum.FontSize.Size32
- red.Text = "RED"
- red.TextColor3 = Color3.new(0, 0, 0)
- red.TextSize = 30
- blue.Name = "blue"
- blue.Parent = Frame
- blue.BackgroundColor3 = Color3.new(0, 0, 1)
- blue.BorderColor3 = Color3.new(0.00784314, 0, 0.313726)
- blue.Position = UDim2.new(0, 0, 0, 50)
- blue.Size = UDim2.new(0, 50, 0, 50)
- blue.Font = Enum.Font.SourceSans
- blue.FontSize = Enum.FontSize.Size24
- blue.Text = "BLUE"
- blue.TextColor3 = Color3.new(0, 0, 0)
- blue.TextScaled = true
- blue.TextSize = 20
- blue.TextWrapped = true
- green.Name = "green"
- green.Parent = Frame
- green.BackgroundColor3 = Color3.new(0, 1, 0.2)
- green.BorderColor3 = Color3.new(0.168627, 0.313726, 0.0901961)
- green.Position = UDim2.new(0, 50, 0, 50)
- green.Size = UDim2.new(0, 50, 0, 50)
- green.Font = Enum.Font.SourceSans
- green.FontSize = Enum.FontSize.Size24
- green.Text = "GREEN"
- green.TextColor3 = Color3.new(0, 0, 0)
- green.TextSize = 20
- green.TextWrapped = true
- yellow.Name = "yellow"
- yellow.Parent = Frame
- yellow.BackgroundColor3 = Color3.new(1, 0.917647, 0)
- yellow.BorderColor3 = Color3.new(0.647059, 0.54902, 0)
- yellow.Position = UDim2.new(0, 50, 0, 0)
- yellow.Size = UDim2.new(0, 50, 0, 50)
- yellow.Font = Enum.Font.SourceSans
- yellow.FontSize = Enum.FontSize.Size18
- yellow.Text = "YELLOW"
- yellow.TextColor3 = Color3.new(0, 0, 0)
- yellow.TextSize = 17
- yellow.TextWrapped = true
- blue.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(6, 27, 124)
- end)
- green.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(7, 31, -125)
- end)
- red.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-138, 30, -7)
- end)
- yellow.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(120, 27, -2)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement