Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by sina157
- car = Instance.new("Model")
- car.Name = "car"
- car.Parent = game.Workspace
- body = Instance.new("Part")
- body.Name = "body"
- body.Size = Vector3.new(4, 2.4, 16.01)
- body.Position = Vector3.new(-38.43, 2.21, -49.365)
- body.Parent = car
- body.Material = Enum.Material.Metal
- body.BrickColor = BrickColor.Red()
- body.BottomSurface = Enum.SurfaceType.Studs
- seat = Instance.new("VehicleSeat")
- seat.Parent = car
- seat.Position = Vector3.new(-38.23, 3.555, -47.19)
- seat.Size = Vector3.new(1.68, 0.29, 1.78)
- seat.MaxSpeed = 80
- seat.Torque = 100
- seat.TurnSpeed = 0.7
- seat.TurnSpeed = 1
- seat.Material = Enum.Material.Metal
- w = Instance.new("Part")
- w.Name = "w"
- w.Size = Vector3.new(4, 4, 4)
- w.Position = Vector3.new(-42.43, 2.01, -42.36)
- w.Parent = car
- w.Shape = Enum.PartType.Cylinder
- w.RightSurface = Enum.SurfaceType.Hinge
- w.Material = Enum.Material.Metal
- w.BrickColor = BrickColor.Black()
- w1 = Instance.new("Part")
- w1.Name = "w1"
- w1.Size = Vector3.new(4, 4, 4)
- w1.Position = Vector3.new(-34.43, 2.01, -42.36)
- w1.Parent = car
- w1.Shape = Enum.PartType.Cylinder
- w1.LeftSurface = Enum.SurfaceType.Hinge
- w1.Material = Enum.Material.Metal
- w1.BrickColor = BrickColor.Black()
- w2 = Instance.new("Part")
- w2.Name = "w2"
- w2.Size = Vector3.new(4, 4, 4)
- w2.Position = Vector3.new(-42.43, 2.01, -56.018)
- w2.Parent = car
- w2.Shape = Enum.PartType.Cylinder
- w2.RightSurface = Enum.SurfaceType.Hinge
- w2.Material = Enum.Material.Metal
- w2.BrickColor = BrickColor.Black()
- w3 = Instance.new("Part")
- w3.Name = "w3"
- w3.Size = Vector3.new(4, 4, 4)
- w3.Position = Vector3.new(-34.43, 2.01, -56.018)
- w3.Parent = car
- w3.Shape = Enum.PartType.Cylinder
- w3.LeftSurface = Enum.SurfaceType.Hinge
- w3.Material = Enum.Material.Metal
- w3.BrickColor = BrickColor.Black()
- sp = Instance.new("Part")
- sp.BackSurface = Enum.SurfaceType.Glue
- sp.Parent = car
- sp.Name = "spike"
- sp.Size = Vector3.new(3.44, 2.04, 3.72)
- sp.Position = Vector3.new(-38.450, 2.309, -59.229)
- sm1 = Instance.new("SpecialMesh")
- sm1.Parent = sp
- sm1.MeshId = "rbxassetid://1257377360"
- sm1.TextureId = "http://www.roblox.com/asset?id=39251676"
- sm1.Scale = Vector3.new(0.05, 0.04, 0.1)
- spikeB = Instance.new("Part")
- spikeB.Parent = car
- spikeB.Position = Vector3.new(-38.232, 3.731, -51.194)
- spikeB.Size = Vector3.new(0.58, 0.68, 0.58)
- spikeB.Material = Enum.Material.Metal
- spikeB.BottomSurface = Enum.SurfaceType.Glue
- wwwww = Instance.new("SpecialMesh")
- wwwww.Parent = spikeB
- wwwww.Scale = Vector3.new(0.01, 0.01, 0.015)
- wwwww.Offset = Vector3.new(0, 0, -0.3)
- wwwww.MeshId = "rbxassetid://1257377360"
- wwwww.TextureId = "http://www.roblox.com/asset?id=39251676"
- click1 = Instance.new("ClickDetector")
- click1.Parent = spikeB
- PunchB = Instance.new("Part")
- PunchB.Parent = car
- PunchB.Position = Vector3.new(-39.31, 3.75, -51.194)
- PunchB.Size = Vector3.new(0.58, 0.68, 0.58)
- PunchB.Material = Enum.Material.Metal
- PunchB.BottomSurface = Enum.SurfaceType.Glue
- wwww = Instance.new("SpecialMesh")
- wwww.Parent = PunchB
- wwww.Scale = Vector3.new(1,1,1)
- wwww.MeshId = "rbxassetid://2686025433"
- wwww.TextureId = "http://www.roblox.com/asset?id=39251676"
- click2 = Instance.new("ClickDetector")
- click2.Parent = PunchB
- RemoveB = Instance.new("Part")
- RemoveB.Parent = car
- RemoveB.Position = Vector3.new(-37.122, 3.76, -51.194)
- RemoveB.Size = Vector3.new(0.58, 0.68, 0.58)
- RemoveB.Material = Enum.Material.Metal
- RemoveB.BottomSurface = Enum.SurfaceType.Glue
- www = Instance.new("SpecialMesh")
- www.Parent = RemoveB
- www.MeshId = ""
- www.Scale = Vector3.new(0.58, 0.68, 0.58)
- www.TextureId = "http://www.roblox.com/asset/?id=4163464"
- click3 = Instance.new("ClickDetector")
- click3.Parent = RemoveB
- value = Instance.new("NumberValue")
- value.Parent = car
- value.Value = 1
- sound = Instance.new("Sound")
- sound.Parent = sp
- sound.Volume = 10
- revive = Instance.new("Part")
- revive.Parent = car
- revive.Position = Vector3.new(-38.496, 0.986, -49.787)
- revive.Size = Vector3.new(0.88, 0.05, 1.1)
- revive.Material = Enum.Material.Metal
- revive.TopSurface = Enum.SurfaceType.Glue
- RC = Instance.new("ClickDetector")
- RC.Parent = revive
- x = math.random(0,25)
- z = math.random(0,25)
- car:MakeJoints()
- car:MoveTo(Vector3.new(x,10,z))
- function dgm(hit)
- if value.Value == 1 then
- local h = hit.Parent:findFirstChild("Humanoid")
- if not h then
- return
- end
- if h.Health == 0 then
- return
- end
- hit.Parent:findFirstChild("Humanoid"):TakeDamage(9999)
- sound.SoundId = "rbxassetid://220834019"
- sound:Play()
- elseif value.Value == 2 then
- local h = hit.Parent:findFirstChild("Humanoid")
- if not h then
- return
- end
- if h.Health == 0 then
- return
- end
- local b = Instance.new("BodyPosition")
- local x = sp.Position.X
- local y = sp.Position.Y
- local z = sp.Position.Z
- if sp.Orientation.Y <= 50 and sp.Orientation.Y >= -50 then
- b.position = Vector3.new(x ,y+200 ,z-350)
- elseif sp.Orientation.Y >= 50 and sp.Orientation.Y <= 150 then
- b.position = Vector3.new(x-200 ,y+350 ,z)
- elseif sp.Orientation.Y >= 151 and sp.Orientation.Y >= -110 then
- b.position = Vector3.new(x ,y+200 ,z+350)
- elseif sp.Orientation.Y >= -110 and sp.Orientation.Y <= -40 then
- b.position = Vector3.new(x+200 ,y+350 ,z)
- end
- b.maxForce = Vector3.new(25000, 25000, 25000)
- b.Parent = hit.Parent.Head
- hit.Parent:findFirstChild("Humanoid"):TakeDamage(0.1)
- wait(0.4)
- b:Destroy()
- sound.SoundId = "rbxassetid://2808497405"
- sound:Play()
- elseif value.Value == 3 then
- hit:remove()
- end
- end
- function bu1(b1)
- value.Value = 1
- sm1.MeshId = "rbxassetid://1257377360"
- sm1.TextureId = "http://www.roblox.com/asset?id=39251676"
- sm1.Scale = Vector3.new(0.05, 0.04, 0.1)
- end
- function bu2(b2)
- value.Value = 2
- sm1.MeshId = "rbxassetid://2686025433"
- sm1.TextureId = "http://www.roblox.com/asset?id=39251676"
- sm1.Scale = Vector3.new(5, 5, 5)
- end
- function bu3(b3)
- value.Value = 3
- sm1.MeshId = ""
- sm1.TextureId = "http://www.roblox.com/asset/?id=4163464"
- sm1.Scale = Vector3.new(3, 2.2, 3.7)
- end
- function RCB(clk)
- body.Orientation= Vector3.new(0, 0, 0)
- body.Position = body.Position + Vector3.new(0,10,0)
- end
- RC.MouseClick:Connect(RCB)
- click1.MouseClick:Connect(bu1)
- click2.MouseClick:Connect(bu2)
- click3.MouseClick:Connect(bu3)
- sp.Touched:Connect(dgm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement