Advertisement
Upscalefanatic3

Snow Shoveling Simulator Spawn a vehicle with a custom color

Jan 23rd, 2018
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. -- Directions
  2.  
  3. -- 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
  4. -- 2. Enter the name of the vehicle you'd like to spawn (you have to own the vehicle) where it says "Name".
  5. -- 3. Press spawn
  6.  
  7.  
  8. local ScreenGui = Instance.new("ScreenGui")
  9. local Frame = Instance.new("Frame")
  10. local R = Instance.new("TextBox")
  11. local TextLabel = Instance.new("TextLabel")
  12. local B = Instance.new("TextBox")
  13. local TextLabel_2 = Instance.new("TextLabel")
  14. local G = Instance.new("TextBox")
  15. local TextLabel_3 = Instance.new("TextLabel")
  16. local Color = Instance.new("Frame")
  17. local Frame_2 = Instance.new("Frame")
  18. local Spawn = Instance.new("TextButton")
  19. local Name = Instance.new("TextBox")
  20.  
  21.  
  22. ScreenGui.Parent = game.CoreGui
  23.  
  24. Frame.Parent = ScreenGui
  25. Frame.Active = true
  26. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  27. Frame.BackgroundTransparency = 0.30000001192093
  28. Frame.Draggable = true
  29. Frame.Position = UDim2.new(0.300000012, 0, 0.5, 0)
  30. Frame.Size = UDim2.new(0.100000001, 100, 0.200000003, 100)
  31.  
  32. R.Name = "R"
  33. R.Parent = Frame
  34. R.BackgroundColor3 = Color3.new(0, 0, 0)
  35. R.BorderColor3 = Color3.new(1, 1, 1)
  36. R.Position = UDim2.new(0.100000001, 0, 0.200000003, 0)
  37. R.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
  38. R.Font = Enum.Font.SourceSans
  39. R.PlaceholderText = "0"
  40. R.Text = "0"
  41. R.TextColor3 = Color3.new(1, 1, 1)
  42. R.TextSize = 14
  43.  
  44. TextLabel.Parent = R
  45. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  46. TextLabel.BackgroundTransparency = 1
  47. TextLabel.Position = UDim2.new(-0.400000006, 0, 0, 0)
  48. TextLabel.Size = UDim2.new(0.300000012, 0, 1, 0)
  49. TextLabel.Font = Enum.Font.SourceSans
  50. TextLabel.Text = "R"
  51. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  52. TextLabel.TextSize = 20
  53.  
  54. B.Name = "B"
  55. B.Parent = Frame
  56. B.BackgroundColor3 = Color3.new(0, 0, 0)
  57. B.BorderColor3 = Color3.new(1, 1, 1)
  58. B.Position = UDim2.new(0.100000001, 0, 0.600000024, 0)
  59. B.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
  60. B.Font = Enum.Font.SourceSans
  61. B.PlaceholderText = "0"
  62. B.Text = "0"
  63. B.TextColor3 = Color3.new(1, 1, 1)
  64. B.TextSize = 14
  65.  
  66. TextLabel_2.Parent = B
  67. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  68. TextLabel_2.BackgroundTransparency = 1
  69. TextLabel_2.Position = UDim2.new(-0.400000006, 0, 0, 0)
  70. TextLabel_2.Size = UDim2.new(0.300000012, 0, 1, 0)
  71. TextLabel_2.Font = Enum.Font.SourceSans
  72. TextLabel_2.Text = "B"
  73. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  74. TextLabel_2.TextSize = 20
  75.  
  76. G.Name = "G"
  77. G.Parent = Frame
  78. G.BackgroundColor3 = Color3.new(0, 0, 0)
  79. G.BorderColor3 = Color3.new(1, 1, 1)
  80. G.Position = UDim2.new(0.100000001, 0, 0.400000006, 0)
  81. G.Size = UDim2.new(0.219999999, 0, 0.0799999982, 0)
  82. G.Font = Enum.Font.SourceSans
  83. G.Text = "0"
  84. G.TextColor3 = Color3.new(1, 1, 1)
  85. G.TextSize = 14
  86.  
  87. TextLabel_3.Parent = G
  88. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  89. TextLabel_3.BackgroundTransparency = 1
  90. TextLabel_3.Position = UDim2.new(-0.400000006, 0, 0, 0)
  91. TextLabel_3.Size = UDim2.new(0.300000012, 0, 1, 0)
  92. TextLabel_3.Font = Enum.Font.SourceSans
  93. TextLabel_3.Text = "G"
  94. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  95. TextLabel_3.TextSize = 20
  96.  
  97. Color.Name = "Color"
  98. Color.Parent = Frame
  99. Color.BackgroundColor3 = Color3.new(1, 1, 1)
  100. Color.Position = UDim2.new(0.400000006, 0, 0.200000003, 0)
  101. Color.Size = UDim2.new(0.50999999, 0, 0.50999999, 0)
  102.  
  103. Frame_2.Parent = Frame
  104. Frame_2.BackgroundColor3 = Color3.new(0, 0, 0)
  105. Frame_2.Size = UDim2.new(1, 0, 0.119999997, 0)
  106.  
  107. Spawn.Name = "Spawn"
  108. Spawn.Parent = Frame
  109. Spawn.BackgroundColor3 = Color3.new(0, 0, 0)
  110. Spawn.BorderColor3 = Color3.new(1, 1, 1)
  111. Spawn.Position = UDim2.new(0.600000024, 0, 0.800000012, 0)
  112. Spawn.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
  113. Spawn.Font = Enum.Font.SourceSans
  114. Spawn.Text = "Spawn"
  115. Spawn.TextColor3 = Color3.new(1, 1, 1)
  116. Spawn.TextSize = 14
  117. Name.Name = "Name"
  118. Name.Parent = Frame
  119. Name.BackgroundColor3 = Color3.new(0, 0, 0)
  120. Name.BorderColor3 = Color3.new(1, 1, 1)
  121. Name.Position = UDim2.new(0.100000001, 0, 0.800000012, 0)
  122. Name.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
  123. Name.Font = Enum.Font.SourceSans
  124. Name.PlaceholderText = "Name"
  125. Name.Text = "Name"
  126. Name.TextColor3 = Color3.new(1, 1, 1)
  127. Name.TextSize = 14
  128. function changeframecolor()
  129. while true do
  130. wait(0.1)
  131. Color.BackgroundColor3 = Color3.new(R.Text,B.Text,G.Text)
  132. end
  133. end
  134. spawn(changeframecolor)
  135. Spawn.MouseButton1Click:connect(function()
  136. game.ReplicatedStorage.RemoteEvents.BuyVehicle:FireServer(Name.Text,Color3.new(R.Text,B.Text,G.Text))
  137. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement