Advertisement
LSJiqueue

Car Driving Simulator v2

Feb 24th, 2024
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.28 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local KeySystem = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local TextLabel = Instance.new("TextLabel")
  10. local Input = Instance.new("Frame")
  11. local TextBox = Instance.new("TextBox")
  12. local UICorner_2 = Instance.new("UICorner")
  13. local Submit = Instance.new("Frame")
  14. local TextButton = Instance.new("TextButton")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local Close = Instance.new("Frame")
  17. local TextButton_2 = Instance.new("TextButton")
  18. local UICorner_4 = Instance.new("UICorner")
  19. local Status = Instance.new("TextLabel")
  20. local Menu = Instance.new("ScrollingFrame")
  21. local PlaceHolder = Instance.new("TextButton")
  22. local UIGridLayout = Instance.new("UIGridLayout")
  23. local CloseScript = Instance.new("TextButton")
  24.  
  25. --Properties:
  26.  
  27. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29.  
  30. KeySystem.Name = "KeySystem"
  31. KeySystem.Parent = ScreenGui
  32. KeySystem.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  33. KeySystem.BorderColor3 = Color3.fromRGB(0, 0, 0)
  34. KeySystem.BorderSizePixel = 0
  35. KeySystem.Position = UDim2.new(0.36489439, 0, 0.237717912, 0)
  36. KeySystem.Size = UDim2.new(0.27021122, 0, 0.522979379, 0)
  37. KeySystem.Visible = false
  38.  
  39. UICorner.Parent = KeySystem
  40.  
  41. TextLabel.Parent = KeySystem
  42. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextLabel.BackgroundTransparency = 1.000
  44. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  45. TextLabel.BorderSizePixel = 0
  46. TextLabel.Size = UDim2.new(1, 0, 0.156060606, 0)
  47. TextLabel.Font = Enum.Font.Cartoon
  48. TextLabel.Text = "Please enter the key"
  49. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  50. TextLabel.TextScaled = true
  51. TextLabel.TextSize = 14.000
  52. TextLabel.TextStrokeTransparency = 0.000
  53. TextLabel.TextWrapped = true
  54.  
  55. Input.Name = "Input"
  56. Input.Parent = KeySystem
  57. Input.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  58. Input.BorderColor3 = Color3.fromRGB(0, 0, 0)
  59. Input.BorderSizePixel = 0
  60. Input.Position = UDim2.new(0.0835579485, 0, 0.603030324, 0)
  61. Input.Size = UDim2.new(0.835579515, 0, 0.130303025, 0)
  62.  
  63. TextBox.Parent = Input
  64. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  65. TextBox.BackgroundTransparency = 1.000
  66. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  67. TextBox.BorderSizePixel = 0
  68. TextBox.Size = UDim2.new(1, 0, 1, 0)
  69. TextBox.Font = Enum.Font.Cartoon
  70. TextBox.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
  71. TextBox.PlaceholderText = "Enter Key Here."
  72. TextBox.Text = ""
  73. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. TextBox.TextScaled = true
  75. TextBox.TextSize = 14.000
  76. TextBox.TextWrapped = true
  77.  
  78. UICorner_2.Parent = Input
  79.  
  80. Submit.Name = "Submit"
  81. Submit.Parent = KeySystem
  82. Submit.BackgroundColor3 = Color3.fromRGB(46, 104, 35)
  83. Submit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  84. Submit.BorderSizePixel = 0
  85. Submit.Position = UDim2.new(0.26954177, 0, 0.812121212, 0)
  86. Submit.Size = UDim2.new(0.458221018, 0, 0.0939393938, 0)
  87.  
  88. TextButton.Parent = Submit
  89. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. TextButton.BackgroundTransparency = 1.000
  91. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  92. TextButton.BorderSizePixel = 0
  93. TextButton.Size = UDim2.new(1, 0, 1, 0)
  94. TextButton.Font = Enum.Font.Cartoon
  95. TextButton.Text = "Verify"
  96. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. TextButton.TextScaled = true
  98. TextButton.TextSize = 14.000
  99. TextButton.TextWrapped = true
  100.  
  101. UICorner_3.Parent = Submit
  102.  
  103. Close.Name = "Close"
  104. Close.Parent = KeySystem
  105. Close.BackgroundColor3 = Color3.fromRGB(76, 0, 1)
  106. Close.BorderColor3 = Color3.fromRGB(0, 0, 0)
  107. Close.BorderSizePixel = 0
  108. Close.Position = UDim2.new(0.26954177, 0, 0.190909088, 0)
  109. Close.Size = UDim2.new(0.458221018, 0, 0.0939393938, 0)
  110.  
  111. TextButton_2.Parent = Close
  112. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. TextButton_2.BackgroundTransparency = 1.000
  114. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  115. TextButton_2.BorderSizePixel = 0
  116. TextButton_2.Size = UDim2.new(1, 0, 1, 0)
  117. TextButton_2.Font = Enum.Font.Cartoon
  118. TextButton_2.Text = "Close Menu"
  119. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  120. TextButton_2.TextScaled = true
  121. TextButton_2.TextSize = 14.000
  122. TextButton_2.TextWrapped = true
  123.  
  124. UICorner_4.Parent = Close
  125.  
  126. Status.Name = "Status"
  127. Status.Parent = KeySystem
  128. Status.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. Status.BackgroundTransparency = 1.000
  130. Status.BorderColor3 = Color3.fromRGB(0, 0, 0)
  131. Status.BorderSizePixel = 0
  132. Status.Position = UDim2.new(0.256064683, 0, 0.393939406, 0)
  133. Status.Size = UDim2.new(0.485175192, 0, 0.110606059, 0)
  134. Status.Font = Enum.Font.Cartoon
  135. Status.Text = ""
  136. Status.TextColor3 = Color3.fromRGB(255, 255, 255)
  137. Status.TextScaled = true
  138. Status.TextSize = 14.000
  139. Status.TextStrokeTransparency = 0.000
  140. Status.TextWrapped = true
  141.  
  142. Menu.Name = "Menu"
  143. Menu.Parent = ScreenGui
  144. Menu.Active = true
  145. Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  146. Menu.BorderColor3 = Color3.fromRGB(0, 0, 0)
  147. Menu.BorderSizePixel = 0
  148. Menu.Position = UDim2.new(0.367079377, 0, 0.236133128, 0)
  149. Menu.Size = UDim2.new(0.265112877, 0, 0.526148975, 0)
  150. Menu.Visible = false
  151. Menu.CanvasSize = UDim2.new(0, 0, 50, 0)
  152.  
  153. PlaceHolder.Name = "PlaceHolder"
  154. PlaceHolder.Parent = Menu
  155. PlaceHolder.BackgroundColor3 = Color3.fromRGB(170, 255, 234)
  156. PlaceHolder.BorderColor3 = Color3.fromRGB(0, 0, 0)
  157. PlaceHolder.BorderSizePixel = 2
  158. PlaceHolder.Position = UDim2.new(0, 0, 0.0451807231, 0)
  159. PlaceHolder.Size = UDim2.new(0, 150, 0, 50)
  160. PlaceHolder.Font = Enum.Font.Cartoon
  161. PlaceHolder.TextColor3 = Color3.fromRGB(0, 0, 0)
  162. PlaceHolder.TextScaled = true
  163. PlaceHolder.TextSize = 14.000
  164. PlaceHolder.TextWrapped = true
  165.  
  166. UIGridLayout.Parent = Menu
  167. UIGridLayout.CellPadding = UDim2.new(0.0299999993, 0, 0.00100000005, 0)
  168. UIGridLayout.CellSize = UDim2.new(0.25, 0, 0.00300000003, 0)
  169.  
  170. CloseScript.Name = "CloseScript"
  171. CloseScript.Parent = ScreenGui
  172. CloseScript.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  173. CloseScript.BorderColor3 = Color3.fromRGB(0, 0, 0)
  174. CloseScript.BorderSizePixel = 0
  175. CloseScript.Position = UDim2.new(0.00509832473, 0, 0.475435823, 0)
  176. CloseScript.Size = UDim2.new(0.0233066287, 0, 0.0475435853, 0)
  177. CloseScript.Font = Enum.Font.Cartoon
  178. CloseScript.Text = "X"
  179. CloseScript.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. CloseScript.TextScaled = true
  181. CloseScript.TextSize = 14.000
  182. CloseScript.TextStrokeTransparency = 0.000
  183. CloseScript.TextWrapped = true
  184.  
  185. -- Scripts:
  186.  
  187. local function OJRYRXX_fake_script() -- TextButton_2.LocalScript
  188.     local script = Instance.new('LocalScript', TextButton_2)
  189.  
  190.     script.Parent.MouseButton1Click:Connect(function()
  191.         script.Parent.Parent.Parent.Parent:Destroy()
  192.     end)
  193. end
  194. coroutine.wrap(OJRYRXX_fake_script)()
  195. local function EVLUJK_fake_script() -- KeySystem.Main
  196.     local script = Instance.new('LocalScript', KeySystem)
  197.  
  198.     local submit = script.Parent:WaitForChild("Submit")
  199.     local input = script.Parent:WaitForChild("Input")
  200.     local key = "LSJiqueue"
  201.     submit.TextButton.MouseButton1Click:Connect(function()
  202.         if tostring(input.TextBox.Text) == key or tostring(input.TextBox.Text) == key:lower() then
  203.             script.Parent.Visible = false
  204.             script.Parent.Status.Text = ""
  205.             script.Parent.Status.TextColor3 = Color3.fromRGB(255,255,255)
  206.             script.Parent.Parent:WaitForChild("Menu").Visible = true
  207.             local hint = Instance.new("Hint", workspace)
  208.             hint.Text = "Press LeftBracket ']' to hide/unhide the menu! Have Fun!"
  209.             task.wait(3)
  210.             hint:Destroy()
  211.         else
  212.             script.Parent.Status.Text = "Incorrect Code"
  213.             script.Parent.Status.TextColor3 = Color3.fromRGB(255,0,0)
  214.         end
  215.     end)
  216.    
  217. end
  218. coroutine.wrap(EVLUJK_fake_script)()
  219. local function VMCHU_fake_script() -- ScreenGui.LocalScript
  220.     local script = Instance.new('LocalScript', ScreenGui)
  221.  
  222.     script.Parent.KeySystem.Visible = true
  223.     script.Parent.Menu.Visible = false
  224. end
  225. coroutine.wrap(VMCHU_fake_script)()
  226. local function RECQZ_fake_script() -- Menu.toggle
  227.     local script = Instance.new('LocalScript', Menu)
  228.  
  229.     local uis = game:GetService("UserInputService")
  230.     uis.InputBegan:Connect(function(i, g)
  231.         if g then return end
  232.         if i.KeyCode == Enum.KeyCode.LeftBracket then
  233.             script.Parent.Visible = not script.Parent.Visible
  234.             script.Parent.CloseScript.Visible = false
  235.         end
  236.     end)
  237.    
  238. end
  239. coroutine.wrap(RECQZ_fake_script)()
  240. local function KBMNIKX_fake_script() -- Menu.create
  241.     local script = Instance.new('LocalScript', Menu)
  242.  
  243.     local p = game.Players.LocalPlayer
  244.     local carShop = p.PlayerGui:FindFirstChild("CarShop")
  245.     local carShop2 = p.PlayerGui:FindFirstChild("CarShop2")
  246.     for i, v in pairs(carShop:WaitForChild("Frame"):GetDescendants()) do
  247.         if v:IsA("ImageLabel") and v.Name ~= "ImageLabel" then
  248.             local newtextButton = script.Parent.PlaceHolder:Clone()
  249.             newtextButton.Visible = true
  250.             newtextButton.Parent = script.Parent
  251.             newtextButton.Name = v.Name
  252.             newtextButton.Text = v.model.Text
  253.             newtextButton.MouseButton1Click:Connect(function()
  254.                 game.ReplicatedStorage:WaitForChild("DespawnCar"):FireServer()
  255.                 game.ReplicatedStorage:FindFirstChild("SpawnCar"):FireServer(newtextButton.Name)
  256.             end)
  257.         end
  258.     end
  259.     for i, v in pairs(carShop2:WaitForChild("Frame"):GetDescendants()) do
  260.         if v:IsA("ImageLabel") and v.Name ~= "ImageLabel" then
  261.             print(v.Name)
  262.             local newtextButton = script.Parent.PlaceHolder:Clone()
  263.             newtextButton.Visible = true
  264.             newtextButton.Parent = script.Parent
  265.             newtextButton.Name = v.Name
  266.             newtextButton.Text = v.model.Text
  267.             newtextButton.MouseButton1Click:Connect(function()
  268.                 game.ReplicatedStorage:WaitForChild("DespawnCar"):FireServer()
  269.                 if newtextButton.Text == "(Renault) Premium 440" then
  270.                     game.ReplicatedStorage:FindFirstChild("SpawnCar"):FireServer("prem")
  271.                 end
  272.                 game.ReplicatedStorage:FindFirstChild("SpawnCar"):FireServer(newtextButton.Name)
  273.             end)
  274.         end
  275.     end
  276. end
  277. coroutine.wrap(KBMNIKX_fake_script)()
  278. local function JICHRL_fake_script() -- Menu.draggable
  279.     local script = Instance.new('LocalScript', Menu)
  280.  
  281.     script.Parent.Draggable = true
  282.     script.Parent.Selectable = true
  283. end
  284. coroutine.wrap(JICHRL_fake_script)()
  285. local function KGTG_fake_script() -- CloseScript.LocalScript
  286.     local script = Instance.new('LocalScript', CloseScript)
  287.  
  288.     script.Parent.MouseButton1Click:Connect(function()
  289.         script.Parent.Parent:Destroy()
  290.     end)
  291. end
  292. coroutine.wrap(KGTG_fake_script)()
  293.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement