clubstar54

Car

Nov 29th, 2023 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. local driver = script.Parent.Parent.Character
  2.  
  3. local car = game:GetService("InsertService"):LoadAsset(6309389531)
  4. for _,v in pairs(car:GetDescendants()) do
  5. if v:IsA("BasePart") then
  6. v.CanCollide = false
  7. v.Anchored = false
  8. v.Massless = true
  9. local w = Instance.new("Weld")
  10. w.Part0 = driver.HumanoidRootPart
  11. w.Part1 = v
  12. w.C0 = CFrame.new(1.5,-0.1,0)
  13. w.Parent = v
  14. v.Parent = driver
  15. v.Name = "Car"
  16.  
  17. local light = Instance.new("SpotLight")
  18. light.Face = "Front"
  19. light.Color = BrickColor.new("Bright yellow").Color
  20. light.Range = 200
  21. light.Brightness = 7
  22. light.Parent = v
  23. light.Angle = 45
  24.  
  25. local a = Instance.new("Sound")
  26. a.SoundId = "http://www.roblox.com/asset?id=532147820"
  27. a.Volume = 0.55
  28. a.Parent = v
  29. a.Looped = true
  30. a:Play()
  31.  
  32. local a2 = Instance.new("Sound")
  33. a2.SoundId = "http://www.roblox.com/asset?id=12860186336"
  34. a2.Volume = 0.65
  35. a2.Parent = v
  36. a2.Looped = true
  37. a2:Play()
  38.  
  39. task.spawn(function()
  40. while v.Parent ~= nil do
  41. local Pitch = 0.5+(v.AssemblyLinearVelocity.Magnitude/225)
  42. a.Pitch = math.clamp(Pitch,0.4,2)
  43. driver.Humanoid.WalkSpeed = 225
  44.  
  45. if driver:findFirstChild("Status") then
  46. if driver.Status.Sprinting.Value then
  47. driver.Humanoid.WalkSpeed = 350
  48. end
  49. end
  50. task.wait()
  51. end
  52. end)
  53.  
  54. elseif v:IsA("SpecialMesh") then
  55. v.Scale += Vector3.new(3,3,3)
  56. end
  57. end
  58.  
  59. --------------------------------------------------
  60.  
  61. local passenger1 = workspace["Parade_King"]
  62. local w1 = Instance.new("Weld")
  63. w1.Part0 = driver.HumanoidRootPart
  64. w1.Part1 = passenger1.HumanoidRootPart
  65. w1.C0 = CFrame.new(3.5,0,0)
  66. w1.Parent = driver.Car
  67. passenger1.Humanoid.PlatformStand = true
Advertisement
Add Comment
Please, Sign In to add comment