Pkxdjosh56_roblox

Fe car script

May 20th, 2023
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.78 KB | None | 0 0
  1. --R6 only
  2.  
  3. -- IF YOU WANT IT TO SHOW AN ACTUAL CAR INSTEAD OF BLOCKS, USE V2 (the car accessory does cost robux, if you don't have any just use this script)
  4. -- V2: https://pastebin.com/dUYxNcbK
  5.  
  6. -- If you were getting kicked I've updated the script so it works
  7.  
  8. --required hats/hair:
  9. --https://www.roblox.com/catalog/301818806/Serenas-Hair
  10. --https://www.roblox.com/catalog/48474313/Red-Roblox-Cap
  11. --https://www.roblox.com/catalog/62724852/Chestnut-Bun
  12. --https://www.roblox.com/catalog/451220849/Lavender-Updo
  13. --https://www.roblox.com/catalog/48474294/ROBLOX-Girl-Hair
  14. --https://www.roblox.com/catalog/376527115/Jade-Necklace-with-Shell-Pendant
  15. --https://www.roblox.com/catalog/3033910400/International-Fedora-Germany
  16. --https://www.roblox.com/catalog/4489239608/International-Fedora-United-Kingdom
  17. --https://www.roblox.com/catalog/63690008/Pal-Hair
  18. --https://www.roblox.com/catalog/62234425/Brown-Hair
  19.  
  20.  
  21. player = game.Players.LocalPlayer
  22. driving = false
  23. debugtrans = 1
  24.  
  25. local model = Instance.new("Model",workspace)
  26.  
  27. local chas1 = Instance.new("Part",model)
  28. chas1.Size = Vector3.new(1,1,2)
  29. chas1.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  30. chas1.Transparency = debugtrans
  31.  
  32. local chas2 = Instance.new("Part",model)
  33. chas2.Size = Vector3.new(1,1,2)
  34. chas2.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  35. chas2.Transparency = debugtrans
  36.  
  37. local chas3 = Instance.new("Part",model)
  38. chas3.Size = Vector3.new(1,1,2)
  39. chas3.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  40. chas3.Transparency = debugtrans
  41.  
  42. local chas4 = Instance.new("Part",model)
  43. chas4.Size = Vector3.new(1,1,2)
  44. chas4.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  45. chas4.Transparency = debugtrans
  46.  
  47. local wheel1 = Instance.new("Part",model)
  48. wheel1.Size = Vector3.new(1,2,2)
  49. wheel1.Shape = Enum.PartType.Cylinder
  50. wheel1.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  51. wheel1.Transparency = debugtrans
  52.  
  53. local wheel2 = Instance.new("Part",model)
  54. wheel2.Size = Vector3.new(1,2,2)
  55. wheel2.Shape = Enum.PartType.Cylinder
  56. wheel2.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  57. wheel2.Transparency = debugtrans
  58.  
  59. local wheel3 = Instance.new("Part",model)
  60. wheel3.Size = Vector3.new(1,2,2)
  61. wheel3.Shape = Enum.PartType.Cylinder
  62. wheel3.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  63. wheel3.Transparency = debugtrans
  64.  
  65. local wheel4 = Instance.new("Part",model)
  66. wheel4.Size = Vector3.new(1,2,2)
  67. wheel4.Shape = Enum.PartType.Cylinder
  68. wheel4.Position = player.Character.Head.Position + Vector3.new(0,0,4)
  69. wheel4.Transparency = debugtrans
  70.  
  71. local seat = Instance.new("Part",model)
  72. seat.Size = Vector3.new(1,1,2)
  73. seat.Position = player.Character.Head.Position
  74. seat.Transparency = debugtrans
  75.  
  76. local weld1 = Instance.new("Weld",model)
  77. weld1.Part0 = chas1
  78. weld1.Part1 = chas2
  79. weld1.C0 = CFrame.new(-0.5, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  80. weld1.C1 = CFrame.new(0.5, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  81.  
  82. local weld2 = Instance.new("Weld",model)
  83. weld2.Part0 = chas3
  84. weld2.Part1 = chas2
  85. weld2.C0 = CFrame.new(0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  86. weld2.C1 = CFrame.new(0, 0, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  87.  
  88. local weld3 = Instance.new("Weld",model)
  89. weld3.Part0 = chas4
  90. weld3.Part1 = chas3
  91. weld3.C0 = CFrame.new(-0.5, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  92. weld3.C1 = CFrame.new(0.5, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  93.  
  94. local weld4 = Instance.new("Weld",model)
  95. weld4.Part0 = chas4
  96. weld4.Part1 = chas1
  97. weld4.C0 = CFrame.new(0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  98. weld4.C1 = CFrame.new(0, 0, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  99.  
  100. local weld5 = Instance.new("Weld",model)
  101. weld5.Part0 = seat
  102. weld5.Part1 = chas2
  103. weld5.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  104. weld5.C1 = CFrame.new(0.5, 0.499999762, -0.5, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  105.  
  106. local weld6 = Instance.new("Weld",model)
  107. weld6.Part0 = seat
  108. weld6.Part1 = chas1
  109. weld6.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  110. weld6.C1 = CFrame.new(-0.5, 0.499999762, -0.5, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  111.  
  112. local hinge = Instance.new("HingeConstraint",model)
  113. local att0 = Instance.new("Attachment",wheel1)
  114. att0.CFrame = CFrame.new(0.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  115. local att1 = Instance.new("Attachment",chas3)
  116. att1.CFrame = CFrame.new(-0.5, -0.5, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  117. hinge.Attachment0 = att0
  118. hinge.Attachment1 = att1
  119.  
  120. local hinge = Instance.new("HingeConstraint",model)
  121. local att0 = Instance.new("Attachment",wheel2)
  122. att0.CFrame = CFrame.new(0.5, -0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  123. local att1 = Instance.new("Attachment",chas2)
  124. att1.CFrame = CFrame.new(-0.5, -0.5, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  125. hinge.Attachment0 = att0
  126. hinge.Attachment1 = att1
  127.  
  128. local hinge = Instance.new("HingeConstraint",model)
  129. local att0 = Instance.new("Attachment",wheel3)
  130. att0.CFrame = CFrame.new(-0.5, 0, -0, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  131. local att1 = Instance.new("Attachment",chas4)
  132. att1.CFrame = CFrame.new(0.5, -0.5, -1, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  133. hinge.Attachment0 = att0
  134. hinge.Attachment1 = att1
  135.  
  136. local hinge = Instance.new("HingeConstraint",model)
  137. local att0 = Instance.new("Attachment",wheel4)
  138. att0.CFrame = CFrame.new(-0.5, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  139. local att1 = Instance.new("Attachment",chas1)
  140. att1.CFrame = CFrame.new(0.5, -0.5, 1, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  141. hinge.Attachment0 = att0
  142. hinge.Attachment1 = att1
  143.  
  144. local SeatWeld = Instance.new("Weld",model)
  145. SeatWeld.Part0 = seat
  146. SeatWeld.Part1 = player.Character.HumanoidRootPart
  147. SeatWeld.C0 = CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(-90),0)
  148. SeatWeld.Enabled = false
  149.  
  150.  
  151.  
  152. stoop = false
  153.  
  154. seat.Touched:Connect(function(Part)
  155. if Part.Parent.Name == player.Name and stoop == false then
  156. SeatWeld.Enabled = true
  157. player.Character.Humanoid.Sit = true
  158. driving = true
  159. end
  160. end)
  161.  
  162. att = Instance.new("Attachment",seat)
  163. att.CFrame = CFrame.new(-1.5, -1, 0)
  164. force = Instance.new("VectorForce",seat)
  165. force.Attachment0 = att
  166. force.Force = Vector3.new(0,0,0)
  167.  
  168. att = Instance.new("Attachment",seat)
  169. att.CFrame = CFrame.new(7.5, -1.5, 0)
  170. tforce = Instance.new("VectorForce",seat)
  171. tforce.Attachment0 = att
  172. tforce.Force = Vector3.new(0,0,0)
  173.  
  174.  
  175. input = game:GetService("UserInputService")
  176.  
  177. input.JumpRequest:Connect(function()
  178. if driving == true then
  179. stoop = true
  180. SeatWeld.Enabled = false
  181. force.Force = Vector3.new(0,0,0)
  182. tforce.Force = Vector3.new(0,0,0)
  183. driving = false
  184. wait(3)
  185. stoop = false
  186. end
  187. end)
  188.  
  189. input.InputBegan:Connect(function(thingy)
  190. if driving == true then
  191. if thingy.KeyCode == Enum.KeyCode.W then
  192. force.Force = Vector3.new(300,0,0)
  193. end
  194. if thingy.KeyCode == Enum.KeyCode.S then
  195. force.Force = Vector3.new(-300,0,0)
  196. end
  197. if thingy.KeyCode == Enum.KeyCode.D then
  198. tforce.Force = Vector3.new(0,0,500)
  199. end
  200. if thingy.KeyCode == Enum.KeyCode.A then
  201. tforce.Force = Vector3.new(0,0,-500)
  202. end
  203. end
  204. end)
  205.  
  206. input.InputEnded:Connect(function(thingy)
  207. if driving == true then
  208. if thingy.KeyCode == Enum.KeyCode.W then
  209. force.Force = Vector3.new(0,0,0)
  210. end
  211. if thingy.KeyCode == Enum.KeyCode.S then
  212. force.Force = Vector3.new(0,0,0)
  213. end
  214. if thingy.KeyCode == Enum.KeyCode.D then
  215. tforce.Force = Vector3.new(0,0,0)
  216. end
  217. if thingy.KeyCode == Enum.KeyCode.A then
  218. tforce.Force = Vector3.new(0,0,0)
  219. end
  220. end
  221. end)
  222.  
  223. --
  224.  
  225. player = game.Players.LocalPlayer
  226. char = player.Character
  227. vbreak = false
  228.  
  229. function rotate(X,Y,Z)
  230. return CFrame.Angles(math.rad(X),math.rad(Y),math.rad(Z))
  231. end
  232.  
  233. function Join(Hat,Part,Offset,Rotation,Mesh)
  234. if Mesh == false then Hat.Handle:FindFirstChildWhichIsA("SpecialMesh"):Destroy() end
  235. Hat.Handle.AccessoryWeld:Destroy()
  236. local method = Instance.new("RopeConstraint",player.Character)
  237. method.Length = math.huge
  238. method.Attachment0 = Instance.new("Attachment",char.Head)
  239. method.Attachment1 = Instance.new("Attachment",Hat.Handle)
  240. coroutine.wrap(function()
  241. while task.wait() do
  242. Hat.Handle.CFrame = (Part.CFrame + Part.CFrame.LookVector * Offset.Z + Part.CFrame.RightVector * Offset.X + Part.CFrame.UpVector * Offset.Y) * Rotation
  243. if vbreak == true then break end
  244. end
  245. end)()
  246. end
  247.  
  248. Join(
  249. player.Character["Pal Hair"], -- the Accessory
  250. wheel1, -- Part to attach to
  251. Vector3.new(0,0,0), -- offset
  252. rotate(0,0,0), -- Rotation
  253. false -- Keep mesh
  254. )
  255.  
  256. Join(
  257. player.Character["Kate Hair"], -- the Accessory
  258. wheel2, -- Part to attach to
  259. Vector3.new(0,0,0), -- offset
  260. rotate(0,0,0), -- Rotation
  261. false -- Keep mesh
  262. )
  263.  
  264. Join(
  265. player.Character["LavanderHair"], -- the Accessory
  266. wheel3, -- Part to attach to
  267. Vector3.new(0,0,0), -- offset
  268. rotate(0,0,0), -- Rotation
  269. false -- Keep mesh
  270. )
  271.  
  272. Join(
  273. player.Character["Necklace"], -- the Accessory
  274. wheel4, -- Part to attach to
  275. Vector3.new(0,0,0), -- offset
  276. rotate(0,0,0), -- Rotation
  277. false -- Keep mesh
  278. )
  279.  
  280. Join(
  281. player.Character["LongHairBeanie"], -- the Accessory
  282. chas1, -- Part to attach to
  283. Vector3.new(0,0,0.42), -- offset
  284. rotate(90,0,0), -- Rotation
  285. false -- Keep mesh
  286. )
  287. Join(
  288. player.Character["Pink Hair"], -- the Accessory
  289. chas2, -- Part to attach to
  290. Vector3.new(0,0,0), -- offset
  291. rotate(0,0,0), -- Rotation
  292. false -- Keep mesh
  293. )
  294. Join(
  295. player.Character["Hat1"], -- the Accessory
  296. chas3, -- Part to attach to
  297. Vector3.new(0,0,0), -- offset
  298. rotate(0,0,0), -- Rotation
  299. false -- Keep mesh
  300. )
  301. Join(
  302. player.Character["InternationalFedora"], -- the Accessory
  303. chas4, -- Part to attach to
  304. Vector3.new(0,0,0.5), -- offset
  305. rotate(0,0,0), -- Rotation
  306. false -- Keep mesh
  307. )
  308.  
  309. --
  310.  
  311. Join(
  312. player.Character["MeshPartAccessory"], -- the Accessory
  313. chas4, -- Part to attach to
  314. Vector3.new(0,0,-0.5), -- offset
  315. rotate(0,0,0), -- Rotation
  316. false -- Keep mesh
  317. )
  318. Join(
  319. player.Character["Robloxclassicred"], -- the Accessory
  320. seat, -- Part to attach to
  321. Vector3.new(0,0,0), -- offset
  322. rotate(0,0,0), -- Rotation
  323. false -- Keep mesh
  324. )
Add Comment
Please, Sign In to add comment