2P1ooo1P2

Kdj

Jun 4th, 2025
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. local a1x=Instance.new("ScreenGui")
  2. a1x.Name="xGuiY"
  3. a1x.ResetOnSpawn=false
  4. a1x.Parent=game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. local b2y=Instance.new("Frame")
  7. b2y.Name="fMain"
  8. b2y.Size=UDim2.new(0,250,0,300)
  9. b2y.Position=UDim2.new(0.1,0,0.1,0)
  10. b2y.BackgroundColor3=Color3.fromRGB(35,35,35)
  11. b2y.BorderSizePixel=0
  12. b2y.Active=true
  13. b2y.Draggable=true
  14. b2y.Parent=a1x
  15.  
  16. local c3z=Instance.new("TextLabel")
  17. c3z.Text="Scriptbox | Car Crash"
  18. c3z.Size=UDim2.new(1,0,0,30)
  19. c3z.BackgroundColor3=Color3.fromRGB(20,20,20)
  20. c3z.TextColor3=Color3.fromRGB(255,255,255)
  21. c3z.Font=Enum.Font.SourceSansBold
  22. c3z.TextSize=18
  23. c3z.Parent=b2y
  24.  
  25. local d4w=Instance.new("TextButton")
  26. d4w.Text="Hide"
  27. d4w.Size=UDim2.new(0.5,0,0,30)
  28. d4w.Position=UDim2.new(0,0,1,-30)
  29. d4w.BackgroundColor3=Color3.fromRGB(255,70,70)
  30. d4w.TextColor3=Color3.fromRGB(255,255,255)
  31. d4w.Font=Enum.Font.SourceSans
  32. d4w.TextSize=16
  33. d4w.Parent=b2y
  34.  
  35. local e5v=Instance.new("TextButton")
  36. e5v.Text="Show GUI"
  37. e5v.Size=UDim2.new(0,160,0,30)
  38. e5v.Position=UDim2.new(0.1,0,0.5,0)
  39. e5v.BackgroundColor3=Color3.fromRGB(60,180,75)
  40. e5v.TextColor3=Color3.fromRGB(255,255,255)
  41. e5v.Font=Enum.Font.SourceSans
  42. e5v.TextSize=16
  43. e5v.Visible=false
  44. e5v.Parent=a1x
  45.  
  46. d4w.MouseButton1Click:Connect(function()
  47. b2y.Visible=false
  48. e5v.Visible=true
  49. end)
  50.  
  51. e5v.MouseButton1Click:Connect(function()
  52. b2y.Visible=true
  53. e5v.Visible=false
  54. end)
  55.  
  56. local function zxc(vtx,lol,fnk)
  57. local btn=Instance.new("TextButton")
  58. btn.Text=vtx
  59. btn.Size=UDim2.new(0.9,0,0,30)
  60. btn.Position=UDim2.new(0.05,0,0,lol)
  61. btn.BackgroundColor3=Color3.fromRGB(45,45,45)
  62. btn.TextColor3=Color3.fromRGB(255,255,255)
  63. btn.Font=Enum.Font.SourceSans
  64. btn.TextSize=16
  65. btn.Parent=b2y
  66. btn.MouseButton1Click:Connect(fnk)
  67. end
  68.  
  69. zxc("Classic F1 Car",40,function()
  70. local x1={"Classic F1 Car"}
  71. game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(x1))
  72. end)
  73.  
  74. zxc("Lego Car",80,function()
  75. local x2={"Lego Car"}
  76. game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(x2))
  77. end)
  78.  
  79. zxc("Helicopter",120,function()
  80. local x3={"Helicopter"}
  81. game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(x3))
  82. end)
  83.  
  84. zxc("Phantom Wedge",160,function()
  85. local x4={"Phantom Wedge"}
  86. game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(x4))
  87. end)
  88.  
  89. zxc("Lightning McQueen",200,function()
  90. local x5={"Lightning Mcqueen"}
  91. game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(x5))
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment