Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Directions
- -- 1. Enter your desired RGB color. If you do not know how to use this for reference: https://www.w3schools.com/colors/colors_rgb.asp
- -- 2. Enter the name of the vehicle you'd like to spawn (you have to own the vehicle) where it says "Name".
- -- 3. Press spawn
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local R = Instance.new("TextBox")
- local TextLabel = Instance.new("TextLabel")
- local B = Instance.new("TextBox")
- local TextLabel_2 = Instance.new("TextLabel")
- local G = Instance.new("TextBox")
- local TextLabel_3 = Instance.new("TextLabel")
- local Color = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local Spawn = Instance.new("TextButton")
- local Name = Instance.new("TextBox")
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.30000001192093
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.300000012, 0, 0.5, 0)
- Frame.Size = UDim2.new(0.100000001, 100, 0.200000003, 100)
- R.Name = "R"
- R.Parent = Frame
- R.BackgroundColor3 = Color3.new(0, 0, 0)
- R.BorderColor3 = Color3.new(1, 1, 1)
- R.Position = UDim2.new(0.100000001, 0, 0.200000003, 0)
- R.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
- R.Font = Enum.Font.SourceSans
- R.PlaceholderText = "0"
- R.Text = "0"
- R.TextColor3 = Color3.new(1, 1, 1)
- R.TextSize = 14
- TextLabel.Parent = R
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(-0.400000006, 0, 0, 0)
- TextLabel.Size = UDim2.new(0.300000012, 0, 1, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "R"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 20
- B.Name = "B"
- B.Parent = Frame
- B.BackgroundColor3 = Color3.new(0, 0, 0)
- B.BorderColor3 = Color3.new(1, 1, 1)
- B.Position = UDim2.new(0.100000001, 0, 0.600000024, 0)
- B.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
- B.Font = Enum.Font.SourceSans
- B.PlaceholderText = "0"
- B.Text = "0"
- B.TextColor3 = Color3.new(1, 1, 1)
- B.TextSize = 14
- TextLabel_2.Parent = B
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(-0.400000006, 0, 0, 0)
- TextLabel_2.Size = UDim2.new(0.300000012, 0, 1, 0)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "B"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextSize = 20
- G.Name = "G"
- G.Parent = Frame
- G.BackgroundColor3 = Color3.new(0, 0, 0)
- G.BorderColor3 = Color3.new(1, 1, 1)
- G.Position = UDim2.new(0.100000001, 0, 0.400000006, 0)
- G.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
- G.Font = Enum.Font.SourceSans
- G.Text = "0"
- G.TextColor3 = Color3.new(1, 1, 1)
- G.TextSize = 14
- TextLabel_3.Parent = G
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BackgroundTransparency = 1
- TextLabel_3.Position = UDim2.new(-0.400000006, 0, 0, 0)
- TextLabel_3.Size = UDim2.new(0.300000012, 0, 1, 0)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.Text = "G"
- TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_3.TextSize = 20
- Color.Name = "Color"
- Color.Parent = Frame
- Color.BackgroundColor3 = Color3.new(1, 1, 1)
- Color.Position = UDim2.new(0.400000006, 0, 0.200000003, 0)
- Color.Size = UDim2.new(0.50999999, 0, 0.50999999, 0)
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame_2.Size = UDim2.new(1, 0, 0.119999997, 0)
- Spawn.Name = "Spawn"
- Spawn.Parent = Frame
- Spawn.BackgroundColor3 = Color3.new(0, 0, 0)
- Spawn.BorderColor3 = Color3.new(1, 1, 1)
- Spawn.Position = UDim2.new(0.600000024, 0, 0.800000012, 0)
- Spawn.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- Spawn.Font = Enum.Font.SourceSans
- Spawn.Text = "Spawn"
- Spawn.TextColor3 = Color3.new(1, 1, 1)
- Spawn.TextSize = 14
- Name.Name = "Name"
- Name.Parent = Frame
- Name.BackgroundColor3 = Color3.new(0, 0, 0)
- Name.BorderColor3 = Color3.new(1, 1, 1)
- Name.Position = UDim2.new(0.100000001, 0, 0.800000012, 0)
- Name.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- Name.Font = Enum.Font.SourceSans
- Name.PlaceholderText = "Name"
- Name.Text = "Name"
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextSize = 14
- function changeframecolor()
- while true do
- wait(0.1)
- Color.BackgroundColor3 = Color3.new(R.Text,B.Text,G.Text)
- end
- end
- spawn(changeframecolor)
- Spawn.MouseButton1Click:connect(function()
- game.ReplicatedStorage.RemoteEvents.BuyVehicle:FireServer(Name.Text,Color3.new(R.Text,B.Text,G.Text))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement