Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- BillboardGui3 = Instance.new("BillboardGui")
- TextLabel4 = Instance.new("TextLabel")
- Model5 = Instance.new("Model")
- Model6 = Instance.new("Model")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Weld17 = Instance.new("Weld")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Weld20 = Instance.new("Weld")
- Weld21 = Instance.new("Weld")
- Weld22 = Instance.new("Weld")
- VehicleSeat23 = Instance.new("VehicleSeat")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Sound31 = Instance.new("Sound")
- Sound32 = Instance.new("Sound")
- Folder33 = Instance.new("Folder")
- BoolValue34 = Instance.new("BoolValue")
- IntValue35 = Instance.new("IntValue")
- NumberValue36 = Instance.new("NumberValue")
- NumberValue37 = Instance.new("NumberValue")
- NumberValue38 = Instance.new("NumberValue")
- BoolValue39 = Instance.new("BoolValue")
- NumberValue40 = Instance.new("NumberValue")
- NumberValue41 = Instance.new("NumberValue")
- NumberValue42 = Instance.new("NumberValue")
- NumberValue43 = Instance.new("NumberValue")
- NumberValue44 = Instance.new("NumberValue")
- Script45 = Instance.new("Script")
- ScreenGui46 = Instance.new("ScreenGui")
- ObjectValue47 = Instance.new("ObjectValue")
- LocalScript48 = Instance.new("LocalScript")
- Frame49 = Instance.new("Frame")
- Frame50 = Instance.new("Frame")
- ScrollingFrame51 = Instance.new("ScrollingFrame")
- TextLabel52 = Instance.new("TextLabel")
- TextLabel53 = Instance.new("TextLabel")
- TextLabel54 = Instance.new("TextLabel")
- TextLabel55 = Instance.new("TextLabel")
- TextLabel56 = Instance.new("TextLabel")
- TextLabel57 = Instance.new("TextLabel")
- TextLabel58 = Instance.new("TextLabel")
- TextLabel59 = Instance.new("TextLabel")
- TextLabel60 = Instance.new("TextLabel")
- TextLabel61 = Instance.new("TextLabel")
- TextLabel62 = Instance.new("TextLabel")
- TextLabel63 = Instance.new("TextLabel")
- Frame64 = Instance.new("Frame")
- ImageButton65 = Instance.new("ImageButton")
- ImageButton66 = Instance.new("ImageButton")
- TextButton67 = Instance.new("TextButton")
- TextButton68 = Instance.new("TextButton")
- Frame69 = Instance.new("Frame")
- TextLabel70 = Instance.new("TextLabel")
- ImageLabel71 = Instance.new("ImageLabel")
- ImageLabel72 = Instance.new("ImageLabel")
- ImageLabel73 = Instance.new("ImageLabel")
- ImageLabel74 = Instance.new("ImageLabel")
- TextLabel75 = Instance.new("TextLabel")
- TextLabel76 = Instance.new("TextLabel")
- TextButton77 = Instance.new("TextButton")
- ImageLabel78 = Instance.new("ImageLabel")
- Frame79 = Instance.new("Frame")
- Frame80 = Instance.new("Frame")
- TextLabel81 = Instance.new("TextLabel")
- Script82 = Instance.new("Script")
- LocalScript83 = Instance.new("LocalScript")
- ObjectValue84 = Instance.new("ObjectValue")
- LocalScript85 = Instance.new("LocalScript")
- Part86 = Instance.new("Part")
- Model87 = Instance.new("Model")
- Part88 = Instance.new("Part")
- Decal89 = Instance.new("Decal")
- Part90 = Instance.new("Part")
- Part91 = Instance.new("Part")
- Part92 = Instance.new("Part")
- Part93 = Instance.new("Part")
- SpecialMesh94 = Instance.new("SpecialMesh")
- Decal95 = Instance.new("Decal")
- Part96 = Instance.new("Part")
- SpecialMesh97 = Instance.new("SpecialMesh")
- Decal98 = Instance.new("Decal")
- Part99 = Instance.new("Part")
- Part100 = Instance.new("Part")
- Part101 = Instance.new("Part")
- Part102 = Instance.new("Part")
- Part103 = Instance.new("Part")
- Part104 = Instance.new("Part")
- Part105 = Instance.new("Part")
- Part106 = Instance.new("Part")
- Decal107 = Instance.new("Decal")
- Part108 = Instance.new("Part")
- ManualWeld109 = Instance.new("ManualWeld")
- ManualWeld110 = Instance.new("ManualWeld")
- Model111 = Instance.new("Model")
- Part112 = Instance.new("Part")
- CylinderMesh113 = Instance.new("CylinderMesh")
- Part114 = Instance.new("Part")
- CylinderMesh115 = Instance.new("CylinderMesh")
- Part116 = Instance.new("Part")
- CylinderMesh117 = Instance.new("CylinderMesh")
- Part118 = Instance.new("Part")
- CylinderMesh119 = Instance.new("CylinderMesh")
- Part120 = Instance.new("Part")
- SpecialMesh121 = Instance.new("SpecialMesh")
- Part122 = Instance.new("Part")
- CylinderMesh123 = Instance.new("CylinderMesh")
- Part124 = Instance.new("Part")
- SpecialMesh125 = Instance.new("SpecialMesh")
- Decal126 = Instance.new("Decal")
- Part127 = Instance.new("Part")
- SpecialMesh128 = Instance.new("SpecialMesh")
- Decal129 = Instance.new("Decal")
- Part130 = Instance.new("Part")
- Decal131 = Instance.new("Decal")
- Part132 = Instance.new("Part")
- Model133 = Instance.new("Model")
- Part134 = Instance.new("Part")
- BoolValue135 = Instance.new("BoolValue")
- CylinderMesh136 = Instance.new("CylinderMesh")
- BoolValue137 = Instance.new("BoolValue")
- Part138 = Instance.new("Part")
- Decal139 = Instance.new("Decal")
- BlockMesh140 = Instance.new("BlockMesh")
- Part141 = Instance.new("Part")
- BoolValue142 = Instance.new("BoolValue")
- CylinderMesh143 = Instance.new("CylinderMesh")
- BoolValue144 = Instance.new("BoolValue")
- Part145 = Instance.new("Part")
- Decal146 = Instance.new("Decal")
- BlockMesh147 = Instance.new("BlockMesh")
- Part148 = Instance.new("Part")
- BodyGyro149 = Instance.new("BodyGyro")
- CylinderMesh150 = Instance.new("CylinderMesh")
- BoolValue151 = Instance.new("BoolValue")
- Part152 = Instance.new("Part")
- Decal153 = Instance.new("Decal")
- BlockMesh154 = Instance.new("BlockMesh")
- Part155 = Instance.new("Part")
- BodyGyro156 = Instance.new("BodyGyro")
- CylinderMesh157 = Instance.new("CylinderMesh")
- BoolValue158 = Instance.new("BoolValue")
- Part159 = Instance.new("Part")
- Decal160 = Instance.new("Decal")
- BlockMesh161 = Instance.new("BlockMesh")
- Part162 = Instance.new("Part")
- BodyGyro163 = Instance.new("BodyGyro")
- CylinderMesh164 = Instance.new("CylinderMesh")
- BoolValue165 = Instance.new("BoolValue")
- Part166 = Instance.new("Part")
- Decal167 = Instance.new("Decal")
- BlockMesh168 = Instance.new("BlockMesh")
- Script169 = Instance.new("Script")
- LocalScript170 = Instance.new("LocalScript")
- Model0.Name = "pink"
- Model0.Parent = mas
- Part1.Name = "Button"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Bright violet")
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Anchored = true
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(2, 0.200000003, 5)
- Part1.CFrame = CFrame.new(7.88938379, 0.100019999, -16.0067501, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part1.BottomSurface = Enum.SurfaceType.Weld
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Part1.Position = Vector3.new(7.88938379, 0.100019999, -16.0067501)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- debounce = false
- regen = {}
- last = {}
- local regenTime = 3
- local guiTextLabel = script.Parent.GUI.TextLabel
- for a,b in ipairs(script.Parent.Parent:GetChildren()) do
- if b ~= script.Parent then
- table.insert(regen,b:clone())
- table.insert(last,b)
- end
- end
- script.Parent.Touched:connect(function(hit)
- if hit.Parent ~= nil then
- if game.Players:playerFromCharacter(hit.Parent) ~= nil and debounce == false then
- debounce = true
- for a,b in ipairs(last) do
- if b.Parent == script.Parent.Parent then
- b:remove()
- end
- end
- last = {}
- for a,b in ipairs(regen) do
- local c = b:clone()
- table.insert(last,c)
- c.Parent = script.Parent.Parent
- pcall(function() c:MakeJoints() end)
- end
- script.Parent.BrickColor = BrickColor.new(26)
- local timer = regenTime
- while (timer > 0) do
- timer = timer - 1
- guiTextLabel.Text = "Regen in "..timer.." seconds."
- wait(1)
- end
- guiTextLabel.Text = "Touch to regen!"
- script.Parent.BrickColor = BrickColor.new(104)
- debounce = false
- end
- end
- end)
- end))
- BillboardGui3.Name = "GUI"
- BillboardGui3.Parent = Part1
- BillboardGui3.Size = UDim2.new(5, 0, 2, 0)
- BillboardGui3.StudsOffset = Vector3.new(0, 4, 0)
- TextLabel4.Parent = BillboardGui3
- TextLabel4.Transparency = 1
- TextLabel4.Size = UDim2.new(1, 0, 1, 0)
- TextLabel4.Text = "Touch to regen!"
- TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel4.BackgroundTransparency = 1
- TextLabel4.Font = Enum.Font.SourceSans
- TextLabel4.FontSize = Enum.FontSize.Size14
- TextLabel4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel4.TextScaled = true
- TextLabel4.TextStrokeTransparency = 0
- TextLabel4.TextWrapped = true
- Model5.Parent = Model0
- Model6.Name = "Body"
- Model6.Parent = Model5
- Part7.Name = "Handle"
- Part7.Parent = Model6
- Part7.Transparency = 100
- Part7.Rotation = Vector3.new(-90, 75, 90)
- Part7.Anchored = true
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(0.800000012, 0.400000006, 0.400000006)
- Part7.CFrame = CFrame.new(10.0600462, 5.20003223, -9.24562836, 1.13133414e-08, -0.258819073, 0.965925813, 1.48942902e-09, 0.965925813, 0.258819073, -1, -1.48942902e-09, 1.13133414e-08)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Position = Vector3.new(10.0600462, 5.20003223, -9.24562836)
- Part7.Orientation = Vector3.new(-15, 90, 0)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshType = Enum.MeshType.Cylinder
- Sound9.Name = "FireSound"
- Sound9.Parent = Part7
- Sound9.Pitch = 0.64999997615814
- Sound9.SoundId = "http://roblox.com/asset/?id=10209798"
- Sound9.Volume = 1
- Sound10.Name = "Reload"
- Sound10.Parent = Part7
- Sound10.SoundId = "http://www.roblox.com/asset/?id=95309699"
- Sound10.Volume = 1
- Sound11.Name = "Spinup"
- Sound11.Parent = Part7
- Sound11.Pitch = 0.81000000238419
- Sound11.SoundId = "http://roblox.com/asset/?id=10209780"
- Sound11.Volume = 1
- Weld12.Parent = Part7
- Weld12.C0 = CFrame.new(-8.05127456e-06, 5.60613785e-07, 4.80133728e-08, 1, 1.61265423e-09, -1.52461744e-05, -9.3673036e-10, 1, 1.74638448e-13, 7.62000855e-06, -5.42665685e-14, 1)
- Weld12.C1 = CFrame.new(-8.05127456e-06, 5.60613785e-07, 4.80133728e-08, 1, 1.61265423e-09, -1.52461744e-05, -9.3673036e-10, 1, 1.74638448e-13, 7.62000855e-06, -5.42665685e-14, 1)
- Weld13.Parent = Part7
- Weld13.C0 = CFrame.new(-4.08887473e-07, 2.28349435e-07, -9.38336996e-07, -0.510256767, 3.51973775e-08, 0.860022366, -0.0429474972, 0.998752594, -0.0254809801, -0.858948946, -0.0499376878, -0.50962007)
- Weld13.C1 = CFrame.new(-4.08887473e-07, 2.28349435e-07, -9.38336996e-07, -0.510256767, 3.51973775e-08, 0.860022366, -0.0429474972, 0.998752594, -0.0254809801, -0.858948946, -0.0499376878, -0.50962007)
- Weld14.Parent = Part7
- Weld14.C0 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
- Weld14.C1 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
- Weld15.Parent = Part7
- Weld15.C0 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
- Weld15.C1 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
- Weld16.Parent = Part7
- Weld16.C0 = CFrame.new(-1.49206871e-05, 1.48607512e-06, 2.61855757e-06, -0.99434489, 4.83356707e-05, 0.106200993, 0.000135254653, 0.999992192, 0.000821616559, -0.106202453, 0.000831683574, -0.994336367)
- Weld16.C1 = CFrame.new(-1.49206871e-05, 1.48607512e-06, 2.61855757e-06, -0.99434489, 4.83356707e-05, 0.106200993, 0.000135254653, 0.999992192, 0.000821616559, -0.106202453, 0.000831683574, -0.994336367)
- Weld17.Parent = Part7
- Weld17.C0 = CFrame.new(-8.43965751e-08, -6.75717502e-07, 1.6926748e-07, -0.711260438, -1.48397237e-06, 0.702928543, 0.693642378, 0.162007347, 0.701864541, -0.113880634, 0.986789525, -0.115228392)
- Weld17.C1 = CFrame.new(-8.43965751e-08, -6.75717502e-07, 1.6926748e-07, -0.711260438, -1.48397237e-06, 0.702928543, 0.693642378, 0.162007347, 0.701864541, -0.113880634, 0.986789525, -0.115228392)
- Weld18.Parent = Part7
- Weld18.C0 = CFrame.new(8.02439644e-08, 4.75047663e-08, -5.99234056e-07, -0.510256827, -4.76948389e-06, 0.860022366, -0.0429465957, 0.998752773, -0.0254749581, -0.858949125, -0.0499337502, -0.509620309)
- Weld18.C1 = CFrame.new(8.02439644e-08, 4.75047663e-08, -5.99234056e-07, -0.510256827, -4.76948389e-06, 0.860022366, -0.0429465957, 0.998752773, -0.0254749581, -0.858949125, -0.0499337502, -0.509620309)
- Weld19.Parent = Part7
- Weld19.C0 = CFrame.new(2.5905249e-06, -7.38690278e-06, -3.38572863e-06, 0.576513588, 6.90224058e-11, 0.817087591, 0.601113915, 0.677330732, -0.424128741, -0.553438544, 0.735678673, 0.390490383)
- Weld19.C1 = CFrame.new(2.5905249e-06, -7.38690278e-06, -3.38572863e-06, 0.576513588, 6.90224058e-11, 0.817087591, 0.601113915, 0.677330732, -0.424128741, -0.553438544, 0.735678673, 0.390490383)
- Weld20.Parent = Part7
- Weld20.C0 = CFrame.new(0, 0, 0, 2.62805515e-05, 9.37869481e-06, 1.00000036, 7.64430752e-06, 1.0000006, -9.45848296e-06, -1.0000006, 7.57723137e-06, 2.6070913e-05)
- Weld20.C1 = CFrame.new(0, 0, 0, 2.62805515e-05, 9.37869481e-06, 1.00000036, 7.64430752e-06, 1.0000006, -9.45848296e-06, -1.0000006, 7.57723137e-06, 2.6070913e-05)
- Weld21.Parent = Part7
- Weld21.C0 = CFrame.new(-1.16339243e-05, -7.47603622e-07, 1.42308963e-05, 0.840285301, 0.000319318962, -0.542144656, 0.00125857349, 0.999992073, 0.00253892899, 0.542142093, -0.00281555997, 0.840277374)
- Weld21.C1 = CFrame.new(-1.16339243e-05, -7.47603622e-07, 1.42308963e-05, 0.840285301, 0.000319318962, -0.542144656, 0.00125857349, 0.999992073, 0.00253892899, 0.542142093, -0.00281555997, 0.840277374)
- Weld22.Parent = Part7
- Weld22.C0 = CFrame.new(2.74268608e-09, 1.74765361e-07, -7.41032181e-07, -0.715460241, -3.59581418e-06, 0.69865346, 0.427248538, 0.791217864, 0.437530518, -0.552788675, 0.611534357, -0.566083431)
- Weld22.C1 = CFrame.new(2.74268608e-09, 1.74765361e-07, -7.41032181e-07, -0.715460241, -3.59581418e-06, 0.69865346, 0.427248538, 0.791217864, 0.437530518, -0.552788675, 0.611534357, -0.566083431)
- VehicleSeat23.Parent = Model6
- VehicleSeat23.Material = Enum.Material.SmoothPlastic
- VehicleSeat23.BrickColor = BrickColor.new("Really black")
- VehicleSeat23.Transparency = 1
- VehicleSeat23.Rotation = Vector3.new(180, -0.00999999978, 178.569992)
- VehicleSeat23.Anchored = true
- VehicleSeat23.CanCollide = false
- VehicleSeat23.Size = Vector3.new(1, 1, 2.5999999)
- VehicleSeat23.CFrame = CFrame.new(11.8541136, 3.60802007, -9.44326401, -0.999686956, -0.0250248201, -0.000140241871, -0.0250195414, 0.999686718, -3.59148835e-05, 0.000141557466, -3.27123234e-05, -1.00000072)
- VehicleSeat23.BottomSurface = Enum.SurfaceType.Smooth
- VehicleSeat23.FrontSurface = Enum.SurfaceType.Inlet
- VehicleSeat23.TopSurface = Enum.SurfaceType.Smooth
- VehicleSeat23.MaxSpeed = 202
- VehicleSeat23.Torque = 30
- VehicleSeat23.TurnSpeed = 0.69999998807907
- VehicleSeat23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- VehicleSeat23.Position = Vector3.new(11.8541136, 3.60802007, -9.44326401)
- VehicleSeat23.Orientation = Vector3.new(0, -179.98999, -1.42999995)
- VehicleSeat23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound24.Name = "BrakeOff"
- Sound24.Parent = VehicleSeat23
- Sound24.SoundId = "rbxassetid://209946451"
- Sound25.Name = "BrakeOn"
- Sound25.Parent = VehicleSeat23
- Sound25.SoundId = "rbxassetid://209946416"
- Sound26.Name = "EngineIdle"
- Sound26.Parent = VehicleSeat23
- Sound26.SoundId = "rbxassetid://189517472"
- Sound26.Looped = true
- Sound27.Name = "EngineStart"
- Sound27.Parent = VehicleSeat23
- Sound27.SoundId = "rbxassetid://174967904"
- Sound27.Volume = 1
- Sound28.Name = "EngineStop"
- Sound28.Parent = VehicleSeat23
- Sound28.SoundId = "rbxassetid://174967918"
- Sound28.Volume = 1
- Sound29.Name = "Horn"
- Sound29.Parent = VehicleSeat23
- Sound29.SoundId = "rbxassetid://143133249"
- Sound29.Volume = 1
- Sound29.Looped = true
- Sound30.Name = "SignalOff"
- Sound30.Parent = VehicleSeat23
- Sound30.SoundId = "rbxassetid://144412085"
- Sound31.Name = "SignalOn"
- Sound31.Parent = VehicleSeat23
- Sound31.SoundId = "rbxassetid://144412054"
- Sound32.Name = "TireNoise"
- Sound32.Parent = VehicleSeat23
- Sound32.SoundId = "rbxassetid://188608071"
- Sound32.Volume = 0
- Sound32.Looped = true
- Folder33.Name = "ATSVariables"
- Folder33.Parent = VehicleSeat23
- BoolValue34.Name = "AutomaticMode"
- BoolValue34.Parent = Folder33
- BoolValue34.Value = true
- IntValue35.Name = "Gear"
- IntValue35.Parent = Folder33
- NumberValue36.Name = "RPM"
- NumberValue36.Parent = Folder33
- NumberValue37.Name = "SuspensionAngle"
- NumberValue37.Parent = Folder33
- NumberValue37.Value = 5
- NumberValue38.Name = "SmoothThrottle"
- NumberValue38.Parent = Folder33
- BoolValue39.Name = "CruiseControl"
- BoolValue39.Parent = Folder33
- NumberValue40.Name = "SuspensionDampening"
- NumberValue40.Parent = Folder33
- NumberValue40.Value = 2000
- NumberValue41.Name = "SuspensionPower"
- NumberValue41.Parent = Folder33
- NumberValue41.Value = 300000
- NumberValue42.Name = "Clutch"
- NumberValue42.Parent = Folder33
- NumberValue42.Value = 1
- NumberValue43.Name = "WheelSpeed"
- NumberValue43.Parent = Folder33
- NumberValue44.Name = "TrueBrake"
- NumberValue44.Parent = Folder33
- Script45.Name = "DynDSGiver"
- Script45.Parent = VehicleSeat23
- table.insert(cors,sandbox(Script45,function()
- -- DynDS 1.2.0
- --------------------------------------------------------------------------------------------------
- local P = script.Parent
- local body = P.Parent
- local car = body.Parent
- for i,v in pairs(script:GetChildren()) do
- if (v:FindFirstChild("Car")) and (v.Car:IsA("ObjectValue")) then
- v.Car.Value = car
- end
- end
- P.ChildAdded:connect(function(child)
- if child:IsA("Weld") and (child.Part1) and (child.Part1.Name == "HumanoidRootPart") then
- local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if (player) then
- for i,v in pairs(script:GetChildren()) do
- v:Clone().Parent = player.PlayerGui
- end
- end
- end
- end)
- end))
- ScreenGui46.Name = "DynDS"
- ScreenGui46.Parent = Script45
- ObjectValue47.Name = "Car"
- ObjectValue47.Parent = ScreenGui46
- LocalScript48.Name = "DynDS"
- LocalScript48.Parent = ScreenGui46
- table.insert(cors,sandbox(LocalScript48,function()
- -- DynDS 1.2.0
- --------------------------------------------------------------------------------------------------
- -- Changing anything below is likely going to break the car, only advanced scripters should continue.
- local UIS = game:GetService("UserInputService")
- local P = script.Parent
- local player = game.Players.LocalPlayer
- local character = player.Character
- local cam = game.Workspace.CurrentCamera
- cam.CameraType = Enum.CameraType.Follow
- cam.CameraSubject = character.Humanoid
- -- Find and disable ATS
- local ATS = P.Parent:WaitForChild("Drive")
- ATS.Disabled = true
- wait(0.2)
- --// Car variables
- local car = P.Car.Value
- local body = car.Body
- local seat = body.VehicleSeat
- seat.HeadsUpDisplay = false
- local vars = seat.ATSVariables
- --// GUI variables
- local UI = P.GUI
- local leftMenu = UI.Left
- local controlsFrame = leftMenu.ControlsFrame
- local rpmMeter = UI.RPMMeter
- local topMenu = UI.Top
- local rightMenu = UI.Right
- --// Wheels
- local wheels = {}
- local steerMotor = nil
- for i,v in pairs(car.Wheels:GetChildren()) do
- table.insert(wheels, v.Wheel)
- if (v:FindFirstChild("Steer")) and (not steerMotor) then
- steerMotor = v.Steer.Motor
- end
- end
- local wheelDiameter = wheels[1].Size.x
- --// Lights
- local brakeLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Brake")) and car.Lights.Brake:GetChildren() or {}
- local reverseLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Reverse")) and car.Lights.Reverse:GetChildren() or {}
- local beamLights1 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Beams")) and car.Lights.Beams.Front:GetChildren() or {}
- local beamLights2 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Beams")) and car.Lights.Beams.Rear:GetChildren() or {}
- local hiBeamLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("HiBeams")) and car.Lights.HiBeams:GetChildren() or {}
- local leftSignalLights1 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Left")) and car.Lights.Left.Front:GetChildren() or {}
- local leftSignalLights2 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Left")) and car.Lights.Left.Rear:GetChildren() or {}
- local rightSignalLights1= (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Right")) and car.Lights.Right.Front:GetChildren() or {}
- local rightSignalLights2= (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Right")) and car.Lights.Right.Rear:GetChildren() or {}
- --// Car state
- local automatic = vars.AutomaticMode
- local beamsOn = 0
- local hazardActive = false
- local signalLeftActive = false
- local signalRightActive = false
- local signalOn = false
- local hibeamsOn = false
- local handbrakeOn = false
- local timer = 0.0
- local currentGear = vars.Gear
- local suspensionIncrement = 0.0
- local cruiseControl = vars.CruiseControl
- local blinkerSensor = false
- --// -------------------
- --// Helper functions
- --// -------------------
- function Clamp(val, Min, Max) return math.min( math.max(val, Min), Max) end
- function SetHandbrakeForce(force)
- handbrakeOn = force > 0
- rpmMeter.PBrake.Visible = handbrakeOn
- if (handbrakeOn == true) then seat.BrakeOn:Play() else seat.BrakeOff:Play() end
- for i,v in pairs(wheels) do
- if (v:FindFirstChild("EBrake")) then
- v.EBrake.cframe = v.CFrame
- v.EBrake.maxTorque = Vector3.new(force,force,force)
- end
- end
- end
- function SetLights(lightModel, state)
- for _,v in pairs(lightModel) do
- if (v:IsA("BasePart")) then
- if v:FindFirstChild("Light") then v.Light.Enabled = state end
- v.Material = state and Enum.Material.Neon or Enum.Material.SmoothPlastic
- v.Transparency = v.Parent.Properties["BrickTransparency"..(state and "On" or "Off")].Value
- v.BrickColor = v.Parent.Properties["BrickColor"..(state and "On" or "Off")].Value
- end
- end
- end
- function StartEngine()
- SetGUIInfo("Starting Engine")
- seat.EngineStart:Play()
- wait(1.3)
- seat.EngineIdle:Play()
- ATS.Disabled = false
- SetGUIInfo("Engine started")
- end
- function StopEngine()
- SetGUIInfo("Engine stopped")
- seat.EngineStop:Play()
- wait(0.2)
- seat.EngineIdle:Stop()
- ATS.Disabled = true
- end
- function SetGear(gear)
- if (automatic.Value) then return end
- currentGear.Value = Clamp(gear, -1, 6)
- SetLights(reverseLights, currentGear.Value < 0)
- end
- -- This function will reset the camera and CoreGui correctly.
- function ResetPlayer()
- if (cam) then
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraSubject = character.Humanoid
- end
- end
- function SetGUIInfo(text)
- topMenu.Message.Text = text
- end
- function Flip()
- local g = Instance.new("BodyGyro", car.Body.VehicleSeat)
- g.maxTorque = Vector3.new(math.huge, 0, math.huge)
- game.Debris:AddItem(g, 3)
- end
- function ChangeCam()
- if (cam.CameraType == Enum.CameraType.Track) then
- cam.CameraType = Enum.CameraType.Follow
- else
- cam.CameraType = Enum.CameraType.Track
- end
- end
- function ToggleCC(on)
- if (cruiseControl.Value ~= on) then SetGUIInfo("Cruise Control "..(on and "enabled" or "disabled")) end
- cruiseControl.Value = on
- end
- function ToggleLights(override)
- beamsOn = override and override or (beamsOn + 1) % 3
- if (beamsOn == 1) then
- SetLights(beamLights1, true)
- SetLights(beamLights2, true)
- rightMenu.LightSwitch.Image = "rbxassetid://151673100"
- rightMenu.LightSwitch.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
- SetGUIInfo("Beams: ON")
- elseif (beamsOn == 2) then
- rightMenu.LightSwitch.Image = "rbxassetid://165966725"
- SetGUIInfo("Beams: AUTO")
- else
- SetLights(beamLights1, false)
- SetLights(beamLights2, false)
- rightMenu.LightSwitch.Image = "rbxassetid://151673087"
- rightMenu.LightSwitch.Style = Enum.ButtonStyle.RobloxRoundButton
- SetGUIInfo("Beams: OFF")
- end
- end
- ---GENERAL FUNCTIONS-------------------------------
- seat.ChildRemoved:connect(function(child)
- if child.Name == "SeatWeld" then
- ResetPlayer()
- SetHandbrakeForce(math.huge)
- seat.TireNoise:Stop()
- seat.EngineIdle:Stop()
- P:Destroy()
- end
- end)
- function ToLinear(angular)
- return angular * 1 / (0.257 * wheelDiameter)
- end
- local controlsOpen = false
- rightMenu.ControlsButton.MouseButton1Click:connect(function()
- if (controlsOpen) then
- controlsFrame:TweenPosition(UDim2.new(-1, 0, 0, 0), "Out", "Quart", 1, true)
- controlsOpen = false
- else
- controlsFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quart", 1, true)
- controlsOpen = true
- end
- end)
- UIS.InputBegan:connect(function(input)
- if (input.KeyCode == Enum.KeyCode.X) then
- if (ATS.Disabled) then
- StartEngine()
- ToggleLights(2)
- else
- StopEngine()
- ToggleLights(0)
- end
- elseif (input.KeyCode == Enum.KeyCode.V) then Flip()
- elseif (input.KeyCode == Enum.KeyCode.C) then ChangeCam()
- elseif (input.KeyCode == Enum.KeyCode.Z) then ToggleCC(not cruiseControl.Value)
- elseif (input.KeyCode == Enum.KeyCode.R) or (input.KeyCode == Enum.KeyCode.ButtonR1) then
- SetGear(currentGear.Value+1)
- elseif (input.KeyCode == Enum.KeyCode.F) or (input.KeyCode == Enum.KeyCode.ButtonL1) then
- SetGear(currentGear.Value-1)
- elseif (input.KeyCode == Enum.KeyCode.Q) then
- signalLeftActive = not signalLeftActive
- signalRightActive = false
- elseif (input.KeyCode == Enum.KeyCode.E) then
- signalRightActive = not signalRightActive
- signalLeftActive = false
- elseif (input.KeyCode == Enum.KeyCode.T) then
- suspensionIncrement = 10
- elseif (input.KeyCode == Enum.KeyCode.G) then
- suspensionIncrement = -10
- elseif (input.KeyCode == Enum.KeyCode.H) then
- seat.Horn:Play()
- elseif (input.KeyCode == Enum.KeyCode.L) then
- ToggleLights()
- elseif (input.KeyCode == Enum.KeyCode.K) then
- hibeamsOn = not hibeamsOn
- SetLights(hiBeamLights, hibeamsOn)
- elseif (input.KeyCode == Enum.KeyCode.P) then
- SetHandbrakeForce(handbrakeOn and 0 or math.huge)
- end
- end)
- UIS.InputEnded:connect(function(input)
- if (input.KeyCode == Enum.KeyCode.T) or (input.KeyCode == Enum.KeyCode.G) then
- suspensionIncrement = 0
- elseif (input.KeyCode == Enum.KeyCode.H) then
- seat.Horn:Stop()
- end
- end)
- rightMenu.LightSwitch.MouseButton1Click:connect(ToggleLights)
- --// Button for hazards
- rightMenu.HazardSwitch.MouseButton1Click:connect(function() hazardActive = not hazardActive end)
- --// Button for gear type
- rightMenu.TypeButton.MouseButton1Click:connect(function()
- automatic.Value = not automatic.Value
- rightMenu.TypeButton.Text = automatic.Value and "Auto" or "Manual"
- end)
- function UpdateBlinkers()
- if (steerMotor.CurrentAngle == 0) and (blinkerSensor) then
- blinkerSensor = false
- signalLeftActive = false
- signalRightActive = false
- end
- if (math.abs(steerMotor.CurrentAngle) > 0) then
- blinkerSensor = true
- end
- if (timer < 0) then
- timer = 0.4
- signalOn = not signalOn
- if (signalLeftActive or signalRightActive or hazardActive) then
- SetLights(leftSignalLights1, (hazardActive or signalLeftActive) and signalOn)
- SetLights(leftSignalLights2, (hazardActive or signalLeftActive) and signalOn)
- SetLights(rightSignalLights1, (hazardActive or signalRightActive) and signalOn)
- SetLights(rightSignalLights2, (hazardActive or signalRightActive) and signalOn)
- topMenu.Left.Visible = ((hazardActive or signalLeftActive) and signalOn)
- topMenu.Right.Visible = ((hazardActive or signalRightActive) and signalOn)
- rightMenu.HazardSwitch.Style = (hazardActive and signalOn) and Enum.ButtonStyle.RobloxRoundDefaultButton or Enum.ButtonStyle.RobloxRoundButton
- if (signalOn) then
- seat.SignalOn:Play()
- seat.SignalOff:Stop()
- else
- seat.SignalOn:Stop()
- seat.SignalOff:Play()
- end
- else
- SetLights(rightSignalLights1, false)
- SetLights(rightSignalLights2, false)
- SetLights(leftSignalLights1, false)
- SetLights(leftSignalLights2, false)
- rightMenu.HazardSwitch.Style = Enum.ButtonStyle.RobloxRoundButton
- topMenu.Left.Visible = false
- topMenu.Right.Visible = false
- end
- end
- end
- function Init()
- seat.TireNoise:Play()
- SetHandbrakeForce(0)
- end
- function Main(deltaTime)
- timer = timer - deltaTime
- local brake = vars.TrueBrake.Value
- vars.SuspensionAngle.Value = Clamp(vars.SuspensionAngle.Value + suspensionIncrement * deltaTime, 0, 25)
- local wheelSpeed = vars.WheelSpeed.Value
- if (brake > 0.0) then ToggleCC(false) end
- --// Sound
- seat.TireNoise.Volume = math.min(seat.Velocity.Magnitude / 200, 0.3)
- seat.EngineIdle.Pitch = 0.1 + vars.RPM.Value
- seat.EngineIdle.Volume = 0.1 + 0.9 * vars.SmoothThrottle.Value
- -- Lights
- if (beamsOn == 2) then
- local hoursAfterMidnight = game.Lighting:GetMinutesAfterMidnight() / 60
- SetLights(beamLights1, (hoursAfterMidnight > 18 or hoursAfterMidnight < 6))
- SetLights(beamLights2, (hoursAfterMidnight > 18 or hoursAfterMidnight < 6))
- end
- SetLights(reverseLights, currentGear.Value < 0)
- SetLights(brakeLights, brake > 0)
- UpdateBlinkers()
- -- Gear indicator
- rpmMeter.Gear.Text = (currentGear.Value > 0) and currentGear.Value or (currentGear.Value < 0) and 'R' or 'N'
- -- Velocity indicator
- local velText = math.floor(wheelSpeed+0.5).." sps"
- rpmMeter.Velocity.Text = velText
- -- RPM indicators
- rpmMeter.RPMIndicator.Rotation = -220 + 160 * (0.6 * vars.RPM.Value + 0.1)
- -- Clutch indicator
- rpmMeter.Clutch.Bar.Size = UDim2.new(0,5,vars.Clutch.Value,0)
- rpmMeter.Clutch.Bar.Position = UDim2.new(1,-5,1-vars.Clutch.Value,0)
- end
- Init()
- while true do
- local success, message = pcall(Main, wait())
- if (not success) then
- print("DynDS error: "..message)
- ResetPlayer()
- P:Destroy() -- Delete GUI
- break
- end
- end
- end))
- Frame49.Name = "GUI"
- Frame49.Parent = ScreenGui46
- Frame49.Transparency = 1
- Frame49.Size = UDim2.new(1, 0, 1, 0)
- Frame49.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame49.BackgroundTransparency = 1
- Frame49.BorderSizePixel = 0
- Frame50.Name = "Left"
- Frame50.Parent = Frame49
- Frame50.Transparency = 1
- Frame50.Size = UDim2.new(0, 200, 0.5, 0)
- Frame50.Position = UDim2.new(0, 0, 0.25, 0)
- Frame50.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame50.BackgroundTransparency = 1
- Frame50.BorderSizePixel = 0
- ScrollingFrame51.Name = "ControlsFrame"
- ScrollingFrame51.Parent = Frame50
- ScrollingFrame51.Transparency = 0.5
- ScrollingFrame51.Size = UDim2.new(1, 0, 1, 0)
- ScrollingFrame51.Position = UDim2.new(-1, 0, 0, 0)
- ScrollingFrame51.CanvasSize = UDim2.new(0, 0, 0, 360)
- ScrollingFrame51.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame51.BackgroundTransparency = 0.5
- ScrollingFrame51.ZIndex = 2
- ScrollingFrame51.BottomImage = "http://www.roblox.com/asset/?id=158362221"
- ScrollingFrame51.MidImage = "http://www.roblox.com/asset/?id=158362264"
- ScrollingFrame51.ScrollBarThickness = 10
- ScrollingFrame51.TopImage = "http://www.roblox.com/asset/?id=158362307"
- TextLabel52.Parent = ScrollingFrame51
- TextLabel52.Transparency = 1
- TextLabel52.Size = UDim2.new(1, 0, 0, 30)
- TextLabel52.Text = "V - Flip"
- TextLabel52.Position = UDim2.new(0, 0, 0, 120)
- TextLabel52.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel52.BackgroundTransparency = 1
- TextLabel52.ZIndex = 2
- TextLabel52.Font = Enum.Font.SourceSans
- TextLabel52.FontSize = Enum.FontSize.Size18
- TextLabel52.TextColor3 = Color3.new(1, 1, 1)
- TextLabel52.TextWrapped = true
- TextLabel53.Parent = ScrollingFrame51
- TextLabel53.Transparency = 1
- TextLabel53.Size = UDim2.new(1, 0, 0, 30)
- TextLabel53.Text = "C - Change camera"
- TextLabel53.Position = UDim2.new(0, 0, 0, 150)
- TextLabel53.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel53.BackgroundTransparency = 1
- TextLabel53.ZIndex = 2
- TextLabel53.Font = Enum.Font.SourceSans
- TextLabel53.FontSize = Enum.FontSize.Size18
- TextLabel53.TextColor3 = Color3.new(1, 1, 1)
- TextLabel53.TextWrapped = true
- TextLabel54.Parent = ScrollingFrame51
- TextLabel54.Transparency = 1
- TextLabel54.Size = UDim2.new(1, 0, 0, 30)
- TextLabel54.Text = "Z - Cruise control"
- TextLabel54.Position = UDim2.new(0, 0, 0, 180)
- TextLabel54.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel54.BackgroundTransparency = 1
- TextLabel54.ZIndex = 2
- TextLabel54.Font = Enum.Font.SourceSans
- TextLabel54.FontSize = Enum.FontSize.Size18
- TextLabel54.TextColor3 = Color3.new(1, 1, 1)
- TextLabel54.TextWrapped = true
- TextLabel55.Parent = ScrollingFrame51
- TextLabel55.Transparency = 1
- TextLabel55.Size = UDim2.new(1, 0, 0, 30)
- TextLabel55.Text = "R/F - Manual Up/Down"
- TextLabel55.Position = UDim2.new(0, 0, 0, 30)
- TextLabel55.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel55.BackgroundTransparency = 1
- TextLabel55.ZIndex = 2
- TextLabel55.Font = Enum.Font.SourceSans
- TextLabel55.FontSize = Enum.FontSize.Size18
- TextLabel55.TextColor3 = Color3.new(1, 1, 1)
- TextLabel55.TextWrapped = true
- TextLabel56.Parent = ScrollingFrame51
- TextLabel56.Transparency = 1
- TextLabel56.Size = UDim2.new(1, 0, 0, 30)
- TextLabel56.Text = "WASD / Arrows - Drive"
- TextLabel56.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel56.BackgroundTransparency = 1
- TextLabel56.ZIndex = 2
- TextLabel56.Font = Enum.Font.SourceSans
- TextLabel56.FontSize = Enum.FontSize.Size18
- TextLabel56.TextColor3 = Color3.new(1, 1, 1)
- TextLabel56.TextWrapped = true
- TextLabel57.Parent = ScrollingFrame51
- TextLabel57.Transparency = 1
- TextLabel57.Size = UDim2.new(1, 0, 0, 30)
- TextLabel57.Text = "X - Start / Stop"
- TextLabel57.Position = UDim2.new(0, 0, 0, 210)
- TextLabel57.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel57.BackgroundTransparency = 1
- TextLabel57.ZIndex = 2
- TextLabel57.Font = Enum.Font.SourceSans
- TextLabel57.FontSize = Enum.FontSize.Size18
- TextLabel57.TextColor3 = Color3.new(1, 1, 1)
- TextLabel57.TextWrapped = true
- TextLabel58.Parent = ScrollingFrame51
- TextLabel58.Transparency = 1
- TextLabel58.Size = UDim2.new(1, 0, 0, 30)
- TextLabel58.Text = "H - Horn"
- TextLabel58.Position = UDim2.new(0, 0, 0, 90)
- TextLabel58.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel58.BackgroundTransparency = 1
- TextLabel58.ZIndex = 2
- TextLabel58.Font = Enum.Font.SourceSans
- TextLabel58.FontSize = Enum.FontSize.Size18
- TextLabel58.TextColor3 = Color3.new(1, 1, 1)
- TextLabel58.TextWrapped = true
- TextLabel59.Parent = ScrollingFrame51
- TextLabel59.Transparency = 1
- TextLabel59.Size = UDim2.new(1, 0, 0, 30)
- TextLabel59.Text = "T/G - Suspension"
- TextLabel59.Position = UDim2.new(0, 0, 0, 60)
- TextLabel59.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel59.BackgroundTransparency = 1
- TextLabel59.ZIndex = 2
- TextLabel59.Font = Enum.Font.SourceSans
- TextLabel59.FontSize = Enum.FontSize.Size18
- TextLabel59.TextColor3 = Color3.new(1, 1, 1)
- TextLabel59.TextWrapped = true
- TextLabel60.Parent = ScrollingFrame51
- TextLabel60.Transparency = 1
- TextLabel60.Size = UDim2.new(1, 0, 0, 30)
- TextLabel60.Text = "L - Lights"
- TextLabel60.Position = UDim2.new(0, 0, 0, 240)
- TextLabel60.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel60.BackgroundTransparency = 1
- TextLabel60.ZIndex = 2
- TextLabel60.Font = Enum.Font.SourceSans
- TextLabel60.FontSize = Enum.FontSize.Size18
- TextLabel60.TextColor3 = Color3.new(1, 1, 1)
- TextLabel60.TextWrapped = true
- TextLabel61.Parent = ScrollingFrame51
- TextLabel61.Transparency = 1
- TextLabel61.Size = UDim2.new(1, 0, 0, 30)
- TextLabel61.Text = "K - Hi-beams"
- TextLabel61.Position = UDim2.new(0, 0, 0, 270)
- TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel61.BackgroundTransparency = 1
- TextLabel61.ZIndex = 2
- TextLabel61.Font = Enum.Font.SourceSans
- TextLabel61.FontSize = Enum.FontSize.Size18
- TextLabel61.TextColor3 = Color3.new(1, 1, 1)
- TextLabel61.TextWrapped = true
- TextLabel62.Parent = ScrollingFrame51
- TextLabel62.Transparency = 1
- TextLabel62.Size = UDim2.new(1, 0, 0, 30)
- TextLabel62.Text = "Q/E - Signals"
- TextLabel62.Position = UDim2.new(0, 0, 0, 300)
- TextLabel62.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel62.BackgroundTransparency = 1
- TextLabel62.ZIndex = 2
- TextLabel62.Font = Enum.Font.SourceSans
- TextLabel62.FontSize = Enum.FontSize.Size18
- TextLabel62.TextColor3 = Color3.new(1, 1, 1)
- TextLabel62.TextWrapped = true
- TextLabel63.Parent = ScrollingFrame51
- TextLabel63.Transparency = 1
- TextLabel63.Size = UDim2.new(1, 0, 0, 30)
- TextLabel63.Text = "P - Parking brake"
- TextLabel63.Position = UDim2.new(0, 0, 0, 330)
- TextLabel63.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel63.BackgroundTransparency = 1
- TextLabel63.ZIndex = 2
- TextLabel63.Font = Enum.Font.SourceSans
- TextLabel63.FontSize = Enum.FontSize.Size18
- TextLabel63.TextColor3 = Color3.new(1, 1, 1)
- TextLabel63.TextWrapped = true
- Frame64.Name = "Right"
- Frame64.Parent = Frame49
- Frame64.Transparency = 0.34999999403954
- Frame64.Size = UDim2.new(0, 50, 0, 200)
- Frame64.Position = UDim2.new(1, -54, 0.5, -150)
- Frame64.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame64.BackgroundTransparency = 0.34999999403954
- Frame64.BorderColor3 = Color3.new(0.215686, 0.215686, 0.215686)
- Frame64.BorderSizePixel = 4
- ImageButton65.Name = "HazardSwitch"
- ImageButton65.Parent = Frame64
- ImageButton65.Transparency = 1
- ImageButton65.Size = UDim2.new(0, 50, 0, 50)
- ImageButton65.Style = Enum.ButtonStyle.RobloxRoundButton
- ImageButton65.Position = UDim2.new(0, 0, 0, 150)
- ImageButton65.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageButton65.BackgroundTransparency = 1
- ImageButton65.BorderSizePixel = 0
- ImageButton65.Image = "http://www.roblox.com/asset/?id=151678797"
- ImageButton66.Name = "LightSwitch"
- ImageButton66.Parent = Frame64
- ImageButton66.Transparency = 1
- ImageButton66.Size = UDim2.new(0, 50, 0, 50)
- ImageButton66.Style = Enum.ButtonStyle.RobloxRoundButton
- ImageButton66.Position = UDim2.new(0, 0, 0, 50)
- ImageButton66.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageButton66.BackgroundTransparency = 1
- ImageButton66.BorderSizePixel = 0
- ImageButton66.Image = "http://www.roblox.com/asset/?id=151673087"
- TextButton67.Name = "ControlsButton"
- TextButton67.Parent = Frame64
- TextButton67.Size = UDim2.new(0, 50, 0, 50)
- TextButton67.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton67.Text = "Help"
- TextButton67.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton67.Font = Enum.Font.SourceSans
- TextButton67.FontSize = Enum.FontSize.Size18
- TextButton67.TextColor3 = Color3.new(1, 1, 1)
- TextButton68.Name = "TypeButton"
- TextButton68.Parent = Frame64
- TextButton68.Size = UDim2.new(0, 50, 0, 50)
- TextButton68.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton68.Text = "Auto"
- TextButton68.Position = UDim2.new(0, 0, 0, 100)
- TextButton68.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton68.Font = Enum.Font.SourceSans
- TextButton68.FontSize = Enum.FontSize.Size18
- TextButton68.TextColor3 = Color3.new(1, 1, 1)
- Frame69.Name = "Top"
- Frame69.Parent = Frame49
- Frame69.Transparency = 0.34999999403954
- Frame69.Size = UDim2.new(0, 300, 0, 20)
- Frame69.Position = UDim2.new(0.5, -150, 0, 4)
- Frame69.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame69.BackgroundTransparency = 0.34999999403954
- Frame69.BorderColor3 = Color3.new(0.215686, 0.215686, 0.215686)
- Frame69.BorderSizePixel = 4
- TextLabel70.Name = "Message"
- TextLabel70.Parent = Frame69
- TextLabel70.Transparency = 1
- TextLabel70.Size = UDim2.new(1, 0, 1, 0)
- TextLabel70.Text = "Press X to start"
- TextLabel70.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel70.BackgroundTransparency = 1
- TextLabel70.BorderSizePixel = 0
- TextLabel70.Font = Enum.Font.SourceSans
- TextLabel70.FontSize = Enum.FontSize.Size18
- TextLabel70.TextColor3 = Color3.new(0.509804, 0.796079, 1)
- ImageLabel71.Name = "Left"
- ImageLabel71.Parent = Frame69
- ImageLabel71.Transparency = 1
- ImageLabel71.Rotation = 180
- ImageLabel71.Size = UDim2.new(0, 20, 0, 20)
- ImageLabel71.Visible = false
- ImageLabel71.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel71.BackgroundTransparency = 1
- ImageLabel71.ZIndex = 2
- ImageLabel71.Image = "rbxassetid://71659683"
- ImageLabel71.ImageColor3 = Color3.new(1, 0.494118, 0)
- ImageLabel72.Name = "Right"
- ImageLabel72.Parent = Frame69
- ImageLabel72.Transparency = 1
- ImageLabel72.Size = UDim2.new(0, 20, 0, 20)
- ImageLabel72.Position = UDim2.new(1, -20, 0, 0)
- ImageLabel72.Visible = false
- ImageLabel72.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel72.BackgroundTransparency = 1
- ImageLabel72.ZIndex = 2
- ImageLabel72.Image = "rbxassetid://71659683"
- ImageLabel72.ImageColor3 = Color3.new(1, 0.494118, 0)
- ImageLabel73.Name = "RPMMeter"
- ImageLabel73.Parent = Frame49
- ImageLabel73.Transparency = 1
- ImageLabel73.Size = UDim2.new(0, 200, 0, 200)
- ImageLabel73.Position = UDim2.new(1, -200, 1, -200)
- ImageLabel73.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel73.BackgroundTransparency = 1
- ImageLabel73.ZIndex = 2
- ImageLabel73.Image = "rbxassetid://188610998"
- ImageLabel74.Name = "RPMIndicator"
- ImageLabel74.Parent = ImageLabel73
- ImageLabel74.Transparency = 1
- ImageLabel74.Rotation = -220
- ImageLabel74.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel74.Position = UDim2.new(0, 20, 0, 20)
- ImageLabel74.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel74.BackgroundTransparency = 1
- ImageLabel74.ZIndex = 4
- ImageLabel74.Image = "rbxassetid://188611496"
- TextLabel75.Name = "Gear"
- TextLabel75.Parent = ImageLabel73
- TextLabel75.Transparency = 1
- TextLabel75.Size = UDim2.new(0, 60, 0, 0)
- TextLabel75.Text = "N"
- TextLabel75.Position = UDim2.new(0.5, -10, 0.800000012, 0)
- TextLabel75.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel75.BackgroundTransparency = 1
- TextLabel75.ZIndex = 2
- TextLabel75.Font = Enum.Font.SourceSans
- TextLabel75.FontSize = Enum.FontSize.Size24
- TextLabel75.TextColor3 = Color3.new(1, 1, 1)
- TextLabel76.Name = "Multiplier"
- TextLabel76.Parent = ImageLabel73
- TextLabel76.Transparency = 1
- TextLabel76.Size = UDim2.new(0, 60, 0, 0)
- TextLabel76.Text = "x1000"
- TextLabel76.Position = UDim2.new(0.5, -10, 0.400000006, 0)
- TextLabel76.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel76.BackgroundTransparency = 1
- TextLabel76.ZIndex = 2
- TextLabel76.Font = Enum.Font.SourceSans
- TextLabel76.FontSize = Enum.FontSize.Size18
- TextLabel76.TextColor3 = Color3.new(1, 1, 1)
- TextButton77.Name = "Velocity"
- TextButton77.Parent = ImageLabel73
- TextButton77.Transparency = 1
- TextButton77.Size = UDim2.new(0, 60, 0, 25)
- TextButton77.Text = "0 sps"
- TextButton77.Position = UDim2.new(0.5, -10, 1, -32)
- TextButton77.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton77.BackgroundTransparency = 1
- TextButton77.BorderSizePixel = 0
- TextButton77.ZIndex = 3
- TextButton77.Font = Enum.Font.SourceSans
- TextButton77.FontSize = Enum.FontSize.Size14
- TextButton77.TextColor3 = Color3.new(1, 1, 1)
- TextButton77.TextScaled = true
- TextButton77.TextWrapped = true
- ImageLabel78.Name = "PBrake"
- ImageLabel78.Parent = ImageLabel73
- ImageLabel78.Transparency = 1
- ImageLabel78.Size = UDim2.new(0, 40, 0, 40)
- ImageLabel78.Position = UDim2.new(0.5, -50, 0.5, 0)
- ImageLabel78.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel78.BackgroundTransparency = 1
- ImageLabel78.ZIndex = 3
- ImageLabel78.Image = "rbxassetid://123454312"
- Frame79.Name = "Clutch"
- Frame79.Parent = ImageLabel73
- Frame79.Size = UDim2.new(0, 30, 0, 100)
- Frame79.Style = Enum.FrameStyle.RobloxRound
- Frame79.Position = UDim2.new(1, -40, 1, -120)
- Frame79.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame79.ZIndex = 2
- Frame80.Name = "Bar"
- Frame80.Parent = Frame79
- Frame80.Rotation = 180
- Frame80.Size = UDim2.new(0, 5, 1, 0)
- Frame80.Position = UDim2.new(1, -5, 0, 0)
- Frame80.BackgroundColor3 = Color3.new(1, 1, 0)
- Frame80.ZIndex = 2
- TextLabel81.Name = "T"
- TextLabel81.Parent = Frame79
- TextLabel81.Rotation = 270
- TextLabel81.Size = UDim2.new(0, 1, 0, 1)
- TextLabel81.Text = "Clutch"
- TextLabel81.Position = UDim2.new(0, 0, 0.5, 0)
- TextLabel81.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel81.ZIndex = 2
- TextLabel81.Font = Enum.Font.SourceSans
- TextLabel81.FontSize = Enum.FontSize.Size18
- TextLabel81.TextColor3 = Color3.new(1, 1, 1)
- TextLabel81.TextStrokeTransparency = 0
- Script82.Name = "ATSGiver"
- Script82.Parent = VehicleSeat23
- table.insert(cors,sandbox(Script82,function()
- -- ATS 1.3.0
- --------------------------------------------------------------------------------------------------
- local P = script.Parent
- local body = P.Parent
- local car = body.Parent
- local vars = P.ATSVariables
- for i,v in pairs(script:GetChildren()) do
- if (v:FindFirstChild("Car")) and (v.Car:IsA("ObjectValue")) then
- v.Car.Value = car
- end
- end
- P.ChildAdded:connect(function(child)
- if child:IsA("Weld") and (child.Part1) and (child.Part1.Name == "HumanoidRootPart") then
- child.C0 = CFrame.new(0,P.Size.y*2,0) * CFrame.Angles(0,-math.pi/2,0)
- child.C1 = CFrame.new(0, 0, 0)
- local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
- if (player) then
- for i,v in pairs(script:GetChildren()) do
- v:Clone().Parent = player.PlayerGui
- end
- end
- end
- end)
- end))
- LocalScript83.Name = "Drive"
- LocalScript83.Parent = Script82
- table.insert(cors,sandbox(LocalScript83,function()
- -- ATS 1.3.0
- --------------------------------------------------------------------------------------------------
- local engineIdleDrag = 0.05 -- Affects coasting.
- local brakeMultiplier = 3.0 -- Affects braking power.
- --------------------------------------------------------------------------------------------------
- -- Changing anything below is likely going to break the car, only advanced scripters should continue.
- local UIS = game:GetService("UserInputService")
- local gamepadDeadzone = 0.05
- local P = script.Parent
- local player = game.Players.LocalPlayer
- wait(0.2)
- local car = script.Car.Value
- local body = car.Body
- local seat = body.VehicleSeat
- local vars = seat.ATSVariables
- local powerwheels = {}
- local steerMotors = {}
- for i,v in pairs(car.Wheels:GetChildren()) do
- if (v.Wheel:FindFirstChild("BAV")) and (v.Wheel.BAV.maxTorque.Magnitude > 0) then
- table.insert(powerwheels, v.Wheel)
- end
- if (v:FindFirstChild("Steer")) then
- table.insert(steerMotors, v.Steer.Motor)
- end
- end
- local wheelDiameter = powerwheels[1].Size.x
- local automatic = vars.AutomaticMode
- local redlineTimer = 0.0
- local engineRPM = vars.RPM
- local wheelRPM = 0.0
- local gearRatios = {-0.3, 0.0, 0.2, 0.33, 0.45, 0.66, 0.8, 1.0}
- local currentGear = vars.Gear
- local smoothThrottle = vars.SmoothThrottle
- local cruiseControl = vars.CruiseControl
- local clutch = vars.Clutch
- --------------------------------------------------------------------------------------------------
- -- Methods
- function Clamp(val, Min, Max) return math.min( math.max(val, Min), Max) end
- function GetInput()
- local inputs = {0.0, 0.0, 0.0} -- Forward, Brake, Steering
- local GP1state = UIS:GetGamepadState(Enum.UserInputType.Gamepad1)
- for i,v in pairs(GP1state) do
- if (v.KeyCode == Enum.KeyCode.ButtonR2) then
- if (currentGear.Value >= 0) then
- inputs[1] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
- else
- inputs[2] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
- end
- elseif (v.KeyCode == Enum.KeyCode.ButtonL2) then
- if (currentGear.Value >= 0) then
- inputs[2] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
- else
- inputs[1] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
- end
- elseif (v.KeyCode == Enum.KeyCode.Thumbstick1) then
- inputs[3] = (math.abs(v.Position.x) > gamepadDeadzone) and v.Position.x or 0.0
- end
- end
- if (currentGear.Value >= 0) then
- inputs[1] = math.max((seat.Throttle > 0) and seat.Throttle or 0.0, inputs[1])
- inputs[2] = math.max((seat.Throttle < 0) and -seat.Throttle or 0.0, inputs[2])
- else
- inputs[1] = math.max((seat.Throttle < 0) and -seat.Throttle or 0.0, inputs[1])
- inputs[2] = math.max((seat.Throttle > 0) and seat.Throttle or 0.0, inputs[2])
- end
- if (math.abs(seat.Steer) > math.abs(inputs[3])) then
- inputs[3] = seat.Steer
- end
- return inputs
- end
- function SetThrottle(newThrottle)
- newThrottle = ToAngular(newThrottle) -- Fix
- for i,v in pairs(powerwheels) do
- local dir = seat.CFrame.lookVector
- if (v.Parent:FindFirstChild("Steer")) then
- dir = (v.Parent.Steer.CFrame * CFrame.Angles(math.pi/2,0,0)).lookVector
- end
- v.BAV.angularvelocity = dir * newThrottle
- end
- end
- function SetGear(gear)
- currentGear.Value = Clamp(gear, -1, 6)
- end
- function GetGearRatio() return gearRatios[currentGear.Value+2] end
- function ToEngineRPM( _wheelRPM )
- if (gearRatios[currentGear.Value+2] == 0) then return 0 end
- return _wheelRPM / gearRatios[currentGear.Value+2]
- end
- function ToWheelRPM( _engineRPM ) return _engineRPM * gearRatios[currentGear.Value+2] end
- function ToAngular(linear) return linear * 0.257 * wheelDiameter end
- function ToLinear(angular) return angular * 1 / (0.257 * wheelDiameter) end
- function GetWheelSpeed()
- local wspd = 0.0
- for i,v in pairs(powerwheels) do
- local rVel = Vector3.new(v.RotVelocity.x, 0, v.RotVelocity.z).magnitude
- wspd = wspd + ToLinear(rVel)
- end
- wspd = wspd / #powerwheels
- vars.WheelSpeed.Value = wspd
- return wspd
- end
- function Main(deltaTime)
- -- Prerequisites
- redlineTimer = redlineTimer - deltaTime
- local inputs = GetInput()
- local brake = inputs[2] * brakeMultiplier
- vars.TrueBrake.Value = brake
- local throttle = (redlineTimer <= 0) and inputs[1] or 0.0
- smoothThrottle.Value = 0.8 * smoothThrottle.Value + 0.2 * throttle
- local trueSpeed = seat.Velocity.magnitude
- local wheelSpeed = GetWheelSpeed()
- clutch.Value = math.min(clutch.Value + deltaTime, 1.0)
- -- Steering
- local steerInfluence = 1 - math.min(trueSpeed / 300, 0.5)
- for i,v in pairs(steerMotors) do
- v.DesiredAngle = inputs[3] * seat.TurnSpeed * steerInfluence
- end
- -- Redline
- if (engineRPM.Value >= 1.0) then redlineTimer = 0.05 end
- -- Gearing
- if (automatic.Value) and (currentGear.Value == 0) and (brake > 0.0) then
- SetGear(-1)
- local t = brake
- brake = throttle
- throttle = t
- end
- if (automatic.Value) and (currentGear.Value == 0) and (throttle > 0.1) then SetGear(1) end
- if (automatic.Value) and (throttle < 0.1) and (engineRPM.Value < 0.15) and (currentGear.Value == 1 or currentGear.Value == -1) then SetGear(0) end
- if (automatic.Value) then
- if (engineRPM.Value > 0.9 and currentGear.Value > 0 and currentGear.Value < 6) then
- SetGear(currentGear.Value + 1)
- elseif (engineRPM.Value < 0.4 and currentGear.Value > 1) then
- SetGear(currentGear.Value - 1)
- end
- end
- -- Drivetrain
- local engineFeedback = (currentGear.Value ~= 0) and (wheelSpeed - math.abs(ToWheelRPM(engineRPM.Value) * seat.MaxSpeed)) * 0.1 or 0.0
- local engineDrag = (throttle < 0.5) and ((currentGear.Value ~= 0) and -(engineIdleDrag * math.abs(1/GetGearRatio())) or -1.0) or 0.0
- local tq = ((engineRPM.Value^2-(engineRPM.Value-0.05)^3) * 2.2 + 0.5) * seat.Torque * 0.01
- local gmul = (currentGear.Value ~= 0) and math.abs(1/GetGearRatio()) or 6
- local acc = cruiseControl.Value and 0.0 or (throttle * tq * gmul) + engineDrag + engineFeedback
- local change = (acc - brake) * deltaTime
- engineRPM.Value = Clamp(engineRPM.Value + change, 0.1, 1.0)
- wheelRPM = (1-clutch.Value) * wheelRPM + clutch.Value * ToWheelRPM(engineRPM.Value)
- SetThrottle(wheelRPM * seat.MaxSpeed)
- end
- currentGear.Changed:connect(function()
- clutch.Value = 0.0
- end)
- local success, message
- -- Main loop
- while true do
- success, message = pcall(Main, wait())
- if (not success) then break end
- end
- print("ATS error: "..message)
- end))
- ObjectValue84.Name = "Car"
- ObjectValue84.Parent = LocalScript83
- LocalScript85.Name = "DisableDetector"
- LocalScript85.Parent = LocalScript83
- table.insert(cors,sandbox(LocalScript85,function()
- -- ATS 1.3.0
- --------------------------------------------------------------------------------------------------
- local P = script.Parent
- local car = P.Car.Value
- local body = car.Body
- local seat = body.VehicleSeat
- local vars = seat.ATSVariables
- local wheelModels = car.Wheels:GetChildren()
- local wheels = {}
- for i,v in pairs(wheelModels) do
- table.insert(wheels, v.Wheel)
- end
- function Stop()
- for i,v in pairs(wheels) do
- if (v:FindFirstChild("BAV")) then
- v.BAV.angularvelocity = Vector3.new()
- end
- end
- vars.Gear.Value = 0
- vars.RPM.Value = 0
- vars.SmoothThrottle.Value = 0
- end
- seat.ChildRemoved:connect(function(child)
- if (child.Name == "SeatWeld") then
- Stop()
- script.Parent:Destroy()
- end
- end)
- P.Changed:connect(function(property)
- if (property == "Disabled") and (P.Disabled == true) then
- Stop()
- end
- end)
- end))
- Part86.Name = "Flat Brick"
- Part86.Parent = Model6
- Part86.BrickColor = BrickColor.new("Pink")
- Part86.Rotation = Vector3.new(0, 90, 0)
- Part86.Anchored = true
- Part86.FormFactor = Enum.FormFactor.Plate
- Part86.Size = Vector3.new(3.01000023, 0.879999995, 6.72000027)
- Part86.CFrame = CFrame.new(9.70695591, 2.55043006, -9.553442, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part86.TopSurface = Enum.SurfaceType.Smooth
- Part86.Color = Color3.new(1, 0.4, 0.8)
- Part86.Position = Vector3.new(9.70695591, 2.55043006, -9.553442)
- Part86.Orientation = Vector3.new(0, 90, 0)
- Part86.Color = Color3.new(1, 0.4, 0.8)
- Model87.Parent = Model6
- Part88.Parent = Model87
- Part88.BrickColor = BrickColor.new("Pink")
- Part88.Rotation = Vector3.new(-90, -14.9799995, 90)
- Part88.Anchored = true
- Part88.FormFactor = Enum.FormFactor.Symmetric
- Part88.Friction = 0
- Part88.Size = Vector3.new(2, 2, 1)
- Part88.CFrame = CFrame.new(7.73288679, 5.41915178, -9.39199829, 2.38218968e-06, -0.966010571, -0.258475751, -4.50551033e-06, -0.258473754, 0.966017485, -0.999992549, -1.1363386e-06, -4.93833295e-06)
- Part88.BottomSurface = Enum.SurfaceType.Smooth
- Part88.TopSurface = Enum.SurfaceType.Smooth
- Part88.Color = Color3.new(1, 0.4, 0.8)
- Part88.Position = Vector3.new(7.73288679, 5.41915178, -9.39199829)
- Part88.Orientation = Vector3.new(-75.0199966, -90, -180)
- Part88.Color = Color3.new(1, 0.4, 0.8)
- Decal89.Name = "roblox"
- Decal89.Parent = Part88
- Part90.Parent = Model87
- Part90.BrickColor = BrickColor.new("Pink")
- Part90.Rotation = Vector3.new(90, 75.0699997, -90)
- Part90.Anchored = true
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.Size = Vector3.new(1, 2, 1)
- Part90.CFrame = CFrame.new(6.73734713, 4.62088919, -10.8854084, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.Color = Color3.new(1, 0.4, 0.8)
- Part90.Position = Vector3.new(6.73734713, 4.62088919, -10.8854084)
- Part90.Orientation = Vector3.new(14.9299994, 90, 0)
- Part90.Color = Color3.new(1, 0.4, 0.8)
- Part91.Parent = Model87
- Part91.BrickColor = BrickColor.new("Pink")
- Part91.Rotation = Vector3.new(-89.8199997, 89.7799988, 74.7699966)
- Part91.Anchored = true
- Part91.FormFactor = Enum.FormFactor.Symmetric
- Part91.Size = Vector3.new(1, 2, 1)
- Part91.CFrame = CFrame.new(6.73734713, 4.62088919, -7.89923286, 0.000162719138, -0.000597731327, 0.999992907, -0.259664744, 0.965697825, 0.00061577803, -0.965691566, -0.259663045, 1.91976665e-06)
- Part91.BottomSurface = Enum.SurfaceType.Smooth
- Part91.TopSurface = Enum.SurfaceType.Smooth
- Part91.Color = Color3.new(1, 0.4, 0.8)
- Part91.Position = Vector3.new(6.73734713, 4.62088919, -7.89923286)
- Part91.Orientation = Vector3.new(-0.0399999991, 90, -15.0499992)
- Part91.Color = Color3.new(1, 0.4, 0.8)
- Part92.Parent = Model87
- Part92.BrickColor = BrickColor.new("Pink")
- Part92.Rotation = Vector3.new(-90, 60.0699997, 74.9499969)
- Part92.Anchored = true
- Part92.FormFactor = Enum.FormFactor.Symmetric
- Part92.Size = Vector3.new(1, 2, 1)
- Part92.CFrame = CFrame.new(9.1286459, 4.61806679, -8.49440002, 0.129554868, -0.481813043, 0.866635919, -0.225043207, 0.83691448, 0.498926967, -0.965690017, -0.259669006, -2.40034274e-06)
- Part92.BottomSurface = Enum.SurfaceType.Smooth
- Part92.TopSurface = Enum.SurfaceType.Smooth
- Part92.Color = Color3.new(1, 0.4, 0.8)
- Part92.Position = Vector3.new(9.1286459, 4.61806679, -8.49440002)
- Part92.Orientation = Vector3.new(-29.9299984, 90, -15.0499992)
- Part92.Color = Color3.new(1, 0.4, 0.8)
- Part93.Parent = Model87
- Part93.BrickColor = BrickColor.new("Pink")
- Part93.Rotation = Vector3.new(-89.8199997, 89.7799988, 89.8199997)
- Part93.Anchored = true
- Part93.FormFactor = Enum.FormFactor.Symmetric
- Part93.Friction = 0
- Part93.Size = Vector3.new(2, 1, 1)
- Part93.CFrame = CFrame.new(6.39750719, 5.82069778, -9.39254189, 2.00255135e-06, -0.000622527092, 0.999992907, -4.85261216e-06, 0.999999046, 0.000618824211, -0.999992549, -4.8251386e-06, 1.99152942e-06)
- Part93.TopSurface = Enum.SurfaceType.Smooth
- Part93.Color = Color3.new(1, 0.4, 0.8)
- Part93.Position = Vector3.new(6.39750719, 5.82069778, -9.39254189)
- Part93.Orientation = Vector3.new(-0.0399999991, 90, 0)
- Part93.Color = Color3.new(1, 0.4, 0.8)
- SpecialMesh94.Parent = Part93
- SpecialMesh94.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh94.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal95.Name = "face"
- Decal95.Parent = Part93
- Decal95.Texture = "rbxasset://textures/face.png"
- Part96.Parent = Model87
- Part96.BrickColor = BrickColor.new("Cool yellow")
- Part96.Rotation = Vector3.new(-89.8199997, 89.7799988, 89.8199997)
- Part96.Anchored = true
- Part96.FormFactor = Enum.FormFactor.Symmetric
- Part96.Friction = 0
- Part96.Size = Vector3.new(2, 1, 1)
- Part96.CFrame = CFrame.new(6.33781385, 5.72088623, -9.393116, 2.00255135e-06, -0.000622527092, 0.999992907, -4.85261216e-06, 0.999999046, 0.000618824211, -0.999992549, -4.8251386e-06, 1.99152942e-06)
- Part96.TopSurface = Enum.SurfaceType.Smooth
- Part96.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part96.Position = Vector3.new(6.33781385, 5.72088623, -9.393116)
- Part96.Orientation = Vector3.new(-0.0399999991, 90, 0)
- Part96.Color = Color3.new(0.992157, 0.917647, 0.552941)
- SpecialMesh97.Parent = Part96
- SpecialMesh97.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh97.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal98.Parent = Part96
- Decal98.Texture = "http://www.roblox.com/asset/?id=214083825"
- Part99.Parent = Model87
- Part99.BrickColor = BrickColor.new("Pink")
- Part99.Rotation = Vector3.new(-74.9700012, 60.0699997, 90.0199966)
- Part99.Anchored = true
- Part99.FormFactor = Enum.FormFactor.Symmetric
- Part99.Size = Vector3.new(1, 2, 1)
- Part99.CFrame = CFrame.new(9.52653599, 4.61720419, -10.090168, -0.000158634648, -0.498997033, 0.866595685, 0.259661227, 0.836857557, 0.481916815, -0.96569252, 0.22509782, 0.129437476)
- Part99.BottomSurface = Enum.SurfaceType.Smooth
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.Color = Color3.new(1, 0.4, 0.8)
- Part99.Position = Vector3.new(9.52653599, 4.61720419, -10.090168)
- Part99.Orientation = Vector3.new(-28.8099995, 81.5, 17.2399998)
- Part99.Color = Color3.new(1, 0.4, 0.8)
- Part100.Parent = Model87
- Part100.BrickColor = BrickColor.new("Pink")
- Part100.Transparency = 1
- Part100.Rotation = Vector3.new(90, 75.0699997, -90)
- Part100.Anchored = true
- Part100.FormFactor = Enum.FormFactor.Symmetric
- Part100.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part100.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part100.BottomSurface = Enum.SurfaceType.Smooth
- Part100.TopSurface = Enum.SurfaceType.Smooth
- Part100.Color = Color3.new(1, 0.4, 0.8)
- Part100.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part100.Orientation = Vector3.new(14.9299994, 90, 0)
- Part100.Color = Color3.new(1, 0.4, 0.8)
- Part101.Parent = Model87
- Part101.BrickColor = BrickColor.new("Pink")
- Part101.Transparency = 1
- Part101.Rotation = Vector3.new(90, 75.0699997, -90)
- Part101.Anchored = true
- Part101.FormFactor = Enum.FormFactor.Symmetric
- Part101.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part101.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(1, 0.4, 0.8)
- Part101.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part101.Orientation = Vector3.new(14.9299994, 90, 0)
- Part101.Color = Color3.new(1, 0.4, 0.8)
- Part102.Parent = Model87
- Part102.BrickColor = BrickColor.new("Pink")
- Part102.Transparency = 1
- Part102.Rotation = Vector3.new(90, 75.0699997, -90)
- Part102.Anchored = true
- Part102.FormFactor = Enum.FormFactor.Symmetric
- Part102.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part102.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part102.BottomSurface = Enum.SurfaceType.Smooth
- Part102.TopSurface = Enum.SurfaceType.Smooth
- Part102.Color = Color3.new(1, 0.4, 0.8)
- Part102.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part102.Orientation = Vector3.new(14.9299994, 90, 0)
- Part102.Color = Color3.new(1, 0.4, 0.8)
- Part103.Parent = Model87
- Part103.BrickColor = BrickColor.new("Pink")
- Part103.Transparency = 1
- Part103.Rotation = Vector3.new(90, 75.0699997, -90)
- Part103.Anchored = true
- Part103.FormFactor = Enum.FormFactor.Symmetric
- Part103.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part103.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part103.BottomSurface = Enum.SurfaceType.Smooth
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.Color = Color3.new(1, 0.4, 0.8)
- Part103.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part103.Orientation = Vector3.new(14.9299994, 90, 0)
- Part103.Color = Color3.new(1, 0.4, 0.8)
- Part104.Parent = Model87
- Part104.BrickColor = BrickColor.new("Pink")
- Part104.Transparency = 1
- Part104.Rotation = Vector3.new(90, 75.0699997, -90)
- Part104.Anchored = true
- Part104.FormFactor = Enum.FormFactor.Symmetric
- Part104.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part104.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part104.BottomSurface = Enum.SurfaceType.Smooth
- Part104.TopSurface = Enum.SurfaceType.Smooth
- Part104.Color = Color3.new(1, 0.4, 0.8)
- Part104.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part104.Orientation = Vector3.new(14.9299994, 90, 0)
- Part104.Color = Color3.new(1, 0.4, 0.8)
- Part105.Parent = Model87
- Part105.BrickColor = BrickColor.new("Pink")
- Part105.Transparency = 1
- Part105.Rotation = Vector3.new(90, 75.0699997, -90)
- Part105.Anchored = true
- Part105.FormFactor = Enum.FormFactor.Symmetric
- Part105.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
- Part105.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
- Part105.BottomSurface = Enum.SurfaceType.Smooth
- Part105.TopSurface = Enum.SurfaceType.Smooth
- Part105.Color = Color3.new(1, 0.4, 0.8)
- Part105.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
- Part105.Orientation = Vector3.new(14.9299994, 90, 0)
- Part105.Color = Color3.new(1, 0.4, 0.8)
- Part106.Name = "Flat Brick"
- Part106.Parent = Model6
- Part106.BrickColor = BrickColor.new("Pink")
- Part106.Rotation = Vector3.new(-180, -1.89999998, -180)
- Part106.Anchored = true
- Part106.FormFactor = Enum.FormFactor.Plate
- Part106.Size = Vector3.new(2.64000034, 0.879999995, 4.43000078)
- Part106.CFrame = CFrame.new(9.63145638, 2.55042696, -8.60208225, -0.999451816, 5.54630901e-07, -0.0331009291, 5.31142575e-07, 1, 7.18383831e-07, 0.0331009291, 7.0040835e-07, -0.999451816)
- Part106.TopSurface = Enum.SurfaceType.Smooth
- Part106.Color = Color3.new(1, 0.4, 0.8)
- Part106.Position = Vector3.new(9.63145638, 2.55042696, -8.60208225)
- Part106.Orientation = Vector3.new(0, -178.099991, 0)
- Part106.Color = Color3.new(1, 0.4, 0.8)
- Decal107.Parent = Part106
- Decal107.Texture = "http://www.roblox.com/asset/?id=214083825"
- Part108.Name = "Flat Brick"
- Part108.Parent = Model6
- Part108.BrickColor = BrickColor.new("Pink")
- Part108.Rotation = Vector3.new(0, 90, 0)
- Part108.Anchored = true
- Part108.FormFactor = Enum.FormFactor.Plate
- Part108.Size = Vector3.new(6.4000001, 0.879999995, 7.32999992)
- Part108.CFrame = CFrame.new(9.70201397, 3.27042294, -9.53845406, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part108.TopSurface = Enum.SurfaceType.Smooth
- Part108.Color = Color3.new(1, 0.4, 0.8)
- Part108.Position = Vector3.new(9.70201397, 3.27042294, -9.53845406)
- Part108.Orientation = Vector3.new(0, 90, 0)
- Part108.Color = Color3.new(1, 0.4, 0.8)
- ManualWeld109.Name = "Flat Brick-to-flag Strong Joint"
- ManualWeld109.Parent = Part108
- ManualWeld109.C0 = CFrame.new(-3.20000005, 0.439999998, 3.66499996, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld109.C1 = CFrame.new(0.633117676, -2.39999914, -5.66584015, 1.04308128e-07, -0.99999994, -4.7074078e-09, 4.31472608e-10, 1.4881345e-08, 1, -1, -8.19563866e-08, -2.99283052e-08)
- ManualWeld109.Part0 = Part108
- ManualWeld109.Part1 = Part124
- ManualWeld110.Name = "Flat Brick-to-flag Strong Joint"
- ManualWeld110.Parent = Part108
- ManualWeld110.C0 = CFrame.new(-3.20000005, 0.439999998, 3.66499996, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld110.C1 = CFrame.new(0.633117676, -2.39999914, -0.425827026, 1.04308128e-07, -0.99999994, -4.7074078e-09, 4.31472608e-10, 1.4881345e-08, 1, -1, -8.19563866e-08, -2.99283052e-08)
- ManualWeld110.Part0 = Part108
- ManualWeld110.Part1 = Part127
- Model111.Name = "Steering Wheel"
- Model111.Parent = Model6
- Part112.Parent = Model111
- Part112.BrickColor = BrickColor.new("Dark orange")
- Part112.Rotation = Vector3.new(90, -75.659996, 90)
- Part112.Anchored = true
- Part112.CanCollide = false
- Part112.FormFactor = Enum.FormFactor.Custom
- Part112.Size = Vector3.new(1.20000005, 2.88000011, 1.20000005)
- Part112.CFrame = CFrame.new(9.95524597, 6.03875923, -9.35285378, 4.86215367e-06, -0.247723415, -0.968831182, 1.4280771e-06, 0.968831182, -0.247723028, 1.00000024, -2.16348852e-07, 5.06470042e-06)
- Part112.BottomSurface = Enum.SurfaceType.Smooth
- Part112.TopSurface = Enum.SurfaceType.Smooth
- Part112.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part112.Position = Vector3.new(9.95524597, 6.03875923, -9.35285378)
- Part112.Orientation = Vector3.new(14.3400002, -90, 0)
- Part112.Color = Color3.new(0.627451, 0.372549, 0.207843)
- CylinderMesh113.Parent = Part112
- CylinderMesh113.Scale = Vector3.new(0.200000003, 1, 1)
- CylinderMesh113.Scale = Vector3.new(0.200000003, 1, 1)
- Part114.Parent = Model111
- Part114.BrickColor = BrickColor.new("Dark orange")
- Part114.Rotation = Vector3.new(90, -75.659996, 0)
- Part114.Anchored = true
- Part114.CanCollide = false
- Part114.FormFactor = Enum.FormFactor.Custom
- Part114.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
- Part114.CFrame = CFrame.new(9.95524597, 6.03876591, -9.35285378, 0.247724146, 4.86215367e-06, -0.96883142, -0.968830884, 1.4280771e-06, -0.247722387, 2.16345072e-07, 1.00000024, 5.07028835e-06)
- Part114.BottomSurface = Enum.SurfaceType.Smooth
- Part114.TopSurface = Enum.SurfaceType.Smooth
- Part114.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part114.Position = Vector3.new(9.95524597, 6.03876591, -9.35285378)
- Part114.Orientation = Vector3.new(14.3400002, -90, -90)
- Part114.Color = Color3.new(0.627451, 0.372549, 0.207843)
- CylinderMesh115.Parent = Part114
- CylinderMesh115.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- CylinderMesh115.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- Part116.Parent = Model111
- Part116.BrickColor = BrickColor.new("Dark orange")
- Part116.Rotation = Vector3.new(90, -75.659996, 40.1100006)
- Part116.Anchored = true
- Part116.FormFactor = Enum.FormFactor.Custom
- Part116.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
- Part116.CFrame = CFrame.new(9.95524597, 6.03877401, -9.352808, 0.189474598, -0.159585938, -0.968831778, -0.741001487, 0.624138951, -0.247720242, 0.644218087, 0.764842272, 5.072151e-06)
- Part116.BottomSurface = Enum.SurfaceType.Smooth
- Part116.TopSurface = Enum.SurfaceType.Smooth
- Part116.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part116.Position = Vector3.new(9.95524597, 6.03877401, -9.352808)
- Part116.Orientation = Vector3.new(14.3400002, -90, -49.8899994)
- Part116.Color = Color3.new(0.627451, 0.372549, 0.207843)
- CylinderMesh117.Parent = Part116
- CylinderMesh117.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- CylinderMesh117.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- Part118.Parent = Model111
- Part118.BrickColor = BrickColor.new("Dark orange")
- Part118.Rotation = Vector3.new(90, -75.659996, -40.1100006)
- Part118.Anchored = true
- Part118.FormFactor = Enum.FormFactor.Custom
- Part118.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
- Part118.CFrame = CFrame.new(9.95524597, 6.03880978, -9.352808, 0.189471483, 0.159596041, -0.968829155, -0.741002321, -0.624135971, -0.247730657, -0.64421773, 0.76484257, 5.06842571e-06)
- Part118.BottomSurface = Enum.SurfaceType.Smooth
- Part118.TopSurface = Enum.SurfaceType.Smooth
- Part118.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part118.Position = Vector3.new(9.95524597, 6.03880978, -9.352808)
- Part118.Orientation = Vector3.new(14.3400002, -90, -130.110001)
- Part118.Color = Color3.new(0.627451, 0.372549, 0.207843)
- CylinderMesh119.Parent = Part118
- CylinderMesh119.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- CylinderMesh119.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- Part120.Name = "Wheel"
- Part120.Parent = Model111
- Part120.BrickColor = BrickColor.new("Dark orange")
- Part120.Rotation = Vector3.new(90, -75.659996, 90)
- Part120.Anchored = true
- Part120.CanCollide = false
- Part120.FormFactor = Enum.FormFactor.Custom
- Part120.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Part120.CFrame = CFrame.new(9.95524597, 6.03875923, -9.35285378, 4.86215367e-06, -0.247724146, -0.96883142, 1.4280771e-06, 0.968830884, -0.247722387, 1.00000024, -2.16345072e-07, 5.07028835e-06)
- Part120.BottomSurface = Enum.SurfaceType.Smooth
- Part120.TopSurface = Enum.SurfaceType.Smooth
- Part120.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part120.Position = Vector3.new(9.95524597, 6.03875923, -9.35285378)
- Part120.Orientation = Vector3.new(14.3400002, -90, 0)
- Part120.Color = Color3.new(0.627451, 0.372549, 0.207843)
- SpecialMesh121.Parent = Part120
- SpecialMesh121.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh121.Scale = Vector3.new(2.10000014, 2.10000014, 1.20000005)
- SpecialMesh121.MeshType = Enum.MeshType.FileMesh
- SpecialMesh121.Scale = Vector3.new(2.10000014, 2.10000014, 1.20000005)
- Part122.Parent = Model111
- Part122.BrickColor = BrickColor.new("Dark orange")
- Part122.Rotation = Vector3.new(144.819992, 16.6800003, 78.1999969)
- Part122.Anchored = true
- Part122.FormFactor = Enum.FormFactor.Custom
- Part122.Size = Vector3.new(1.20000005, 1.71000004, 1.20000005)
- Part122.CFrame = CFrame.new(9.33122158, 5.84176779, -9.44081402, 0.195880026, -0.937675238, 0.28705281, -0.766248703, -0.329021275, -0.55191195, 0.611960769, -0.111845151, -0.782940149)
- Part122.BottomSurface = Enum.SurfaceType.Smooth
- Part122.TopSurface = Enum.SurfaceType.Smooth
- Part122.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part122.Position = Vector3.new(9.33122158, 5.84176779, -9.44081402)
- Part122.Orientation = Vector3.new(33.5, 159.869995, -113.239998)
- Part122.Color = Color3.new(0.627451, 0.372549, 0.207843)
- CylinderMesh123.Parent = Part122
- CylinderMesh123.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- CylinderMesh123.Scale = Vector3.new(0.200000003, 1.10000002, 1)
- Part124.Name = "flag"
- Part124.Parent = Model6
- Part124.BrickColor = BrickColor.new("Really red")
- Part124.Reflectance = 0.10000000149012
- Part124.Rotation = Vector3.new(180, 0, -180)
- Part124.Anchored = true
- Part124.Size = Vector3.new(3, 4.80000019, 1)
- Part124.CFrame = CFrame.new(14.000042, 6.11034679, -12.0042877, -0.99999994, 1.4881345e-08, -8.19563866e-08, -4.7074078e-09, 1, -2.99283052e-08, 1.04308128e-07, 4.31472608e-10, -1)
- Part124.BottomSurface = Enum.SurfaceType.Smooth
- Part124.TopSurface = Enum.SurfaceType.Smooth
- Part124.Color = Color3.new(1, 0, 0)
- Part124.Position = Vector3.new(14.000042, 6.11034679, -12.0042877)
- Part124.Orientation = Vector3.new(0, -180, 0)
- Part124.Color = Color3.new(1, 0, 0)
- SpecialMesh125.Parent = Part124
- SpecialMesh125.MeshId = "http://www.roblox.com/asset/?id=1038492"
- SpecialMesh125.MeshType = Enum.MeshType.FileMesh
- Decal126.Parent = Part124
- Decal126.Texture = "http://www.roblox.com/asset/?id=163241930"
- Decal126.Face = Enum.NormalId.Back
- Part127.Name = "flag"
- Part127.Parent = Model6
- Part127.BrickColor = BrickColor.new("Really red")
- Part127.Reflectance = 0.10000000149012
- Part127.Rotation = Vector3.new(180, 0, -180)
- Part127.Anchored = true
- Part127.Size = Vector3.new(3, 4.80000019, 1)
- Part127.CFrame = CFrame.new(14.000042, 6.11034679, -6.76424694, -0.99999994, 1.4881345e-08, -8.19563866e-08, -4.7074078e-09, 1, -2.99283052e-08, 1.04308128e-07, 4.31472608e-10, -1)
- Part127.BottomSurface = Enum.SurfaceType.Smooth
- Part127.TopSurface = Enum.SurfaceType.Smooth
- Part127.Color = Color3.new(1, 0, 0)
- Part127.Position = Vector3.new(14.000042, 6.11034679, -6.76424694)
- Part127.Orientation = Vector3.new(0, -180, 0)
- Part127.Color = Color3.new(1, 0, 0)
- SpecialMesh128.Parent = Part127
- SpecialMesh128.MeshId = "http://www.roblox.com/asset/?id=1038492"
- SpecialMesh128.MeshType = Enum.MeshType.FileMesh
- Decal129.Parent = Part127
- Decal129.Texture = "http://www.roblox.com/asset/?id=163242594"
- Part130.Name = "Flat Brick"
- Part130.Parent = Model6
- Part130.BrickColor = BrickColor.new("Pink")
- Part130.Rotation = Vector3.new(0, -0.439999998, 0)
- Part130.Anchored = true
- Part130.FormFactor = Enum.FormFactor.Plate
- Part130.Size = Vector3.new(2.64000034, 0.879999995, 4.43000078)
- Part130.CFrame = CFrame.new(9.63145638, 2.55042696, -10.502058, 0.999969661, 3.11528055e-07, -0.00774804037, -3.23673333e-07, 1, -1.56634064e-06, 0.00774804037, 1.56880014e-06, 0.999969661)
- Part130.TopSurface = Enum.SurfaceType.Smooth
- Part130.Color = Color3.new(1, 0.4, 0.8)
- Part130.Position = Vector3.new(9.63145638, 2.55042696, -10.502058)
- Part130.Orientation = Vector3.new(0, -0.439999998, 0)
- Part130.Color = Color3.new(1, 0.4, 0.8)
- Decal131.Parent = Part130
- Decal131.Texture = "http://www.roblox.com/asset/?id=214083825"
- Part132.Name = "Flat Brick"
- Part132.Parent = Model6
- Part132.BrickColor = BrickColor.new("Pink")
- Part132.Rotation = Vector3.new(90, 66.5800018, -90)
- Part132.Anchored = true
- Part132.FormFactor = Enum.FormFactor.Plate
- Part132.Size = Vector3.new(1, 0.879999995, 2.29999971)
- Part132.CFrame = CFrame.new(13.9770336, 2.97042489, -9.4784584, 0, 0.397441953, 0.917627394, 0, 0.917627394, -0.397441953, -1, 0, 0)
- Part132.TopSurface = Enum.SurfaceType.Smooth
- Part132.Color = Color3.new(1, 0.4, 0.8)
- Part132.Position = Vector3.new(13.9770336, 2.97042489, -9.4784584)
- Part132.Orientation = Vector3.new(23.4200001, 90, 0)
- Part132.Color = Color3.new(1, 0.4, 0.8)
- Model133.Name = "Wheels"
- Model133.Parent = Model5
- Part134.Name = "Wheel"
- Part134.Parent = Model133
- Part134.Material = Enum.Material.Concrete
- Part134.BrickColor = BrickColor.new("Really black")
- Part134.Rotation = Vector3.new(-90, 0, 180)
- Part134.Anchored = true
- Part134.Elasticity = 0
- Part134.FormFactor = Enum.FormFactor.Symmetric
- Part134.Friction = 1.7999999523163
- Part134.Shape = Enum.PartType.Ball
- Part134.Size = Vector3.new(2, 2, 2)
- Part134.CFrame = CFrame.new(6.66264009, 1.57736695, -6.78659391, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
- Part134.BackSurface = Enum.SurfaceType.Unjoinable
- Part134.BottomSurface = Enum.SurfaceType.Unjoinable
- Part134.FrontSurface = Enum.SurfaceType.Unjoinable
- Part134.LeftSurface = Enum.SurfaceType.Unjoinable
- Part134.RightSurface = Enum.SurfaceType.Unjoinable
- Part134.TopSurface = Enum.SurfaceType.Unjoinable
- Part134.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part134.Position = Vector3.new(6.66264009, 1.57736695, -6.78659391)
- Part134.Orientation = Vector3.new(-90, 180, 0)
- Part134.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BoolValue135.Name = "Steer"
- BoolValue135.Parent = Part134
- BoolValue135.Value = true
- CylinderMesh136.Parent = Part134
- CylinderMesh136.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- CylinderMesh136.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- BoolValue137.Name = "Powered"
- BoolValue137.Parent = Part134
- BoolValue137.Value = true
- Part138.Parent = Part134
- Part138.Material = Enum.Material.SmoothPlastic
- Part138.Transparency = 1
- Part138.Rotation = Vector3.new(0, -90, 0)
- Part138.Anchored = true
- Part138.CanCollide = false
- Part138.FormFactor = Enum.FormFactor.Custom
- Part138.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
- Part138.CFrame = CFrame.new(6.66264009, 1.57736695, -6.5178709, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part138.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part138.Position = Vector3.new(6.66264009, 1.57736695, -6.5178709)
- Part138.Orientation = Vector3.new(0, -90, 0)
- Decal139.Parent = Part138
- Decal139.Texture = "http://www.roblox.com/asset/?id=290762904"
- Decal139.Face = Enum.NormalId.Right
- BlockMesh140.Parent = Part138
- BlockMesh140.Scale = Vector3.new(0.400000036, 1, 1)
- BlockMesh140.Scale = Vector3.new(0.400000036, 1, 1)
- Part141.Name = "Wheel"
- Part141.Parent = Model133
- Part141.Material = Enum.Material.Concrete
- Part141.BrickColor = BrickColor.new("Really black")
- Part141.Rotation = Vector3.new(-90, 0, 180)
- Part141.Anchored = true
- Part141.Elasticity = 0
- Part141.FormFactor = Enum.FormFactor.Symmetric
- Part141.Friction = 1.7999999523163
- Part141.Shape = Enum.PartType.Ball
- Part141.Size = Vector3.new(2, 2, 2)
- Part141.CFrame = CFrame.new(6.66264009, 1.57736695, -12.3185225, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
- Part141.BackSurface = Enum.SurfaceType.Unjoinable
- Part141.BottomSurface = Enum.SurfaceType.Unjoinable
- Part141.FrontSurface = Enum.SurfaceType.Unjoinable
- Part141.LeftSurface = Enum.SurfaceType.Unjoinable
- Part141.RightSurface = Enum.SurfaceType.Unjoinable
- Part141.TopSurface = Enum.SurfaceType.Unjoinable
- Part141.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part141.Position = Vector3.new(6.66264009, 1.57736695, -12.3185225)
- Part141.Orientation = Vector3.new(-90, 180, 0)
- Part141.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BoolValue142.Name = "Steer"
- BoolValue142.Parent = Part141
- BoolValue142.Value = true
- CylinderMesh143.Parent = Part141
- CylinderMesh143.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- CylinderMesh143.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- BoolValue144.Name = "Powered"
- BoolValue144.Parent = Part141
- BoolValue144.Value = true
- Part145.Parent = Part141
- Part145.Material = Enum.Material.SmoothPlastic
- Part145.Transparency = 1
- Part145.Rotation = Vector3.new(0, 89.9599991, 0)
- Part145.Anchored = true
- Part145.CanCollide = false
- Part145.FormFactor = Enum.FormFactor.Custom
- Part145.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
- Part145.CFrame = CFrame.new(6.66264009, 1.57736695, -12.5875664, 5.96046448e-08, 0, 0.999999702, 0, 1, 0, -0.999999702, 0, 5.96046448e-08)
- Part145.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part145.Position = Vector3.new(6.66264009, 1.57736695, -12.5875664)
- Part145.Orientation = Vector3.new(0, 90, 0)
- Decal146.Parent = Part145
- Decal146.Texture = "http://www.roblox.com/asset/?id=290762904"
- Decal146.Face = Enum.NormalId.Right
- BlockMesh147.Parent = Part145
- BlockMesh147.Scale = Vector3.new(0.400000036, 1, 1)
- BlockMesh147.Scale = Vector3.new(0.400000036, 1, 1)
- Part148.Name = "Wheel"
- Part148.Parent = Model133
- Part148.Material = Enum.Material.Concrete
- Part148.BrickColor = BrickColor.new("Really black")
- Part148.Rotation = Vector3.new(-90, 0, 180)
- Part148.Anchored = true
- Part148.Elasticity = 0
- Part148.FormFactor = Enum.FormFactor.Symmetric
- Part148.Friction = 1.7999999523163
- Part148.Shape = Enum.PartType.Ball
- Part148.Size = Vector3.new(2, 2, 2)
- Part148.CFrame = CFrame.new(12.160512, 1.57736695, -6.78659391, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
- Part148.BackSurface = Enum.SurfaceType.Unjoinable
- Part148.BottomSurface = Enum.SurfaceType.Unjoinable
- Part148.FrontSurface = Enum.SurfaceType.Unjoinable
- Part148.LeftSurface = Enum.SurfaceType.Unjoinable
- Part148.RightSurface = Enum.SurfaceType.Unjoinable
- Part148.TopSurface = Enum.SurfaceType.Unjoinable
- Part148.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part148.Position = Vector3.new(12.160512, 1.57736695, -6.78659391)
- Part148.Orientation = Vector3.new(-90, 180, 0)
- Part148.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BodyGyro149.Name = "EBrake"
- BodyGyro149.Parent = Part148
- BodyGyro149.maxTorque = Vector3.new(0, 0, 0)
- BodyGyro149.P = 15000
- BodyGyro149.D = 5000
- BodyGyro149.MaxTorque = Vector3.new(0, 0, 0)
- CylinderMesh150.Parent = Part148
- CylinderMesh150.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- CylinderMesh150.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- BoolValue151.Name = "Powered"
- BoolValue151.Parent = Part148
- BoolValue151.Value = true
- Part152.Parent = Part148
- Part152.Material = Enum.Material.SmoothPlastic
- Part152.Transparency = 1
- Part152.Rotation = Vector3.new(0, -90, 0)
- Part152.Anchored = true
- Part152.CanCollide = false
- Part152.FormFactor = Enum.FormFactor.Custom
- Part152.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
- Part152.CFrame = CFrame.new(12.160512, 1.57736695, -6.5178709, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part152.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part152.Position = Vector3.new(12.160512, 1.57736695, -6.5178709)
- Part152.Orientation = Vector3.new(0, -90, 0)
- Decal153.Parent = Part152
- Decal153.Texture = "http://www.roblox.com/asset/?id=290762904"
- Decal153.Face = Enum.NormalId.Right
- BlockMesh154.Parent = Part152
- BlockMesh154.Scale = Vector3.new(0.400000036, 1, 1)
- BlockMesh154.Scale = Vector3.new(0.400000036, 1, 1)
- Part155.Name = "Wheel"
- Part155.Parent = Model133
- Part155.Material = Enum.Material.Concrete
- Part155.BrickColor = BrickColor.new("Really black")
- Part155.Rotation = Vector3.new(-90, 0, 180)
- Part155.Anchored = true
- Part155.Elasticity = 0
- Part155.FormFactor = Enum.FormFactor.Symmetric
- Part155.Friction = 1.7999999523163
- Part155.Shape = Enum.PartType.Ball
- Part155.Size = Vector3.new(2, 2, 2)
- Part155.CFrame = CFrame.new(12.160512, 1.57736695, -12.3185225, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
- Part155.BackSurface = Enum.SurfaceType.Unjoinable
- Part155.BottomSurface = Enum.SurfaceType.Unjoinable
- Part155.FrontSurface = Enum.SurfaceType.Unjoinable
- Part155.LeftSurface = Enum.SurfaceType.Unjoinable
- Part155.RightSurface = Enum.SurfaceType.Unjoinable
- Part155.TopSurface = Enum.SurfaceType.Unjoinable
- Part155.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part155.Position = Vector3.new(12.160512, 1.57736695, -12.3185225)
- Part155.Orientation = Vector3.new(-90, 180, 0)
- Part155.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BodyGyro156.Name = "EBrake"
- BodyGyro156.Parent = Part155
- BodyGyro156.maxTorque = Vector3.new(0, 0, 0)
- BodyGyro156.P = 15000
- BodyGyro156.D = 5000
- BodyGyro156.MaxTorque = Vector3.new(0, 0, 0)
- CylinderMesh157.Parent = Part155
- CylinderMesh157.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- CylinderMesh157.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- BoolValue158.Name = "Powered"
- BoolValue158.Parent = Part155
- BoolValue158.Value = true
- Part159.Parent = Part155
- Part159.Material = Enum.Material.SmoothPlastic
- Part159.Transparency = 1
- Part159.Rotation = Vector3.new(0, 89.9599991, 0)
- Part159.Anchored = true
- Part159.CanCollide = false
- Part159.FormFactor = Enum.FormFactor.Custom
- Part159.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
- Part159.CFrame = CFrame.new(12.160512, 1.57736695, -12.5875664, 5.96046448e-08, 0, 0.999999702, 0, 1, 0, -0.999999702, 0, 5.96046448e-08)
- Part159.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part159.Position = Vector3.new(12.160512, 1.57736695, -12.5875664)
- Part159.Orientation = Vector3.new(0, 90, 0)
- Decal160.Parent = Part159
- Decal160.Texture = "http://www.roblox.com/asset/?id=290762904"
- Decal160.Face = Enum.NormalId.Right
- BlockMesh161.Parent = Part159
- BlockMesh161.Scale = Vector3.new(0.400000036, 1, 1)
- BlockMesh161.Scale = Vector3.new(0.400000036, 1, 1)
- Part162.Name = "Wheel"
- Part162.Parent = Model133
- Part162.Material = Enum.Material.Concrete
- Part162.BrickColor = BrickColor.new("Really black")
- Part162.Rotation = Vector3.new(-90, 0, 180)
- Part162.Anchored = true
- Part162.Elasticity = 0
- Part162.FormFactor = Enum.FormFactor.Symmetric
- Part162.Friction = 1.7999999523163
- Part162.Shape = Enum.PartType.Ball
- Part162.Size = Vector3.new(2, 2, 2)
- Part162.CFrame = CFrame.new(16.1006756, 2.00736904, -9.45659828, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
- Part162.BackSurface = Enum.SurfaceType.Unjoinable
- Part162.BottomSurface = Enum.SurfaceType.Unjoinable
- Part162.FrontSurface = Enum.SurfaceType.Unjoinable
- Part162.LeftSurface = Enum.SurfaceType.Unjoinable
- Part162.RightSurface = Enum.SurfaceType.Unjoinable
- Part162.TopSurface = Enum.SurfaceType.Unjoinable
- Part162.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part162.Position = Vector3.new(16.1006756, 2.00736904, -9.45659828)
- Part162.Orientation = Vector3.new(-90, 180, 0)
- Part162.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BodyGyro163.Name = "EBrake"
- BodyGyro163.Parent = Part162
- BodyGyro163.maxTorque = Vector3.new(0, 0, 0)
- BodyGyro163.P = 15000
- BodyGyro163.D = 5000
- BodyGyro163.MaxTorque = Vector3.new(0, 0, 0)
- CylinderMesh164.Parent = Part162
- CylinderMesh164.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- CylinderMesh164.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
- BoolValue165.Name = "Powered"
- BoolValue165.Parent = Part162
- BoolValue165.Value = true
- Part166.Parent = Part162
- Part166.Material = Enum.Material.SmoothPlastic
- Part166.Transparency = 1
- Part166.Rotation = Vector3.new(0, -90, 0)
- Part166.Anchored = true
- Part166.CanCollide = false
- Part166.FormFactor = Enum.FormFactor.Custom
- Part166.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
- Part166.CFrame = CFrame.new(16.1006756, 2.00736904, -9.18787575, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part166.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part166.Position = Vector3.new(16.1006756, 2.00736904, -9.18787575)
- Part166.Orientation = Vector3.new(0, -90, 0)
- Decal167.Parent = Part166
- Decal167.Texture = "http://www.roblox.com/asset/?id=290762904"
- Decal167.Face = Enum.NormalId.Right
- BlockMesh168.Parent = Part166
- BlockMesh168.Scale = Vector3.new(0.400000036, 1, 1)
- BlockMesh168.Scale = Vector3.new(0.400000036, 1, 1)
- Script169.Name = "ATSWelder"
- Script169.Parent = Model5
- table.insert(cors,sandbox(Script169,function()
- -- ATS 1.3.1
- --------------------------------------------------------------------------------------------------
- local P = script.Parent
- local Run = game:GetService('RunService')
- local wheels = P.Wheels
- local seat = P.Body.VehicleSeat
- local vars = seat.ATSVariables
- local exclude = {"Wheels"}
- function WeldPair(x, y)
- local weld = Instance.new("Weld",x)
- weld.Part0 = x
- weld.Part1 = y
- weld.C1 = y.CFrame:toObjectSpace(x.CFrame);
- end
- function WeldAll(model, main) -- model can be anything
- for i,v in pairs(exclude) do if (model.Name == v) then return end end
- if model:IsA("BasePart") then WeldPair(main, model) end
- for _,v in pairs(model:GetChildren()) do WeldAll(v, main) end
- end
- function UnanchorAll(model) -- model can be anything
- if (model:IsA("BasePart")) then model.Anchored = false end
- for _,v in pairs(model:GetChildren()) do UnanchorAll(v) end
- end
- function Joint(x,y, c0, c1, type)
- local W = Instance.new(type, x)
- W.Part0 = x
- W.Part1 = y
- W.C0 = c0
- W.C1 = c1
- return W
- end
- function CreateWheelPart()
- local p = Instance.new("Part")
- p.FormFactor = Enum.FormFactor.Custom
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.TopSurface = Enum.SurfaceType.Unjoinable
- p.BottomSurface = Enum.SurfaceType.Unjoinable
- p.LeftSurface = Enum.SurfaceType.Unjoinable
- p.RightSurface = Enum.SurfaceType.Unjoinable
- p.FrontSurface = Enum.SurfaceType.Unjoinable
- p.BackSurface = Enum.SurfaceType.Unjoinable
- return p
- end
- for i,v in pairs(wheels:GetChildren()) do
- if (v:IsA("BasePart")) then
- local diameter = v.Size.x
- local M = Instance.new("Model",wheels)
- M.Name = v.Name
- v.Parent = M
- v.Name = "Wheel"
- for j,w in pairs(v:GetChildren()) do
- if (w:IsA("BasePart")) then
- w.Parent = M
- WeldPair(v,w)
- w.CanCollide = false
- end
- end
- if (v:FindFirstChild("Steer")) then
- local A = CreateWheelPart()
- A.Name = "Steer"
- A.Size = Vector3.new(diameter, 1, 0.6)
- A.CFrame = v.CFrame
- A.Parent = M
- end
- local B = CreateWheelPart()
- B.Name = "Suspension"
- B.Size = Vector3.new(0.8, 1, diameter)
- B.CFrame = v.CFrame * CFrame.new(-1,0,0)
- B.Parent = M
- local BB = Instance.new("BodyGyro")
- BB.Name = "BG"
- BB.D = vars.SuspensionDampening.Value
- BB.P = vars.SuspensionPower.Value
- BB.maxTorque = Vector3.new()
- BB.Parent = B
- local C = CreateWheelPart()
- C.Name = "BodyHinge"
- C.Size = Vector3.new(0.8, 1, diameter)
- C.CFrame = v.CFrame * CFrame.new(1,0,0)
- C.Parent = M
- if (v:FindFirstChild("Powered")) then
- local CC = Instance.new("BodyAngularVelocity")
- CC.Name = "BAV"
- CC.angularvelocity = Vector3.new()
- CC.maxTorque = Vector3.new(60000, 0, 60000)
- CC.P = 300
- CC.Parent = v
- end
- end
- end
- for i,v in pairs(wheels:GetChildren()) do
- if (v:FindFirstChild("Wheel")) and (v:FindFirstChild("Suspension")) then
- local isSteeringWheel = (v:FindFirstChild("Steer") ~= nil)
- if (v:FindFirstChild("Mesh")) then
- WeldAll(v.Mesh, v.Wheel)
- end
- if (isSteeringWheel) then
- Joint(v.Wheel, v.Steer, CFrame.Angles(math.pi / 2,0,0), v.Steer.CFrame:toObjectSpace(v.Wheel.CFrame) * CFrame.Angles(math.pi / 2,0,0), "Rotate")
- local M = Joint(v.Steer, v.Suspension, CFrame.Angles(math.pi,0,0), v.Suspension.CFrame:toObjectSpace(v.Steer.CFrame) * CFrame.Angles(math.pi,0,0), "Motor")
- M.MaxVelocity = 0.03
- else
- Joint(v.Wheel, v.Suspension, CFrame.Angles(math.pi / 2,0,0), v.Suspension.CFrame:toObjectSpace(v.Wheel.CFrame) * CFrame.Angles(math.pi / 2,0,0), "Rotate")
- end
- Joint(v.Suspension, v.BodyHinge, CFrame.new(Vector3.new(2,0,0)) * CFrame.Angles(math.pi/2,0,0), v.BodyHinge.CFrame:toObjectSpace(v.Suspension.CFrame) * CFrame.new(Vector3.new(2,0,0)) * CFrame.Angles(math.pi/2,0,0), "Rotate")
- Joint(v.BodyHinge, seat, CFrame.new(), seat.CFrame:toObjectSpace(v.BodyHinge.CFrame), "Weld")
- else
- print("Invalid wheel: Missing Wheel or Suspension part!")
- end
- end
- WeldAll(P, seat)
- wait(0.5)
- UnanchorAll(P)
- function UpdateWheels()
- if (not wheels) or (not seat) or (not vars) then return end
- for i,v in pairs(wheels:GetChildren()) do
- if (v:FindFirstChild("Suspension")) then
- v.Suspension.BG.cframe = seat.CFrame * CFrame.Angles(-math.pi/2,-math.rad(vars.SuspensionAngle.Value),0)
- end
- end
- end
- UpdateWheels()
- for i,v in pairs(wheels:GetChildren()) do
- if (v:FindFirstChild("Suspension")) then
- v.Suspension.BG.maxTorque = Vector3.new(0,1,0)
- end
- end
- Run.Heartbeat:connect(UpdateWheels)
- end))
- LocalScript170.Name = "README"
- LocalScript170.Parent = Model5
- table.insert(cors,sandbox(LocalScript170,function()
- --[[
- - Pieces in Body will be welded together.
- - You can change things like top speed etc. in the VehicleSeat
- - Put something called "Steer" in your wheel if you want it to steer
- - If you want to weld parts to the wheel, put it IN the wheel part! (Use the explorer, there is currently no easier way, sorry!)
- --]]
- --You are using ATS 1.3.1 with DynDS 1.2.0 with Neon lighting from DynDS 1.4, modified by iiDerpX--
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement