Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- RS = Torso["Right Shoulder"]
- Neck = Torso.Neck
- attacktype = 1
- vt = Vector3.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- RootCF = euler(-1.57, 0, 3.14)
- attack = false
- equipped = false
- local Anim = "Idle"
- local Effects = {}
- cam = workspace.CurrentCamera
- ZTarget = nil
- RocketTarget = nil
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- local m = Create("Model"){
- Parent = Character,
- Name = "WeaponModel",
- }
- mouse = Player:GetMouse()
- RSH = Torso["Right Shoulder"]
- LSH = Torso["Left Shoulder"]
- RHP = Character.Torso["Right Hip"]
- LHP = Character.Torso["Left Hip"]
- function NoOutline(Part)
- Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service'RunService'.Heartbeat:wait()
- else
- for i = 0, num do
- game:service'RunService'.Heartbeat:wait()
- end
- end
- end
- function nooutline(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
- local fp = Create("Part"){
- formFactor = formfactor,
- Parent = parent,
- Reflectance = reflectance,
- Transparency = transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(brickcolor)),
- Name = name,
- Size = size,
- Position = Character.Torso.Position,
- Material = material,
- }
- nooutline(fp)
- return fp
- end
- function mesh(Mesh, part, meshtype, meshid, offset, scale)
- local Msh = Create(Mesh){
- Parent = part,
- Offset = offset,
- Scale = scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = meshtype
- Msh.MeshId = meshid
- end
- return Msh
- end
- function weld(parent, part0, part1, c0, c1)
- local Weld = Create("Weld"){
- Parent = parent,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return Weld
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c - a):Dot((b - a).unit)
- local edg2 = (a - b):Dot((c - b).unit)
- local edg3 = (b - c):Dot((a - c).unit)
- if edg1 <= (b - a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c - a):Dot((b - a).unit)
- local len2 = (b - a).magnitude - len1
- local width = (a + (b - a).unit * len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
- local list = {}
- local Color = BrickColor.new("Dark stone grey")
- if len1 > 0.01 then
- local w1 = Create('WedgePart', m){
- Material = "SmoothPlastic",
- FormFactor = 'Custom',
- BrickColor = Color,
- Transparency = 0,
- Reflectance = 0,
- Material = "SmoothPlastic",
- CanCollide = false,
- Anchored = true,
- Parent = workspace,
- Transparency = 0.3,
- }
- game:GetService("Debris"):AddItem(w1, 5)
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Create("SpecialMesh"){
- Parent = w1,
- MeshType = "Wedge",
- Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
- }
- w1:BreakJoints()
- table.insert(Effects, {
- w1,
- "Disappear",
- .03
- })
- w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
- table.insert(list, w1)
- end
- if len2 > 0.01 then
- local w2 = Create('WedgePart', m){
- Material = "SmoothPlastic",
- FormFactor = 'Custom',
- BrickColor = Color,
- Transparency = 0,
- Reflectance = 0,
- Material = "SmoothPlastic",
- CanCollide = false,
- Anchored = true,
- Parent = workspace,
- Transparency = 0.3,
- }
- game:GetService("Debris"):AddItem(w2, 5)
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Create("SpecialMesh"){
- Parent = w2,
- MeshType = "Wedge",
- Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
- }
- w2:BreakJoints()
- table.insert(Effects, {
- w2,
- "Disappear",
- .03
- })
- w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
- table.insert(list, w2)
- end
- return unpack(list)
- end
- function so(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = id
- swait()
- sou:play()
- swait(6)
- sou:Remove()
- end))
- end
- function clerp(a, b, t)
- local function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- local function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function rayCast(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- if h.MaxHealth >= math.huge then
- hit:BreakJoints()
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- so(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = vt(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color, Color2)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 0))
- local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- TextColor3 = Color,
- TextScaled = true,
- Font = Enum.Font.ArialBold,
- FontSize = Enum.FontSize.Size10,
- TextStrokeColor3 = Color2,
- TextStrokeTransparency = 0.8,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time + 0.1))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- Handle=local Part1 = Instance.new("Part", Model)
- Part1.Name = "Part"
- Part1.Reflectance = 0
- Part1.Transparency = 0
- Part1.Anchored = false
- Part1.Archivable = true
- Part1.CanCollide = false
- Part1.Locked = false
- Part1.BrickColor = BrickColor.new("Black")
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.Position = Vector3.new(164.90884399414, 41.163925170898, -103.25901794434)
- Part1.Size = Vector3.new(0.069400206208229, 0.069400206208229, 0.25493285059929)
- Part1.Rotation = Vector3.new(25.789999008179, -24.329999923706, -13.179999351501)
- ---------------------------------------------
- local Part2 = Instance.new("Part", Model)
- Part2.Name = "Part"
- Part2.Reflectance = 0
- Part2.Transparency = 0
- Part2.Anchored = false
- Part2.Archivable = true
- Part2.CanCollide = false
- Part2.Locked = false
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.Position = Vector3.new(165.0224609375, 41.413940429688, -103.30830383301)
- Part2.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part2.Rotation = Vector3.new(-157.62998962402, 9.1799993515015, -83.430000305176)
- ---------------------------------------------
- local Part3 = Instance.new("Part", Model)
- Part3.Name = "Part"
- Part3.Reflectance = 0
- Part3.Transparency = 0
- Part3.Anchored = false
- Part3.Archivable = true
- Part3.CanCollide = false
- Part3.Locked = false
- Part3.BrickColor = BrickColor.new("Bright red")
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.Position = Vector3.new(166.67388916016, 41.023059844971, -102.93870544434)
- Part3.Size = Vector3.new(0.082514435052872, 0.090519063174725, 0.069400206208229)
- Part3.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part4 = Instance.new("Part", Model)
- Part4.Name = "Part"
- Part4.Reflectance = 0
- Part4.Transparency = 0
- Part4.Anchored = false
- Part4.Archivable = true
- Part4.CanCollide = false
- Part4.Locked = false
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.Position = Vector3.new(165.45693969727, 41.015502929688, -102.94741821289)
- Part4.Size = Vector3.new(0.24631232023239, 0.069400206208229, 0.069400206208229)
- Part4.Rotation = Vector3.new(5.7300000190735, 29.5, -11.509999275208)
- ---------------------------------------------
- local Part5 = Instance.new("Part", Model)
- Part5.Name = "Part"
- Part5.Reflectance = 0
- Part5.Transparency = 0
- Part5.Anchored = false
- Part5.Archivable = true
- Part5.CanCollide = true
- Part5.Locked = false
- Part5.BrickColor = BrickColor.new("Smoky grey")
- Part5.Material = Enum.Material.SmoothPlastic
- Part5.Position = Vector3.new(164.52278137207, 40.984851837158, -103.09474182129)
- Part5.Size = Vector3.new(0.38732472062111, 0.31897461414337, 0.19581814110279)
- Part5.Rotation = Vector3.new(0.0099999997764826, 0, 51.569999694824)
- ---------------------------------------------
- local Part6 = Instance.new("Part", Model)
- Part6.Name = "Part"
- Part6.Reflectance = 1
- Part6.Transparency = 0
- Part6.Anchored = false
- Part6.Archivable = true
- Part6.CanCollide = false
- Part6.Locked = false
- Part6.BrickColor = BrickColor.new("Medium stone grey")
- Part6.Material = Enum.Material.Metal
- Part6.Position = Vector3.new(166.54708862305, 40.568359375, -103.24775695801)
- Part6.Size = Vector3.new(0.086209401488304, 0.069400206208229, 0.076356701552868)
- Part6.Rotation = Vector3.new(172, -1.4499999284744, -159.87998962402)
- ---------------------------------------------
- local Part7 = Instance.new("Part", Model)
- Part7.Name = "Part"
- Part7.Reflectance = 0
- Part7.Transparency = 0
- Part7.Anchored = false
- Part7.Archivable = true
- Part7.CanCollide = false
- Part7.Locked = false
- Part7.BrickColor = BrickColor.new("Bright red")
- Part7.Material = Enum.Material.SmoothPlastic
- Part7.Position = Vector3.new(166.2642364502, 41.095203399658, -102.93872070313)
- Part7.Size = Vector3.new(0.10406660288572, 0.10345050692558, 0.069400206208229)
- Part7.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part8 = Instance.new("Part", Model)
- Part8.Name = "Part"
- Part8.Reflectance = 0
- Part8.Transparency = 0
- Part8.Anchored = false
- Part8.Archivable = true
- Part8.CanCollide = false
- Part8.Locked = false
- Part8.BrickColor = BrickColor.new("Bright red")
- Part8.Material = Enum.Material.SmoothPlastic
- Part8.Position = Vector3.new(166.46594238281, 41.067005157471, -103.24800109863)
- Part8.Size = Vector3.new(0.51109778881073, 0.10345050692558, 0.069400206208229)
- Part8.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part9 = Instance.new("Part", Model)
- Part9.Name = "Part"
- Part9.Reflectance = 0
- Part9.Transparency = 0
- Part9.Anchored = false
- Part9.Archivable = true
- Part9.CanCollide = false
- Part9.Locked = false
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.Material = Enum.Material.Neon
- Part9.Position = Vector3.new(166.05349731445, 41.131248474121, -102.95325469971)
- Part9.Size = Vector3.new(0.10406704992056, 0.069400206208229, 0.069400206208229)
- Part9.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part10 = Instance.new("Part", Model)
- Part10.Name = "Part"
- Part10.Reflectance = 0
- Part10.Transparency = 0
- Part10.Anchored = false
- Part10.Archivable = true
- Part10.CanCollide = false
- Part10.Locked = false
- Part10.BrickColor = BrickColor.new("Bright red")
- Part10.Material = Enum.Material.SmoothPlastic
- Part10.Position = Vector3.new(166.44909667969, 40.97155380249, -102.97232055664)
- Part10.Size = Vector3.new(0.51109778881073, 0.12315548211336, 0.069400206208229)
- Part10.Rotation = Vector3.new(35.829998016357, -5.9000000953674, -8.0900001525879)
- ---------------------------------------------
- local WedgePart11 = Instance.new("WedgePart", Model)
- WedgePart11.Name = "Wedge"
- WedgePart11.Reflectance = 0
- WedgePart11.Transparency = 0
- WedgePart11.Anchored = false
- WedgePart11.Archivable = true
- WedgePart11.CanCollide = true
- WedgePart11.Locked = false
- WedgePart11.BrickColor = BrickColor.new("Fossil")
- WedgePart11.Material = Enum.Material.Metal
- WedgePart11.Position = Vector3.new(164.51707458496, 41.301322937012, -103.09078979492)
- WedgePart11.Size = Vector3.new(0.20197606086731, 0.083130426704884, 0.47722944617271)
- WedgePart11.Rotation = Vector3.new(-89.98999786377, 58.430000305176, 91.430000305176)
- ---------------------------------------------
- local Part12 = Instance.new("Part", Model)
- Part12.Name = "Part"
- Part12.Reflectance = 1
- Part12.Transparency = 0
- Part12.Anchored = false
- Part12.Archivable = true
- Part12.CanCollide = false
- Part12.Locked = false
- Part12.BrickColor = BrickColor.new("Medium stone grey")
- Part12.Material = Enum.Material.Metal
- Part12.Position = Vector3.new(166.23904418945, 40.668403625488, -102.9602355957)
- Part12.Size = Vector3.new(0.086825184524059, 0.069400206208229, 0.069400206208229)
- Part12.Rotation = Vector3.new(-4.4000000953674, 0.76999998092651, 0.23999999463558)
- ---------------------------------------------
- local Part13 = Instance.new("Part", Model)
- Part13.Name = "Part"
- Part13.Reflectance = 1
- Part13.Transparency = 0
- Part13.Anchored = false
- Part13.Archivable = true
- Part13.CanCollide = false
- Part13.Locked = false
- Part13.BrickColor = BrickColor.new("Medium stone grey")
- Part13.Material = Enum.Material.Metal
- Part13.Position = Vector3.new(166.23558044434, 40.719066619873, -102.98107910156)
- Part13.Size = Vector3.new(0.089288309216499, 0.069400206208229, 0.069400206208229)
- Part13.Rotation = Vector3.new(-4.4000000953674, 0.76999998092651, 0.23999999463558)
- ---------------------------------------------
- local Part14 = Instance.new("Part", Model)
- Part14.Name = "Part"
- Part14.Reflectance = 0
- Part14.Transparency = 0
- Part14.Anchored = false
- Part14.Archivable = true
- Part14.CanCollide = false
- Part14.Locked = false
- Part14.BrickColor = BrickColor.new("Really red")
- Part14.Material = Enum.Material.SmoothPlastic
- Part14.Position = Vector3.new(163.55668640137, 40.970157623291, -103.10987854004)
- Part14.Size = Vector3.new(0.2623225748539, 0.069400206208229, 0.24939115345478)
- Part14.Rotation = Vector3.new(0.0099999997764826, 0, -140)
- ---------------------------------------------
- local Part15 = Instance.new("Part", Model)
- Part15.Name = "Part"
- Part15.Reflectance = 0
- Part15.Transparency = 0
- Part15.Anchored = false
- Part15.Archivable = true
- Part15.CanCollide = true
- Part15.Locked = false
- Part15.BrickColor = BrickColor.new("Fossil")
- Part15.Material = Enum.Material.Metal
- Part15.Position = Vector3.new(165.00764465332, 41.305137634277, -103.09066772461)
- Part15.Size = Vector3.new(0.65950012207031, 0.2186021655798, 0.20136019587517)
- Part15.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part16 = Instance.new("Part", Model)
- Part16.Name = "Part"
- Part16.Reflectance = 0
- Part16.Transparency = 0
- Part16.Anchored = false
- Part16.Archivable = true
- Part16.CanCollide = false
- Part16.Locked = false
- Part16.BrickColor = BrickColor.new("Really black")
- Part16.Material = Enum.Material.SmoothPlastic
- Part16.Position = Vector3.new(165.09143066406, 41.172832489014, -102.95893096924)
- Part16.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part16.Rotation = Vector3.new(-7.6900000572205, -6.4099998474121, -30.429998397827)
- ---------------------------------------------
- local Part17 = Instance.new("Part", Model)
- Part17.Name = "Part"
- Part17.Reflectance = 0
- Part17.Transparency = 0
- Part17.Anchored = false
- Part17.Archivable = true
- Part17.CanCollide = false
- Part17.Locked = false
- Part17.BrickColor = BrickColor.new("Smoky grey")
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.Position = Vector3.new(165.06517028809, 40.406719207764, -103.095703125)
- Part17.Size = Vector3.new(0.069400206208229, 0.42673635482788, 0.069400206208229)
- Part17.Rotation = Vector3.new(0.0099999997764826, 0, 161.00999450684)
- ---------------------------------------------
- local Part18 = Instance.new("Part", Model)
- Part18.Name = "Part"
- Part18.Reflectance = 0
- Part18.Transparency = 0
- Part18.Anchored = false
- Part18.Archivable = true
- Part18.CanCollide = true
- Part18.Locked = false
- Part18.BrickColor = BrickColor.new("Fossil")
- Part18.Material = Enum.Material.Metal
- Part18.Position = Vector3.new(164.16064453125, 40.877319335938, -103.11262512207)
- Part18.Size = Vector3.new(0.65765291452408, 0.10776164382696, 0.2130600810051)
- Part18.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part19 = Instance.new("Part", Model)
- Part19.Name = "Part"
- Part19.Reflectance = 0
- Part19.Transparency = 0
- Part19.Anchored = false
- Part19.Archivable = true
- Part19.CanCollide = false
- Part19.Locked = false
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.Material = Enum.Material.Neon
- Part19.Position = Vector3.new(166.3861541748, 41.071323394775, -102.95323944092)
- Part19.Size = Vector3.new(0.10406704992056, 0.069400206208229, 0.069400206208229)
- Part19.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part20 = Instance.new("Part", Model)
- Part20.Name = "Part"
- Part20.Reflectance = 0
- Part20.Transparency = 0
- Part20.Anchored = false
- Part20.Archivable = true
- Part20.CanCollide = false
- Part20.Locked = false
- Part20.BrickColor = BrickColor.new("Really black")
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.Position = Vector3.new(165.2942199707, 41.045635223389, -102.90785980225)
- Part20.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part20.Rotation = Vector3.new(-3.6099998950958, -19.689998626709, -10.630000114441)
- ---------------------------------------------
- local Part21 = Instance.new("Part", Model)
- Part21.Name = "Part"
- Part21.Reflectance = 0
- Part21.Transparency = 0
- Part21.Anchored = false
- Part21.Archivable = true
- Part21.CanCollide = true
- Part21.Locked = false
- Part21.BrickColor = BrickColor.new("Lime green")
- Part21.Material = Enum.Material.Neon
- Part21.Position = Vector3.new(164.97221374512, 41.252536773682, -103.45886230469)
- Part21.Size = Vector3.new(0.21490751206875, 0.23830726742744, 0.27771660685539)
- Part21.Rotation = Vector3.new(0.0099999997764826, 0, -40)
- ---------------------------------------------
- local Part22 = Instance.new("Part", Model)
- Part22.Name = "Part"
- Part22.Reflectance = 0
- Part22.Transparency = 0
- Part22.Anchored = false
- Part22.Archivable = true
- Part22.CanCollide = false
- Part22.Locked = false
- Part22.BrickColor = BrickColor.new("Really black")
- Part22.Material = Enum.Material.SmoothPlastic
- Part22.Position = Vector3.new(165.01452636719, 41.544128417969, -103.1149597168)
- Part22.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part22.Rotation = Vector3.new(-87.699996948242, -0.68999999761581, -96.389999389648)
- ---------------------------------------------
- local Part23 = Instance.new("Part", Model)
- Part23.Name = "Part"
- Part23.Reflectance = 0
- Part23.Transparency = 0
- Part23.Anchored = false
- Part23.Archivable = true
- Part23.CanCollide = false
- Part23.Locked = false
- Part23.BrickColor = BrickColor.new("Really black")
- Part23.Material = Enum.Material.SmoothPlastic
- Part23.Position = Vector3.new(165.02801513672, 41.509914398193, -103.22756958008)
- Part23.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part23.Rotation = Vector3.new(-127.48999786377, 3.5799999237061, -95.339996337891)
- ---------------------------------------------
- local Part24 = Instance.new("Part", Model)
- Part24.Name = "Part"
- Part24.Reflectance = 1
- Part24.Transparency = 0
- Part24.Anchored = false
- Part24.Archivable = true
- Part24.CanCollide = false
- Part24.Locked = false
- Part24.BrickColor = BrickColor.new("Medium stone grey")
- Part24.Material = Enum.Material.Metal
- Part24.Position = Vector3.new(166.26344299316, 40.687320709229, -103.23883056641)
- Part24.Size = Vector3.new(0.088672533631325, 0.077588431537151, 0.069400206208229)
- Part24.Rotation = Vector3.new(172, -1.4499999284744, -176.25999450684)
- ---------------------------------------------
- local Part25 = Instance.new("Part", Model)
- Part25.Name = "Part"
- Part25.Reflectance = 0
- Part25.Transparency = 0
- Part25.Anchored = false
- Part25.Archivable = true
- Part25.CanCollide = true
- Part25.Locked = false
- Part25.BrickColor = BrickColor.new("Really red")
- Part25.Material = Enum.Material.SmoothPlastic
- Part25.Position = Vector3.new(163.92137145996, 41.047351837158, -103.10893249512)
- Part25.Size = Vector3.new(0.82822549343109, 0.18165549635887, 0.24631226062775)
- Part25.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part26 = Instance.new("Part", Model)
- Part26.Name = "Part"
- Part26.Reflectance = 1
- Part26.Transparency = 0
- Part26.Anchored = false
- Part26.Archivable = true
- Part26.CanCollide = false
- Part26.Locked = false
- Part26.BrickColor = BrickColor.new("New Yeller")
- Part26.Material = Enum.Material.Metal
- Part26.Position = Vector3.new(165.17797851563, 40.843639373779, -102.93453979492)
- Part26.Size = Vector3.new(0.069400206208229, 0.2807959318161, 0.069400206208229)
- Part26.Rotation = Vector3.new(-0.63999998569489, 0.12999999523163, 80.209999084473)
- ---------------------------------------------
- local Part27 = Instance.new("Part", Model)
- Part27.Name = "Part"
- Part27.Reflectance = 0
- Part27.Transparency = 0
- Part27.Anchored = false
- Part27.Archivable = true
- Part27.CanCollide = false
- Part27.Locked = false
- Part27.BrickColor = BrickColor.new("Really black")
- Part27.Material = Enum.Material.Neon
- Part27.Position = Vector3.new(165.57699584961, 41.209037780762, -102.9532623291)
- Part27.Size = Vector3.new(0.10406704992056, 0.069400206208229, 0.069400206208229)
- Part27.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part28 = Instance.new("Part", Model)
- Part28.Name = "Part"
- Part28.Reflectance = 0
- Part28.Transparency = 0
- Part28.Anchored = false
- Part28.Archivable = true
- Part28.CanCollide = false
- Part28.Locked = false
- Part28.BrickColor = BrickColor.new("Fossil")
- Part28.Material = Enum.Material.Metal
- Part28.Position = Vector3.new(164.53439331055, 41.316593170166, -103.09069824219)
- Part28.Size = Vector3.new(0.45136594772339, 0.069400206208229, 0.20136019587517)
- Part28.Rotation = Vector3.new(0.0099999997764826, 0, 40)
- ---------------------------------------------
- local Part29 = Instance.new("Part", Model)
- Part29.Name = "Part"
- Part29.Reflectance = 0
- Part29.Transparency = 0
- Part29.Anchored = false
- Part29.Archivable = true
- Part29.CanCollide = false
- Part29.Locked = false
- Part29.BrickColor = BrickColor.new("Really red")
- Part29.Material = Enum.Material.SmoothPlastic
- Part29.Position = Vector3.new(163.46337890625, 40.90739440918, -103.10989379883)
- Part29.Size = Vector3.new(0.069400206208229, 0.61762887239456, 0.24939115345478)
- Part29.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part30 = Instance.new("Part", Model)
- Part30.Name = "Part"
- Part30.Reflectance = 1
- Part30.Transparency = 0
- Part30.Anchored = false
- Part30.Archivable = true
- Part30.CanCollide = false
- Part30.Locked = false
- Part30.BrickColor = BrickColor.new("Medium stone grey")
- Part30.Material = Enum.Material.Metal
- Part30.Position = Vector3.new(166.51698303223, 40.569053649902, -102.93548583984)
- Part30.Size = Vector3.new(0.089288309216499, 0.12561935186386, 0.069400206208229)
- Part30.Rotation = Vector3.new(-4.4099998474121, 0.76999998092651, -16.139999389648)
- ---------------------------------------------
- local Part31 = Instance.new("Part", Model)
- Part31.Name = "Part"
- Part31.Reflectance = 0
- Part31.Transparency = 0
- Part31.Anchored = false
- Part31.Archivable = true
- Part31.CanCollide = true
- Part31.Locked = false
- Part31.BrickColor = BrickColor.new("Fossil")
- Part31.Material = Enum.Material.Metal
- Part31.Position = Vector3.new(165.43418884277, 41.00452041626, -103.0906829834)
- Part31.Size = Vector3.new(1.605339884758, 0.23338112235069, 0.20136019587517)
- Part31.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part32 = Instance.new("Part", Model)
- Part32.Name = "Barrel"
- Part32.Reflectance = 0
- Part32.Transparency = 0
- Part32.Anchored = false
- Part32.Archivable = true
- Part32.CanCollide = true
- Part32.Locked = false
- Part32.BrickColor = BrickColor.new("Dark stone grey")
- Part32.Material = Enum.Material.Metal
- Part32.Position = Vector3.new(166.27961730957, 40.648540496826, -103.08882141113)
- Part32.Size = Vector3.new(1.4483172893524, 0.15702417492867, 0.14347672462463)
- Part32.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part33 = Instance.new("Part", Model)
- Part33.Name = "Part"
- Part33.Reflectance = 0
- Part33.Transparency = 0
- Part33.Anchored = false
- Part33.Archivable = true
- Part33.CanCollide = false
- Part33.Locked = false
- Part33.BrickColor = BrickColor.new("Bright red")
- Part33.Material = Enum.Material.SmoothPlastic
- Part33.Position = Vector3.new(166.47950744629, 41.143997192383, -102.96466827393)
- Part33.Size = Vector3.new(0.51109778881073, 0.10345050692558, 0.069400206208229)
- Part33.Rotation = Vector3.new(-34.290000915527, 5.6700000762939, -8.25)
- ---------------------------------------------
- local Part34 = Instance.new("Part", Model)
- Part34.Name = "Part"
- Part34.Reflectance = 0
- Part34.Transparency = 0
- Part34.Anchored = false
- Part34.Archivable = true
- Part34.CanCollide = false
- Part34.Locked = false
- Part34.BrickColor = BrickColor.new("Really black")
- Part34.Material = Enum.Material.SmoothPlastic
- Part34.Position = Vector3.new(165.01727294922, 41.261341094971, -102.97664642334)
- Part34.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part34.Rotation = Vector3.new(-7.6900000572205, -6.4099998474121, -70.430000305176)
- ---------------------------------------------
- local Part35 = Instance.new("Part", Model)
- Part35.Name = "Part"
- Part35.Reflectance = 0
- Part35.Transparency = 0
- Part35.Anchored = false
- Part35.Archivable = true
- Part35.CanCollide = true
- Part35.Locked = false
- Part35.BrickColor = BrickColor.new("Fossil")
- Part35.Material = Enum.Material.Metal
- Part35.Position = Vector3.new(163.7008972168, 40.803634643555, -103.11297607422)
- Part35.Size = Vector3.new(0.51602321863174, 0.20382350683212, 0.2149074524641)
- Part35.Rotation = Vector3.new(0.0099999997764826, 0, 31.569999694824)
- ---------------------------------------------
- local Part36 = Instance.new("Part", Model)
- Part36.Name = "Part"
- Part36.Reflectance = 0
- Part36.Transparency = 0
- Part36.Anchored = false
- Part36.Archivable = true
- Part36.CanCollide = true
- Part36.Locked = false
- Part36.BrickColor = BrickColor.new("Smoky grey")
- Part36.Material = Enum.Material.SmoothPlastic
- Part36.Position = Vector3.new(164.49655151367, 40.489616394043, -103.10464477539)
- Part36.Size = Vector3.new(0.96308106184006, 0.42673635482788, 0.34483715891838)
- Part36.Rotation = Vector3.new(0.0099999997764826, 0, 51.569999694824)
- ---------------------------------------------
- local Part37 = Instance.new("Part", Model)
- Part37.Name = "Part"
- Part37.Reflectance = 1
- Part37.Transparency = 0
- Part37.Anchored = false
- Part37.Archivable = true
- Part37.CanCollide = false
- Part37.Locked = false
- Part37.BrickColor = BrickColor.new("Deep orange")
- Part37.Material = Enum.Material.Metal
- Part37.Position = Vector3.new(165.17109680176, 40.845676422119, -102.93647766113)
- Part37.Size = Vector3.new(0.089288309216499, 0.3454532623291, 0.069400206208229)
- Part37.Rotation = Vector3.new(-0.63999998569489, 0.12999999523163, 80.209999084473)
- ---------------------------------------------
- local Part38 = Instance.new("Part", Model)
- Part38.Name = "Part"
- Part38.Reflectance = 0
- Part38.Transparency = 0
- Part38.Anchored = false
- Part38.Archivable = true
- Part38.CanCollide = false
- Part38.Locked = false
- Part38.BrickColor = BrickColor.new("Fossil")
- Part38.Material = Enum.Material.Metal
- Part38.Position = Vector3.new(164.4755859375, 41.010112762451, -103.0982208252)
- Part38.Size = Vector3.new(0.41195577383041, 0.069400206208229, 0.19828127324581)
- Part38.Rotation = Vector3.new(0.0099999997764826, 0, 31.569999694824)
- ---------------------------------------------
- local Part39 = Instance.new("Part", Model)
- Part39.Name = "Part"
- Part39.Reflectance = 0
- Part39.Transparency = 0
- Part39.Anchored = false
- Part39.Archivable = true
- Part39.CanCollide = false
- Part39.Locked = false
- Part39.BrickColor = BrickColor.new("Fossil")
- Part39.Material = Enum.Material.SmoothPlastic
- Part39.Position = Vector3.new(165.99496459961, 41.1396484375, -102.96453857422)
- Part39.Size = Vector3.new(1.3454843759537, 0.086126334965229, 0.069400206208229)
- Part39.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part40 = Instance.new("Part", Model)
- Part40.Name = "Part"
- Part40.Reflectance = 0
- Part40.Transparency = 0
- Part40.Anchored = false
- Part40.Archivable = true
- Part40.CanCollide = false
- Part40.Locked = false
- Part40.BrickColor = BrickColor.new("Fossil")
- Part40.Material = Enum.Material.SmoothPlastic
- Part40.Position = Vector3.new(165.7907409668, 41.181831359863, -103.22204589844)
- Part40.Size = Vector3.new(0.91505396366119, 0.086126334965229, 0.069400206208229)
- Part40.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part41 = Instance.new("Part", Model)
- Part41.Name = "Part"
- Part41.Reflectance = 0
- Part41.Transparency = 0
- Part41.Anchored = false
- Part41.Archivable = true
- Part41.CanCollide = false
- Part41.Locked = false
- Part41.BrickColor = BrickColor.new("Fossil")
- Part41.Material = Enum.Material.SmoothPlastic
- Part41.Position = Vector3.new(165.76036071777, 41.105228424072, -102.99251556396)
- Part41.Size = Vector3.new(0.89411669969559, 0.10253144800663, 0.069400206208229)
- Part41.Rotation = Vector3.new(35.829998016357, -5.9000000953674, -8.0900001525879)
- ---------------------------------------------
- local Part42 = Instance.new("Part", Model)
- Part42.Name = "Part"
- Part42.Reflectance = 0
- Part42.Transparency = 0
- Part42.Anchored = false
- Part42.Archivable = true
- Part42.CanCollide = false
- Part42.Locked = false
- Part42.BrickColor = BrickColor.new("Fossil")
- Part42.Material = Enum.Material.SmoothPlastic
- Part42.Position = Vector3.new(165.82302856445, 41.272621154785, -103.08697509766)
- Part42.Size = Vector3.new(0.95815813541412, 0.16917726397514, 0.069400206208229)
- Part42.Rotation = Vector3.new(-89.98999786377, 10, 0)
- ---------------------------------------------
- local Part43 = Instance.new("Part", Model)
- Part43.Name = "Part"
- Part43.Reflectance = 0
- Part43.Transparency = 0
- Part43.Anchored = false
- Part43.Archivable = true
- Part43.CanCollide = false
- Part43.Locked = false
- Part43.BrickColor = BrickColor.new("Fossil")
- Part43.Material = Enum.Material.SmoothPlastic
- Part43.Position = Vector3.new(165.78173828125, 41.104141235352, -103.19551086426)
- Part43.Size = Vector3.new(0.93044847249985, 0.10253144800663, 0.069400206208229)
- Part43.Rotation = Vector3.new(146.64999389648, -5.539999961853, 8.3400001525879)
- ---------------------------------------------
- local Part44 = Instance.new("Part", Model)
- Part44.Name = "Part"
- Part44.Reflectance = 0
- Part44.Transparency = 0
- Part44.Anchored = false
- Part44.Archivable = true
- Part44.CanCollide = false
- Part44.Locked = false
- Part44.BrickColor = BrickColor.new("Fossil")
- Part44.Material = Enum.Material.SmoothPlastic
- Part44.Position = Vector3.new(165.81466674805, 41.246532440186, -103.19320678711)
- Part44.Size = Vector3.new(0.94461095333099, 0.086126334965229, 0.069400206208229)
- Part44.Rotation = Vector3.new(-135.13999938965, 7.0899996757507, 7.0699996948242)
- ---------------------------------------------
- local Part45 = Instance.new("Part", Model)
- Part45.Name = "Part"
- Part45.Reflectance = 0
- Part45.Transparency = 0
- Part45.Anchored = false
- Part45.Archivable = true
- Part45.CanCollide = false
- Part45.Locked = false
- Part45.BrickColor = BrickColor.new("Fossil")
- Part45.Material = Enum.Material.SmoothPlastic
- Part45.Position = Vector3.new(165.81904602051, 41.242931365967, -102.98615264893)
- Part45.Size = Vector3.new(0.96431583166122, 0.086126334965229, 0.069400206208229)
- Part45.Rotation = Vector3.new(-34.299999237061, 5.6700000762939, -8.25)
- ---------------------------------------------
- local Part46 = Instance.new("Part", Model)
- Part46.Name = "Part"
- Part46.Reflectance = 0
- Part46.Transparency = 0
- Part46.Anchored = false
- Part46.Archivable = true
- Part46.CanCollide = false
- Part46.Locked = false
- Part46.BrickColor = BrickColor.new("Really black")
- Part46.Material = Enum.Material.Neon
- Part46.Position = Vector3.new(166.54241943359, 41.04252243042, -102.95323944092)
- Part46.Size = Vector3.new(0.10406704992056, 0.069400206208229, 0.069400206208229)
- Part46.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part47 = Instance.new("Part", Model)
- Part47.Name = "Part"
- Part47.Reflectance = 1
- Part47.Transparency = 0
- Part47.Anchored = false
- Part47.Archivable = true
- Part47.CanCollide = false
- Part47.Locked = false
- Part47.BrickColor = BrickColor.new("Medium stone grey")
- Part47.Material = Enum.Material.Metal
- Part47.Position = Vector3.new(166.5276184082, 40.601383209229, -102.96062469482)
- Part47.Size = Vector3.new(0.08805675059557, 0.069400206208229, 0.069400206208229)
- Part47.Rotation = Vector3.new(-4.4000000953674, 0.76999998092651, -16.139999389648)
- ---------------------------------------------
- local Part48 = Instance.new("Part", Model)
- Part48.Name = "Part"
- Part48.Reflectance = 1
- Part48.Transparency = 0
- Part48.Anchored = false
- Part48.Archivable = true
- Part48.CanCollide = false
- Part48.Locked = false
- Part48.BrickColor = BrickColor.new("Medium stone grey")
- Part48.Material = Enum.Material.Metal
- Part48.Position = Vector3.new(166.25559997559, 40.567653656006, -103.28240966797)
- Part48.Size = Vector3.new(0.089288309216499, 0.15394525229931, 0.069400206208229)
- Part48.Rotation = Vector3.new(172, -1.4499999284744, -176.25999450684)
- ---------------------------------------------
- local Part49 = Instance.new("Part", Model)
- Part49.Name = "Part"
- Part49.Reflectance = 1
- Part49.Transparency = 0
- Part49.Anchored = false
- Part49.Archivable = true
- Part49.CanCollide = false
- Part49.Locked = false
- Part49.BrickColor = BrickColor.new("Medium stone grey")
- Part49.Material = Enum.Material.Metal
- Part49.Position = Vector3.new(166.53527832031, 40.535091400146, -103.28495788574)
- Part49.Size = Vector3.new(0.089288309216499, 0.12254045158625, 0.069400206208229)
- Part49.Rotation = Vector3.new(172, -1.4499999284744, -159.87998962402)
- ---------------------------------------------
- local Part50 = Instance.new("Part", Model)
- Part50.Name = "Part"
- Part50.Reflectance = 0
- Part50.Transparency = 0
- Part50.Anchored = false
- Part50.Archivable = true
- Part50.CanCollide = true
- Part50.Locked = false
- Part50.BrickColor = BrickColor.new("Bright red")
- Part50.Material = Enum.Material.SmoothPlastic
- Part50.Position = Vector3.new(166.40341186523, 40.712299346924, -103.0894317627)
- Part50.Size = Vector3.new(0.51109778881073, 0.46183496713638, 0.21613915264606)
- Part50.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part51 = Instance.new("Part", Model)
- Part51.Name = "Part"
- Part51.Reflectance = 0
- Part51.Transparency = 0
- Part51.Anchored = false
- Part51.Archivable = true
- Part51.CanCollide = true
- Part51.Locked = false
- Part51.BrickColor = BrickColor.new("Smoky grey")
- Part51.Material = Enum.Material.SmoothPlastic
- Part51.Position = Vector3.new(165.02290344238, 40.765281677246, -103.10458374023)
- Part51.Size = Vector3.new(0.88056641817093, 0.42673635482788, 0.34483715891838)
- Part51.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part52 = Instance.new("Part", Model)
- Part52.Name = "Part"
- Part52.Reflectance = 0
- Part52.Transparency = 0
- Part52.Anchored = false
- Part52.Archivable = true
- Part52.CanCollide = false
- Part52.Locked = false
- Part52.BrickColor = BrickColor.new("Bright red")
- Part52.Material = Enum.Material.SmoothPlastic
- Part52.Position = Vector3.new(166.4857635498, 41.179405212402, -103.08576965332)
- Part52.Size = Vector3.new(0.51109778881073, 0.20320698618889, 0.069400206208229)
- Part52.Rotation = Vector3.new(-89.98999786377, 10, 0)
- ---------------------------------------------
- local Part53 = Instance.new("Part", Model)
- Part53.Name = "Part"
- Part53.Reflectance = 0
- Part53.Transparency = 0
- Part53.Anchored = false
- Part53.Archivable = true
- Part53.CanCollide = false
- Part53.Locked = false
- Part53.BrickColor = BrickColor.new("Smoky grey")
- Part53.Material = Enum.Material.SmoothPlastic
- Part53.Position = Vector3.new(164.84162902832, 40.316333770752, -103.09573364258)
- Part53.Size = Vector3.new(0.069400206208229, 0.42673635482788, 0.069400206208229)
- Part53.Rotation = Vector3.new(0.0099999997764826, 0, 51.569999694824)
- ---------------------------------------------
- local Part54 = Instance.new("Part", Model)
- Part54.Name = "Part"
- Part54.Reflectance = 0
- Part54.Transparency = 0
- Part54.Anchored = false
- Part54.Archivable = true
- Part54.CanCollide = false
- Part54.Locked = false
- Part54.BrickColor = BrickColor.new("Bright red")
- Part54.Material = Enum.Material.SmoothPlastic
- Part54.Position = Vector3.new(166.44964599609, 40.974639892578, -103.21614074707)
- Part54.Size = Vector3.new(0.51109778881073, 0.12315548211336, 0.069400206208229)
- Part54.Rotation = Vector3.new(146.64999389648, -5.539999961853, 8.3400001525879)
- ---------------------------------------------
- local Part55 = Instance.new("Part", Model)
- Part55.Name = "Part"
- Part55.Reflectance = 0
- Part55.Transparency = 0
- Part55.Anchored = false
- Part55.Archivable = true
- Part55.CanCollide = false
- Part55.Locked = false
- Part55.BrickColor = BrickColor.new("Bright red")
- Part55.Material = Enum.Material.SmoothPlastic
- Part55.Position = Vector3.new(166.48010253906, 41.147300720215, -103.21336364746)
- Part55.Size = Vector3.new(0.51109778881073, 0.10345050692558, 0.069400206208229)
- Part55.Rotation = Vector3.new(-135.13999938965, 7.0899996757507, 7.0699996948242)
- ---------------------------------------------
- local Part56 = Instance.new("Part", Model)
- Part56.Name = "Part"
- Part56.Reflectance = 1
- Part56.Transparency = 0
- Part56.Anchored = false
- Part56.Archivable = true
- Part56.CanCollide = false
- Part56.Locked = false
- Part56.BrickColor = BrickColor.new("Medium stone grey")
- Part56.Material = Enum.Material.Metal
- Part56.Position = Vector3.new(166.54721069336, 40.66206741333, -102.98191070557)
- Part56.Size = Vector3.new(0.084977835416794, 0.082514800131321, 0.069400206208229)
- Part56.Rotation = Vector3.new(-4.4099998474121, 0.76999998092651, -16.139999389648)
- ---------------------------------------------
- local Part57 = Instance.new("Part", Model)
- Part57.Name = "Part"
- Part57.Reflectance = 0
- Part57.Transparency = 0
- Part57.Anchored = false
- Part57.Archivable = true
- Part57.CanCollide = true
- Part57.Locked = false
- Part57.BrickColor = BrickColor.new("Smoky grey")
- Part57.Material = Enum.Material.SmoothPlastic
- Part57.Position = Vector3.new(165.47323608398, 40.795207977295, -103.0825881958)
- Part57.Size = Vector3.new(0.24631232023239, 0.18165534734726, 0.161950096488)
- Part57.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part58 = Instance.new("Part", Model)
- Part58.Name = "Part"
- Part58.Reflectance = 0
- Part58.Transparency = 0
- Part58.Anchored = false
- Part58.Archivable = true
- Part58.CanCollide = false
- Part58.Locked = false
- Part58.BrickColor = BrickColor.new("Really black")
- Part58.Material = Enum.Material.SmoothPlastic
- Part58.Position = Vector3.new(165.19697570801, 41.096706390381, -102.93896484375)
- Part58.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part58.Rotation = Vector3.new(-7.6900000572205, -6.4099998474121, -40.430000305176)
- ---------------------------------------------
- local Part59 = Instance.new("Part", Model)
- Part59.Name = "Part"
- Part59.Reflectance = 0
- Part59.Transparency = 0
- Part59.Anchored = false
- Part59.Archivable = true
- Part59.CanCollide = false
- Part59.Locked = false
- Part59.BrickColor = BrickColor.new("Really black")
- Part59.Material = Enum.Material.SmoothPlastic
- Part59.Position = Vector3.new(165.00021362305, 41.38459777832, -102.97835540771)
- Part59.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part59.Rotation = Vector3.new(-7.6900000572205, -6.4099998474121, -90.430000305176)
- ---------------------------------------------
- local Part60 = Instance.new("Part", Model)
- Part60.Name = "Part"
- Part60.Reflectance = 0
- Part60.Transparency = 0
- Part60.Anchored = false
- Part60.Archivable = true
- Part60.CanCollide = false
- Part60.Locked = false
- Part60.BrickColor = BrickColor.new("Really black")
- Part60.Material = Enum.Material.SmoothPlastic
- Part60.Position = Vector3.new(165.0037689209, 41.49662399292, -103.01760864258)
- Part60.Size = Vector3.new(0.13978230953217, 0.069400206208229, 0.069400206208229)
- Part60.Rotation = Vector3.new(-37.829998016357, -5.3299999237061, -93.589996337891)
- ---------------------------------------------
- local Part61 = Instance.new("Part", Model)
- Part61.Name = "Part"
- Part61.Reflectance = 0
- Part61.Transparency = 0
- Part61.Anchored = false
- Part61.Archivable = true
- Part61.CanCollide = true
- Part61.Locked = false
- Part61.BrickColor = BrickColor.new("Black")
- Part61.Material = Enum.Material.SmoothPlastic
- Part61.Position = Vector3.new(164.97975158691, 41.249408721924, -103.45947265625)
- Part61.Size = Vector3.new(0.22352840006351, 0.26170691847801, 0.29249545931816)
- Part61.Rotation = Vector3.new(0.0099999997764826, 0, -40)
- ---------------------------------------------
- local Part62 = Instance.new("Part", Model)
- Part62.Name = "Part"
- Part62.Reflectance = 1
- Part62.Transparency = 0
- Part62.Anchored = false
- Part62.Archivable = true
- Part62.CanCollide = false
- Part62.Locked = false
- Part62.BrickColor = BrickColor.new("Medium stone grey")
- Part62.Material = Enum.Material.Metal
- Part62.Position = Vector3.new(166.24075317383, 40.635917663574, -102.93689727783)
- Part62.Size = Vector3.new(0.089288309216499, 0.10406699776649, 0.069400206208229)
- Part62.Rotation = Vector3.new(-4.4000000953674, 0.76999998092651, 0.23999999463558)
- ---------------------------------------------
- local Part63 = Instance.new("Part", Model)
- Part63.Name = "Part"
- Part63.Reflectance = 1
- Part63.Transparency = 0
- Part63.Anchored = false
- Part63.Archivable = true
- Part63.CanCollide = false
- Part63.Locked = false
- Part63.BrickColor = BrickColor.new("Medium stone grey")
- Part63.Material = Enum.Material.Metal
- Part63.Position = Vector3.new(166.56831359863, 40.625457763672, -103.21882629395)
- Part63.Size = Vector3.new(0.088672533631325, 0.069400206208229, 0.069400206208229)
- Part63.Rotation = Vector3.new(172, -1.4499999284744, -159.87998962402)
- ---------------------------------------------
- ---------------------------------------------
- local Part65 = Instance.new("Part", Model)
- Part65.Name = "Part"
- Part65.Reflectance = 0
- Part65.Transparency = 0
- Part65.Anchored = false
- Part65.Archivable = true
- Part65.CanCollide = true
- Part65.Locked = false
- Part65.BrickColor = BrickColor.new("Flint")
- Part65.Material = Enum.Material.Metal
- Part65.Position = Vector3.new(166.095703125, 40.433605194092, -103.0888671875)
- Part65.Size = Vector3.new(1.4045962095261, 0.12931403517723, 0.14347672462463)
- Part65.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part66 = Instance.new("Part", Model)
- Part66.Name = "Part"
- Part66.Reflectance = 1
- Part66.Transparency = 0
- Part66.Anchored = false
- Part66.Archivable = true
- Part66.CanCollide = false
- Part66.Locked = false
- Part66.BrickColor = BrickColor.new("Medium stone grey")
- Part66.Material = Enum.Material.Metal
- Part66.Position = Vector3.new(166.25999450684, 40.609439849854, -103.25480651855)
- Part66.Size = Vector3.new(0.089288324117661, 0.077588431537151, 0.069400206208229)
- Part66.Rotation = Vector3.new(172, -1.4499999284744, -176.25999450684)
- ---------------------------------------------
- local Part67 = Instance.new("Part", Model)
- Part67.Name = "Part"
- Part67.Reflectance = 0
- Part67.Transparency = 0
- Part67.Anchored = false
- Part67.Archivable = true
- Part67.CanCollide = false
- Part67.Locked = false
- Part67.BrickColor = BrickColor.new("Fossil")
- Part67.Material = Enum.Material.SmoothPlastic
- Part67.Position = Vector3.new(165.10922241211, 41.150928497314, -102.95920562744)
- Part67.Size = Vector3.new(0.069400206208229, 0.069400206208229, 0.069400206208229)
- Part67.Rotation = Vector3.new(0.0099999997764826, 0, -30)
- ---------------------------------------------
- local Part68 = Instance.new("Part", Model)
- Part68.Name = "Part"
- Part68.Reflectance = 0
- Part68.Transparency = 0
- Part68.Anchored = false
- Part68.Archivable = true
- Part68.CanCollide = true
- Part68.Locked = false
- Part68.BrickColor = BrickColor.new("Fossil")
- Part68.Material = Enum.Material.Metal
- Part68.Position = Vector3.new(164.49542236328, 41.137199401855, -103.09727478027)
- Part68.Size = Vector3.new(0.58868539333344, 0.20567068457603, 0.20136019587517)
- Part68.Rotation = Vector3.new(0.0099999997764826, 0, 31.569999694824)
- ---------------------------------------------
- local Part69 = Instance.new("Part", Model)
- Part69.Name = "Part"
- Part69.Reflectance = 0
- Part69.Transparency = 0
- Part69.Anchored = false
- Part69.Archivable = true
- Part69.CanCollide = false
- Part69.Locked = false
- Part69.BrickColor = BrickColor.new("Really black")
- Part69.Material = Enum.Material.Neon
- Part69.Position = Vector3.new(165.83486938477, 41.167934417725, -102.9532623291)
- Part69.Size = Vector3.new(0.10406704992056, 0.069400206208229, 0.069400206208229)
- Part69.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- local Part70 = Instance.new("Part", Model)
- Part70.Name = "Part"
- Part70.Reflectance = 0
- Part70.Transparency = 0
- Part70.Anchored = false
- Part70.Archivable = true
- Part70.CanCollide = true
- Part70.Locked = false
- Part70.BrickColor = BrickColor.new("Fossil")
- Part70.Material = Enum.Material.Metal
- Part70.Position = Vector3.new(163.50509643555, 40.803253173828, -103.11483764648)
- Part70.Size = Vector3.new(0.13547076284885, 0.4378205537796, 0.22599132359028)
- Part70.Rotation = Vector3.new(0.0099999997764826, 0, -10)
- ---------------------------------------------
- Handleweld.Part0 = LeftLeg
- Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1)
- local PE1 = Create("ParticleEmitter"){
- Parent = Barrel,
- Color = ColorSequence.new(BrickColor.new("New Yeller").Color),
- Transparency = NumberSequence.new(0),
- Size = NumberSequence.new(.5),
- Texture = "rbxassetid://257430870",
- Lifetime = NumberRange.new(.1),
- Rate = 100,
- VelocitySpread = 180,
- Rotation = NumberRange.new(0),
- Speed = NumberRange.new(0),
- LightEmission = .6,
- LockedToPart = true,
- Enabled = false
- }
- local PE2 = PE1:Clone()
- PE2.Size = NumberSequence.new(.7)
- PE2.LightEmission = 1
- PE2.Texture = "rbxassetid://87729590"
- local Lite = Create("PointLight"){
- Parent = Barrel,
- Color = BrickColor.new("New Yeller").Color,
- Shadows = true,
- Range = 10,
- Brightness = 0.5,
- Enabled = false
- }
- function Equip()
- attack = true
- equipped = true
- RSH.Parent = nil
- LSH.Parent = nil
- RHP.Parent = nil
- LHP.Parent = nil
- RW = Create("Weld"){
- Name = "Right Shoulder",
- Part0 = Torso ,
- C0 = cf(1.5, 0.5, 0),
- C1 = cf(0, 0.5, 0),
- Part1 = RightArm ,
- Parent = Torso ,
- }
- LW = Create("Weld"){
- Name = "Left Shoulder",
- Part0 = Torso ,
- C0 = cf(-1.5, 0.5, 0),
- C1 = cf(0, 0.5, 0) ,
- Part1 = LeftArm ,
- Parent = Torso ,
- }
- RH = Create("Weld"){
- Part0 = Torso,
- C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
- C1 = cf(-0.5, 0.5, 0) ,
- Part1 = Character["Right Leg"],
- Parent = Torso,
- }
- LH = Create("Weld"){
- Part0 = Torso,
- C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
- C1 = cf(0.5, 0.5, 0) ,
- Part1 = Character["Left Leg"],
- Parent = Torso,
- }
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(0, 0.2, -.5) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(2)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-2)), .3)
- end
- Handleweld.Part0 = RightArm
- Handleweld.C0 = euler(0, 0, 0) * cf(0, 0, 0)
- attack = false
- end
- function Unequip()
- equipped = false
- attack = true
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.2, -.7) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) *euler(6*i,0,0), .5)
- end
- FakeHandleweld.C0 = angles(0, 0, 0) * cf(0, 0, 0)
- Handleweld.Part0 = LeftLeg
- Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1)
- RW.Parent = nil
- LW.Parent = nil
- RH.Parent = nil
- LH.Parent = nil
- RSH.Parent = Torso
- LSH.Parent = Torso
- RHP.Parent = Torso
- LHP.Parent = Torso
- Torso.Neck.C0 = necko
- RootJoint.C0 = RootCF
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
- LW.C0 = cf(-1.5, 0.5, 0) * euler(0, 0, 0)
- LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
- attack = false
- end
- function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, Character, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- Effects[#Effects + 1] = {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3
- } --part, type, delay
- end
- function MagnitudeDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0, "rbxassetid://199149186", 1)
- end
- end
- end
- end
- end
- RailgunTarget = RootPart
- function Laser(asd)
- local MouseLook=cf((asd.Position+mouse.Hit.p)/2,mouse.Hit.p)
- local hit,pos = rayCast(asd.Position,MouseLook.lookVector,999,RailgunTarget.Parent)
- local mag=(asd.Position-pos).magnitude
- CylinderEffect(BrickColor.new("New Yeller"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1.2,0,1.2,0.1)
- CylinderEffect(BrickColor.new("Institutional white"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,.5,1,0,.5,0.1)
- if hit~=nil then
- local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("New Yeller"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(pos)
- game:GetService("Debris"):AddItem(ref,1)
- Damagefunc(ref,hit,20,90,0,"Normal",RootPart,0)
- end
- end
- RocketTarget = RootPart
- function Shoot(asd, spread1, spread2)
- local MainPos = asd.Position
- local MainPos2 = mouse.Hit.p
- local spread = vt((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
- local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2 + spread)
- num = 30
- coroutine.resume(coroutine.create(function(Spreaded)
- repeat
- wait()
- local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RocketTarget.Parent)
- local TheHit = mouse.Hit.p
- local mag = (MainPos - pos).magnitude
- CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1)
- MainPos = MainPos + (MouseLook.lookVector * 10)
- num = num - 1
- if hit ~= nil then
- num = 0
- local ref = part(3, workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = cf(pos)
- MagnitudeDamage(ref, hit, 5, 10, 20, 1, "Normal")
- game:GetService("Debris"):AddItem(ref, 5)
- end
- until num <= 0
- end))
- end
- function ChargeEffect(part, x1, y1, z1, x2, y2, z2, x3, y3, z3, color)
- local S = Create("Part"){
- Material = "SmoothPlastic",
- Name = "Effect",
- formFactor = 0,
- Size = vt(x1, y1, z1),
- BrickColor = color,
- Reflectance = 0,
- TopSurface = 0,
- BottomSurface = 0,
- Transparency = 0,
- Anchored = false,
- CanCollide = false,
- Material = "Neon",
- CFrame = part.CFrame * cf(x2, y2, z2) * euler(x3, y3, z3),
- Parent = m,
- }
- local msh1 = Create("SpecialMesh"){
- Scale = vt(0.5, 0.5, 0.5) ,
- MeshType = "Sphere",
- Parent = S,
- }
- coroutine.resume(coroutine.create(function(Part, CF)
- local f = Instance.new("BodyPosition")
- f.P = 800
- f.D = 100
- f.maxForce = vt(math.huge, math.huge, math.huge)
- f.position = part.Position
- f.Parent = Part
- for i = 0, 1, 0.1 do
- wait()
- Part.Transparency = Part.Transparency + 0.1
- end
- Part.Parent = nil
- end), S, S.CFrame)
- end
- local lasrs = {}
- local lasrspd = 3
- local maxTravelDistance = 500
- local maxRebounds = 20
- function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
- collidedlist = collidedlist or {Character}
- startpos = startpos or pos
- distleft = distleft or dir.unit * dir.magnitude
- endpos = endpos or pos + distleft
- local ray = Ray.new(pos, distleft)
- local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
- if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
- if hitz.CanCollide == false then
- table.insert(collidedlist, hitz)
- local newpos = enz
- local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
- if newdistleft then
- return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
- end
- end
- end
- return hitz, enz, ray
- end
- function FindSurface(part, position)
- local obj = part.CFrame:pointToObjectSpace(position)
- local siz = part.Size/2
- so("rbxassetid://199144144", workspace, 1, .9)
- for i,v in pairs(Enum.NormalId:GetEnumItems()) do
- local vec = Vector3.FromNormalId(v)
- local wvec = part.CFrame:vectorToWorldSpace(vec)
- local vz = (obj)/(siz*vec)
- if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then
- return wvec,vec
- end
- end
- if part.className == "WedgePart" then
- local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
- local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
- local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
- return wvec,vec
- elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then
- return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
- end
- end
- function Reflect(direction, normal)
- return direction - 2 * normal:Dot(direction) * normal
- end
- function ReflectShot(mouse)
- local dir = (mouse.Hit.p - Torso.Position).unit
- local tabl
- local tablnum = 0
- for i, v in pairs(lasrs) do
- if not v[1] then
- tabl = v
- tablnum = i
- break
- end
- end
- if not tabl then
- tablnum = #lasrs + 1
- tabl = {false,nil,nil,0,0,1,{},{},{},{}}
- for i = 1, 2 do
- for j = 1, 6 do
- local p = Instance.new("Part")
- p.FormFactor = "Custom"
- p.CanCollide = false
- p.Anchored = true
- p.Locked = true
- p.BrickColor = BrickColor.new("New Yeller")
- p.TopSurface = 10
- p.BottomSurface = 10
- p.RightSurface = 10
- p.LeftSurface = 10
- p.FrontSurface = 10
- p.BackSurface = 10
- p.Size = Vector3.new(1,1,1)
- p.Material = "Neon"
- p.Transparency = i == 1 and 0 or 0.6
- p.Touched:connect(function(hit)
- hit.Parent.Humanoid:TakeDamage(30)
- end)
- local mesh = Instance.new("CylinderMesh",p)
- table.insert(tabl[6+i],p)
- table.insert(tabl[8+i],mesh)
- end
- end
- table.insert(lasrs,tabl)
- end
- -- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer
- tabl[4],tabl[5] = 0,0
- tabl[3] = Barrel.Position
- tabl[2] = dir
- tabl[1] = true
- end
- local MultiShoot = false
- local gun = false
- local shoot = false
- local Obliterate = false
- local LaserMode = false
- function Aim()
- attack = true
- gun = true
- for i = 0, 1, 0.2 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
- end
- RootJoint.C0 = RootCF * cf(0, 0, 0) * euler(0, 0, 1.57)
- RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57)
- local gairo = Create("BodyGyro"){
- Parent = RootPart,
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003 ,
- cframe = RootPart.CFrame,
- }
- local offset = nil
- while gun == true do
- swait()
- local gunpos = vt(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
- offset = (Torso.Position.y - mouse.Hit.p.y) / 60
- local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
- offset = offset / mag
- gairo.cframe = cf(Head.Position, gunpos)
- Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), .3)
- RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), .5)
- end
- if shoot == true then
- gairo.Parent = nil
- PE1.Enabled,PE2.Enabled = true,true
- Lite.Enabled = true
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
- end
- Lite.Enabled = false
- PE1.Enabled,PE2.Enabled = false,false
- elseif MultiShoot == true then
- gairo.Parent = nil
- for i = 1,5 do
- so("rbxassetid://199144089", Barrel, 1, 1.1)
- Shoot(Barrel, .2, 1)
- PE1.Enabled,PE2.Enabled = true,true
- Lite.Enabled = true
- for i = 0,1,1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(2), math.rad(-90)), .5)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
- end
- PE1.Enabled,PE2.Enabled = false,false
- Lite.Enabled = false
- for i = 0,1,1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- end
- end
- elseif LaserMode == true then
- gairo.Parent = nil
- so("rbxassetid://161006157", Barrel, 1, .9)
- so("rbxassetid://161006131", Barrel, 1, 1.2)
- for i = 1, 30 do
- swait()
- ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
- end
- so("rbxassetid://199144089", Barrel, 1, .8)
- so("rbxassetid://199144089", Barrel, 1, .5)
- Laser(Barrel)
- PE1.Enabled,PE2.Enabled = true,true
- Lite.Enabled = true
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
- end
- PE1.Enabled,PE2.Enabled = false,false
- Lite.Enabled = false
- elseif Obliterate == true then
- gairo.Parent = nil
- so("rbxassetid://161006157", Barrel, 1, .7)
- so("rbxassetid://161006131", Barrel, 1, 1)
- for i = 1, 60 do
- swait()
- ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
- end
- for i = 1, 5 do
- so("rbxassetid://199144089", Barrel, 1, .8)
- for i = 1, 5 do
- Shoot(Barrel, 1, 3)
- end
- PE1.Enabled,PE2.Enabled = true,true
- Lite.Enabled = true
- for i = 0, 1, 0.2 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .5)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
- end
- PE1.Enabled,PE2.Enabled = false,false
- Lite.Enabled = false
- for i = 0, 1, 0.2 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- end
- end
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(-5), math.rad(-55)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(0), math.rad(130), math.rad(80)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
- end
- so("rbxassetid://161006157", Barrel, 1, .9)
- so("rbxassetid://161006131", Barrel, 1, 1.2)
- for i = 1, 30 do
- swait()
- ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
- end
- for i = 0, 1, 0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(1), math.rad(-85)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
- end
- so("rbxassetid://199144089", Barrel, 1, .8)
- so("rbxassetid://199144089", Barrel, 1, .9)
- so("rbxassetid://199144089", Barrel, 1, .6)
- for i = 1, 20 do
- Shoot(Barrel, 1.5, 5)
- end
- PE1.Enabled,PE2.Enabled = true,true
- Lite.Enabled = true
- for i = 0, 1, 0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(10), math.rad(-90)), .5)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.5)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
- end
- PE1.Enabled,PE2.Enabled = false,false
- Lite.Enabled = false
- end
- gairo.Parent = nil
- shoot = false
- attack = false
- end
- mouse.Button1Down:connect(function()
- if gun == true then
- shoot = true
- so("rbxassetid://199144089", Barrel, 1, 1)
- Shoot(Barrel, 0, 0)
- gun = false
- end
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if attack == false and equipped == false and k == 'e' then
- Equip()
- elseif attack == false and equipped == true and k == 'e' then
- Unequip()
- elseif attack == false and equipped == true and k == 'f' then
- Aim()
- elseif equipped == true and k == 'f' then
- shoot = false
- elseif equipped == true and gun == true and k == 'q' then
- shoot = true
- so("rbxassetid://199144089", Barrel, 1, .8)
- for i = 1, 5 do
- Shoot(Barrel, 1, 3)
- gun = false
- end
- elseif equipped == true and gun == true and k == 'e' then
- MultiShoot = true
- gun = false
- elseif equipped == true and gun == true and k == 'r' then
- MultiShoot = false
- LaserMode = true
- gun = false
- elseif equipped == true and attack == true and gun == true and k == 't' then
- MultiShoot = false
- Obliterate = true
- LaserMode = false
- gun = false
- elseif equipped == true and attack == true and gun == true and k == 'g' then
- shoot = true
- ReflectShot(mouse)
- so("rbxassetid://199144089", Barrel, 1, .8)
- so("rbxassetid://199144089", Barrel, 1, .5)
- gun = false
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- for _, lasr in pairs(lasrs) do
- for i, v in pairs(lasr[9]) do
- if lasr[7][i].Parent then
- v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1)
- lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1)
- if v.Scale.x < 0.1 then
- lasr[7][i].Parent = nil
- lasr[8][i].Parent = nil
- end
- end
- end
- if lasr[1] then
- local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd)
- lasr[5] = lasr[5] + (lasr[3] - enz).magnitude
- lasr[7][lasr[6]].Parent = m
- lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0)
- lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7)
- lasr[8][lasr[6]].Parent = m
- lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame
- lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3)
- lasr[3] = enz
- lasr[6] = lasr[6]%#lasr[7] + 1
- if hitz then
- lasr[4] = lasr[4] + 1
- if lasr[4] == maxRebounds then
- lasr[1] = false
- else
- local norm = FindSurface(hitz,enz)
- lasr[2] = Reflect(lasr[2],norm)
- end
- end
- if lasr[5] > maxTravelDistance then
- lasr[1] = false
- end
- end
- end
- end)
- local sine = 0
- local change = 1
- local val = 0
- local idle = 0
- local donum = 0
- while true do
- swait()
- sine = sine + change
- mouse.Icon = "http://www.roblox.com/asset/?id=296383647"
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if equipped == true then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if idle >= 500 then
- if attack == false then
- end
- end
- if donum >= .5 then
- handidle = true
- elseif donum <= 0 then
- handidle = false
- end
- if handidle == false then
- donum = donum + 0.003
- else
- donum = donum - 0.003
- end
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, cf(.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0 = clerp(RH.C0, cf(0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(5)), .3)
- LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(-5)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
- end
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5) + donum / 3, math.rad(0), math.rad(30)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(.5) - donum / 3, math.rad(.5) + donum / 3, math.rad(-30)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(5) + donum / 2), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5) + donum / 2, math.rad(0), math.rad(-10)), 0.3)
- RH.C0 = clerp(RH.C0, cf(.2, -1.5, -.5) * angles(math.rad(5) + donum / 2, math.rad(-30), math.rad(5) + donum / 5), .3)
- LH.C0 = clerp(LH.C0, cf(0, -1.5 - donum / 3.5, 0) * angles(math.rad(5) + donum / 3, math.rad(-10), math.rad(0)), .3)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
- end
- elseif torvel > 2 and hitfloor ~= nil then
- Anim = "Walk"
- if attack == false then
- change = 3
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10) - donum / 2, math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50) + donum / 2, math.rad(0), math.rad(5) + donum / 2), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(-5) - donum / 2), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(0, -1.5-0.3*math.cos(sine/10)/2, -.05 + math.sin(sine/10)/2) * CFrame.Angles(math.rad(3) + -math.sin(sine/10)/2.3, math.rad(0), math.rad(-3)), .4)
- RH.C0 = clerp(RH.C0, CFrame.new(0, -1.5+0.3*math.cos(sine/10)/2, -.05 + -math.sin(sine/10)/2) * CFrame.Angles(math.rad(3) + math.sin(sine/10)/2.3, math.rad(0), math.rad(3)), .4)
- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
- RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
- end
- end
- end
- if #Effects > 0 then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement