Advertisement
liamglitches

Vehicle Sim GUI by NotJimbo#7666

May 5th, 2018
6,842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. -- GUI made by LiamGlitchesYT
  2. -- My Discord: NotJimbo#7666
  3. -- My V3RM: NotJimbo
  4. -- My YT: LiamGlitchesYT
  5.  
  6. local gui = Instance.new("ScreenGui")
  7. local frame = Instance.new("Frame")
  8. local color = Instance.new("Frame")
  9. local title = Instance.new("TextLabel")
  10. local credits = Instance.new("TextLabel")
  11. local createtp = Instance.new("TextButton")
  12. local speed = Instance.new("TextButton")
  13. local credits_2 = Instance.new("TextLabel")
  14.  
  15. -- Properties
  16.  
  17. gui.Name = "gui"
  18. gui.Parent = game.CoreGui
  19.  
  20. frame.Name = "frame"
  21. frame.Parent = gui
  22. frame.BackgroundColor3 = Color3.new(1, 0.666667, 1)
  23. frame.BorderSizePixel = 0
  24. frame.Position = UDim2.new(0.0113207549, 0, 0.355932206, 0)
  25. frame.Size = UDim2.new(0, 271, 0, 203)
  26. frame.Active = true
  27.  
  28. color.Name = "color"
  29. color.Parent = frame
  30. color.BackgroundColor3 = Color3.new(1, 1, 1)
  31. color.BorderSizePixel = 0
  32. color.Size = UDim2.new(0, 271, 0, 68)
  33.  
  34. title.Name = "title"
  35. title.Parent = color
  36. title.BackgroundColor3 = Color3.new(1, 1, 1)
  37. title.BackgroundTransparency = 1
  38. title.BorderSizePixel = 0
  39. title.Position = UDim2.new(0.1291513, 0, 0, 0)
  40. title.Size = UDim2.new(0, 200, 0, 50)
  41. title.Font = Enum.Font.Highway
  42. title.Text = "Vehicle simulator GUI"
  43. title.TextSize = 30
  44.  
  45. credits.Name = "credits"
  46. credits.Parent = color
  47. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  48. credits.BackgroundTransparency = 1
  49. credits.BorderSizePixel = 0
  50. credits.Position = UDim2.new(0.416974187, 0, 0.5, 0)
  51. credits.Size = UDim2.new(0, 200, 0, 50)
  52. credits.Font = Enum.Font.Highway
  53. credits.Text = "Jimbo#9089"
  54. credits.TextSize = 20
  55.  
  56. createtp.Name = "createtp"
  57. createtp.Parent = frame
  58. createtp.BackgroundColor3 = Color3.new(1, 1, 1)
  59. createtp.BorderSizePixel = 0
  60. createtp.Position = UDim2.new(0.0258302614, 0, 0.413793087, 0)
  61. createtp.Size = UDim2.new(0, 114, 0, 67)
  62. createtp.Font = Enum.Font.SourceSans
  63. createtp.Text = "Crate TP"
  64. createtp.TextSize = 30
  65.  
  66. speed.Name = "speed"
  67. speed.Parent = frame
  68. speed.BackgroundColor3 = Color3.new(1, 1, 1)
  69. speed.BorderSizePixel = 0
  70. speed.Position = UDim2.new(0.55350554, 0, 0.413793087, 0)
  71. speed.Size = UDim2.new(0, 114, 0, 67)
  72. speed.Font = Enum.Font.SourceSans
  73. speed.Text = "Speed"
  74. speed.TextSize = 30
  75.  
  76. credits_2.Name = "credits"
  77. credits_2.Parent = frame
  78. credits_2.BackgroundColor3 = Color3.new(1, 1, 1)
  79. credits_2.BackgroundTransparency = 1
  80. credits_2.BorderSizePixel = 0
  81. credits_2.Position = UDim2.new(0.127306283, 0, 0.820197046, 0)
  82. credits_2.Size = UDim2.new(0, 200, 0, 50)
  83. credits_2.Font = Enum.Font.Highway
  84. credits_2.Text = "As suggested by Demon#5038\n"
  85. credits_2.TextColor3 = Color3.new(1, 1, 1)
  86. credits_2.TextSize = 20
  87.  
  88. createtp.MouseButton1Down:connect(function()
  89. print("Crate Script created by Demon#5038")
  90.  
  91. local plr = game.Players.LocalPlayer
  92.  
  93. hum = plr.Character.HumanoidRootPart
  94. local descendants = game.Workspace:GetDescendants()
  95.  
  96.  
  97. for index, descendant in pairs(descendants) do
  98. if descendant:IsA("Model") and descendant.DataCost == 52 then
  99. print(descendant)
  100. if descendant.PrimaryPart:IsA("MeshPart") then
  101. print(descendant.Parent.Parent.Name)
  102. descendant.Name = "Lukki02RCrateScript"
  103. end
  104. end
  105. end
  106.  
  107. wait(0.5)
  108.  
  109. hum.CFrame = game.Workspace.Lukki02RCrateScript.PrimaryPart.CFrame + Vector3.new(math.random(10,15), math.random(10,15), math.random(10,15))
  110. end)
  111.  
  112. speed.MouseButton1Down:connect(function()
  113. veh = nil
  114. for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
  115. if v:IsA("Model") then
  116. if v.owner.Value == game.Players.LocalPlayer.Name then
  117. veh = v
  118. end
  119. end
  120. end
  121.  
  122. if veh then
  123. han = veh.Handling
  124. han.MaxSpeed.Value = 800
  125. han.Torque.Value = 30000
  126. han.SteeringRadiusConstant.Value = 3000
  127. han.FrictionRoad.Value = 200
  128. han.Gears.Value = 7
  129. han.Nitro.NitroSpeed.Value = 500
  130. han.Nitro.NitroForce.Value = 8000
  131. else
  132. print("Unable to find your vehicle!")
  133. end
  134. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement