Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title> </title>
- </head>
- <body>
- <style>
- img[src="https://cdn.rawgit.com/000webhost/logo/e9bd13f7/footer-powered-by-000webhost-white2.png"] {
- display: none;}
- </style>
- <pre style="word-wrap: break-word; white-space: pre-wrap;">
- --[[
- Created by Cronizete
- cron#7538
- A Car
- --]]
- --[[
- Keys:
- --]]
- wait(3)
- plr = game:service'Players'.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- cooldown = false
- rotation = {}
- --// Configuration
- turn = "Middle"
- falling = false
- abletoparachute = false
- driver = nil
- rocketout = false
- selfdriving = false
- driving = false
- timer = 0
- speed = 0
- saycode = false
- allowed = false
- exception = false
- flying = false
- passcode = "cron is cool"
- --//
- function invisible(b)
- for _, a in pairs(b:children'') do
- if a:IsA'Part' or a:IsA'UnionOperation' or a:IsA'MeshPart' then
- a.Transparency = 1
- elseif a:IsA'Accessory' then
- a.Handle.Transparency = 1
- end
- end
- b.Head.face.Parent = b
- end
- function visible(b)
- for _, a in pairs(b:children'') do
- if a:IsA'Part' or a:IsA'UnionOperation' or a:IsA'MeshPart' then
- if a.Name ~= "HumanoidRootPart" then
- a.Transparency = 0
- end
- elseif a:IsA'Accessory' then
- a.Handle.Transparency = 0
- end
- end
- b.face.Parent = b.Head
- end
- function boost(a)
- bv = Instance.new('BodyVelocity', a)
- bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
- bv.Velocity = a.CFrame.lookVector * -100
- game:service'Debris':AddItem(bv, 0.4)
- end
- Model0 = Instance.new("Model")
- car = Model0
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- VehicleSeat6 = Instance.new("VehicleSeat")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Model0.Name = "Car"
- Model0.Parent = char
- Part1.Name = "FRONTW2"
- Part1.Parent = Model0
- Part1.Material = Enum.Material.DiamondPlate
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Transparency = 1
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Shape = Enum.PartType.Cylinder
- Part1.Size = Vector3.new(2, 2, 2)
- Part1.CFrame = CFrame.new(-200.615112, 1.01000166, -28.1637135, 1, 2.03056483e-09, 6.81246036e-07, -2.03056505e-09, 1, 3.52883112e-10, -6.81246036e-07, -3.52884472e-10, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.RightSurface = Enum.SurfaceType.Hinge
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(-200.615112, 1.01000166, -28.1637135)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Name = "Body"
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Mid gray")
- Part2.Transparency = 1
- Part2.Rotation = Vector3.new(-180, 0, 180)
- Part2.CanCollide = false
- Part2.FormFactor = Enum.FormFactor.Plate
- Part2.Size = Vector3.new(5.00999546, 1.17999935, 10.5300083)
- Part2.CFrame = CFrame.new(-197.134171, 1.34863997, -24.3212357, -1.00001001, -1.07609139e-05, 1.46844068e-05, -1.07603382e-05, 1, 3.21863845e-05, -1.46120638e-05, 3.21859079e-05, -1.00001001)
- Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part2.Position = Vector3.new(-197.134171, 1.34863997, -24.3212357)
- Part2.Orientation = Vector3.new(0, 180, 0)
- Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part3.Name = "BACKW2"
- Part3.Parent = Model0
- Part3.Material = Enum.Material.DiamondPlate
- Part3.BrickColor = BrickColor.new("Really black")
- Part3.Transparency = 1
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.Shape = Enum.PartType.Cylinder
- Part3.Size = Vector3.new(2, 2, 2)
- Part3.CFrame = CFrame.new(-200.642776, 1.01002812, -19.8439331, 1, 2.03056483e-09, 6.81246036e-07, -2.03056505e-09, 1, 3.52883112e-10, -6.81246036e-07, -3.52884472e-10, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.RightSurface = Enum.SurfaceType.Hinge
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part3.Position = Vector3.new(-200.642776, 1.01002812, -19.8439331)
- Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Name = "FRONTW1"
- Part4.Parent = Model0
- Part4.Material = Enum.Material.DiamondPlate
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.Transparency = 1
- Part4.Rotation = Vector3.new(180, -0.359999985, -180)
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Shape = Enum.PartType.Cylinder
- Part4.Size = Vector3.new(2, 2, 2)
- Part4.CFrame = CFrame.new(-193.626587, 1.0100739, -28.345871, -0.99998039, 2.02539319e-09, -0.00627368269, 2.0275972e-09, 1, -3.44951817e-10, 0.00627368316, -3.57665508e-10, -0.99998039)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.RightSurface = Enum.SurfaceType.Hinge
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Position = Vector3.new(-193.626587, 1.0100739, -28.345871)
- Part4.Orientation = Vector3.new(0, -179.639999, 0)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Name = "BACKW1"
- Part5.Parent = Model0
- Part5.Material = Enum.Material.DiamondPlate
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.Transparency = 1
- Part5.Rotation = Vector3.new(180, -0.359999985, -180)
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.Shape = Enum.PartType.Cylinder
- Part5.Size = Vector3.new(2, 2, 2)
- Part5.CFrame = CFrame.new(-193.648865, 1.01002812, -19.8439369, -0.99998033, 1.63917968e-09, -0.006283761, 1.64136449e-09, 1, -3.42521622e-10, 0.00628376147, -3.52828766e-10, -0.99998033)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.RightSurface = Enum.SurfaceType.Hinge
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Position = Vector3.new(-193.648865, 1.01002812, -19.8439369)
- Part5.Orientation = Vector3.new(0, -179.639999, 0)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- VehicleSeat6.Name = "Seat"
- VehicleSeat6.Parent = Model0
- VehicleSeat6.BrickColor = BrickColor.new("Light stone grey")
- VehicleSeat6.Size = Vector3.new(2, 1, 2)
- VehicleSeat6.CFrame = CFrame.new(-197.359161, 2.4387784, -27.2763634, 1.00000501, -1.92323597e-07, -3.12767588e-05, 1.91317497e-07, 1, -3.21884836e-05, 3.1240419e-05, 3.21883163e-05, 1.00000501)
- VehicleSeat6.TopSurface = Enum.SurfaceType.Universal
- VehicleSeat6.Color = Color3.new(0.898039, 0.894118, 0.87451)
- VehicleSeat6.Position = Vector3.new(-197.359161, 2.4387784, -27.2763634)
- VehicleSeat6.Color = Color3.new(0.898039, 0.894118, 0.87451)
- VehicleSeat6.Steer = 0
- VehicleSeat6.Throttle = 0
- VehicleSeat6.MaxSpeed = 0
- VehicleSeat6.Torque = 3
- VehicleSeat6.TurnSpeed = 2.5
- Part7.Name = "MESHBODY"
- Part7.Parent = Model0
- Part7.BrickColor = BrickColor.new("Mid gray")
- Part7.Rotation = Vector3.new(-180, 0, 180)
- Part7.FormFactor = Enum.FormFactor.Plate
- Part7.Size = Vector3.new(5.00999546, 1.36999929, 10.5300083)
- Part7.CFrame = CFrame.new(-197.134171, 3.62371111, -24.3212147, -1.00000501, -1.07608885e-05, 1.47206811e-05, -1.07603628e-05, 1, 3.21862171e-05, -1.46846833e-05, 3.2185897e-05, -1.00000501)
- Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part7.Position = Vector3.new(-197.134171, 3.62371111, -24.3212147)
- Part7.Orientation = Vector3.new(0, 180, 0)
- Part7.Color = Color3.new(0.803922, 0.803922, 0.803922)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "rbxassetid://589458611"
- SpecialMesh8.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- SpecialMesh8.TextureId = "rbxassetid://589459590"
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- SpecialMesh8.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- Part9.Name = "Front1"
- Part9.Parent = Model0
- Part9.BrickColor = BrickColor.new("Mid gray")
- Part9.Rotation = Vector3.new(0, -90, 0)
- Part9.FormFactor = Enum.FormFactor.Plate
- Part9.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
- Part9.Orientation = Vector3.new(0, -90, 0)
- Part9.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part9.CanCollide = false
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshId = "rbxassetid://488935318"
- SpecialMesh10.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- SpecialMesh10.TextureId = "rbxassetid://488935371"
- SpecialMesh10.MeshType = Enum.MeshType.FileMesh
- SpecialMesh10.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part11.Name = "Back1"
- Part11.Parent = Model0
- Part11.BrickColor = BrickColor.new("Mid gray")
- Part11.Rotation = Vector3.new(0, -90, 0)
- Part11.FormFactor = Enum.FormFactor.Plate
- Part11.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
- Part11.Orientation = Vector3.new(0, -90, 0)
- Part11.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part11.CanCollide = false
- SpecialMesh12.Parent = Part11
- SpecialMesh12.MeshId = "rbxassetid://488935318"
- SpecialMesh12.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- SpecialMesh12.TextureId = "rbxassetid://488935371"
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- SpecialMesh12.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part13.Name = "Front2"
- Part13.Parent = Model0
- Part13.BrickColor = BrickColor.new("Mid gray")
- Part13.Rotation = Vector3.new(0, -90, 0)
- Part13.FormFactor = Enum.FormFactor.Plate
- Part13.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
- Part13.Orientation = Vector3.new(0, -90, 0)
- Part13.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part13.CanCollide = false
- SpecialMesh14.Parent = Part13
- SpecialMesh14.MeshId = "rbxassetid://488935318"
- SpecialMesh14.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- SpecialMesh14.TextureId = "rbxassetid://488935371"
- SpecialMesh14.MeshType = Enum.MeshType.FileMesh
- SpecialMesh14.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part15.Name = "Back2"
- Part15.Parent = Model0
- Part15.BrickColor = BrickColor.new("Mid gray")
- Part15.Rotation = Vector3.new(0, -90, 0)
- Part15.FormFactor = Enum.FormFactor.Plate
- Part15.Size = Vector3.new(2.52999401, 2.61999846, 1.07001042)
- Part15.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part15.Orientation = Vector3.new(0, -90, 0)
- Part15.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part15.CanCollide = false
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "rbxassetid://488935318"
- SpecialMesh16.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- SpecialMesh16.TextureId = "rbxassetid://488935371"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- SpecialMesh16.Scale = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- rocket = Instance.new('Part', car)
- rocket.CanCollide = false
- rocket.Size = Vector3.new(1.9, 2.21, 5.54)
- rocket.BrickColor = BrickColor.new('Really black')
- nitro = Instance.new('Sound', rocket)
- nitro.SoundId = "rbxassetid://337163436"
- nitro.Looped = true
- nitro.Volume = 3
- wb = Instance.new('Sound', car.Body)
- wb.SoundId = "rbxassetid://1616972457"
- wb.Looped = false
- wb.Volume = 4
- code = Instance.new('Sound', car.Body)
- code.SoundId = "rbxassetid://1616957468"
- code.Looped = false
- code.Volume = 4
- wp = Instance.new('Sound', car.Body)
- wp.SoundId = "rbxassetid://1616970928"
- wp.Looped = false
- wp.Volume = 4
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Flame"
- ParticleEmitter0.Parent = rocket
- ParticleEmitter0.Transparency = NumberSequence.new(1,0.5,0.25,0.25,0.5,1)
- ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter0.Size = NumberSequence.new(5)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
- ParticleEmitter0.LightEmission = 0.75
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=304437537"
- ParticleEmitter0.Acceleration = Vector3.new(0, 2.5, 0)
- ParticleEmitter0.Lifetime = NumberRange.new(0.4)
- ParticleEmitter0.Rate = 15000
- ParticleEmitter0.Enabled = false
- ParticleEmitter0.LockedToPart = false
- ParticleEmitter0.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter0.Speed = NumberRange.new(2, 2)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
- mesh = Instance.new('SpecialMesh', rocket)
- mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
- mesh.TextureId = ""
- mesh.Scale = Vector3.new(2, 2, 35)
- weld = Instance.new('Weld', rocket)
- weld.Part0 = rocket
- weld.Part1 = Part2
- weld.C0 = CFrame.new(0,-0.5,0)
- crash = Instance.new('Part', car)
- crash.CanCollide = false
- crash.Size = Vector3.new(5,2.5,1)
- crash.Transparency = 1
- a = Instance.new('Weld', crash)
- a.Part0 = crash
- a.Part1 = car.Body
- a.C0 = CFrame.new(0,-0.5,-7)
- bg = Instance.new('BodyGyro', car.Body)
- bg.MaxTorque = Vector3.new(5000, 5000, 5000)
- Part15.Transparency = 1
- test = Part15:Clone()
- test.Parent = car
- test.Transparency = 0
- a = Instance.new('Weld', Part15)
- a.Part0 = Part15
- a.Part1 = Part2
- a.C0 = CFrame.new(4,0,2.5) * CFrame.Angles(0,math.rad(90),0)
- weldtest = Instance.new('Weld', test)
- weldtest.Part0 = Part15
- weldtest.Part1 = test
- table.insert(rotation, weldtest)
- Part13.Transparency = 1
- test = Part13:Clone()
- test.Parent = car
- test.Transparency = 0
- a = Instance.new('Weld', Part13)
- a.Part0 = Part13
- a.Part1 = Part2
- a.C0 = CFrame.new(-4.5,0,2.5) * CFrame.Angles(0,math.rad(90),0)
- weldtest = Instance.new('Weld', test)
- weldtest.Part0 = Part13
- weldtest.Part1 = test
- table.insert(rotation, weldtest)
- Part11.Transparency = 1
- test = Part11:Clone()
- test.Parent = car
- test.Transparency = 0
- a = Instance.new('Weld', Part11)
- a.Part0 = Part11
- a.Part1 = Part2
- a.C0 = CFrame.new(-4.5,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
- weldtest = Instance.new('Weld', test)
- weldtest.Part0 = Part11
- weldtest.Part1 = test
- table.insert(rotation, weldtest)
- Part9.Transparency = 1
- test = Part9:Clone()
- test.Parent = car
- test.Transparency = 0
- a = Instance.new('Weld', Part9)
- a.Part0 = Part9
- a.Part1 = Part2
- a.C0 = CFrame.new(4,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
- weldtest = Instance.new('Weld', test)
- weldtest.Part0 = Part9
- weldtest.Part1 = test
- table.insert(rotation, weldtest)
- if passcode ~= "cron is cool" then
- plr:Kick"Nice try changing the passcode 😎"
- end
- mouse.KeyDown:connect(function(k)
- if allowed then
- key = k:lower()
- if key == "e" and not selfdriving and driver ~= plr.Name and (char.HumanoidRootPart.Position - car.Body.Position).magnitude >= 125 then
- selfdriving = true
- wp:Play()
- rand = math.random(10,25)
- car.Seat.Throttle = 1
- car.Seat.Disabled = true
- repeat wait() bg.CFrame = CFrame.new(-car.Seat.Position, -char.HumanoidRootPart.Position + Vector3.new(rand,0,rand)) until (char.HumanoidRootPart.Position + Vector3.new(rand,0,rand) - car.Body.Position).magnitude <= 125
- car.Seat.Disabled = false
- car.Seat.Throttle = 0
- car.Seat.Steer = 0
- selfdriving = false
- end
- if key == "f" and not cooldown and driving then
- cooldown = true
- if not flying then
- flying = true
- bv = Instance.new('BodyVelocity', car.Body)
- bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
- bv.Velocity = Vector3.new(0,150,0) + car.Body.CFrame.lookVector * -100
- wait(.8)
- bv.Velocity = Vector3.new(0,0,0) + car.Body.CFrame.lookVector * -100
- wait(.6)
- exception = true
- a = Instance.new('Part', workspace.Camera)
- a.Name = "Platform"
- a.Size = Vector3.new(9999,0,9999)
- a.Transparency = 1
- a.CanCollide = true
- a.Anchored = true
- a.CFrame = car.Body.CFrame * CFrame.new(0,-5,0)
- bv:Destroy''
- else
- flying = false
- exception = false
- for _, a in pairs(workspace.Camera:children'') do
- if a.Name == "Platform" then
- a:Destroy''
- end
- end
- for _, a in pairs(rotation) do
- coroutine.resume(coroutine.create(function()
- for i = 1,50 do
- a.C0 = a.C0:lerp(CFrame.Angles(math.rad(0),0,math.rad(90)), 0.1)
- wait()
- end
- end))
- end
- end
- wait(2)
- cooldown = false
- end
- if key == "r" and not cooldown then
- cooldown = true
- num = 0
- if not rocketout then
- rocketout = true
- boost(car.Body)
- for i = 1,15 do
- wait()
- weld.C0 = CFrame.new(0, -0.5, num)
- num = num + .51
- end
- z = num
- elseif rocketout then
- rocketout = false
- for i = 1,10 do
- wait()
- weld.C0 = CFrame.new(0, -0.5, z)
- z = z - .5
- end
- end
- wait(1)
- cooldown = false
- end
- end
- end)
- selfdriving = true
- rand = math.random(10,25)
- car.Seat.Throttle = 1
- car.Seat.MaxSpeed = 75
- repeat wait() bg.CFrame = CFrame.new(-car.Seat.Position, -char.HumanoidRootPart.Position + Vector3.new(rand,0,rand)) until (char.HumanoidRootPart.Position + Vector3.new(rand,0,rand) - car.Body.Position).magnitude <= 125
- car.Seat.Throttle = 0
- car.Seat.Steer = 0
- car.Seat.MaxSpeed = 0
- selfdriving = false
- plr.Chatted:connect(function(a)
- if a:lower() == "cron is cool" then
- allowed = true
- wb:Play()
- car.Seat.MaxSpeed = 75
- end
- end)
- car.Seat.Changed:connect(function(p)
- ypcall(function()
- if p == "Occupant" then
- if car.Seat.Occupant then
- driver = car.Seat.Occupant.Parent.Name
- driving = true
- bg.Parent = nil
- invisible(workspace[driver])
- if not allowed then
- wait(.5)
- code:Play()
- saycode = true
- end
- else
- visible(workspace[driver])
- flying = false
- exception = false
- for _, a in pairs(workspace.Camera:children'') do
- if a.Name == "Platform" then
- a:Destroy''
- end
- end
- for _, a in pairs(rotation) do
- coroutine.resume(coroutine.create(function()
- for i = 1,50 do
- a.C0 = a.C0:lerp(CFrame.Angles(math.rad(0),0,math.rad(90)), 0.1)
- wait()
- end
- end))
- end
- driving = false
- bg.Parent = car.Body
- end
- end
- end)
- end)
- crash.Touched:connect(function(hit)
- if hit and hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent:FindFirstChildOfClass'Humanoid'.Health ~= 0 and speed >= 50 then
- humtarg = hit.Parent:FindFirstChildOfClass'Humanoid'
- humtarg:TakeDamage(humtarg.MaxHealth/2/2/2)
- a = Instance.new('Sound', hit)
- a.SoundId = "rbxassetid://545219984"
- a.Volume = 4
- a:Play()
- elseif hit:IsA'Part' and speed >= 90 then
- hit.Anchored = false
- bv = Instance.new('BodyVelocity', hit)
- bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
- bv.Velocity = hit.CFrame.lookVector * -250
- game:service'Debris':AddItem(bv, 0.4)
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- up = true
- down = false
- elseif key:lower() == "q" then
- up = false
- down = true
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "e" then
- up = false
- down = false
- elseif key:lower() == "q" then
- up = false
- down = false
- end
- end)
- while wait() do
- -- if down and flying then
- -- workspace.Camera:WaitForChild('Platform').CFrame = workspace.Camera:WaitForChild('Platform').CFrame * CFrame.new(0,-1.5,0)
- -- bg.Parent = car.Body
- -- elseif not down and flying then
- -- bg.Parent = nil
- -- elseif up and flying then
- -- workspace.Camera:WaitForChild('Platform').CFrame = workspace.Camera:WaitForChild('Platform').CFrame * CFrame.new(0,1.1,0)
- -- end
- speed = car.Seat.Velocity.magnitude
- if car.Seat.Steer == -1 then
- turn = "Left"
- elseif car.Seat.Steer == 1 then
- turn = "Right"
- elseif car.Seat.Steer == 0 then
- turn = "Middle"
- end
- if not flying then
- if car.Seat.Throttle == 1 then
- for _, a in pairs(rotation) do
- a.C0 = a.C0:lerp(a.C0 * CFrame.Angles(0,math.rad(0),-math.rad(speed)), 0.5)
- end
- elseif car.Seat.Throttle == -1 then
- for _, a in pairs(rotation) do
- a.C0 = a.C0:lerp(a.C0 * CFrame.Angles(0,math.rad(0),math.rad(speed)), 0.5)
- end
- end
- end
- if flying then
- for _, a in pairs(rotation) do
- a.C0 = a.C0:lerp(CFrame.Angles(math.rad(90),0,math.rad(0)), 0.1)
- end
- end
- if not flying then
- if turn == "Left" then
- weld1 = Part13:FindFirstChildOfClass('Weld')
- weld2 = Part11:FindFirstChildOfClass('Weld')
- weld1.C0 = CFrame.new(-5,0,-1.1) * CFrame.Angles(0,math.rad(50),math.rad(0))
- weld2.C0 = CFrame.new(-2,0,-5) * CFrame.Angles(0,math.rad(50),math.rad(0))
- elseif turn == "Middle" then
- weld1 = Part13:FindFirstChildOfClass('Weld')
- weld2 = Part11:FindFirstChildOfClass('Weld')
- weld1.C0 = CFrame.new(-4.5,0,2.5) * CFrame.Angles(0,math.rad(90),0)
- weld2.C0 = CFrame.new(-4.5,0,-2.5) * CFrame.Angles(0,math.rad(90),0)
- elseif turn == "Right" then
- weld1 = Part13:FindFirstChildOfClass('Weld')
- weld2 = Part11:FindFirstChildOfClass('Weld')
- weld1.C0 = CFrame.new(5,0,-1.1) * CFrame.Angles(0,math.rad(-50),math.rad(0))
- weld2.C0 = CFrame.new(2,0,-5) * CFrame.Angles(0,math.rad(-50),math.rad(0))
- end
- end
- if allowed then
- if speed >= 25 and rocketout and car.Seat.Throttle ~= -1 then
- car.Seat.MaxSpeed = 200
- nitro:Resume()
- ParticleEmitter0.Enabled = true
- elseif not rocketout or not flying then
- car.Seat.MaxSpeed = 75
- nitro:Stop()
- ParticleEmitter0.Enabled = false
- elseif speed <= 25 and rocketout then
- ParticleEmitter0.Enabled = false
- nitro:Stop()
- elseif flying and not rocketout then
- car.Seat.MaxSpeed = 300
- elseif flying and rocketout then
- car.Seat.MaxSpeed = 500
- end
- end
- if rocketout and speed >= 71 and driving then
- workspace.Camera.FieldOfView = speed
- else
- workspace.Camera.FieldOfView = 70
- end
- if allowed then
- if not flying and not selfdriving then
- bg.Parent = nil
- elseif flying and not exception then
- bg.Parent = car.Body
- elseif exception then
- bg.Parent = nil
- end
- end
- end
- </pre>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement