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")
- Weld2 = Instance.new("Weld")
- Weld3 = Instance.new("Weld")
- UnionOperation4 = Instance.new("UnionOperation")
- Weld5 = Instance.new("Weld")
- Part6 = Instance.new("Part")
- Weld7 = Instance.new("Weld")
- Part8 = Instance.new("Part")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- UnionOperation11 = Instance.new("UnionOperation")
- Weld12 = Instance.new("Weld")
- Part13 = Instance.new("Part")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Part16 = Instance.new("Part")
- Weld17 = Instance.new("Weld")
- Part18 = Instance.new("Part")
- Weld19 = Instance.new("Weld")
- UnionOperation20 = Instance.new("UnionOperation")
- Weld21 = Instance.new("Weld")
- UnionOperation22 = Instance.new("UnionOperation")
- Weld23 = Instance.new("Weld")
- Part24 = Instance.new("Part")
- Weld25 = Instance.new("Weld")
- Weld26 = Instance.new("Weld")
- UnionOperation27 = Instance.new("UnionOperation")
- Weld28 = Instance.new("Weld")
- Part29 = Instance.new("Part")
- Weld30 = Instance.new("Weld")
- Part31 = Instance.new("Part")
- Weld32 = Instance.new("Weld")
- UnionOperation33 = Instance.new("UnionOperation")
- Weld34 = Instance.new("Weld")
- UnionOperation35 = Instance.new("UnionOperation")
- Texture36 = Instance.new("Texture")
- Texture37 = Instance.new("Texture")
- Texture38 = Instance.new("Texture")
- Texture39 = Instance.new("Texture")
- ParticleEmitter40 = Instance.new("ParticleEmitter")
- Part41 = Instance.new("Part")
- SurfaceGui42 = Instance.new("SurfaceGui")
- Frame43 = Instance.new("Frame")
- SurfaceLight44 = Instance.new("SurfaceLight")
- Weld45 = Instance.new("Weld")
- Part46 = Instance.new("Part")
- SurfaceGui47 = Instance.new("SurfaceGui")
- Frame48 = Instance.new("Frame")
- SurfaceLight49 = Instance.new("SurfaceLight")
- Weld50 = Instance.new("Weld")
- Configuration51 = Instance.new("Configuration")
- NumberValue52 = Instance.new("NumberValue")
- NumberValue53 = Instance.new("NumberValue")
- NumberValue54 = Instance.new("NumberValue")
- NumberValue55 = Instance.new("NumberValue")
- NumberValue56 = Instance.new("NumberValue")
- Script57 = Instance.new("Script")
- LocalScript58 = Instance.new("LocalScript")
- ObjectValue59 = Instance.new("ObjectValue")
- ModuleScript60 = Instance.new("ModuleScript")
- UnionOperation61 = Instance.new("UnionOperation")
- Texture62 = Instance.new("Texture")
- Texture63 = Instance.new("Texture")
- Texture64 = Instance.new("Texture")
- Texture65 = Instance.new("Texture")
- ParticleEmitter66 = Instance.new("ParticleEmitter")
- UnionOperation67 = Instance.new("UnionOperation")
- Texture68 = Instance.new("Texture")
- Texture69 = Instance.new("Texture")
- Texture70 = Instance.new("Texture")
- Texture71 = Instance.new("Texture")
- ParticleEmitter72 = Instance.new("ParticleEmitter")
- UnionOperation73 = Instance.new("UnionOperation")
- Texture74 = Instance.new("Texture")
- Texture75 = Instance.new("Texture")
- Texture76 = Instance.new("Texture")
- Texture77 = Instance.new("Texture")
- ParticleEmitter78 = Instance.new("ParticleEmitter")
- VehicleSeat79 = Instance.new("VehicleSeat")
- Part80 = Instance.new("Part")
- Script81 = Instance.new("Script")
- ObjectValue82 = Instance.new("ObjectValue")
- Sound83 = Instance.new("Sound")
- Weld84 = Instance.new("Weld")
- WeldConstraint85 = Instance.new("WeldConstraint")
- Part86 = Instance.new("Part")
- Script87 = Instance.new("Script")
- ObjectValue88 = Instance.new("ObjectValue")
- Sound89 = Instance.new("Sound")
- Weld90 = Instance.new("Weld")
- WeldConstraint91 = Instance.new("WeldConstraint")
- Part92 = Instance.new("Part")
- Script93 = Instance.new("Script")
- ObjectValue94 = Instance.new("ObjectValue")
- Sound95 = Instance.new("Sound")
- Weld96 = Instance.new("Weld")
- WeldConstraint97 = Instance.new("WeldConstraint")
- Part98 = Instance.new("Part")
- Script99 = Instance.new("Script")
- ObjectValue100 = Instance.new("ObjectValue")
- Sound101 = Instance.new("Sound")
- Weld102 = Instance.new("Weld")
- WeldConstraint103 = Instance.new("WeldConstraint")
- Model0.Name = "Jeep"
- Model0.Parent = mas
- Part1.Name = "Thruster"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(113.350098, 2.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Position = Vector3.new(113.350098, 2.51000571, -101.150024)
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(1, 1, 2)
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.CanCollide = false
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- Weld2.Parent = Part1
- Weld2.C0 = CFrame.new(-2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld2.Part0 = Part16
- Weld2.Part1 = Part1
- Weld2.part1 = Part1
- Weld3.Name = "WheelWeld"
- Weld3.Parent = Part1
- Weld3.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = UnionOperation73
- Weld3.part1 = UnionOperation73
- UnionOperation4.Parent = Model0
- UnionOperation4.CFrame = CFrame.new(113.850098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation4.Orientation = Vector3.new(0, 90, 0)
- UnionOperation4.Position = Vector3.new(113.850098, 3.76000571, -103.650024)
- UnionOperation4.Rotation = Vector3.new(0, 90, 0)
- UnionOperation4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation4.Size = Vector3.new(5.00000191, 2.50000143, 4.00000048)
- UnionOperation4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation4.UsePartColor = true
- Weld5.Parent = UnionOperation4
- Weld5.C0 = CFrame.new(0, 1.25, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld5.Part0 = Part16
- Weld5.Part1 = UnionOperation4
- Weld5.part1 = UnionOperation4
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(112.100098, 2.26000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part6.Orientation = Vector3.new(0, 90, 0)
- Part6.Position = Vector3.new(112.100098, 2.26000571, -103.650024)
- Part6.Rotation = Vector3.new(0, 90, 0)
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part6.Size = Vector3.new(5, 0.5, 0.5)
- Part6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.BrickColor = BrickColor.new("Really black")
- Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part6.brickColor = BrickColor.new("Really black")
- Part6.FormFactor = Enum.FormFactor.Custom
- Part6.formFactor = Enum.FormFactor.Custom
- Weld7.Parent = Part6
- Weld7.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part16
- Weld7.Part1 = Part6
- Weld7.part1 = Part6
- Part8.Name = "Thruster"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(113.350098, 2.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part8.Orientation = Vector3.new(0, 90, 0)
- Part8.Position = Vector3.new(113.350098, 2.51000571, -106.150024)
- Part8.Rotation = Vector3.new(0, 90, 0)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(1, 1, 2)
- Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.CanCollide = false
- Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.FormFactor = Enum.FormFactor.Custom
- Part8.formFactor = Enum.FormFactor.Custom
- Weld9.Parent = Part8
- Weld9.C0 = CFrame.new(2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.Part0 = Part16
- Weld9.Part1 = Part8
- Weld9.part1 = Part8
- Weld10.Name = "WheelWeld"
- Weld10.Parent = Part8
- Weld10.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld10.Part0 = Part8
- Weld10.Part1 = UnionOperation61
- Weld10.part1 = UnionOperation61
- UnionOperation11.Parent = Model0
- UnionOperation11.CFrame = CFrame.new(121.100098, 3.76000619, -105.900024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation11.Orientation = Vector3.new(0, 90, 0)
- UnionOperation11.Position = Vector3.new(121.100098, 3.76000619, -105.900024)
- UnionOperation11.Rotation = Vector3.new(0, 90, 0)
- UnionOperation11.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation11.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
- UnionOperation11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation11.UsePartColor = true
- Weld12.Parent = UnionOperation11
- Weld12.C0 = CFrame.new(2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld12.Part0 = Part16
- Weld12.Part1 = UnionOperation11
- Weld12.part1 = UnionOperation11
- Part13.Name = "Thruster"
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(120.850098, 2.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part13.Orientation = Vector3.new(0, 90, 0)
- Part13.Position = Vector3.new(120.850098, 2.51000571, -106.150024)
- Part13.Rotation = Vector3.new(0, 90, 0)
- Part13.Transparency = 1
- Part13.Size = Vector3.new(1, 1, 2)
- Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.CanCollide = false
- Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.FormFactor = Enum.FormFactor.Custom
- Part13.formFactor = Enum.FormFactor.Custom
- Weld14.Parent = Part13
- Weld14.C0 = CFrame.new(2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld14.Part0 = Part16
- Weld14.Part1 = Part13
- Weld14.part1 = Part13
- Weld15.Name = "WheelWeld"
- Weld15.Parent = Part13
- Weld15.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.Part0 = Part13
- Weld15.Part1 = UnionOperation67
- Weld15.part1 = UnionOperation67
- Part16.Name = "Chassis"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(117.350098, 2.51000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part16.Orientation = Vector3.new(0, 90, 0)
- Part16.Position = Vector3.new(117.350098, 2.51000571, -103.650024)
- Part16.Rotation = Vector3.new(0, 90, 0)
- Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part16.Size = Vector3.new(4, 1, 10)
- Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.BrickColor = BrickColor.new("Really black")
- Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.brickColor = BrickColor.new("Really black")
- Part16.FormFactor = Enum.FormFactor.Custom
- Part16.formFactor = Enum.FormFactor.Custom
- Weld17.Parent = Part16
- Weld17.C1 = CFrame.new(0, -0.550000191, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld17.Part0 = Part16
- Weld17.Part1 = VehicleSeat79
- Weld17.part1 = VehicleSeat79
- Part18.Parent = Model0
- Part18.CFrame = CFrame.new(120.850098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part18.Orientation = Vector3.new(0, 90, 0)
- Part18.Position = Vector3.new(120.850098, 3.76000571, -103.650024)
- Part18.Rotation = Vector3.new(0, 90, 0)
- Part18.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part18.Size = Vector3.new(4, 1.5, 3)
- Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.BrickColor = BrickColor.new("Institutional white")
- Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.brickColor = BrickColor.new("Institutional white")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- Weld19.Parent = Part18
- Weld19.C0 = CFrame.new(0, 1.25, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld19.Part0 = Part16
- Weld19.Part1 = Part18
- Weld19.part1 = Part18
- UnionOperation20.Parent = Model0
- UnionOperation20.CFrame = CFrame.new(117.350098, 3.51000571, -101.400024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation20.Orientation = Vector3.new(0, 90, 0)
- UnionOperation20.Position = Vector3.new(117.350098, 3.51000571, -101.400024)
- UnionOperation20.Rotation = Vector3.new(0, 90, 0)
- UnionOperation20.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation20.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
- UnionOperation20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation20.UsePartColor = true
- Weld21.Parent = UnionOperation20
- Weld21.C0 = CFrame.new(-2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld21.Part0 = Part16
- Weld21.Part1 = UnionOperation20
- Weld21.part1 = UnionOperation20
- UnionOperation22.Parent = Model0
- UnionOperation22.CFrame = CFrame.new(117.350098, 3.51000571, -105.900024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation22.Orientation = Vector3.new(0, 90, 0)
- UnionOperation22.Position = Vector3.new(117.350098, 3.51000571, -105.900024)
- UnionOperation22.Rotation = Vector3.new(0, 90, 0)
- UnionOperation22.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation22.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
- UnionOperation22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation22.UsePartColor = true
- Weld23.Parent = UnionOperation22
- Weld23.C0 = CFrame.new(2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld23.Part0 = Part16
- Weld23.Part1 = UnionOperation22
- Weld23.part1 = UnionOperation22
- Part24.Name = "Thruster"
- Part24.Parent = Model0
- Part24.CFrame = CFrame.new(120.850098, 2.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part24.Orientation = Vector3.new(0, 90, 0)
- Part24.Position = Vector3.new(120.850098, 2.51000571, -101.150024)
- Part24.Rotation = Vector3.new(0, 90, 0)
- Part24.Transparency = 1
- Part24.Size = Vector3.new(1, 1, 2)
- Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.CanCollide = false
- Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.formFactor = Enum.FormFactor.Custom
- Weld25.Parent = Part24
- Weld25.C0 = CFrame.new(-2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld25.Part0 = Part16
- Weld25.Part1 = Part24
- Weld25.part1 = Part24
- Weld26.Name = "WheelWeld"
- Weld26.Parent = Part24
- Weld26.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld26.Part0 = Part24
- Weld26.Part1 = UnionOperation35
- Weld26.part1 = UnionOperation35
- UnionOperation27.Parent = Model0
- UnionOperation27.CFrame = CFrame.new(121.100098, 3.76000619, -101.400024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation27.Orientation = Vector3.new(0, 90, 0)
- UnionOperation27.Position = Vector3.new(121.100098, 3.76000619, -101.400024)
- UnionOperation27.Rotation = Vector3.new(0, 90, 0)
- UnionOperation27.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation27.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
- UnionOperation27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation27.UsePartColor = true
- Weld28.Parent = UnionOperation27
- Weld28.C0 = CFrame.new(-2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld28.Part0 = Part16
- Weld28.Part1 = UnionOperation27
- Weld28.part1 = UnionOperation27
- Part29.Parent = Model0
- Part29.CFrame = CFrame.new(122.600098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part29.Orientation = Vector3.new(0, 90, 0)
- Part29.Position = Vector3.new(122.600098, 3.76000571, -103.650024)
- Part29.Rotation = Vector3.new(0, 90, 0)
- Part29.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part29.Size = Vector3.new(4, 2.5, 0.5)
- Part29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.BrickColor = BrickColor.new("Institutional white")
- Part29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part29.brickColor = BrickColor.new("Institutional white")
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.formFactor = Enum.FormFactor.Custom
- Weld30.Parent = Part29
- Weld30.C0 = CFrame.new(0, 1.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld30.Part0 = Part16
- Weld30.Part1 = Part29
- Weld30.part1 = Part29
- Part31.Parent = Model0
- Part31.CFrame = CFrame.new(122.600098, 2.26000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part31.Orientation = Vector3.new(0, 90, 0)
- Part31.Position = Vector3.new(122.600098, 2.26000571, -103.650024)
- Part31.Rotation = Vector3.new(0, 90, 0)
- Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part31.Size = Vector3.new(5, 0.5, 0.5)
- Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.BrickColor = BrickColor.new("Really black")
- Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part31.brickColor = BrickColor.new("Really black")
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.formFactor = Enum.FormFactor.Custom
- Weld32.Parent = Part31
- Weld32.C0 = CFrame.new(0, -0.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld32.Part0 = Part16
- Weld32.Part1 = Part31
- Weld32.part1 = Part31
- UnionOperation33.Parent = Model0
- UnionOperation33.CFrame = CFrame.new(115.992813, 6.13779736, -103.650024, 0, 0.242535442, -0.970142543, 0, 0.970142543, 0.242535442, 1, 0, 0)
- UnionOperation33.Orientation = Vector3.new(-14.04, -90, 0)
- UnionOperation33.Position = Vector3.new(115.992813, 6.13779736, -103.650024)
- UnionOperation33.Rotation = Vector3.new(-90, -75.9599991, -90)
- UnionOperation33.Color = Color3.new(0.972549, 0.972549, 0.972549)
- UnionOperation33.Size = Vector3.new(5.00000381, 2.50000048, 0.300001502)
- UnionOperation33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.CanCollide = false
- UnionOperation33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation33.UsePartColor = true
- Weld34.Parent = UnionOperation33
- Weld34.C0 = CFrame.new(-1.90734863e-06, 3.62779188, -1.35728073, -1, 0, 0, 0, 0.970142543, 0.242535442, 0, 0.242535442, -0.970142543)
- Weld34.Part0 = Part16
- Weld34.Part1 = UnionOperation33
- Weld34.part1 = UnionOperation33
- UnionOperation35.Name = "BackLeftWheel"
- UnionOperation35.Parent = Model0
- UnionOperation35.CFrame = CFrame.new(120.850098, 1.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation35.Orientation = Vector3.new(0, 90, 0)
- UnionOperation35.Position = Vector3.new(120.850098, 1.51000571, -101.150024)
- UnionOperation35.Rotation = Vector3.new(0, 90, 0)
- UnionOperation35.Color = Color3.new(0.105882, 0.164706, 0.207843)
- UnionOperation35.Size = Vector3.new(1.5, 3, 3)
- UnionOperation35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.BrickColor = BrickColor.new("Black")
- UnionOperation35.CanCollide = false
- UnionOperation35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation35.brickColor = BrickColor.new("Black")
- Texture36.Parent = UnionOperation35
- Texture36.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture36.Transparency = 0.5
- Texture36.Face = Enum.NormalId.Top
- Texture36.StudsPerTileU = 3
- Texture36.StudsPerTileV = 3
- Texture37.Parent = UnionOperation35
- Texture37.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture37.Transparency = 0.5
- Texture37.StudsPerTileU = 3
- Texture37.StudsPerTileV = 3
- Texture38.Parent = UnionOperation35
- Texture38.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture38.Transparency = 0.5
- Texture38.Face = Enum.NormalId.Back
- Texture38.StudsPerTileU = 3
- Texture38.StudsPerTileV = 3
- Texture39.Parent = UnionOperation35
- Texture39.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture39.Transparency = 0.5
- Texture39.Face = Enum.NormalId.Bottom
- Texture39.StudsPerTileU = 3
- Texture39.StudsPerTileV = 3
- ParticleEmitter40.Parent = UnionOperation35
- ParticleEmitter40.Speed = NumberRange.new(0, 0)
- ParticleEmitter40.Rotation = NumberRange.new(0, 360)
- ParticleEmitter40.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
- ParticleEmitter40.Enabled = false
- ParticleEmitter40.LightEmission = 0.20000000298023
- ParticleEmitter40.Texture = "rbxassetid://287259619"
- ParticleEmitter40.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
- ParticleEmitter40.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
- ParticleEmitter40.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter40.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
- ParticleEmitter40.Rate = 50
- ParticleEmitter40.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter40.SpreadAngle = Vector2.new(40, 40)
- ParticleEmitter40.VelocitySpread = 40
- Part41.Name = "Light"
- Part41.Parent = Model0
- Part41.CFrame = CFrame.new(112.000099, 4.01000595, -105.150024, 2.46918255e-08, 5.96113381e-08, 1, 0.707106769, 0.707106769, -5.96113381e-08, -0.707106769, 0.707106769, -2.46918255e-08)
- Part41.Orientation = Vector3.new(0, 90, 45)
- Part41.Position = Vector3.new(112.000099, 4.01000595, -105.150024)
- Part41.Rotation = Vector3.new(45, 90, 0)
- Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part41.Size = Vector3.new(1, 1, 0.5)
- Part41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.BrickColor = BrickColor.new("Really black")
- Part41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part41.brickColor = BrickColor.new("Really black")
- Part41.FormFactor = Enum.FormFactor.Custom
- Part41.formFactor = Enum.FormFactor.Custom
- SurfaceGui42.Parent = Part41
- SurfaceGui42.CanvasSize = Vector2.new(100, 100)
- Frame43.Parent = SurfaceGui42
- Frame43.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Frame43.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
- Frame43.BackgroundColor = BrickColor.new("Institutional white")
- Frame43.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame43.BorderSizePixel = 0
- SurfaceLight44.Parent = Part41
- SurfaceLight44.Range = 32
- SurfaceLight44.Brightness = 0.5
- SurfaceLight44.Angle = 60
- Weld45.Parent = Part41
- Weld45.C0 = CFrame.new(1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, 2.46918255e-08, 0.707106769, 0.707106769, -5.96113381e-08, 2.46918255e-08, 5.96113381e-08, 1)
- Weld45.Part0 = Part16
- Weld45.Part1 = Part41
- Weld45.part1 = Part41
- Part46.Name = "Light"
- Part46.Parent = Model0
- Part46.CFrame = CFrame.new(112.000099, 4.01000595, -102.150024, -2.83364479e-08, -6.84102304e-08, 1, 0.707106769, 0.707106769, 6.84102304e-08, -0.707106769, 0.707106769, 2.83364479e-08)
- Part46.Orientation = Vector3.new(0, 90, 45)
- Part46.Position = Vector3.new(112.000099, 4.01000595, -102.150024)
- Part46.Rotation = Vector3.new(45, 90, 0)
- Part46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part46.Size = Vector3.new(1, 1, 0.5)
- Part46.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.BrickColor = BrickColor.new("Really black")
- Part46.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part46.brickColor = BrickColor.new("Really black")
- Part46.FormFactor = Enum.FormFactor.Custom
- Part46.formFactor = Enum.FormFactor.Custom
- SurfaceGui47.Parent = Part46
- SurfaceGui47.CanvasSize = Vector2.new(100, 100)
- Frame48.Parent = SurfaceGui47
- Frame48.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Frame48.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
- Frame48.BackgroundColor = BrickColor.new("Institutional white")
- Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame48.BorderSizePixel = 0
- SurfaceLight49.Parent = Part46
- SurfaceLight49.Range = 32
- SurfaceLight49.Brightness = 0.5
- SurfaceLight49.Angle = 60
- Weld50.Parent = Part46
- Weld50.C0 = CFrame.new(-1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, -2.83364479e-08, 0.707106769, 0.707106769, 6.84102304e-08, -2.83364479e-08, -6.84102304e-08, 1)
- Weld50.Part0 = Part16
- Weld50.Part1 = Part46
- Weld50.part1 = Part46
- Configuration51.Name = "Configurations"
- Configuration51.Parent = Model0
- NumberValue52.Name = "Bounce"
- NumberValue52.Parent = Configuration51
- NumberValue52.Value = 100
- NumberValue53.Name = "Height"
- NumberValue53.Parent = Configuration51
- NumberValue53.Value = 3
- NumberValue54.Name = "Speed"
- NumberValue54.Parent = Configuration51
- NumberValue54.Value = 80
- NumberValue55.Name = "Suspension"
- NumberValue55.Parent = Configuration51
- NumberValue55.Value = 4
- NumberValue56.Name = "TurnSpeed"
- NumberValue56.Parent = Configuration51
- NumberValue56.Value = 2
- Script57.Name = "CarScript"
- Script57.Parent = Model0
- table.insert(cors,sandbox(Script57,function()
- --Scripted by DermonDarble
- local car = script.Parent
- local stats = car.Configurations
- local Raycast = require(script.RaycastModule)
- local mass = 0
- for i, v in pairs(car:GetChildren()) do
- if v:IsA("BasePart") then
- mass = mass + (v:GetMass() * 196.2)
- end
- end
- local bodyPosition = Instance.new("BodyPosition", car.Chassis)
- bodyPosition.MaxForce = Vector3.new()
- local bodyGyro = Instance.new("BodyGyro", car.Chassis)
- bodyGyro.MaxTorque = Vector3.new()
- local function UpdateThruster(thruster)
- -- Raycasting
- local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value) --game.Workspace:FindPartOnRay(ray, car)
- local thrusterHeight = (position - thruster.Position).magnitude
- -- Wheel
- local wheelWeld = thruster:FindFirstChild("WheelWeld")
- wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
- -- Wheel turning
- local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
- local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
- if offset.Z < 0 then
- local direction = 1
- if speed.Z > 0 then
- direction = -1
- end
- wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
- end
- -- Particles
- if hit and thruster.Velocity.magnitude >= 5 then
- wheelWeld.Part1.ParticleEmitter.Enabled = true
- else
- wheelWeld.Part1.ParticleEmitter.Enabled = false
- end
- end
- car.DriveSeat.Changed:connect(function(property)
- if property == "Occupant" then
- if car.DriveSeat.Occupant then
- local player = game.Players:GetPlayerFromCharacter(car.DriveSeat.Occupant.Parent)
- if player then
- car.DriveSeat:SetNetworkOwner(player)
- local localCarScript = script.LocalCarScript:Clone()
- localCarScript.Parent = player.PlayerGui
- localCarScript.Car.Value = car
- localCarScript.Disabled = false
- end
- end
- end
- end)
- spawn(function()
- while true do
- game:GetService("RunService").Stepped:wait()
- for i, part in pairs(car:GetChildren()) do
- if part.Name == "Thruster" then
- UpdateThruster(part)
- end
- end
- if car.DriveSeat.Occupant then
- bodyPosition.MaxForce = Vector3.new()
- bodyGyro.MaxTorque = Vector3.new()
- else
- local hit, position, normal = Raycast.new(car.Chassis.Position, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
- if hit and hit.CanCollide then
- bodyPosition.MaxForce = Vector3.new(mass / 5, math.huge, mass / 5)
- bodyPosition.Position = (CFrame.new(position, position + normal) * CFrame.new(0, 0, -stats.Height.Value + 0.5)).p
- bodyGyro.MaxTorque = Vector3.new(math.huge, 0, math.huge)
- bodyGyro.CFrame = CFrame.new(position, position + normal) * CFrame.Angles(-math.pi/2, 0, 0)
- else
- bodyPosition.MaxForce = Vector3.new()
- bodyGyro.MaxTorque = Vector3.new()
- end
- end
- end
- end)
- end))
- LocalScript58.Name = "LocalCarScript"
- LocalScript58.Parent = Script57
- table.insert(cors,sandbox(LocalScript58,function()
- --Scripted by DermonDarble
- local userInputService = game:GetService("UserInputService")
- local camera = game.Workspace.CurrentCamera
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoidRootPart = character.HumanoidRootPart
- local car = script:WaitForChild("Car").Value
- local stats = car:WaitForChild("Configurations")
- local Raycast = require(car.CarScript.RaycastModule)
- local cameraType = Enum.CameraType.Follow
- local movement = Vector2.new()
- local seat = car:WaitForChild("DriveSeat")
- seat.Changed:Connect(function(property)
- if property == "Throttle" then
- movement = Vector2.new(movement.X, seat.Throttle)
- end
- if property == "Steer" then
- movement = Vector2.new(seat.Steer, movement.Y)
- end
- end)
- local force = 0
- local damping = 0
- local mass = 0
- for i, v in pairs(car:GetChildren()) do
- if v:IsA("BasePart") then
- mass = mass + (v:GetMass() * 196.2)
- end
- end
- force = mass * stats.Suspension.Value
- damping = force / stats.Bounce.Value
- local bodyVelocity = Instance.new("BodyVelocity", car.Chassis)
- bodyVelocity.velocity = Vector3.new(0, 0, 0)
- bodyVelocity.maxForce = Vector3.new(0, 0, 0)
- local bodyAngularVelocity = Instance.new("BodyAngularVelocity", car.Chassis)
- bodyAngularVelocity.angularvelocity = Vector3.new(0, 0, 0)
- bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
- local rotation = 0
- local function UpdateThruster(thruster)
- --Make sure we have a bodythrust to move the wheel
- local bodyThrust = thruster:FindFirstChild("BodyThrust")
- if not bodyThrust then
- bodyThrust = Instance.new("BodyThrust", thruster)
- end
- --Do some raycasting to get the height of the wheel
- local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
- local thrusterHeight = (position - thruster.Position).magnitude
- if hit and hit.CanCollide then
- --If we're on the ground, apply some forces to push the wheel up
- bodyThrust.force = Vector3.new(0, ((stats.Height.Value - thrusterHeight)^2) * (force / stats.Height.Value^2), 0)
- local thrusterDamping = thruster.CFrame:toObjectSpace(CFrame.new(thruster.Velocity + thruster.Position)).p * damping
- bodyThrust.force = bodyThrust.force - Vector3.new(0, thrusterDamping.Y, 0)
- else
- bodyThrust.force = Vector3.new(0, 0, 0)
- end
- --Wheels
- local wheelWeld = thruster:FindFirstChild("WheelWeld")
- if wheelWeld then
- wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
- -- Wheel turning
- local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
- local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
- if offset.Z < 0 then
- local direction = 1
- if speed.Z > 0 then
- direction = -1
- end
- wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
- end
- wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(rotation, 0, 0)
- end
- end
- --A simple function to check if the car is grounded
- local function IsGrounded()
- local hit, position = Raycast.new((car.Chassis.CFrame * CFrame.new(0, 0, (car.Chassis.Size.Z / 2) - 1)).p, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * (stats.Height.Value + 0.2))
- if hit and hit.CanCollide then
- return(true)
- end
- return(false)
- end
- local oldCameraType = camera.CameraType
- camera.CameraType = cameraType
- spawn(function()
- while character.Humanoid.SeatPart == car.DriveSeat do
- game:GetService("RunService").RenderStepped:wait()
- --Broken gyro input
- --[[if userInputService.GyroscopeEnabled then
- local inputObject, cframe = userInputService:GetDeviceRotation()
- local up = cframe:vectorToWorldSpace(Vector3.new(0, 1, 0))
- local angle = (1 - up.Y) * (math.abs(up.X) / up.X)
- movement = Vector2.new(angle, movement.Y)
- end]]
- if IsGrounded() then
- if movement.Y ~= 0 then
- local velocity = car.Chassis.CFrame.lookVector * movement.Y * stats.Speed.Value
- car.Chassis.Velocity = car.Chassis.Velocity:Lerp(velocity, 0.1)
- bodyVelocity.maxForce = Vector3.new(0, 0, 0)
- else
- bodyVelocity.maxForce = Vector3.new(mass / 2, mass / 4, mass / 2)
- end
- local rotVelocity = car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(movement.Y * stats.Speed.Value / 50, 0, -car.Chassis.RotVelocity.Y * 5 * movement.Y))
- local speed = -car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity).unit.Z
- rotation = rotation + math.rad((-stats.Speed.Value / 5) * movement.Y)
- if math.abs(speed) > 0.1 then
- rotVelocity = rotVelocity + car.Chassis.CFrame:vectorToWorldSpace((Vector3.new(0, -movement.X * speed * stats.TurnSpeed.Value, 0)))
- bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
- else
- bodyAngularVelocity.maxTorque = Vector3.new(mass / 4, mass / 2, mass / 4)
- end
- car.Chassis.RotVelocity = car.Chassis.RotVelocity:Lerp(rotVelocity, 0.1)
- --bodyVelocity.maxForce = Vector3.new(mass / 3, mass / 6, mass / 3)
- --bodyAngularVelocity.maxTorque = Vector3.new(mass / 6, mass / 3, mass / 6)
- else
- bodyVelocity.maxForce = Vector3.new(0, 0, 0)
- bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
- end
- for i, part in pairs(car:GetChildren()) do
- if part.Name == "Thruster" then
- UpdateThruster(part)
- end
- end
- end
- for i, v in pairs(car:GetChildren()) do
- if v:FindFirstChild("BodyThrust") then
- v.BodyThrust:Destroy()
- end
- end
- bodyVelocity:Destroy()
- bodyAngularVelocity:Destroy()
- camera.CameraType = oldCameraType
- userInputService.ModalEnabled = false
- script:Destroy()
- end)
- end))
- LocalScript58.Disabled = true
- ObjectValue59.Name = "Car"
- ObjectValue59.Parent = LocalScript58
- ModuleScript60.Name = "RaycastModule"
- ModuleScript60.Parent = Script57
- table.insert(cors,sandbox(ModuleScript60,function()
- local module = {}
- function module.new(startPosition, startDirection)
- local maxDistance = startDirection.magnitude
- local direction = startDirection.unit
- local lastPosition = startPosition
- local distance = 0
- local ignore = {}
- local hit, position, normal
- repeat
- local ray = Ray.new(lastPosition, direction * (maxDistance - distance))
- hit, position, normal = game.Workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, true)
- if hit then
- if not hit.CanCollide then
- table.insert(ignore, hit)
- end
- end
- distance = (startPosition - position).magnitude
- lastPosition = position
- until distance >= maxDistance - 0.1 or (hit and hit.CanCollide)
- return hit, position, normal
- end
- return module
- end))
- UnionOperation61.Name = "FrontRightWheel"
- UnionOperation61.Parent = Model0
- UnionOperation61.CFrame = CFrame.new(113.350098, 1.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation61.Orientation = Vector3.new(0, 90, 0)
- UnionOperation61.Position = Vector3.new(113.350098, 1.51000571, -106.150024)
- UnionOperation61.Rotation = Vector3.new(0, 90, 0)
- UnionOperation61.Color = Color3.new(0.105882, 0.164706, 0.207843)
- UnionOperation61.Size = Vector3.new(1.5, 3, 3)
- UnionOperation61.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.BrickColor = BrickColor.new("Black")
- UnionOperation61.CanCollide = false
- UnionOperation61.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation61.brickColor = BrickColor.new("Black")
- Texture62.Parent = UnionOperation61
- Texture62.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture62.Transparency = 0.5
- Texture62.Face = Enum.NormalId.Top
- Texture62.StudsPerTileU = 3
- Texture62.StudsPerTileV = 3
- Texture63.Parent = UnionOperation61
- Texture63.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture63.Transparency = 0.5
- Texture63.StudsPerTileU = 3
- Texture63.StudsPerTileV = 3
- Texture64.Parent = UnionOperation61
- Texture64.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture64.Transparency = 0.5
- Texture64.Face = Enum.NormalId.Back
- Texture64.StudsPerTileU = 3
- Texture64.StudsPerTileV = 3
- Texture65.Parent = UnionOperation61
- Texture65.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture65.Transparency = 0.5
- Texture65.Face = Enum.NormalId.Bottom
- Texture65.StudsPerTileU = 3
- Texture65.StudsPerTileV = 3
- ParticleEmitter66.Parent = UnionOperation61
- ParticleEmitter66.Speed = NumberRange.new(0, 0)
- ParticleEmitter66.Rotation = NumberRange.new(0, 360)
- ParticleEmitter66.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
- ParticleEmitter66.Enabled = false
- ParticleEmitter66.LightEmission = 0.20000000298023
- ParticleEmitter66.Texture = "rbxassetid://287259619"
- ParticleEmitter66.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
- ParticleEmitter66.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
- ParticleEmitter66.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter66.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
- ParticleEmitter66.Rate = 50
- ParticleEmitter66.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter66.SpreadAngle = Vector2.new(40, 40)
- ParticleEmitter66.VelocitySpread = 40
- UnionOperation67.Name = "BackRightWheel"
- UnionOperation67.Parent = Model0
- UnionOperation67.CFrame = CFrame.new(120.850098, 1.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation67.Orientation = Vector3.new(0, 90, 0)
- UnionOperation67.Position = Vector3.new(120.850098, 1.51000571, -106.150024)
- UnionOperation67.Rotation = Vector3.new(0, 90, 0)
- UnionOperation67.Color = Color3.new(0.105882, 0.164706, 0.207843)
- UnionOperation67.Size = Vector3.new(1.5, 3, 3)
- UnionOperation67.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.BrickColor = BrickColor.new("Black")
- UnionOperation67.CanCollide = false
- UnionOperation67.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation67.brickColor = BrickColor.new("Black")
- Texture68.Parent = UnionOperation67
- Texture68.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture68.Transparency = 0.5
- Texture68.Face = Enum.NormalId.Top
- Texture68.StudsPerTileU = 3
- Texture68.StudsPerTileV = 3
- Texture69.Parent = UnionOperation67
- Texture69.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture69.Transparency = 0.5
- Texture69.StudsPerTileU = 3
- Texture69.StudsPerTileV = 3
- Texture70.Parent = UnionOperation67
- Texture70.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture70.Transparency = 0.5
- Texture70.Face = Enum.NormalId.Back
- Texture70.StudsPerTileU = 3
- Texture70.StudsPerTileV = 3
- Texture71.Parent = UnionOperation67
- Texture71.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture71.Transparency = 0.5
- Texture71.Face = Enum.NormalId.Bottom
- Texture71.StudsPerTileU = 3
- Texture71.StudsPerTileV = 3
- ParticleEmitter72.Parent = UnionOperation67
- ParticleEmitter72.Speed = NumberRange.new(0, 0)
- ParticleEmitter72.Rotation = NumberRange.new(0, 360)
- ParticleEmitter72.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
- ParticleEmitter72.Enabled = false
- ParticleEmitter72.LightEmission = 0.20000000298023
- ParticleEmitter72.Texture = "rbxassetid://287259619"
- ParticleEmitter72.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
- ParticleEmitter72.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
- ParticleEmitter72.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter72.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
- ParticleEmitter72.Rate = 50
- ParticleEmitter72.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter72.SpreadAngle = Vector2.new(40, 40)
- ParticleEmitter72.VelocitySpread = 40
- UnionOperation73.Name = "FrontLeftWheel"
- UnionOperation73.Parent = Model0
- UnionOperation73.CFrame = CFrame.new(113.350098, 1.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation73.Orientation = Vector3.new(0, 90, 0)
- UnionOperation73.Position = Vector3.new(113.350098, 1.51000571, -101.150024)
- UnionOperation73.Rotation = Vector3.new(0, 90, 0)
- UnionOperation73.Color = Color3.new(0.105882, 0.164706, 0.207843)
- UnionOperation73.Size = Vector3.new(1.5, 3, 3)
- UnionOperation73.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.BrickColor = BrickColor.new("Black")
- UnionOperation73.CanCollide = false
- UnionOperation73.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- UnionOperation73.brickColor = BrickColor.new("Black")
- Texture74.Parent = UnionOperation73
- Texture74.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture74.Transparency = 0.5
- Texture74.Face = Enum.NormalId.Top
- Texture74.StudsPerTileU = 3
- Texture74.StudsPerTileV = 3
- Texture75.Parent = UnionOperation73
- Texture75.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture75.Transparency = 0.5
- Texture75.StudsPerTileU = 3
- Texture75.StudsPerTileV = 3
- Texture76.Parent = UnionOperation73
- Texture76.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture76.Transparency = 0.5
- Texture76.Face = Enum.NormalId.Back
- Texture76.StudsPerTileU = 3
- Texture76.StudsPerTileV = 3
- Texture77.Parent = UnionOperation73
- Texture77.Texture = "http://www.roblox.com/asset/?id=259149256"
- Texture77.Transparency = 0.5
- Texture77.Face = Enum.NormalId.Bottom
- Texture77.StudsPerTileU = 3
- Texture77.StudsPerTileV = 3
- ParticleEmitter78.Parent = UnionOperation73
- ParticleEmitter78.Speed = NumberRange.new(0, 0)
- ParticleEmitter78.Rotation = NumberRange.new(0, 360)
- ParticleEmitter78.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
- ParticleEmitter78.Enabled = false
- ParticleEmitter78.LightEmission = 0.20000000298023
- ParticleEmitter78.Texture = "rbxassetid://287259619"
- ParticleEmitter78.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
- ParticleEmitter78.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
- ParticleEmitter78.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter78.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
- ParticleEmitter78.Rate = 50
- ParticleEmitter78.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter78.SpreadAngle = Vector2.new(40, 40)
- ParticleEmitter78.VelocitySpread = 40
- VehicleSeat79.Name = "DriveSeat"
- VehicleSeat79.Parent = Model0
- VehicleSeat79.CFrame = CFrame.new(117.850098, 3.0600059, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- VehicleSeat79.Orientation = Vector3.new(0, 90, 0)
- VehicleSeat79.Position = Vector3.new(117.850098, 3.0600059, -103.650024)
- VehicleSeat79.Rotation = Vector3.new(0, 90, 0)
- VehicleSeat79.MaxSpeed = 2000
- VehicleSeat79.Size = Vector3.new(2, 0.200000003, 2)
- VehicleSeat79.TopSurface = Enum.SurfaceType.Smooth
- Part80.Name = "Fling Brick"
- Part80.Parent = Model0
- Part80.CFrame = CFrame.new(110.25, 3, -103.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part80.Position = Vector3.new(110.25, 3, -103.5)
- Part80.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part80.Transparency = 1
- Part80.Size = Vector3.new(2, 2, 4.5)
- Part80.BrickColor = BrickColor.new("Dark green")
- Part80.brickColor = BrickColor.new("Dark green")
- Part80.FormFactor = Enum.FormFactor.Symmetric
- Part80.formFactor = Enum.FormFactor.Symmetric
- Script81.Name = "RepelScript"
- Script81.Parent = Part80
- table.insert(cors,sandbox(Script81,function()
- -- Adds a repulsive force to anything this object touches
- local Part = script.Parent
- local Debris = game:GetService('Debris')
- local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
- local MAGNITUDE = 3E4
- local TIME_OF_FORCE = 0.2
- Part.Touched:connect(function(other)
- if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
- if not other.Anchored then
- local punchSound = script:FindFirstChild('PunchSound')
- if punchSound then punchSound:Play() end
- local direction = (other.Position - Part.Position).unit
- local bodyForce = Instance.new('BodyForce')
- bodyForce.force = MAGNITUDE * direction
- bodyForce.Parent = other
- Debris:AddItem(bodyForce, TIME_OF_FORCE)
- end
- end)
- end))
- ObjectValue82.Name = "CharacterToIgnore"
- ObjectValue82.Parent = Script81
- Sound83.Name = "PunchSound"
- Sound83.Parent = Script81
- Sound83.SoundId = "http://www.roblox.com/asset?id=121603067"
- Sound83.Volume = 0.20000000298023
- Weld84.Name = "RightGrip"
- Weld84.Parent = Part80
- Weld84.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld84.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Weld84.Part0 = Part80
- WeldConstraint85.Parent = Part80
- WeldConstraint85.Part0 = Part80
- WeldConstraint85.Part1 = UnionOperation4
- Part86.Name = "Fling Brick"
- Part86.Parent = Model0
- Part86.CFrame = CFrame.new(124.5, 3, -103.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part86.Position = Vector3.new(124.5, 3, -103.5)
- Part86.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part86.Transparency = 1
- Part86.Size = Vector3.new(2, 2, 4.5)
- Part86.BrickColor = BrickColor.new("Dark green")
- Part86.brickColor = BrickColor.new("Dark green")
- Part86.FormFactor = Enum.FormFactor.Symmetric
- Part86.formFactor = Enum.FormFactor.Symmetric
- Script87.Name = "RepelScript"
- Script87.Parent = Part86
- table.insert(cors,sandbox(Script87,function()
- -- Adds a repulsive force to anything this object touches
- local Part = script.Parent
- local Debris = game:GetService('Debris')
- local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
- local MAGNITUDE = 3E4
- local TIME_OF_FORCE = 0.2
- Part.Touched:connect(function(other)
- if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
- if not other.Anchored then
- local punchSound = script:FindFirstChild('PunchSound')
- if punchSound then punchSound:Play() end
- local direction = (other.Position - Part.Position).unit
- local bodyForce = Instance.new('BodyForce')
- bodyForce.force = MAGNITUDE * direction
- bodyForce.Parent = other
- Debris:AddItem(bodyForce, TIME_OF_FORCE)
- end
- end)
- end))
- ObjectValue88.Name = "CharacterToIgnore"
- ObjectValue88.Parent = Script87
- Sound89.Name = "PunchSound"
- Sound89.Parent = Script87
- Sound89.SoundId = "http://www.roblox.com/asset?id=121603067"
- Sound89.Volume = 0.20000000298023
- Weld90.Name = "RightGrip"
- Weld90.Parent = Part86
- Weld90.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld90.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Weld90.Part0 = Part86
- WeldConstraint91.Parent = Part86
- WeldConstraint91.Part0 = Part86
- WeldConstraint91.Part1 = UnionOperation4
- Part92.Name = "Fling Brick"
- Part92.Parent = Model0
- Part92.CFrame = CFrame.new(116.75, 3, -100, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part92.Orientation = Vector3.new(0, -90, 0)
- Part92.Position = Vector3.new(116.75, 3, -100)
- Part92.Rotation = Vector3.new(0, -90, 0)
- Part92.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part92.Transparency = 1
- Part92.Size = Vector3.new(2, 2, 11.5)
- Part92.BrickColor = BrickColor.new("Dark green")
- Part92.brickColor = BrickColor.new("Dark green")
- Part92.FormFactor = Enum.FormFactor.Symmetric
- Part92.formFactor = Enum.FormFactor.Symmetric
- Script93.Name = "RepelScript"
- Script93.Parent = Part92
- table.insert(cors,sandbox(Script93,function()
- -- Adds a repulsive force to anything this object touches
- local Part = script.Parent
- local Debris = game:GetService('Debris')
- local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
- local MAGNITUDE = 3E4
- local TIME_OF_FORCE = 0.2
- Part.Touched:connect(function(other)
- if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
- if not other.Anchored then
- local punchSound = script:FindFirstChild('PunchSound')
- if punchSound then punchSound:Play() end
- local direction = (other.Position - Part.Position).unit
- local bodyForce = Instance.new('BodyForce')
- bodyForce.force = MAGNITUDE * direction
- bodyForce.Parent = other
- Debris:AddItem(bodyForce, TIME_OF_FORCE)
- end
- end)
- end))
- ObjectValue94.Name = "CharacterToIgnore"
- ObjectValue94.Parent = Script93
- Sound95.Name = "PunchSound"
- Sound95.Parent = Script93
- Sound95.SoundId = "http://www.roblox.com/asset?id=121603067"
- Sound95.Volume = 0.20000000298023
- Weld96.Name = "RightGrip"
- Weld96.Parent = Part92
- Weld96.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld96.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Weld96.Part0 = Part92
- WeldConstraint97.Parent = Part92
- WeldConstraint97.Part0 = Part92
- WeldConstraint97.Part1 = UnionOperation4
- Part98.Name = "Fling Brick"
- Part98.Parent = Model0
- Part98.CFrame = CFrame.new(117, 3, -107.25, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part98.Orientation = Vector3.new(0, -90, 0)
- Part98.Position = Vector3.new(117, 3, -107.25)
- Part98.Rotation = Vector3.new(0, -90, 0)
- Part98.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part98.Transparency = 1
- Part98.Size = Vector3.new(2, 2, 11.5)
- Part98.BrickColor = BrickColor.new("Dark green")
- Part98.brickColor = BrickColor.new("Dark green")
- Part98.FormFactor = Enum.FormFactor.Symmetric
- Part98.formFactor = Enum.FormFactor.Symmetric
- Script99.Name = "RepelScript"
- Script99.Parent = Part98
- table.insert(cors,sandbox(Script99,function()
- -- Adds a repulsive force to anything this object touches
- local Part = script.Parent
- local Debris = game:GetService('Debris')
- local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
- local MAGNITUDE = 3E4
- local TIME_OF_FORCE = 0.2
- Part.Touched:connect(function(other)
- if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
- if not other.Anchored then
- local punchSound = script:FindFirstChild('PunchSound')
- if punchSound then punchSound:Play() end
- local direction = (other.Position - Part.Position).unit
- local bodyForce = Instance.new('BodyForce')
- bodyForce.force = MAGNITUDE * direction
- bodyForce.Parent = other
- Debris:AddItem(bodyForce, TIME_OF_FORCE)
- end
- end)
- end))
- ObjectValue100.Name = "CharacterToIgnore"
- ObjectValue100.Parent = Script99
- Sound101.Name = "PunchSound"
- Sound101.Parent = Script99
- Sound101.SoundId = "http://www.roblox.com/asset?id=121603067"
- Sound101.Volume = 0.20000000298023
- Weld102.Name = "RightGrip"
- Weld102.Parent = Part98
- Weld102.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld102.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Weld102.Part0 = Part98
- WeldConstraint103.Parent = Part98
- WeldConstraint103.Part0 = Part98
- WeldConstraint103.Part1 = UnionOperation4
- 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