local function a()local a=Instance.new("\080\097\114\116")a.Material=Enum.Material.SmoothPlastic a.TopSurface=Enum.SurfaceType.Smooth a.BottomSurface=Enum.SurfaceType.Smooth a.Size=Vector3.new(.2,.2,.2)return a end local function d()local d=a()d.Size=Vector3.new(.5,1,1)d.CanCollide=false local T=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")T.MeshType=Enum.MeshType.FileMesh T.MeshId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\050\050\050\048\050\052\051\057"T.TextureId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\052\050\050\052\053"T.Scale=Vector3.new(2.5,2.5,2.5)T.Parent=d return d end return function()local T=a()T.Name="\077\111\116\111\114\099\121\099\108\101"T.Size=Vector3.new(1,4.9,6)local j=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")j.MeshType=Enum.MeshType.FileMesh j.MeshId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\050\050\049\056\053\054\052\048"j.TextureId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\051\050\054\052\050\050\052\053"j.Scale=Vector3.new(2.5,2.5,2.5)j.Parent=T local D,p=d(),d()D.Name="\070\114\111\110\116\087\104\101\101\108"D.Parent=T p.Name="\066\097\099\107\087\104\101\101\108"p.Parent=T local X=Instance.new("\077\111\116\111\114\054\068")X.Name="\077\111\116\111\114"X.Part0=T X.Part1=D X.C0=CFrame.new(0,-1.1,-3.6)*CFrame.Angles(0,math.pi/2,0)X.C1=CFrame.Angles(0,-math.pi/2,0)X.Parent=D local G=Instance.new("\077\111\116\111\114\054\068")G.Name="\077\111\116\111\114"G.Part0=T G.Part1=p G.C0=CFrame.new(0,-1.1,2.8)*CFrame.Angles(0,math.pi/2,0)G.C1=CFrame.Angles(0,-math.pi/2,0)G.Parent=p local B=a()B.Name="\083\109\111\107\101\080\097\114\116"B.Transparency=1 B.Parent=T local g=Instance.new("\083\109\111\107\101")g.Name="\069\120\104\097\117\115\116\083\109\111\107\101"g.Size=.1 g.RiseVelocity=.01 g.Color=Color3.new(.49803921568627,.49803921568627,.49803921568627)g.Parent=B local m=Instance.new("\087\101\108\100")m.C0=CFrame.new(0,1,-2.7)m.Part0=B m.Part1=T m.Parent=B local H=a()H.Name="\076\105\103\104\116\080\097\114\116"H.Transparency=1 H.Parent=T local V=Instance.new("\083\112\111\116\076\105\103\104\116")V.Name="\076\105\103\104\116"V.Brightness=5 V.Angle=45 V.Color=Color3.new(1.0,.98823529411765,.6)V.Range=40 V.Shadows=true V.Parent=H local R=Instance.new("\087\101\108\100")R.Part0=T R.Part1=H R.C0=CFrame.new(0,.75,-2.5)R.Parent=H local x=Instance.new("\083\111\117\110\100")x.Name="\082\117\110\110\105\110\103\083\111\117\110\100"x.Looped=true x.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\050\050\050\057\050\055\050\051"x.Parent=T return T end
--[[
TheNexusAvenger

Creates the motorcycle model.
--]]



--[[
Creates a part.
--]]
local function CreatePart()
    local Part = Instance.new("Part")
    Part.Material = Enum.Material.SmoothPlastic
    Part.TopSurface = Enum.SurfaceType.Smooth
    Part.BottomSurface = Enum.SurfaceType.Smooth
    Part.Size = Vector3.new(0.2,0.2,0.2)
    return Part
end

--[[
Creates a wheel.
--]]
local function CreateWheel()
    local Wheel = CreatePart()
    Wheel.Size = Vector3.new(0.5,1,1)
    Wheel.CanCollide = false

    local WheelMesh = Instance.new("SpecialMesh")
    WheelMesh.MeshType = Enum.MeshType.FileMesh
    WheelMesh.MeshId = "rbxassetid://122202439"
    WheelMesh.TextureId = "rbxassetid://132642245"
    WheelMesh.Scale = Vector3.new(2.5,2.5,2.5)
    WheelMesh.Parent = Wheel

    return Wheel
end



--[[
Creates a motorcycle.
--]]
return function()
    local Body = CreatePart()
    Body.Name = "Motorcycle"
    Body.Size = Vector3.new(1,4.9,6)

    local BodyMesh = Instance.new("SpecialMesh")
    BodyMesh.MeshType = Enum.MeshType.FileMesh
    BodyMesh.MeshId = "http://www.roblox.com/asset/?id=122185640"
    BodyMesh.TextureId = "http://www.roblox.com/asset/?id=132642245"
    BodyMesh.Scale = Vector3.new(2.5,2.5,2.5)
    BodyMesh.Parent = Body

    local FrontWheel,BackWheel = CreateWheel(),CreateWheel()
    FrontWheel.Name = "FrontWheel"
    FrontWheel.Parent = Body
    BackWheel.Name = "BackWheel"
    BackWheel.Parent = Body

    local FrontMotor = Instance.new("Motor6D")
    FrontMotor.Name = "Motor"
    FrontMotor.Part0 = Body
    FrontMotor.Part1 = FrontWheel
    FrontMotor.C0 = CFrame.new(0,-1.1,-3.6) * CFrame.Angles(0,math.pi/2,0)
    FrontMotor.C1 = CFrame.Angles(0,-math.pi/2,0)
    FrontMotor.Parent = FrontWheel

    local BackMotor = Instance.new("Motor6D")
    BackMotor.Name = "Motor"
    BackMotor.Part0 = Body
    BackMotor.Part1 = BackWheel
    BackMotor.C0 = CFrame.new(0,-1.1,2.8) * CFrame.Angles(0,math.pi/2,0)
    BackMotor.C1 = CFrame.Angles(0,-math.pi/2,0)
    BackMotor.Parent = BackWheel

    local SmokePart = CreatePart()
    SmokePart.Name = "SmokePart"
    SmokePart.Transparency = 1
    SmokePart.Parent = Body

    local ExhaustSmoke = Instance.new("Smoke")
    ExhaustSmoke.Name = "ExhaustSmoke"
    ExhaustSmoke.Size = 0.1
    ExhaustSmoke.RiseVelocity = 0.01
    ExhaustSmoke.Color = Color3.new(127/255,127/255,127/255)
    ExhaustSmoke.Parent = SmokePart

    local SmokeWeld = Instance.new("Weld")
    SmokeWeld.C0 = CFrame.new(0,1,-2.7)
    SmokeWeld.Part0 = SmokePart
    SmokeWeld.Part1 = Body
    SmokeWeld.Parent = SmokePart

    local LightPart = CreatePart()
    LightPart.Name = "LightPart"
    LightPart.Transparency = 1
    LightPart.Parent = Body

    local Light = Instance.new("SpotLight")
    Light.Name = "Light"
    Light.Brightness = 5
    Light.Angle = 45
    Light.Color = Color3.new(255/255,252/255,153/255)
    Light.Range = 40
    Light.Shadows = true
    Light.Parent = LightPart

    local LightWeld = Instance.new("Weld")
    LightWeld.Part0 = Body
    LightWeld.Part1 = LightPart
    LightWeld.C0 = CFrame.new(0,0.75,-2.5)
    LightWeld.Parent = LightPart

    local RunningSound = Instance.new("Sound")
    RunningSound.Name = "RunningSound"
    RunningSound.Looped = true
    RunningSound.SoundId = "http://www.roblox.com/asset/?id=122292723"
    RunningSound.Parent = Body

    return Body
end