Run it
Copy the script and paste it into your executor.
LMG2L = {};
LMG2L[] = .(, :().LocalPlayer:());
LMG2L[][] = .ZIndexBehavior.Sibling;
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = ;
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = .(, , , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[] = .(, LMG2L[]);
LMG2L[][] = ;
LMG2L[][] = .(, , );
LMG2L[][] = ;
LMG2L[][] = .(, , , );
LMG2L[] = .(, LMG2L[]);
()
= LMG2L[];
textLabel = .Parent
rainbowColors = {
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , )
}
currentColorIndex =
()
textLabel.TextColor3 = rainbowColors[currentColorIndex]
currentColorIndex = currentColorIndex % #rainbowColors +
()
()
;
.(C_7);
()
= LMG2L[];
button = .Parent
button.MouseButton1Click:(()
Players = (:())
StarterGui = (:())
UserInputService = (:())
uScale = (xScale, yScale)
screen = .CurrentCamera.ViewportSize
.(, screen.X * xScale, , screen.Y * (yScale xScale))
uPos = (xScale, yScale)
screen = .CurrentCamera.ViewportSize
.(, screen.X * xScale, , screen.Y * yScale)
uSize = (widthScale, heightScale)
screen = .CurrentCamera.ViewportSize
.(, screen.X * widthScale, , screen.Y * (heightScale widthScale))
createNotification = (title, text, duration)
notificationGui = .(, (:()))
notificationGui.Name =
notificationGui.ResetOnSpawn =
mainFrame = .(, notificationGui)
mainFrame.Size = (, )
mainFrame.Position = .(, , , )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
corner = .(, mainFrame)
corner.CornerRadius = .(, )
shadow = .(, mainFrame)
shadow.Name =
shadow.BackgroundTransparency =
shadow.Size = .(, , , )
shadow.Position = .(, -, , -)
shadow.Image =
shadow.ImageColor3 = .(, , )
shadow.ImageTransparency =
shadow.ScaleType = .ScaleType.Slice
shadow.SliceCenter = Rect.(, , , )
shadow.ZIndex = -
titleBar = .(, mainFrame)
titleBar.Size = .(, , , )
titleBar.Position = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleCorner = .(, titleBar)
titleCorner.CornerRadius = .(, , , )
titleText = .(, titleBar)
titleText.Size = .(, -, , )
titleText.Position = .(, , , )
titleText.BackgroundTransparency =
titleText.Text = title
titleText.Font = .Font.GothamBold
titleText.TextColor3 = .(, , )
titleText.TextScaled =
titleText.TextXAlignment = .TextXAlignment.Left
timeBarContainer = .(, mainFrame)
timeBarContainer.Size = .(, , , )
timeBarContainer.Position = .(, , , )
timeBarContainer.BackgroundColor3 = .(, , )
timeBarContainer.BorderSizePixel =
timeBar = .(, timeBarContainer)
timeBar.Size = .(, , , )
timeBar.BackgroundColor3 = .(, , )
timeBar.BorderSizePixel =
contentFrame = .(, mainFrame)
contentFrame.Size = .(, -, , -)
contentFrame.Position = .(, , , )
contentFrame.BackgroundTransparency =
messageText = .(, contentFrame)
messageText.Size = .(, , , )
messageText.BackgroundTransparency =
messageText.Text = text
messageText.Font = .Font.Gotham
messageText.TextColor3 = .(, , )
messageText.TextSize =
messageText.TextWrapped =
messageText.TextXAlignment = .TextXAlignment.Left
messageText.TextYAlignment = .TextYAlignment.Top
messageText.TextTruncate = .TextTruncate.AtEnd
mainFrame.Size = .(, , , )
mainFrame.Position = .(, , , )
mainFrame:((, ), .EasingDirection.Out, .EasingStyle.Quad, , )
duration duration >
timeBar:(.(, , , ), .EasingDirection.InOut, .EasingStyle.Linear, duration, )
.(duration, ()
mainFrame:(.(, , , ), .EasingDirection.In, .EasingStyle.Quad, , )
.()
notificationGui:()
)
notificationGui
char = Players.LocalPlayer.Character
char char:() char.Humanoid.RigType == .HumanoidRigType.R6
(, ,)
().CarExecuted
().CarExecuted =
()
(, ,)
carstop =
plr = Players.LocalPlayer
cg = (:())
runService = :()
animData = {
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = },
{id = , mult = }
}
currentIndex =
activeTrack
activeConn
sg = .(, cg)
sg.ResetOnSpawn =
sg.Name =
mainFrame = .(, sg)
mainFrame.Size = (,)
mainFrame.Position = .(, -, , -)
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.Active =
mainFrame.Draggable =
corner = .(, mainFrame)
corner.CornerRadius = .(, )
shadow = .(, mainFrame)
shadow.Name =
shadow.BackgroundTransparency =
shadow.Size = .(, , , )
shadow.Position = .(, -, , -)
shadow.Image =
shadow.ImageColor3 = .(, , )
shadow.ImageTransparency =
shadow.ScaleType = .ScaleType.Slice
shadow.SliceCenter = Rect.(, , , )
shadow.ZIndex = -
title = .(, mainFrame)
title.Size = .(, , , )
title.Position = .(, , , )
title.BackgroundColor3 = .(, , )
title.BorderSizePixel =
titleCorner = .(, title)
titleCorner.CornerRadius = .(, )
titleCorner.Name =
titleText = .(, title)
titleText.Size = .(, -, , )
titleText.Position = .(, , , )
titleText.BackgroundTransparency =
titleText.Text =
titleText.Font = .Font.GothamBold
titleText.TextColor3 = .(, , )
titleText.TextScaled =
titleText.TextXAlignment = .TextXAlignment.Left
buttonCorner = .()
buttonCorner.CornerRadius = .(, )
minBtn = .(, title)
minBtn.Size = .(, , , )
minBtn.Position = .(, -, , )
minBtn.BackgroundColor3 = .(, , )
minBtn.TextColor3 = .(, , )
minBtn.Text =
minBtn.Font = .Font.GothamBold
minBtn.TextScaled =
buttonCorner:().Parent = minBtn
closeBtn = .(, title)
closeBtn.Size = .(, , , )
closeBtn.Position = .(, -, , )
closeBtn.BackgroundColor3 = .(, , )
closeBtn.TextColor3 = .(, , )
closeBtn.Text =
closeBtn.Font = .Font.GothamBold
closeBtn.TextScaled =
buttonCorner:().Parent = closeBtn
vp = .(, mainFrame)
vp.Size = .(, -, , -)
vp.Position = .(, , , )
vp.BackgroundColor3 = .(, , )
vp.BorderSizePixel =
vpCorner = .(, vp)
vpCorner.CornerRadius = .(, )
innerVp = .(, vp)
innerVp.Size = .(, -, , -)
innerVp.Position = .(, , , )
innerVp.BackgroundColor3 = .(, , )
innerVp.BorderSizePixel =
cam = .()
cam.CameraType = .CameraType.Scriptable
innerVp.CurrentCamera = cam
animNameFrame = .(, mainFrame)
animNameFrame.Size = .(, -, , )
animNameFrame.Position = .(, , , )
animNameFrame.BackgroundColor3 = .(, , )
animNameFrame.BorderSizePixel =
animNameCorner = .(, animNameFrame)
animNameCorner.CornerRadius = .(, )
animNameText = .(, animNameFrame)
animNameText.Size = .(, , , )
animNameText.BackgroundTransparency =
animNameText.Text = ..currentIndex....#animData
animNameText.Font = .Font.Gotham
animNameText.TextColor3 = .(, , )
animNameText.TextScaled =
buttonContainer = .(, mainFrame)
buttonContainer.Size = .(, -, , )
buttonContainer.Position = .(, , , -)
buttonContainer.BackgroundTransparency =
prevBtn = .(, buttonContainer)
prevBtn.Size = .(, , , )
prevBtn.Position = .(, , , )
prevBtn.BackgroundColor3 = .(, , )
prevBtn.TextColor3 = .(, , )
prevBtn.Text =
prevBtn.Font = .Font.Gotham
prevBtn.TextScaled =
buttonCorner:().Parent = prevBtn
nextBtn = .(, buttonContainer)
nextBtn.Size = .(, , , )
nextBtn.Position = .(, -, , )
nextBtn.BackgroundColor3 = .(, , )
nextBtn.TextColor3 = .(, , )
nextBtn.Text =
nextBtn.Font = .Font.Gotham
nextBtn.TextScaled =
buttonCorner:().Parent = nextBtn
selectBtn = .(, mainFrame)
selectBtn.Size = .(, -, , )
selectBtn.Position = .(, , , -)
selectBtn.BackgroundColor3 = .(, , )
selectBtn.TextColor3 = .(, , )
selectBtn.Text =
selectBtn.Font = .Font.GothamBold
selectBtn.TextScaled =
selectCorner = .(, selectBtn)
selectCorner.CornerRadius = .(, )
(button)
originalColor = button.BackgroundColor3
originalSize = button.Size
button.MouseEnter:(()
button.BackgroundColor3 = originalColor:(.(, , ), )
button.Size = originalSize - .(, , , )
button.Position = button.Position + .(, , , )
)
button.MouseLeave:(()
button.BackgroundColor3 = originalColor
button.Size = originalSize
button.Position = button.Position - .(, , , )
)
(prevBtn)
(nextBtn)
(selectBtn)
(minBtn)
(closeBtn)
ensurePrimaryPart = (m)
m
m.PrimaryPart
root = m:() m:()
root
m.PrimaryPart = root
realDummy = Players:()
realDummy.Parent =
(realDummy)
.() (realDummy) realDummy.PrimaryPart
realDummy:(.(, , ))
vpDummy = realDummy:()
(vpDummy)
vpDummy.Parent = innerVp
vpDummy.PrimaryPart realDummy.PrimaryPart
vpDummy:(realDummy.PrimaryPart.CFrame)
hrp = vpDummy:()
hrp
hrp.Transparency =
_, part (vpDummy:())
part:()
part.CanCollide =
_, part (realDummy:())
part:()
part.Transparency =
part.CanCollide =
rotationAngle =
rotationSpeed = .()
radius =
height =
runService.RenderStepped:((deltaTime)
realDummy.Parent vpDummy.Parent
_, part (realDummy:())
part:()
clonePart = vpDummy:(part.Name, )
clonePart part:(realDummy)
clonePart.CFrame = part.CFrame
rotationAngle = rotationAngle + rotationSpeed * deltaTime
x = .(rotationAngle) * radius
z = .(rotationAngle) * radius
targetPos = (vpDummy.PrimaryPart vpDummy.PrimaryPart.Position) .(, , )
cam.CFrame = .(targetPos + .(x, height, z), targetPos)
)
hum = realDummy:()
animator = hum (hum:() .(, hum))
previewAnimTrack =
loadAnim = (index)
previewAnimTrack
previewAnimTrack:()
previewAnimTrack:()
anim = .()
anim.AnimationId = .. animData[index].id
animator
previewAnimTrack = animator:(anim)
previewAnimTrack.Priority = .AnimationPriority.Action
previewAnimTrack.Looped =
previewAnimTrack:()
previewAnimTrack:()
previewAnimTrack:()
animNameText.Text = ..currentIndex....#animData
(currentIndex)
stopAll = ()
activeTrack
activeTrack:()
activeTrack:()
activeTrack =
activeConn
activeConn:()
activeConn =
playCarAnim = (char)
()
hum = char:()
root = char:()
anim = .()
anim.AnimationId = .. animData[currentIndex].id
track = hum:(anim)
activeTrack = track
track.Priority = .AnimationPriority.Action
track:()
track.Looped =
track:()
.CurrentCamera.CameraSubject = plr.Character:()
lastPosition = root.Position
lastTime = .()
activeConn = runService.Heartbeat:(()
currentPosition = root.Position
currentTime = .()
deltaTime = currentTime - lastTime
deltaTime >
displacement = (currentPosition - lastPosition)
velocity = displacement / deltaTime
speed = velocity.Magnitude
speed >
dot = root.CFrame.LookVector:(velocity.Unit)
track:((speed / ) * animData[currentIndex].mult * (dot >= -))
track:()
lastPosition = currentPosition
lastTime = currentTime
)
showConfirmation = (callback)
confirmationgui
confirmationgui =
popup = .(, sg)
popup.Size = (,)
popup.Position = (,)
popup.BackgroundColor3 = .(, , )
popup.BorderSizePixel =
popup.Name =
.(, popup).CornerRadius = .(, )
shadow = .(, popup)
shadow.Name =
shadow.BackgroundTransparency =
shadow.Size = .(, , , )
shadow.Position = .(, -, , -)
shadow.Image =
shadow.ImageColor3 = .(, , )
shadow.ImageTransparency =
shadow.ScaleType = .ScaleType.Slice
shadow.SliceCenter = Rect.(, , , )
shadow.ZIndex = -
label = .(, popup)
label.Size = .(, -, , )
label.Position = .(, , , )
label.BackgroundTransparency =
label.Text =
label.Font = .Font.Gotham
label.TextScaled =
label.TextColor3 = .(, , )
label.TextWrapped =
buttonContainer = .(, popup)
buttonContainer.Size = .(, -, , )
buttonContainer.Position = .(, , , -)
buttonContainer.BackgroundTransparency =
yesBtn = .(, buttonContainer)
yesBtn.Size = .(, -, , )
yesBtn.Position = .(, , , )
yesBtn.BackgroundColor3 = .(, , )
yesBtn.TextColor3 = .(, , )
yesBtn.Text =
yesBtn.Font = .Font.Gotham
yesBtn.TextScaled =
.(, yesBtn).CornerRadius = .(, )
noBtn = .(, buttonContainer)
noBtn.Size = .(, -, , )
noBtn.Position = .(, , , )
noBtn.BackgroundColor3 = .(, , )
noBtn.TextColor3 = .(, , )
noBtn.Text =
noBtn.Font = .Font.Gotham
noBtn.TextScaled =
.(, noBtn).CornerRadius = .(, )
(yesBtn)
(noBtn)
yesBtn.MouseButton1Click:(()
popup:()
()
confirmationgui =
)
noBtn.MouseButton1Click:(()
popup:()
()
confirmationgui =
)
UserInputService.InputBegan:((input, gpe)
gpe
input.KeyCode == .KeyCode.K
sg.Enabled = sg.Enabled
input.KeyCode == .KeyCode.Left
currentIndex = (currentIndex - ) % #animData +
(currentIndex)
input.KeyCode == .KeyCode.Right
currentIndex = currentIndex % #animData +
(currentIndex)
input.KeyCode == .KeyCode.Return input.KeyCode == .KeyCode.KeypadEnter
(plr.Character)
)
prevBtn.MouseButton1Click:(()
currentIndex = (currentIndex - ) % #animData +
(currentIndex)
)
nextBtn.MouseButton1Click:(()
currentIndex = currentIndex % #animData +
(currentIndex)
)
selectBtn.MouseButton1Click:(()
(plr.Character)
)
minimized =
minBtn.MouseButton1Click:(()
minimized = minimized
minimized
mainFrame.Size = (,)
_, child (mainFrame:())
child ~= title child ~= minBtn child ~= closeBtn child:()
child.Visible =
titleCorner.CornerRadius = .(, )
mainFrame.Size = (,)
_, child (mainFrame:())
child:()
child.Visible =
titleCorner.CornerRadius = .(, , , )
)
closeAll = ()
()
sg:()
closeBtn.MouseButton1Click:(()
((confirm)
confirm
carstop =
()
().CarExecuted =
(,,)
)
)
plr.CharacterAdded:((char)
carstop ==
.()
(char)
().TiltForCarLoaded =
()
(:())()
)
(:())()
(:())()
)
;
.(C_f);
()
= LMG2L[];
button = .Parent
button.MouseButton1Click:(()
Health =
MaxHealth =
ToughnessMinorDamage =
ToughnessMajorDamage =
DriftAcceleration = -
DriftSteerDifficulty =
DriftSteerPower =
Acceleration =
TopSpeed =
Deceleration =
BrakePower =
SteerDifficulty =
SteerPower =
TireFriction =
TireElasticity =
MasterColor = BrickColor.()
Wrecked =
Vehicle = .()
Vehicle.Name =
Vehicle.Parent = Workspace
Base = .()
Base.Name =
Base.BrickColor = MasterColor
Base.TopSurface =
Base.BottomSurface =
Base.FormFactor =
Base.Size = .(, , )
Base.Friction =
Base.Elasticity =
Base.Parent = Vehicle
Thrust = .()
Thrust.P =
Thrust.maxForce = .(.huge, , .huge)
Thrust.velocity = .()
Thrust.Parent = Base
Steer = .()
Steer.maxTorque = .(, .huge, )
Steer.cframe = .()
Steer.P =
Steer.Parent = Base
.(, Base).force = .(, -, )
Seat = .()
Seat.CanCollide =
Seat.MaxSpeed =
Seat.Torque =
Seat.HeadsUpDisplay =
Seat.BrickColor = BrickColor.()
Seat.TopSurface =
Seat.BottomSurface =
Seat.Size = .(, , )
Seat.Parent = Vehicle
Weld = .()
Weld.Name =
Weld.Parent = Seat
Weld.Part0 = Base
Weld.Part1 = Seat
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Seat2 = .()
Seat2.Name =
Seat2.CanCollide =
Seat2.MaxSpeed =
Seat2.Torque =
Seat2.HeadsUpDisplay =
Seat2.BrickColor = BrickColor.()
Seat2.TopSurface =
Seat2.BottomSurface =
Seat2.Size = .(, , )
Seat2.Parent = Vehicle
Weld = .()
Weld.Parent = Seat2
Weld.Part0 = Base
Weld.Part1 = Seat2
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, -, )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, -, )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
.((Part2)
Driver ~= Part2:() == Part2:() == Health >
Sound1 = .()
Sound1.Name =
Sound1.SoundId =
Sound1.Volume =
Sound1.Pitch =
Sound1.Parent = Part2
Sound1:()
()
Sound2 = .()
Sound2.Name =
Sound2.SoundId =
Sound2.Volume =
Sound2.Pitch =
Sound2.Looped =
Sound2.Parent = Part2
Sound2:()
Driver ~= Vehicle.Parent ~= Health >
Sound2.Pitch = + (.(ThrottlePercent) * )
()
.(()
i = Sound1.Pitch, , -
Sound1.Pitch = i
()
)()
i = Sound2.Pitch, , -
Sound2.Pitch = i
()
Sound1:()
Sound2:()
()
Sound1:()
Sound2:()
()
)(Part)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Reflectance =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), .(), )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -) * .(.(), , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
.(, Part)
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -) * .(.(), , )
Open = .()
Open.Parent = Part
.((Part2, Weld2)
SignalOn =
Open.MouseClick:(()
SignalOn = SignalOn
Part2.BrickColor = SignalOn == BrickColor.() BrickColor.()
.(()
SignalOn ==
i = , ,
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
i = , , -
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
)()
)
i =
.(()
i = i
()
)()
Vehicle:() ~=
Vehicle[]:() == SignalOn == i ==
Vehicle[].Transparency =
Vehicle[].Transparency =
Vehicle:() ~=
Vehicle[]:() == SignalOn == i ==
Vehicle[].Transparency =
Vehicle[].Transparency =
()
)(Part, Weld)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
.(, Part)
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), , )
Open = .()
Open.Parent = Part
.((Part2, Weld2)
HeadlightsOn =
Open.MouseClick:(()
HeadlightsOn = HeadlightsOn
Part2.BrickColor = HeadlightsOn == BrickColor.() BrickColor.()
.(()
HeadlightsOn ==
i = , ,
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
i = , , -
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
)()
)
Vehicle:() ~=
Vehicle[]:() == HeadlightsOn ==
Vehicle[].Transparency =
Vehicle[].Transparency =
Vehicle:() ~=
Vehicle[]:() == HeadlightsOn ==
Vehicle[].Transparency =
Vehicle[].Transparency =
()
)(Part, Weld)
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.CanCollide =
Part.Parent = Vehicle
.(, Part)
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -) * .(.(), , )
Open = .()
Open.Parent = Part
.((Part2, Weld2)
SignalOn =
Open.MouseClick:(()
SignalOn = SignalOn
Part2.BrickColor = SignalOn == BrickColor.() BrickColor.()
.(()
SignalOn ==
i = , ,
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
i = , , -
Weld2.C1 = .(, i, )
()
Weld2.C1 = .(, , )
)()
)
i =
.(()
i = i
()
)()
Vehicle:() ~=
Vehicle[]:() == SignalOn == i ==
Vehicle[].Transparency =
Vehicle[].Transparency =
Vehicle:() ~=
Vehicle[]:() == SignalOn == i ==
Vehicle[].Transparency =
Vehicle[].Transparency =
()
)(Part, Weld)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , -)
Weld.C1 = .(-, , -)
Open = .()
Open.Parent = Part
.((Weld2)
IsOpen =
CanOpen =
Open.MouseClick:(()
IsOpen == CanOpen ==
CanOpen =
IsOpen =
i = , ,
Weld2.C1 = .(Weld2.C1.p) * .(, .( * i), )
()
CanOpen =
IsOpen == CanOpen ==
CanOpen =
IsOpen =
i = , , -
Weld2.C1 = .(Weld2.C1.p) * .(, .( * i), )
()
CanOpen =
)
)(Weld)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , -)
Weld.C1 = .(, , -)
Open = .()
Open.Parent = Part
.((Weld2)
IsOpen =
CanOpen =
Open.MouseClick:(()
IsOpen == CanOpen ==
CanOpen =
IsOpen =
i = , ,
Weld2.C1 = .(Weld2.C1.p) * .(, .(- * i), )
()
CanOpen =
IsOpen == CanOpen ==
CanOpen =
IsOpen =
i = , , -
Weld2.C1 = .(Weld2.C1.p) * .(, .(- * i), )
()
CanOpen =
)
)(Weld)
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Mesh = .()
Mesh.MeshType =
Mesh.Scale = .(, , )
Mesh.Parent = Part
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = BrickColor.()
Part.Transparency =
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(-, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface =
Part.BottomSurface =
Part.FormFactor =
Part.Size = .(, , )
Part.Parent = Vehicle
Weld = .()
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = .(, , )
Part = .()
Part.Name =
Part.BrickColor = MasterColor
Part.TopSurface = Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 2, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1.25, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2.75, 8)
Part = Instance.new("Part")
Part.Name = "Rear Left Well 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 2.25, 10.5)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 1"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 2, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1.25, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2.75, 8)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 2"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 4, 2)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 1)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 2.25, 10.5)
Part = Instance.new("WedgePart")
Part.Name = "Rear Left Well 3"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 1.25, 6.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Right Well 3"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 1.25, 6.75) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Left Well 4"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
Part = Instance.new("WedgePart")
Part.Name = "Rear Right Well 4"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Wedge"
Mesh.Scale = Vector3.new(1, 0.5, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.5, 1.25, 9.25) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(180), 0)
Part = Instance.new("Part")
Part.Name = "Rear Left Well 5"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1.01, 1.01, 1.2)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4.5, 1, 8)
Part = Instance.new("Part")
Part.Name = "Rear Right Well 5"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 3)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1.01, 1.01, 1.2)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(4.5, 1, 8)
Part = Instance.new("Part")
Part.Name = "Trunk"
Part.BrickColor = MasterColor
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(10, 4, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.875, 0.5)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(0, 0.5, 11)
Weld.C1 = CFrame.new(0, -1.75, -0.25)
local Open = Instance.new("ClickDetector")
Open.Parent = Part
coroutine.wrap(function(Weld2)
local IsOpen = false
local CanOpen = true
Open.MouseClick:connect(function()
if IsOpen == false and CanOpen == true then
CanOpen = false
IsOpen = true
for i = 0, 1, 0.05 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), 0, 0)
wait()
end
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
CanOpen = true
elseif IsOpen == true and CanOpen == true then
CanOpen = false
IsOpen = false
for i = 1, 0, -0.05 do
Weld2.C1 = CFrame.new(Weld2.C1.p) * CFrame.fromEulerAnglesXYZ(math.rad(-90 * i), 0, 0)
wait()
end
Weld2.C1 = CFrame.new(Weld2.C1.p)
CanOpen = true
end
end)
end)(Weld)
Part = Instance.new("Part")
Part.Name = "Left Brake Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4, 0.25, 0.25)
coroutine.wrap(function(Part2)
while true do
if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
Part2.Transparency = 0.75
Part2.BrickColor = BrickColor.new("Dark red")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Really red")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Left Rear Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5.25, 2.25, 11.5)
Part = Instance.new("Part")
Part.Name = "Right Brake Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 1, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(4, 0.25, 0.25)
coroutine.wrap(function(Part2)
while true do
if Part2:FindFirstChild("Weld") == nil or IsBraking == false then
Part2.Transparency = 0.75
Part2.BrickColor = BrickColor.new("Dark red")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Really red")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Right Rear Turn Signal"
Part.BrickColor = BrickColor.new("New Yeller")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(1, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(0.5, 1.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5.25, 2.25, 11.5)
Part = Instance.new("Part")
Part.Name = "Left Reverse Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(-4, -0.5, 0.25)
coroutine.wrap(function(Part2)
wait()
while true do
if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
Part2.Transparency = 0.5
Part2.BrickColor = BrickColor.new("White")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Institutional white")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Right Reverse Light"
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(2, 1, 1)
Part.Parent = Vehicle
Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "Brick"
Mesh.Scale = Vector3.new(1, 0.5, 0.01)
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Vehicle.Trunk
Weld.Part1 = Part
Weld.C0 = CFrame.new(4, -0.5, 0.25)
coroutine.wrap(function(Part2)
wait()
while true do
if Part2:FindFirstChild("Weld") == nil or ThrottlePercent >= 0 then
Part2.Transparency = 0.5
Part2.BrickColor = BrickColor.new("White")
else
Part2.Transparency = 0
Part2.BrickColor = BrickColor.new("Institutional white")
end
wait()
end
end)(Part)
Part = Instance.new("Part")
Part.Name = "Rear Right Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Rear Left Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, 8) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Front Right Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Part = Instance.new("Part")
Part.Name = "Front Left Wheel"
Part.BrickColor = BrickColor.new("Really black")
Part.TopSurface = "Smooth"
Part.BottomSurface = "Smooth"
Part.FormFactor = "Custom"
Part.Size = Vector3.new(3, 2, 3)
Part.Friction = TireFriction
Part.Elasticity = TireElasticity
Part.Parent = Vehicle
Mesh = Instance.new("CylinderMesh")
Mesh.Parent = Part
Weld = Instance.new("Weld")
Weld.Parent = Part
Weld.Part0 = Base
Weld.Part1 = Part
Weld.C0 = CFrame.new(-5, 0, -4) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
Vehicle:MoveTo((Workspace:FindFirstChild("adamfontenot") == nil and Vector3.new() or Workspace.adamfontenot.Torso.Position) + Vector3.new(9, 3, 0))
--[[
Vehicle Support v8
Variables:
Health
MaxHealth
ToughnessMinorDamage
ToughnessMajorDamage
DriftAcceleration
DriftSteerDifficulty
DriftSteerPower
Acceleration
TopSpeed
Deceleration
BrakePower
SteerDifficulty
SteerPower
TireFriction
TireElasticity
MasterColor
Wrecked
Vehicle (Model)
Base (Part)
Thrust (BodyVelocity)
Steer (BodyGyro)
Seat (VehicleSeat)
--]]
Wheels = {}
RearTraction = false
FrontTraction = false
DriftCheck = 0
Drifting = false
ThrottlePercent = 0
IsBraking = false
SteerPercent = 0
if Wrecked == true then Health = math.random(1, MaxHealth) end
for _, Part in pairs(Vehicle:GetChildren()) do
if Part:IsA("BasePart") then
Part.Locked = true
if Wrecked == true then
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-7.5, 7.5)), math.rad(math.random(-7.5, 7.5)), math.rad(math.random(-7.5, 7.5))) end)
if math.random(1, 5) == 1 then Part.Material = "CorrodedMetal" end
if math.random(1, 10) == 1 then Part.BrickColor = BrickColor.new("Black") end
if math.random(1, 50) == 1 then Part.BrickColor = BrickColor.new("Really black") end
end
if string.match(Part.Name, "VehicleSeat") == nil and string.match(Part.Name, "VehicleEngine") == nil and string.match(Part.Name, "VehicleBase") == nil and string.match(Part.Name, " Wheel") == nil then
Part.Touched:connect(function(Hit)
if Hit.Parent == nil then return end
if Hit.Parent == Vehicle then return end
if Hit.CanCollide == false then return end
if Part:FindFirstChild("Weld") == nil then return end
if string.match(Hit.Name, "VehicleSeat") or string.match(Hit.Name, "VehicleEngine") or string.match(Hit.Name, "VehicleBase") then return end
local velocity1 = {
math.abs(Part.Velocity.x),
math.abs(Part.Velocity.y),
math.abs(Part.Velocity.z)
}
local rotvelocity1 = {
math.abs(Part.RotVelocity.x),
math.abs(Part.RotVelocity.y),
math.abs(Part.RotVelocity.z)
}
local velocity2 = {
math.abs(Hit.Velocity.x),
math.abs(Hit.Velocity.y),
math.abs(Hit.Velocity.z)
}
local rotvelocity2 = {
math.abs(Hit.RotVelocity.x),
math.abs(Hit.RotVelocity.y),
math.abs(Hit.RotVelocity.z)
}
for i = 1, #velocity1 do
local Total = math.abs(velocity1 - velocity2)
if Total > ToughnessMinorDamage / 2 then
Health = Health - (Total / 10)
end
if Total > ToughnessMinorDamage then
ThrottlePercent = ThrottlePercent * 0.9
pcall(function() Part.Weld.C0 = Part.Weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
end
if Total > ToughnessMajorDamage and Hit:GetMass() > 3 then
ThrottlePercent = 0
Part:BreakJoints()
Part.Velocity = Part.Velocity + math.random(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
Part.RotVelocity = Part.RotVelocity + math.random(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
end
if Total > math.random(50, 75) then
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
local Tag = Instance.new("ObjectValue", Hit.Parent.Humanoid)
Tag.Name = "creator"
Tag.Value = Driver
coroutine.wrap(function() wait(1) Tag:Remove() end)()
end
Hit:BreakJoints()
end
end
for i = 1, #rotvelocity1 do
local Total = math.abs(velocity1 - velocity2)
if Total > ToughnessMinorDamage / 4 and not string.match(Part.Name, " Wheel") then
Health = Health - (Total / 10)
end
if Total > ToughnessMinorDamage / 2 and not string.match(Part.Name, " Wheel") then
ThrottlePercent = ThrottlePercent * 0.9
pcall(function() Part.Weld.C0 = Part.Weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
pcall(function() Part.Weld.C1 = Part.Weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10)), math.rad(math.random(-Total / 10, Total / 10))) end)
end
if Total > ToughnessMajorDamage / 2 and Hit:GetMass() > 3 then
ThrottlePercent = ThrottlePercent * 0.75
Part:BreakJoints()
Part.Velocity = Part.Velocity + Vector3.new(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
end
if Total > math.random(50, 75) then
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
local Tag = Instance.new("ObjectValue", Hit.Parent.Humanoid)
Tag.Name = "creator"
Tag.Value = Driver
coroutine.wrap(function() wait(1) Tag:Remove() end)()
end
Hit:BreakJoints()
end
end
end)
end
if string.match(Part.Name, " Wheel") then
table.insert(Wheels, Part)
end
Part.ChildRemoved:connect(function(Object)
if Object.Name == "Weld" then
Health = Health - 25
end
end)
end
end
while true do
RearTraction = false
FrontTraction = false
for _, Part in pairs(Wheels) do
local Hit = Workspace:FindPartOnRay(Ray.new(Part.Position, (Part.Position - (Part.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)) * CFrame.new(0, -1, 0)).p).unit * ((Part.Size.x / 2) + 0.5)), Vehicle)
if Hit ~= nil and Part:FindFirstChild("Weld") ~= nil then
if string.match(Part.Name, "Rear") then
RearTraction = true
else
FrontTraction = true
end
end
end
if Vehicle:FindFirstChild("VehicleEngine") ~= nil then
if Vehicle.VehicleEngine:FindFirstChild("Weld") == nil then
Health = 0
end
if pcall(function() return EffectHolder.Parent end) == false then
EffectHolder = Instance.new("Part")
EffectHolder.Name = ""
EffectHolder.CanCollide = false
EffectHolder.Anchored = true
EffectHolder.FormFactor = "Custom"
EffectHolder.Size = Vector3.new(1, 1, 1)
EffectHolder.TopSurface = 0
EffectHolder.BottomSurface = 0
EffectHolder.Transparency = 1
EffectHolder.Parent = Vehicle
end
EffectHolder.CFrame = CFrame.new(Vehicle.VehicleEngine.Position)
for _, Part in pairs(EffectHolder:GetChildren()) do
pcall(function() Part.Enabled = false end)
end
if Health <= 0 then
if EffectHolder:FindFirstChild("Smoke 0") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 0"
Smoke.Color = Color3.new(0.05, 0.05, 0.05)
Smoke.RiseVelocity = 12.5
Smoke.Size = 12.5
Smoke.Parent = EffectHolder
end
if EffectHolder:FindFirstChild("Fire 0") == nil then
local Fire = Instance.new("Fire")
Fire.Name = "Fire 0"
Fire.Heat = 10
Fire.Size = 20
Fire.Parent = EffectHolder
end
EffectHolder["Smoke 0"].Enabled = true
EffectHolder["Fire 0"].Enabled = true
elseif Health < MaxHealth * 0.15 then
if EffectHolder:FindFirstChild("Smoke 1") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 1"
Smoke.Color = Color3.new(0.25, 0.25, 0.25)
Smoke.RiseVelocity = 10
Smoke.Size = 10
Smoke.Parent = EffectHolder
end
if EffectHolder:FindFirstChild("Fire 1") == nil then
local Fire = Instance.new("Fire")
Fire.Name = "Fire 1"
Fire.Heat = 5
Fire.Size = 10
Fire.Parent = EffectHolder
end
EffectHolder["Smoke 1"].Enabled = true
EffectHolder["Fire 1"].Enabled = true
elseif Health < MaxHealth * 0.2 then
if EffectHolder:FindFirstChild("Smoke 2") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 2"
Smoke.Color = Color3.new(0.5, 0.5, 0.5)
Smoke.RiseVelocity = 9
Smoke.Size = 7.5
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 2"].Enabled = true
elseif Health < MaxHealth * 0.3 then
if EffectHolder:FindFirstChild("Smoke 3") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 3"
Smoke.Color = Color3.new(0.75, 0.75, 0.75)
Smoke.RiseVelocity = 7.5
Smoke.Size = 5
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 3"].Enabled = true
elseif Health < MaxHealth * 0.4 then
if EffectHolder:FindFirstChild("Smoke 4") == nil then
local Smoke = Instance.new("Smoke")
Smoke.Name = "Smoke 4"
Smoke.Color = Color3.new(1, 1, 1)
Smoke.RiseVelocity = 5
Smoke.Size = 3
Smoke.Parent = EffectHolder
end
EffectHolder["Smoke 4"].Enabled = true
end
else
Health = 0
if EffectHolder ~= nil then
EffectHolder:Remove()
EffectHolder = nil
end
end
if ThrottlePercent < 0.2 then
Drifting = false
DriftCheck = 0
end
if Seat.Throttle == 1 then
if ThrottlePercent > 0.2 and tick() - DriftCheck < 0.5 and Drifting == false then
coroutine.wrap(function()
DriftCheck = 0
Drifting = true
local OldAcceleration = Acceleration
local OldSteerDifficulty = SteerDifficulty
local OldSteerPower = SteerPower
Acceleration = DriftAcceleration
SteerDifficulty = DriftSteerDifficulty
SteerPower = DriftSteerPower
local EffectHolder1 = Instance.new("Part")
EffectHolder1.Name = ""
EffectHolder1.CanCollide = false
EffectHolder1.Anchored = true
EffectHolder1.FormFactor = "Custom"
EffectHolder1.Size = Vector3.new(1, 1, 1)
EffectHolder1.TopSurface = 0
EffectHolder1.BottomSurface = 0
EffectHolder1.Transparency = 1
EffectHolder1.Parent = Vehicle
local Smoke = Instance.new("Smoke")
Smoke.Color = Color3.new(0.9, 0.9, 0.9)
Smoke.RiseVelocity = 15
Smoke.Size = 10
Smoke.Parent = EffectHolder1
local EffectHolder2 = Instance.new("Part")
EffectHolder2.Name = ""
EffectHolder2.CanCollide = false
EffectHolder2.Anchored = true
EffectHolder2.FormFactor = "Custom"
EffectHolder2.Size = Vector3.new(1, 1, 1)
EffectHolder2.TopSurface = 0
EffectHolder2.BottomSurface = 0
EffectHolder2.Transparency = 1
EffectHolder2.Parent = Vehicle
local Smoke = Instance.new("Smoke")
Smoke.Color = Color3.new(0.9, 0.9, 0.9)
Smoke.RiseVelocity = 15
Smoke.Size = 10
Smoke.Parent = EffectHolder2
while Drifting == true do
if pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true then
EffectHolder1.CFrame = Vehicle["Rear Left Wheel"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
else
EffectHolder1.Smoke.Enabled = false
end
if pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true then
EffectHolder2.CFrame = Vehicle["Rear Right Wheel"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
else
EffectHolder2.Smoke.Enabled = false
end
wait()
end
Acceleration = OldAcceleration
SteerDifficulty = OldSteerDifficulty
SteerPower = OldSteerPower
EffectHolder1.Smoke.Enabled = false
EffectHolder2.Smoke.Enabled = false
wait(7.5)
EffectHolder1:Remove()
EffectHolder2:Remove()
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Left Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Right Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
coroutine.wrap(function()
while Drifting == true do
if pcall(function() return Vehicle["Rear Wheel"].Weld end) == true then
local DriftSound = Instance.new("Sound")
DriftSound.SoundId = "http://www.roblox.com/Asset/?id=31245495"
DriftSound.Volume = 1
DriftSound.Pitch = math.random(90, 120) / 100
DriftSound.Parent = Vehicle["Rear Wheel"]
DriftSound:Play()
end
wait(math.random(35, 60) / 100)
end
end)()
end
if ThrottlePercent < 0 then
ThrottlePercent = ThrottlePercent + BrakePower
IsBraking = true
else
ThrottlePercent = ThrottlePercent + Acceleration
IsBraking = false
end
elseif Seat.Throttle == -1 then
Drifting = false
if ThrottlePercent > 0.1 then
ThrottlePercent = ThrottlePercent - BrakePower
IsBraking = true
DriftCheck = tick()
else
ThrottlePercent = ThrottlePercent - Acceleration
end
else
if ThrottlePercent < 0 then
ThrottlePercent = ThrottlePercent + Deceleration
elseif ThrottlePercent > 0 then
ThrottlePercent = ThrottlePercent - Deceleration
end
if ThrottlePercent > -Deceleration * 1.1 and ThrottlePercent < Deceleration * 1.1 then
ThrottlePercent = 0
end
end
if ThrottlePercent > 1 then ThrottlePercent = 1 end
if ThrottlePercent < -1 then ThrottlePercent = -1 end
if ThrottlePercent ~= 0 and RearTraction == true and (pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Wheel"].Weld end) == true) and Health > 0 then
Thrust.maxForce = Vector3.new(math.huge, 0, math.huge)
Thrust.velocity = Base.CFrame.lookVector * (TopSpeed * ThrottlePercent)
else
Thrust.maxForce = Vector3.new()
end
if Seat.Steer == 1 then
SteerPercent = SteerPercent - (SteerDifficulty * (1 - (math.abs(ThrottlePercent) / 10)))
elseif Seat.Steer == -1 then
SteerPercent = SteerPercent + (SteerDifficulty * (1 - (math.abs(ThrottlePercent) / 10)))
else
if SteerPercent < 0 then
SteerPercent = SteerPercent + SteerDifficulty
elseif SteerPercent > 0 then
SteerPercent = SteerPercent - SteerDifficulty
end
if SteerPercent > -SteerDifficulty * 1.1 and SteerPercent < SteerDifficulty * 1.1 then
SteerPercent = 0
Drifting = false
end
end
if SteerPercent > 1 then SteerPercent = 1 end
if SteerPercent < -1 then SteerPercent = -1 end
if SteerPercent ~= 0 and RearTraction == true and FrontTraction == true and (pcall(function() return Vehicle["Rear Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Rear Right Wheel"].Weld end) == true) and (pcall(function() return Vehicle["Front Left Wheel"].Weld end) == true or pcall(function() return Vehicle["Front Right Wheel"].Weld end) == true) and Health > 0 then
Steer.maxTorque = Vector3.new(0, math.huge, 0)
Steer.cframe = (Base.CFrame - Base.Position) * CFrame.fromEulerAnglesXYZ(0, math.rad((SteerPercent * SteerPower) * ((ThrottlePercent * 10) > 1 and 1 or (ThrottlePercent * 10))), 0)
ThrottlePercent = ThrottlePercent - ((Acceleration * 0.95) * (1 - math.abs(SteerPercent)))
ThrottlePercent = ThrottlePercent - (Acceleration * (SteerPercent / 2))
else
Steer.maxTorque = Vector3.new()
Steer.cframe = CFrame.new()
end
local SteerAngle = SteerPercent * (SteerPower * 1.5)
if SteerAngle > 80 then SteerAngle = 80 end
if SteerAngle < -80 then SteerAngle = -80 end
for _, Part in pairs(Wheels) do
if string.match(Part.Name, "Front ") then
pcall(function()
Part.Weld.C0 = CFrame.new(Part.Weld.C0.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(SteerAngle), math.rad(90))
end)
end
end
if Seat:FindFirstChild("SeatWeld") ~= nil and Driver == nil then
local Part1 = Seat.SeatWeld.Part1
if Part1 ~= nil then
Driver = game:GetService("Players"):GetPlayerFromCharacter(Part1.Parent)
if Driver ~= nil then
local PlayerGui = Driver:FindFirstChild("PlayerGui")
if PlayerGui == nil then return end
local DriverGui = Instance.new("ScreenGui", PlayerGui)
DriverGui.Name = "DriverGui"
local Frame = Instance.new("Frame")
Frame.Name = "Content"
Frame.Size = UDim2.new(1, 0, 0, 100)
Frame.Position = UDim2.new(0, 0, 1, -100)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
Frame.Parent = DriverGui
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedText1"
TextLabel.Size = UDim2.new(0, 85, 0, 15)
TextLabel.Position = UDim2.new(0, 15, 0, 7.5)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Speed"
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedText2"
TextLabel.Size = UDim2.new(0, 85, 0, 15)
TextLabel.Position = UDim2.new(0, 15, 0, 7.5 + 15)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Bricks/sec."
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
for i = 0, 1, 0.1 do
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "SpeedTextInc" ..i
TextLabel.Size = UDim2.new(0, 0, 0, 15)
TextLabel.Position = UDim2.new(0, 92 + (i * 200), 0, 37.5)
TextLabel.BorderSizePixel = 1
TextLabel.BackgroundTransparency = 0
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = math.floor(TopSpeed * i)
TextLabel.TextXAlignment = "Left"
TextLabel.Parent = DriverGui.Content
end
local Frame = Instance.new("Frame")
Frame.Name = "SpeedBack"
Frame.Size = UDim2.new(0, 200, 0, 30)
Frame.Position = UDim2.new(0, 100, 0, 7.5)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0, 0)
Frame.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "SpeedFront"
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0, 0.9)
Frame.Parent = DriverGui.Content
coroutine.wrap(function()
while DriverGui.Parent ~= nil do
DriverGui.Content.SpeedFront.Size = DriverGui.Content.SpeedBack.Size - UDim2.new(0, DriverGui.Content.SpeedBack.Size.X.Offset * (1 - math.abs(ThrottlePercent)), 0, 0)
DriverGui.Content.SpeedFront.Position = DriverGui.Content.SpeedBack.Position
wait()
end
end)()
local TextLabel = Instance.new("TextLabel")
TextLabel.Name = "DamageText"
TextLabel.Size = UDim2.new(0, 85, 0, 30)
TextLabel.Position = UDim2.new(0, 215, 0, 57.5)
TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 1
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.Text = "Damage"
TextLabel.TextXAlignment = "Left"
TextLabel.FontSize = "Size12"
TextLabel.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "DamageBack"
Frame.Size = UDim2.new(0, 250, 0, 30)
Frame.Position = UDim2.new(0, 300, 0, 57.5)
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0, 0.5, 0)
Frame.Parent = DriverGui.Content
local Frame = Instance.new("Frame")
Frame.Name = "DamageFront"
Frame.BorderSizePixel = 1
Frame.BorderColor3 = Color3.new(0, 0, 0)
Frame.BackgroundColor3 = Color3.new(0.9, 0, 0)
Frame.Parent = DriverGui.Content
coroutine.wrap(function()
local i = math.pi * 1.5
while DriverGui.Parent ~= nil do
DriverGui.Content.DamageFront.Size = DriverGui.Content.DamageBack.Size - UDim2.new(0, DriverGui.Content.DamageBack.Size.X.Offset * (1 - ((MaxHealth - Health) / MaxHealth)), 0, 0)
DriverGui.Content.DamageFront.Position = DriverGui.Content.DamageBack.Position
if Health < MaxHealth * 0.15 then
i = i + 0.4
elseif Health < MaxHealth * 0.2 then
i = i + 0.25
elseif Health < MaxHealth * 0.3 then
i = i + 0.1
elseif Health < MaxHealth * 0.4 then
i = i + 0.075
end
DriverGui.Content.DamageFront.BackgroundColor3 = Color3.new(1 - ((math.sin(i) + 1) / 2), 0, 0)
DriverGui.Content.DamageBack.BackgroundColor3 = Color3.new(0, 0.5 - (((math.sin(i) + 1) / 2) * 0.5), 0)
wait()
end
end)()
end
end
elseif Seat:FindFirstChild("SeatWeld") == nil and Driver ~= nil then
if Driver:FindFirstChild("PlayerGui") ~= nil then
if Driver.PlayerGui:FindFirstChild("DriverGui") ~= nil then
Driver.PlayerGui.DriverGui:Remove()
end
end
Driver = nil
end
if Health <= 0 then
Health = 0
ThrottlePercent = 0
if Vehicle:FindFirstChild("VehicleEngine") ~= nil then
if math.random(1, 1000) == 1 or Vehicle.VehicleEngine:FindFirstChild("Weld") == nil then
local Explosion = Instance.new("Explosion")
Explosion.BlastPressure = 5000 * ToughnessMajorDamage
Explosion.BlastRadius = ToughnessMajorDamage / 10
Explosion.Position = Vehicle.VehicleEngine.Position
Explosion.Parent = Workspace
Vehicle.VehicleEngine.Name = "Exploded VehicleEngine"
end
end
end
wait()
end
end)
end;
task.spawn(C_10);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.TextButton.LocalScript
local function C_11()
local script = LMG2L["LocalScript_11"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
local playerLeaderstats = {}
for i, v in pairs(game.Players:GetChildren()) do
table.insert(playerLeaderstats, v)
end
for i, v in pairs(playerLeaderstats) do
pe = Instance.new("ParticleEmitter",v.Character.Torso)
pe.Texture = "http://www.roblox.com/asset/?id=127476787"
pe.VelocitySpread = 50
end
end)
end;
task.spawn(C_11);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.TextButton.LocalScript
local function C_12()
local script = LMG2L["LocalScript_12"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
wait()
s = Instance.new("Sky")
s.Parent = game.Lighting
s.Name = "awesome skybox"
while true do
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076888"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076888"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076945"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077007"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077125"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077227"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077345"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077345"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077227"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077227"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077125"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077125"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21077007"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21077007"
wait(0.1)
s.SkyboxBk = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxDn = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxFt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxLf = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxRt = "http://www.roblox.com/asset/?id=21076945"
s.SkyboxUp = "http://www.roblox.com/asset/?id=21076945"
end
end)
end;
task.spawn(C_12);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.TextButton.LocalScript
local function C_13()
local script = LMG2L["LocalScript_13"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
--[[
love u iFractal
<3
leeked by CLarramore
]]
-- made by a new user (iFractal) leaked by a logger with love
--One Punch Man Script
p = game.Players.LocalPlayer
char = p.Character
des = false
fling = true
dot = false
falling = false
jump = true
--char.Shirt:Remove()
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
wait()--shirt = Instance.new("Shirt", char)
--shirt.Name = "Shirt"
--pants = Instance.new("Pants", char)
--pants.Name = "Pants"
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
tp = true
shoot = true
hum = char.Humanoid
punch = true
neckp = char.Torso.Neck.C0
neck = char.Torso.Neck
hum.MaxHealth = 999999999
wait()
hum.Health =hum.MaxHealth
des = false
root=char.HumanoidRootPart
torso = char.Torso
char.Head.face.Texture = "rbxassetid://332768867"
local ChatService = game:GetService("Chat")
local player = game.Players.LocalPlayer
lig = Instance.new("PointLight",player.Character.Torso)
lig.Color=Color3.new(255,0,0)
m=player:GetMouse()
bb = Instance.new("BillboardGui",player.Character.Head)
bb.Enabled = true
function newRay(start,face,range,wat)
local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
return rey,hit,pos
end
aa1={}
torso=game.Players.LocalPlayer.Character.Torso
local WorldUp = Vector3.new(0,1,0)
function look2(Vec1,Vec2)
local Orig = Vec1
Vec1 = Vec1+Vector3.new(0,1,0)
Vec2 = Vec2+Vector3.new(0,1,0)
local Forward = (Vec2-Vec1).unit
local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
local Right = Up:Cross(Forward).unit
Forward = -Forward
Right = -Right
return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function look(CFr,Vec2)
local A = Vector3.new(0,0,0)
local B = CFr:inverse()*Vec2
local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
if B.Z > 0 then
CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
elseif B.Z == 0 then
if B.Y > 0 then
CF = CFr*CFrame.Angles(math.pi/2,0,0)
elseif B.Y < 0 then
CF = CFr*CFrame.Angles(-math.pi/2,0,0)
else
CF = CFr
end
end
local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
local Up = Vector3.new(X,Y,Z)
local Forward = (Vec2-CFr.p).unit
local Right = Up:Cross(Forward)
Forward = -Forward
Right = -Right
return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function simulate(j,d,m,r,t)
local joint = j
for i,v in ipairs(t) do
if v[1]:FindFirstChild("Weld") then
local stiff = m.CFrame.lookVector*0.03
if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
local pos = joint.p+(dir*(d*0.5))
--if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
local inv = v[1].Weld.Part0.CFrame
local rel1 = inv:inverse()*pos
local rel2 = inv:inverse()*(pos-(dir*dis))
local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
v[1].Weld.C0 = cf
v[2] = inv*cf
--v[1].CFrame = cf
end
end
end
for i=1,8 do
local p = Instance.new("Part",char)
p.Anchored = false
p.BrickColor = BrickColor.new("Institutional white")
p.CanCollide = false
p.FormFactor="Custom"
p.Material = "SmoothPlastic"
p.TopSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.BackSurface = "SmoothNoOutlines"
p.Size=Vector3.new(2,.2,0.2)
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
mesh = Instance.new("BlockMesh",p)
mesh.Scale = Vector3.new(1,1,4)
local w = Instance.new("Motor6D",p)
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
w.Part1 = p
w.Name = "Weld"
--table.insert(aa1,p)
aa1[i] = {p,p.CFrame}
end
game:service"RunService".Stepped:connect(function()
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
end)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Text = "* "
gui.Size = UDim2.new(0,133,0,45)
gui.Position=UDim2.new(0,57,0,-40)
gui.TextColor3 = Color3.new(255,255,255)
gui.BackgroundColor3=Color3.new(0,0,0)
gui.TextWrapped = true
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = false
gui.BorderColor3 = Color3.new(0,0,0)
punch2 = true
gui1=Instance.new("TextButton",bb)
gui1.Position=UDim2.new(0,5,0,-43)
gui1.Size = UDim2.new(0,190,0,51)
gui1.TextColor3 = Color3.new(255,255,255)
gui1.BackgroundColor3=Color3.new(255,255,255)
jump2 = true
gui1.Visible = false
img = Instance.new("ImageLabel",bb)
img.Size = UDim2.new(0,46,0,47)
img.Position = UDim2.new(0,10,0,-41)
img.Image = "rbxassetid://447301252"
img.BorderColor3 = Color3.new(0,0,0)
img.Visible = false
soka = Instance.new("Sound",char)
soka.SoundId = "http://www.roblox.com/asset/?id = 447199232"
soka.Volume = 1
boom = Instance.new("Sound",char)
boom.SoundId = "http://www.roblox.com/asset/?id = 447041606"
boom.Volume = 1
boom2 = Instance.new("Sound",char)
boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737"
boom2.Volume = 1
boom3 = Instance.new("Sound",char)
boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
boom3.Volume = 1
tps = Instance.new("Sound",char)
tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
tps.Volume = 1
asd = Instance.new("Sound",char)
asd.SoundId = "http://www.roblox.com/asset/?id = 447310433"
asd.Volume =1
asd1 = Instance.new("Sound",char)
asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
asd2 = Instance.new("Sound",char)
asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054"
asd2.Looped = true
asd2.Volume = 5
asd3 = Instance.new("Sound",char)
asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996"
asd3.Looped = true
asd4 = Instance.new("Sound",char)
asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325"
asd4.Looped = true
asd5 = Instance.new("Sound",char)
asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261"
asd5.Looped = true
gas = Instance.new("Sound",char)
gas.SoundId = "http://www.roblox.com/asset/?id = 345052019"
asd6 = Instance.new("Sound",char)
asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325"
asd6.Looped = true
function play(play)
asd:Play()
wait(0.05)
--asd1:Play()
end
------------
-------------------------
function stream(origin,dir,length,size)
local parts = {}
for i = 1,length do
local p = Instance.new("Part",char)
p.Anchored = true
p.Transparency = 0.5
p.TopSurface = 0
p.BottomSurface = 0
p.CanCollide = false
p.BrickColor = BrickColor.new("Institutional white")
p.Size = Vector3.new(10,30,10) -- for now
p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
game:GetService("Debris"):AddItem(p,3)
end
Spawn(function()
while parts do
for i,v in pairs(parts) do
if v[1].Parent == char then
v[1].CFrame = v[1].CFrame*v[2]
else
parts = nil
break
end
end
wait(0.02)
end
end)
end
--[[-- listen for their chatting
player.Chatted:connect(function(message)
a = string.len(message)
gui.Text = ""
gui.Visible = true
gui1.Visible = true
des = false
img.Visible = true
print(a)
if dot == false then
gui.Text = ""
for i = 1,string.len(message) do
gui.Text =gui.Text..message:sub(i,i)
play()
end
end
des = true
end)]]--
m.KeyDown:connect(function(k)
if k == "g" then
asd2:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "r" then
asd4:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "q" then
asd3:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "z" then
img.Image = "rbxassetid://332766052"
end
end)
m.KeyDown:connect(function(k)
if k == "c" then
img.Image = "rbxassetid://447301252"
end
end)
m.KeyDown:connect(function(k)
if k == "b" then
asd6:Play()
end
end)
mouse = p:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 100
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 50 then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 52 then
char.Head.face.Texture = "rbxassetid://444037452"
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 51 then
char.Head.face.Texture = "rbxassetid://332768867"
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 16
end
end)
p.Chatted:connect(function(m)
if m == "Okay." then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "x" then
if des == true then
gui.Visible = false
gui.Text = "* "
gui1.Visible = false
img.Visible = false
end
end
end)
m.KeyDown:connect(function(key)
if key == "j" then
if tp == true then
tp = false
tps:Play()
char.Head.face.Parent = game.Lighting
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
end
end
wait(0.5)
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
end
end
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
char.HumanoidRootPart.Transparency = 1
game.Lighting.face.Parent = char.Head
wait(0.2)
tp = true
end
end
end)
m.KeyDown:connect(function(key)
if key == "t" then
if punch2 == true then
punch2 = false
punch = false
local ChatService = game:GetService("Chat")
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
ChatService:Chat(char.Head, "Mind if I get Serious?")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
neck.C0 = neckp
wait(0.6)
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
wait()
killbrick2 = Instance.new("Part",char)
killbrick2.Size = Vector3.new(80,80,9000)
killbrick2.Transparency = 1
killbrick2.CanCollide = true
wait(0.1)
killbrick2.CanCollide = false
killbrick2.Anchored = true
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
killbrick2.Touched:connect(function(h)
local x = h.Parent:FindFirstChild("Humanoid")
if x then
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x.Parent:BreakJoints()
wait()
safe = true
end
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
local rng1 = Instance.new("Part", char)
rng1.Anchored = true
rng1.BrickColor = BrickColor.new("Institutional white")
rng1.CanCollide = false
rng1.FormFactor = 3
rng1.Name = "Ring"
rng1.Size = Vector3.new(1, 1, 1)
rng1.Transparency = 0.8
rng1.TopSurface = 0
rng1.BottomSurface = 0
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm1 = Instance.new("SpecialMesh", rng1)
rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm1.Scale = Vector3.new(1, 1.3, 2)
local p = (torso.CFrame*CFrame.new(-20,0,3))
stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
local p = (torso.CFrame*CFrame.new(20,0,3))
stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
local rng2 = Instance.new("Part", char)
rng2.Anchored = true
rng2.BrickColor = BrickColor.new("Institutional white")
rng2.CanCollide = false
rng2.FormFactor = 3
rng2.Name = "Ring"
rng2.Size = Vector3.new(1, 1, 1)
rng2.Transparency = 0.8
rng2.TopSurface = 0
rng2.BottomSurface = 0
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm2 = Instance.new("SpecialMesh", rng2)
rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm2.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom3:Play()
coroutine.wrap(function()
for i = 1, 35, 0.5 do
rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
wait()
end
wait()
rng:Destroy()
rng1:Destroy()
rng2:Destroy()
killbrick2:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch2 = true
punch = true
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "k" then
if punch == true then
punch = false
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
killbrick = Instance.new("Part",char)
killbrick.Size = Vector3.new(5,1,5)
killbrick.Transparency = 1
killbrick:BreakJoints()
killbrick.CanCollide = false
local wel = Instance.new("Weld",killbrick)
wel.Part0 = killbrick
wel.Part1 = char["Left Arm"]
wel.C0 = CFrame.new(0,1,0)
force = 90
killbrick.Touched:connect(function(h)
local x = h.Parent.Humanoid
if x.Health >= 6000 then
fling = false
end
if x.Health < 6000 then
fling = true
end
local stop = h.Parent.Torso.Velocity
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
if fling == true then
force = 900
end
if fling == false then
force = 200
end
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x:TakeDamage(5000)
wait()
safe = true
bodyforc:Remove()
h.Parent.Torso.Velocity = stop
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom2:Play()
coroutine.wrap(function()
for i = 1, 10, .4 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
wait()
end
wait()
rng:Destroy()
killbrick:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch = true
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "m" then
if jump == true then
jump = false
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.35
rng.TopSurface = 0
rng.BottomSurface = 0
rng.Position = torso.Position - Vector3.new(0,2,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
BV = Instance.new("BodyVelocity", torso)
BV.maxForce = Vector3.new(0,20000,0)
BV.P = 1000
BV.velocity = Vector3.new(0,100,0)
boom:Play()
coroutine.wrap(function()
for i = 1, 60, 2 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
rng.Transparency = i/60
wait()
end
wait()
rng:Destroy()
hum.WalkSpeed = 50
wait(1)
for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false
end end
wait()
end)()
end
wait(.1)
end
end)
m.KeyDown:connect(function(key)
if key == "n" then
if falling == true then
falling = false
if jumping2 == true then
jumping2 = false
jump = false
BV = Instance.new("BodyVelocity", torso)
BV.maxForce = Vector3.new(0,-20000,0)
BV.P = -1000
BV.velocity = Vector3.new(0,-70,0)
wait(0.6)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Institutional white")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.35
rng.TopSurface = 0
rng.BottomSurface = 0
rng.Position = torso.Position - Vector3.new(0,2,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
boom:Play()
coroutine.wrap(function()
for i = 1, 60, 2 do
rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
rng.Transparency = i/60
wait()
end
wait()
rng:Destroy()
for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16
end end
wait()
end)()
end
wait(.1)
end
end
end)
m.KeyDown:connect(function(k)
if k == "f" then
asd3:Stop()
asd2:Stop()
asd4:Stop()
asd6:Stop()
asd5:Stop()
end
end)
------------
-- ~CLarramore 2016
--==Made by NextFlame==--
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
local player=game.Players.LocalPlayer
local char=player.Character
local torso=char.Torso
local head=char.Head
local human=char.Humanoid
local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
local joints={LeftShoulder=torso["Left Shoulder"], RightShoulder=torso["Right Shoulder"], LeftHip=torso["Left Hip"], RightHip=torso["Right Hip"]}
joints.LeftShoulder.Part0=torso
joints.RightShoulder.Part0=torso
joints.LeftHip.Part0=torso
joints.RightHip.Part0=torso
local c=function(f) Spawn(f) end
local add={
Part=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
return p
end,
Wedge=function(par, a, c, col, t, s, cf, ms)
local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
return p
end,
Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
return g
end,
Weld=function(par, p1, cf)
local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
return w
end,
Mesh=function(ins, par, s, of, t, id)
local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshId=id or "" m.MeshType=t end)
return m
end,
Sound=function(parent, id, volume, pitch)
local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
return s
end,
}
local modelName="Kung Fu" --Name here
pcall(function() player.Backpack[modelName]:remove() char[modelName]:remove() char["CharacterParts"]:remove() end)
local model=Instance.new("Model", char) model.Name="CharacterParts"
local modelB=Instance.new("Model", char) modelB.Name=modelName
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=modelName
local skincolor="Really black"
local gui=Instance.new("ScreenGui")
local body={}
local animate={}
local obj={}
--Variables--
local trailDeb=false
local keyDeb=false
local hitDeb=false
local loop=false
local speed=16
local combo=0
local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, 1.2)
local Hit=add.Sound(torso, "http://roblox.com/asset/?id=10209225", 1, 1)
function createParts()
--==PARTS==--
torso.Transparency=1
for i, v in pairs(char:children()) do if v:isA("CharacterMesh") then v:remove() end end
gui.Parent=player.PlayerGui gui.Name=modelName
body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
--==WELDS==--
body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
body.TorsoW=add.Weld(body.Torso, torso, nil)
body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1, 0))
--==WELDS2==--
add.Weld(body.Head, head, nil)
add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
joints.LeftHip.Part0=body.Torso
joints.RightHip.Part0=body.Torso
--==Sign==--
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
add.Weld(body.Part, body.Torso, CFrame.new(-.25, 0, .5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, .5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
add.Weld(body.Part, body.Torso, CFrame.new(.25, 0, -.5))
body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, -.5))
---------------------------------------------------------------------------------------
animate={
["Head"]=function(cf)
body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
end;
["Torso"]=function(cf)
body.TorsoW.C1=(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["ArmLeft"]=function(cf)
body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["ArmRight"]=function(cf)
body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
end;
["LegLeft"]=function(cf)
legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -1, 0))
body.LegLeftW.C1=CFrame.new(-.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
coroutine.resume(coroutine.create(function()
wait()
legLeftW:remove()
end))
end;
["LegRight"]=function(cf)
legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -1, 0))
body.LegRightW.C1=CFrame.new(.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
coroutine.resume(coroutine.create(function()
wait()
legRightW:remove()
end))
end;
}
--==Objects==--
obj.attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "(5) Combos", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
obj.attackLabel2=add.Gui("TextLabel", obj.attackLabel, "Really black", "Really black", "White", "Size18", "Punch[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel3=add.Gui("TextLabel", obj.attackLabel2, "Really black", "Really black", "White", "Size18", "Punch[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel4=add.Gui("TextLabel", obj.attackLabel3, "Really black", "Really black", "White", "Size18", "Kick[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel5=add.Gui("TextLabel", obj.attackLabel4, "Really black", "Really black", "White", "Size18", "Kick[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
obj.attackLabel6=add.Gui("TextLabel", obj.attackLabel5, "Really black", "Really black", "White", "Size18", "RappidKick", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
for i, v in pairs(modelB:children()) do
if i==0 then return end
end
--==Weapon==--
end
function removeParts()
pcall(function()
if torso then
joints.LeftShoulder.Part0=torso
joints.RightShoulder.Part0=torso
joints.LeftHip.Part0=torso
joints.RightHip.Part0=torso
torso.Transparency=0
end
player.PlayerGui[modelName]:remove()
for i, v in pairs(model:children()) do v:remove() end
end)
end
function lightningGen(startPos, endPos)
local magnitude=(startPos-endPos).magnitude
local distance=(startPos+endPos)/2
local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
local startPosProx=startPos
for i=1, 9 do
local startPosProx2=startPosProx
local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
local findSize=pattern.Size.z/10
local findOffSet=pattern.CFrame.lookVector*-1
local compute=i*findSize*findOffSet
local newStartPos=startPos
local newEndPos=CFrame.new(random+compute+newStartPos).p
local magnitude=(startPosProx2-newEndPos).magnitude
local distance=(startPosProx2+newEndPos)/2
local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
c(function()
for i=0, 1, .1 do wait()
lightning.Transparency=i
end
lightning:remove()
end)
startPosProx=newEndPos
end
pattern:remove()
end
function computePos(pos, pos2)
local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
return CFrame.new(pos, pos3)
end
function nearTorso(pos, dis)
local temp
local distance=dis
for i, v in pairs(workspace:children()) do
if v:isA("Model") then
temp=v:findFirstChild("Torso")
local humanoid=v:findFirstChild("Humanoid")
if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
distance=(temp.CFrame.p-pos).magnitude
return temp
end
end
end
end
function trail(pos, cf, col, size)
c(function()
local old=(pos.CFrame*cf).p
while trailDeb==true do
wait()
local new=(pos.CFrame*cf).p
local mag=(old-new).magnitude
local dis=(old+new)/2
local trail=add.Part(workspace, true, false, col or "White", 0, Vector3.new(size or .2, mag, size or .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Effect"
local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
old=new
c(function()
for i=1, 0, -.1 do
wait()
tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
end
trail:remove()
end)
c(function()
for i=0, 1, .1 do
wait()
trail.Transparency=i
end
end)
end
end)
end
function rayCast(pos, dir, col)
local magnitude=(pos-dir).magnitude
local distance=(pos+dir)/2
local ray=add.Part(workspace, true, false, col, 0, Vector3.new(.2, magnitude, .2), CFrame.new(distance, pos))
return ray
end
function dmgHit(h)
local dmg=math.random(5, 10)
if keyDeb==true and h.Parent:findFirstChild("Humanoid") and hitDeb==false and h.Parent~=char then
hitDeb=true
local hHuman=h.Parent:findFirstChild("Humanoid")
local hTorso=h.Parent:findFirstChild("Torso")
hHuman.Health=hHuman.Health-dmg
local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
local effect=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(1, 1, 1), hTorso.CFrame*CFrame.new(0, 4, 0)) effect.Name="Head"
local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
local effect=add.Part(workspace, true, false, "White", .5, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)*CFrame.Angles(-math.pi/2, 0, 0))
local effectM=add.Mesh("SpecialMesh", effect, Vector3.new(1, 1, 1), nil, nil, "http://www.roblox.com/asset/?id=20329976")
c(function()
for i=1, 2, .1 do wait()
effectM.Scale=Vector3.new(i, i/2, i)
end
effect:remove()
end)
game.Debris:addItem(fakeM, 1)
wait(.1)
hitDeb=false
end
end
function idled()
animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(math.rad(135), 0, math.rad(5)))
animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(math.rad(135), 0, -math.rad(5)))
end
function doAttacks()
combo=combo+1
if keyDeb==false then
keyDeb=true
if combo>0 then Slash:play()
trailDeb=true
trail(body.ArmRight, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
end
end
if combo>2 then Slash:play()
trailDeb=true
trail(body.ArmLeft, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
end
end
if combo>3 then Slash:play()
idled()
trailDeb=true
trail(body.LegRight, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
end
end
if combo>4 then Slash:play()
idled()
trailDeb=true
trail(body.LegLeft, CFrame.new(0, -2.5, 0))
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
end
trailDeb=false
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
end
end
if combo>5 then
idled()
for i=0, 1, .2 do wait()
animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
end
for i=1, 20 do wait() Slash:play()
torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
animate.LegLeft(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
animate.LegRight(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
end
for i=1, 0, -.2 do wait()
animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
end
end
trailDeb=false
keyDeb=false
combo=0
idled()
end
for i, v in pairs(player.Character:GetChildren()) do
if v:IsA("BasePart") then
v.Touched:connect(function(player)
if player.Size.X<30 then
player.Anchored = false
player:BreakJoints()
end
end)
end
end
end
bin.Selected:connect(function(mouse) createParts()
for i, v in pairs(char:children()) do if v:isA("BasePart") then v.Touched:connect(dmgHit) end end
for i=0, 1, .1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
end
mouse.Button1Down:connect(doAttacks)
end)
bin.Deselected:connect(function()
for i=1, 0, -.1 do wait()
animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
end
removeParts()
end)--mediafire
end)
end;
task.spawn(C_13);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.ScrollingFrame.TextButton.LocalScript
local function C_14()
local script = LMG2L["LocalScript_14"];
local button = script.Parent
button.MouseButton1Click:Connect(function()
loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Polaria-LoadString-61107"))()
end)
end;
task.spawn(C_14);
-- Players.SKEBOB_DJ.PlayerGui.ScreenGui.Frame.LocalScript
local function C_16()
local script = LMG2L["LocalScript_16"];
local UIS = game:GetService("UserInputService")
local frame = script.Parent
local dragging = false
local dragStart
local startPos
local function update(input)
local delta = input.Position - dragStart
frame.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement
or input.UserInputType == Enum.UserInputType.Touch then
if dragging then
update(input)
end
end
end)
end;
task.spawn(C_16);
return LMG2L["ScreenGui_1"], require;Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: raw.githubusercontent.com, rawscripts.net, www.roblox.com, roblox.com.
Work!

Universal