Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
- if v:IsA("BasePart") then
- game:GetService("RunService").Heartbeat:connect(function()
- v.Velocity = Vector3.new(30,0,0)
- end)
- end
- end
- Bypass = "death"
- loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
- local IsDead = false
- local StateMover = true
- local playerss = workspace.non
- local bbv,bullet
- if Bypass == "death" then
- bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
- bullet.Transparency = 0
- bullet.Massless = true
- if bullet:FindFirstChildOfClass("Attachment") then
- for _,v in pairs(bullet:GetChildren()) do
- if v:IsA("Attachment") then
- v:Destroy()
- end
- end
- end
- bbv = Instance.new("BodyPosition",bullet)
- bbv.Position = playerss.Torso.CFrame.p
- end
- if Bypass == "death" then
- coroutine.wrap(function()
- while true do
- if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
- if StateMover then
- bbv.Position = playerss.Torso.CFrame.p
- bullet.Position = playerss.Torso.CFrame.p
- end
- game:GetService("RunService").RenderStepped:wait()
- end
- end)()
- end
- local CDDF = {}
- local DamageFling = function(DmgPer)
- if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
- CDDF[DmgPer] = true; StateMover = false
- bbav = Instance.new("BodyAngularVelocity",bullet)
- bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bbav.P = 1000000000000000000000000000
- bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
- game:GetService("Debris"):AddItem(bbav,0.1)
- bullet.Rotation = playerss.Torso.Rotation
- for _=1,15 do
- bbv.Position = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
- bullet.Position = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
- wait(0.03)
- end
- bbv.Position = playerss.Torso.CFrame.p
- bullet.Position = playerss.Torso.CFrame.p
- CDDF[DmgPer] = false; StateMover = true
- end
- local script = game:GetObjects("rbxassetid://8344850360")[1]
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = workspace.non
- char = Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local TIME = 0
- local sick = Instance.new("Sound",Torso)
- local ISFLYING = false
- sick.Parent = Torso
- sick:Play()
- sick.Volume = 8.2
- sick.Pitch = 1
- sick.SoundId = "rbxassetid://6049110238"
- sick.Name = "Dead"
- sick.Looped = true
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- local sine = 5
- local stopeverything = false
- --//=================================\\
- --|| USEFUL VALUES
- --\\=================================//
- --
- for i,v in pairs(char:GetChildren()) do -- gets all ur characters children
- if v:IsA("Accessory") and v.Name == "MeshPartAccessory" then -- dex name for the hat
- v.Name = "MeshPartAccessory" -- name it whatever you want
- end
- end
- char["MeshPartAccessory"].Handle.AccessoryWeld:Destroy() -- destroys the accessoryweld
- att0 = Instance.new("Attachment",char["MeshPartAccessory"].Handle) -- creates a attachment into the hat
- att0.Orientation = Vector3.new(50, 90, 0) -- rotation
- att0.Position = Vector3.new(2.7, 1.9, 0) -- position -- position
- att1 = Instance.new("Attachment",char["Right Arm"]) -- what body part that the hat should be attached to (to make it work with r15 go down
- -- make it a r15 body part name or just do humanoidroopart
- ap = Instance.new("AlignPosition",char["MeshPartAccessory"].Handle) -- align position
- ap.Attachment0 = att0
- ap.Attachment1 = att1
- ap.RigidityEnabled = true -- if its false it will make the hat be wobbly
- ao = Instance.new("AlignOrientation",char["MeshPartAccessory"].Handle) -- align rotation
- ao.Attachment0 = att0
- ao.Attachment1 = att1
- ao.RigidityEnabled = true -- if its false it will make the hat be wobbly
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude
- local antivoid = nil
- local alreadyfixing = false
- local NeckSnap = false
- Animation_Speed = 2--You can change the animation speed. But i reccomend 3
- local FORCERESET = false
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local DAMAGEMULTIPLIER = 1
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = true
- local COMBO = 3
- local Rooted = false
- local SINE = 5
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local VALUE1 = false
- local VALUE2 = false
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- local WEAPONGUI = IT("ScreenGui", PlayerGui)
- local Effects = IT("Folder", Character)
- Effects.Name = "Effects"
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character:FindFirstChild("Animate")
- local UNANCHOR = true
- local TOBANISH = {}
- script.Parent = PlayerGui
- WalkSpeed= 16
- local mde = "LC"
- local Sine = 5
- local antivoid = nil
- local Flying = false
- local Falling = false
- local W = false
- local A = false
- local S = false
- local D = false
- local Services = {"RunService","GuiService","Stats","SoundService","LogService","ContentProvider","KeyframeSequenceProvider","Chat","MarketplaceService","Players","PointsService","AdService","NotificationService","ReplicatedFirst","HttpRbxApiService","TweenService","TextService","StarterPlayer","StarterPack","StarterGui","LocalizationService","PolicyService","TeleportService","JointsService","CollectionService","PhysicsService","BadgeService","Geometry","FriendService","InsertService","GamePassService","Debris","TimerService","CookiesService","UserInputService","KeyboardService","MouseService","VRService","ContextActionService","ScriptService","AssetService","TouchInputService","BrowserService","AnalyticsService","ScriptContext","Selection","HttpService","MeshContentProvider","Lighting","SolidModelContentProvider","GamepadService","ControllerService","RuntimeScriptService","HapticService","NetworkClient","ChangeHistoryService","Visit","GuidRegistryService","PermissionsService","Teams","ReplicatedStorage","TestService","SocialService","MemStorageService","GroupService","PathfindingService","VirtualUser"}
- local AntiFat = false
- local ROOTC02 = CFrame.new(0,0,2 * math.cos(sine/15)) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
- local change = 1
- local rc0 = CFrame.new() * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- local nc0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- local rscp = CFrame.new(-.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
- local lscp = CFrame.new(.5,0,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
- local targetted = nil
- for index, CHILD in pairs(Character:GetChildren()) do
- if CHILD:IsA("Shirt") or CHILD:IsA("Pants") then
- CHILD:Remove()
- end
- end
- script.Shirt.Parent = Character
- script.Pants.Parent = Character
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- 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
- 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
- function Serv(Name)
- return game:GetService(Name)
- end
- function Debris(Instance,Delay)
- Serv("Debris"):AddItem(Instance,Delay)
- end
- 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 = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = 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
- function Clerp(a, b, t)
- 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 CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
- local frame = IT("Frame")
- frame.BackgroundTransparency = TRANSPARENCY
- frame.BorderSizePixel = BORDERSIZEPIXEL
- frame.Position = POSITION
- frame.Size = SIZE
- frame.BackgroundColor3 = COLOR
- frame.BorderColor3 = BORDERCOLOR
- frame.Name = NAME
- frame.Parent = PARENT
- return frame
- end
- function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = TEXTCOLOR
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = false
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- function NoOutlines(PART)
- PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CF(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 WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- SOUND.Stopped:Connect(function()
- EFFECT:remove()
- end)
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- function MakeForm(PART,TYPE)
- if TYPE == "Cyl" then
- local MSH = IT("CylinderMesh",PART)
- elseif TYPE == "Ball" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Sphere"
- elseif TYPE == "Wedge" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Wedge"
- end
- end
- function SpawnTrail(FROM,TO,BIG)
- local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
- MakeForm(TRAIL,"Cyl")
- local DIST = (FROM - TO).Magnitude
- if BIG == true then
- TRAIL.Size = VT(0.5,DIST,0.5)
- else
- TRAIL.Size = VT(0.25,DIST,0.25)
- end
- TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
- coroutine.resume(coroutine.create(function()
- for i = 1, 5 do
- Swait()
- TRAIL.Transparency = TRAIL.Transparency + 0.1
- end
- TRAIL:remove()
- end))
- end
- Debris = game:GetService("Debris")
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CF(StartPos,EndPos).lookVector
- return Raycast(StartPos, DIRECTION, Distance, Ignore)
- end
- function turnto(position)
- RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
- end
- local function Notify(StarterText,Text)
- for _,v in pairs(game:GetService("Players"):GetPlayers()) do
- local ClientMessage = script.Message:Clone()
- ClientMessage.Name = StarterText
- local ClientText = Instance.new("StringValue")
- ClientText.Value = Text
- ClientText.Parent = ClientMessage
- ClientMessage.Disabled = false
- ClientMessage.Parent = v:FindFirstChildOfClass("PlayerGui") or v:FindFirstChildOfClass("Backpack") or Instance.new("Backpack",v)
- game:GetService("Debris"):AddItem(ClientMessage,5)
- end
- end
- local Chatted = Player.Chatted:Connect(function(Message)
- local Message,Message_ = Message,Message
- if string.sub(Message,1,3) == "/e " then
- Message = string.sub(Message,4)
- end
- if string.sub(string.lower(Message),1,3) == "lc/" then
- Message = string.sub(Message,4)
- end
- if Message == Message_ then
- Notify("[Lightning Cannon V3]: ",Message)
- end
- end)
- function onChatted(msg)
- Chatted(msg)
- end
- Player.Chatted:connect(onChatted)
- local GUN = script.DarkMegaGunnModel
- local GUN = GUN:Clone()
- GUN.Parent = Character
- local GunJoint = CreateWeldOrSnapOrMotor("Weld", GUN.Handle, RightArm, GUN.Handle, CF(.05,-1,-.15)*ANGLES(RAD(-90),RAD(0),RAD(0)), CF(0, 0, 0))
- local Hole = GUN.Hole
- local Holetwo = GUN.Hole2
- function Effect(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or Vector3.new(1,1,1))
- local ENDSIZE = (Table.Size2 or Vector3.new())
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or GUN.NeonParts.Color)
- local hOK,sOK,vOK = Color3.toHSV(COLOR)
- local RAINBOWPART = false
- if sOK > .1 then
- RAINBOWPART = true
- end
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,Color3.new(0,1,1),"Effect",Vector3.new(1,1,1),true)
- if RAINBOWPART then
- coroutine.resume(coroutine.create(function()
- while not stopeverything and EFFECT:IsDescendantOf(game) do
- EFFECT.Color = Color3.new(0,1,1)
- Swait()
- end
- end))
- end
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new())
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = Instance.new("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,.1),Vector3.new())
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","168892432","",SIZE,Vector3.new())
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new())
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new())
- end
- if MSH ~= nil then
- local BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- if USEBOOMERANGMATH == true then
- for LOOP = 1,TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.Orientation = ORI
- end
- end
- else
- for LOOP = 1,TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:Destroy()
- else
- repeat if stopeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:Destroy()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:Destroy()
- else
- repeat if stopeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:Destroy()
- end
- end
- end))
- end
- function Lightning(Part0,Part1,Timess,Offset,Color,Timer,sSize,eSize,Trans,Boomer,sBoomer,Trans2)
- local magz = (Part0 - Part1).Magnitude
- local Times = math.floor(math.clamp(magz/10,1,20))
- local curpos = Part0
- local trz = {
- -Offset,
- Offset
- }
- for i = 1,Times do
- local li = Instance.new("Part",Effects)
- li.TopSurface = 0
- li.Material = "Neon"
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- li.Transparency = 0
- li.Color = Color
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(.1,.1,magz/Times)
- local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,Part1) * CFrame.new(0,0,magz/Times).p + Offzet
- if Times == i then
- local magz2 = (curpos - Part1).Magnitude
- li.Size = Vector3.new(.1,.1,magz2)
- li.CFrame = CFrame.new(curpos,Part1) * CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos) * CFrame.new(0,0,magz/Times/2)
- end
- curpos = li.CFrame * CFrame.new(0,0,magz/Times/2).p
- li:Destroy()
- Effect({Time = Timer,EffectType = "Box",Size = Vector3.new(sSize,sSize,li.Size.Z),Size2 = Vector3.new(eSize,eSize,li.Size.Z),Transparency = Trans,Transparency2 = Trans2 or 1,CFrame = li.CFrame,MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = li.Color,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = Boomer,Boomerang = 0,SizeBoomerang = sBoomer})
- Swait()
- end
- end
- local FLYING = false
- iyflyspeed = 1
- function sFLY()
- if not ISFLYING then
- FLYING = false
- Falling = true
- else
- local CONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
- local lCONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
- local SPEED = 0
- local function FLY()
- Falling = false
- FLYING = true
- BG = Instance.new('BodyGyro',RootPart)
- BG.Name = "NOC"
- BV = Instance.new('BodyVelocity',RootPart)
- BV.Name = "NOC"
- BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- BG.P = 1e4
- BG.CFrame = RootPart.CFrame
- BV.Velocity = Vector3.new()
- BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- coroutine.resume(coroutine.create(function()
- repeat if stopeverything then wait(math.huge) end
- game:GetService("RunService").RenderStepped:Wait()
- if not alreadyfixing then
- if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then
- SPEED = 50
- elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then
- SPEED = 0
- end
- if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then
- BV.Velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R,(CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * .2,0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
- lCONTROL = {F = CONTROL.F,B = CONTROL.B,L = CONTROL.L,R = CONTROL.R}
- elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then
- BV.Velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R,(lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * .2,0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
- else
- BV.Velocity = Vector3.new()
- end
- BG.CFrame = workspace.CurrentCamera.CoordinateFrame
- end
- until not FLYING
- CONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
- lCONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
- SPEED = 0
- if not alreadyfixing then
- for i,v in pairs(Character:GetDescendants()) do
- if v.Name == "NOC" then
- v:Destroy()
- end
- end
- RootPart.CFrame = CFrame.new(RootPart.Position)
- end
- end))
- end
- local IYMouse = Mouse
- IYMouse.KeyDown:connect(function(KEY)
- if stopeverything then wait(math.huge) end
- if KEY:lower() == 'w' then
- CONTROL.F = iyflyspeed
- elseif KEY:lower() == 's' then
- CONTROL.B = - iyflyspeed
- elseif KEY:lower() == 'a' then
- CONTROL.L = - iyflyspeed
- elseif KEY:lower() == 'd' then
- CONTROL.R = iyflyspeed
- elseif KEY:lower() == 'e' then
- CONTROL.Q = iyflyspeed*2
- elseif KEY:lower() == 'q' then
- CONTROL.E = -iyflyspeed*2
- end
- end)
- IYMouse.KeyUp:connect(function(KEY)
- if stopeverything then wait(math.huge) end
- if KEY:lower() == 'w' then
- CONTROL.F = 0
- elseif KEY:lower() == 's' then
- CONTROL.B = 0
- elseif KEY:lower() == 'a' then
- CONTROL.L = 0
- elseif KEY:lower() == 'd' then
- CONTROL.R = 0
- elseif KEY:lower() == 'e' then
- CONTROL.Q = 0
- elseif KEY:lower() == 'q' then
- CONTROL.E = 0
- end
- end)
- FLY()
- end
- end
- function AttackGyro()
- local GYRO = Instance.new("BodyGyro",RootPart)
- GYRO.D = 25
- GYRO.P = 20000
- GYRO.MaxTorque = Vector3.new(0,4000000,0)
- GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.p)
- coroutine.resume(coroutine.create(function()
- repeat if stopeverything then wait(math.huge) end
- swait()
- GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.p)
- until not ATTACK
- GYRO:Destroy()
- end))
- end
- --//=================================\\
- --|| WEAPON CREATION
- --\\=================================//
- function Part(parent, color, material, size, cframe, anchored, cancollide)
- local part = IT("Part")
- part.Parent = parent or Character
- part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3(0, 0, 0)
- part.Material = material or Enum.Material.SmoothPlastic
- part.TopSurface, part.BottomSurface = 10, 10
- part.Size = size or VT(1,1,1)
- part.CFrame = cframe or CF(0,0,0)
- part.CanCollide = cancollide or false
- part.Anchored = anchored or false
- return part
- end
- function MoveCharacter(X,Z)
- Torso.PotentialCFrame = Torso.PotentialCFrame*CFrame.new(X,0,Z)
- W = true
- A = true
- S = true
- D = true
- end
- function Weld(part0, part1, c0, c1)
- local weld = IT("Weld")
- weld.Parent = part0
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0 or CF()
- weld.C1 = c1 or CF()
- return weld
- end
- function Mesh(parent, meshtype, meshid, textid, scale, offset)
- local part = IT("SpecialMesh")
- part.MeshId = meshid or ""
- part.TextureId = textid or ""
- part.Scale = scale or VT(1, 1, 1)
- part.Offset = offset or VT(0, 0, 0)
- part.MeshType = meshtype or Enum.MeshType.Sphere
- part.Parent = parent
- return part
- end
- local Head1 = script:FindFirstChild("Head")
- local Head2 = Head1:Clone()
- Head2.Parent = Character
- local HeadHandle = CreateWeldOrSnapOrMotor("Weld", Head2.Handle, Head, Head2.Handle, CF(0, 0, 0)*ANGLES(RAD(0),RAD(-90),RAD(0)), CF(0, 0, 0))
- local Wingskinda = script.Base:Clone()
- Wingskinda.Parent = Character
- CreateWeldOrSnapOrMotor("Weld", Wingskinda.Handle, Torso, Wingskinda.Handle, CF(0, 0, 0)*ANGLES(RAD(0),RAD(0),RAD(0)), CF(0, 0, 0))
- local BC = Character["Body Colors"]
- BC.HeadColor = BrickColor.new("Really black")
- BC.LeftArmColor = BrickColor.new("Really black")
- BC.LeftLegColor = BrickColor.new("Really black")
- BC.RightArmColor = BrickColor.new("Really black")
- BC.RightLegColor = BrickColor.new("Really black")
- BC.TorsoColor = BrickColor.new("Really black")
- local plr = game:service'Players'.LocalPlayer
- local char = plr.Character
- local hum = char.Humanoid
- local hed = char.Head
- Character = char
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- local SWORD = script:FindFirstChild("Sword")
- local Blade = SWORD:Clone()
- Blade.Parent = nil
- local SwordJoint = CreateWeldOrSnapOrMotor("Weld", Blade.Handle, RightArm, Blade.Handle, CF(0, -1, 0)*ANGLES(RAD(90),RAD(0),RAD(0)), CF(0, 0, 0))
- local BLADEAAAA = Blade.SlashPart
- coroutine.resume(coroutine.create(function()
- while not stopeverything do
- for i = 0,1,(1/60) do
- swait()
- if not alreadyfixing then
- if mde == "LC" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "Insane" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "Error" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "FAST" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "Glitch" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "Chill" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- elseif mde == "Karma" or mde == "Mde4" or mde == "Mde5" then
- GUN.NeonParts.Color = Color3.new(1,1,1)
- end
- end
- end
- end
- end))
- --//=================================\\
- --|| DAMAGING
- --\\=================================//
- function dmg(dude)
- end
- function mdmg(Part,Magnitude)
- end
- function Death(MODEL)
- end
- function Attack(POSITION,RANGE)
- end
- --//=================================\\
- --|| ATTACK FUNCTIONS AND STUFF
- --\\=================================//
- function Slash()
- ATTACK = true
- Humanoid.WalkSpeed = 0
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(80),0,math.rad(50))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- local HIT = BLADEAAAA.Touched:Connect(function(HIT)
- if HIT.Parent ~= Character and HIT.Parent:FindFirstChildOfClass("Humanoid") then
- Death(HIT.Parent)
- end
- end)
- CreateSound(211059653,BLADEAAAA,10,0.7,false)
- for i=0, 0.8, 0.1 / Animation_Speed do
- Swait()
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,0.5,-.5)*CFrame.Angles(math.rad(80),0,math.rad(-50))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- for i=0, 0.1, 0.1 / Animation_Speed do
- Swait()
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,0.5,-.5)*CFrame.Angles(math.rad(80),0,math.rad(-50))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- HIT:Disconnect()
- ATTACK = false
- Rooted = false
- end
- function Teleport()
- ATTACK = true
- Humanoid.WalkSpeed = 0
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- local Swirl = script.Swirl:Clone()
- Swirl.CFrame = CFrame.new(Mouse.Hit.p)
- Swirl.Parent = workspace
- Serv("TweenService"):Create(Swirl,TweenInfo.new(1,Enum.EasingStyle.Linear),{Size = Vector3.new(25,1,25),CFrame = Swirl.CFrame*CFrame.Angles(0,math.rad(180),0),LocalTransparencyModifier = 1}):Play()
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- local POS = Mouse.Hit.p+VT(0,4,0)
- local ORI = RootPart.Orientation
- RootPart.CFrame = CF(POS)
- RootPart.Orientation = ORI
- RootJoint.Parent = RootPart
- Swirl:Remove()
- ATTACK = false
- Rooted = false
- end
- SPIKES = script.Garbage
- function Instance_(ClassType,Parent,Properties)
- local NewInstance
- if typeof(SPIKES) == "Instance" then
- NewInstance = SPIKES:Clone()
- else
- NewInstance = Instance.new(ClassType)
- end
- if type(Properties) == "table" then
- for i,v in pairs(Properties) do
- NewInstance[i] = v
- end
- end
- if typeof(Parent) == "Instance" then
- NewInstance.Parent = Parent
- end
- return NewInstance
- end
- local arm = Character["Right Arm"]
- function attackone()
- if GUN.Parent == nil then return end
- ATTACK = true
- Humanoid.WalkSpeed = 16
- AttackGyro()
- for i = 0,.5,.05 do
- swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,2 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)),.7/3)
- Neck.C0 = Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(15),math.rad(0),math.rad(-30)),1/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)) * rscp,1/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)) * lscp,1/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- end
- local shade = Color3.new(0,0,0)
- Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = .65,SoundVolume = 10,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
- Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
- for i = 0,2 do
- Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
- Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(0,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
- end
- local mousehit = Mouse.Hit
- local DISTANCE = (arm.Position - mousehit.p).Magnitude
- local killbeam = CreatePart(3,Effects,"Neon",0,0,GUN.NeonParts.Color,"Kill Beam",Vector3.new(1,DISTANCE,1))
- killbeam.CFrame = CFrame.new(arm.Position,mousehit.p) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
- MakeForm(killbeam,"Cyl")
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- killbeam.Transparency = i/25
- end
- killbeam:Destroy()
- end))
- for i = 1,4 do
- coroutine.resume(coroutine.create(function()
- Lightning(arm.Position,mousehit.p,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55)
- end))
- end
- coroutine.resume(coroutine.create(function()
- Lightning(arm.Position,mousehit.p,15,3.5,Color3.new(1,0,0),25,0,1,0,true,55)
- Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = mousehit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 821439273,SoundPitch = .8,SoundVolume = 10,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
- Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = mousehit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
- for i = 0,2 do
- Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = mousehit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
- Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = mousehit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(0,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
- end
- mdmg(mousehit.p,10)
- end))
- for i = 0,.5,.075 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,2 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)),.7/3)
- Neck.C0 = Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-60)),1/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(160),math.rad(-20),math.rad(60)) * rscp,1/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(40),math.rad(5),math.rad(5)) * lscp,1/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- end
- Humanoid.WalkSpeed = 50
- ATTACK = false
- end
- --//=================================\\
- --|| ASSIGN THINGS TO KEYS
- --\\=================================//
- Notify("[Lightning Cannon V3]: ","Lightning Cannon V3, By alsoo3")
- function MouseDown(Mouse)
- HOLD = true
- end
- function MouseUp(Mouse)
- HOLD = false
- end
- function KeyDown(Key)
- KEYHOLD = true
- if Key == "z" and ATTACK == false then
- Slash()
- DamageFling(Mouse.Target.Parent)
- end
- if Key == "x" and ATTACK == false then
- Teleport()
- end
- if Key == "c" and ATTACK == false then
- Attack(Vector3.new(),9e9)
- end
- if Key == "e" and ATTACK == false then
- Instance_()
- end
- antivoid = Instance.new("Part")
- antivoid.Size = Vector3.new(400,10,400)
- antivoid.Anchored = true
- antivoid.Transparency = 1
- antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
- antivoid.Parent = Character
- coroutine.resume(coroutine.create(function()
- while not stopeverything do
- swait()
- if not alreadyfixing then
- if antivoid:IsDescendantOf(workspace) then
- antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
- else
- pcall(function()
- antivoid:Destroy()
- end)
- antivoid = Instance.new("Part")
- antivoid.Size = Vector3.new(400,10,400)
- antivoid.Anchored = true
- antivoid.Transparency = 1
- antivoid.CanCollide = false
- antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
- antivoid.Parent = workspace
- end
- end
- end
- end))
- end
- function KeyUp(Key)
- KEYHOLD = false
- end
- Mouse.Button1Down:connect(function(NEWKEY)
- MouseDown(NEWKEY)
- end)
- Mouse.Button1Up:connect(function(NEWKEY)
- MouseUp(NEWKEY)
- end)
- Mouse.KeyDown:connect(function(NEWKEY)
- KeyDown(NEWKEY)
- end)
- Mouse.KeyUp:connect(function(NEWKEY)
- KeyUp(NEWKEY)
- end)
- --//=================================\\
- --\\=================================//
- function unanchor()
- if UNANCHOR == true then
- g = Character:GetChildren()
- for i = 1, #g do
- if g[i].ClassName == "Part" then
- g[i].Anchored = false
- end
- end
- end
- end
- --//=================================\\
- --|| WRAP THE WHOLE SCRIPT UP
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true) then
- Humanoid.Jump = false
- end
- end)
- local CONNECT = nil
- while true do
- Swait()
- ANIMATE.Parent = nil
- ANIMATOR.Parent = nil
- if Character:FindFirstChildOfClass("Humanoid") == nil then
- Humanoid = IT("Humanoid",Character)
- end
- for _,v in next, Humanoid:GetPlayingAnimationTracks() do
- v:Stop();
- end
- if Player ~= Player then
- antivoid.CanCollide = false
- end
- if Player == Player then
- Torsovelocity = (RootPart.Velocity).Magnitude
- end
- local sensitivity = 25
- SINE = SINE + CHANGE
- if mde == "IL" or mde == "IC" or mde == "Insane" then
- Humanoid.WalkSpeed = 16
- elseif mde == "LC" or mde == "Error" or mde == "Glitch" or mde == "Chill" or mde == "Karma" or mde == "Mde4" or mde == "Mde5" then
- Humanoid.WalkSpeed = 50
- elseif mde == "FAST" then
- Humanoid.WalkSpeed = 100
- end
- local TORSOVELOCITY = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- sine = sine + change
- Sine = Sine + change
- if TORSOVELOCITY > 1 and ISFLYING == true then
- ANIM = "Idle"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- pcall(function()
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(1,0,0)
- NeckSnap = true
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- elseif TORSOVELOCITY > 1 and ISFLYING == true then
- ANIM = "Fall"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- pcall(function()
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(1,0,0)
- NeckSnap = true
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- end
- elseif TORSOVELOCITY < 1 and ISFLYING == false then
- ANIM = "Idle"
- if ATTACK == false then
- if mde == "IL" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-10),0,0)*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
- pcall(function()
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(1,0,0)
- NeckSnap = true
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- end
- end)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- elseif mde == "LC" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),math.rad(10*math.cos(sine/100)),math.rad(0)),1)
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.cos(sine/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- end
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- elseif mde == "Insane" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),math.rad(10*math.cos(sine/100)),math.rad(0)),1)
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.cos(sine/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- end
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- elseif mde == "Error" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/15)) * CFrame.Angles(math.rad(0),math.rad(-10*math.cos(sine/30)),math.rad(0)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(math.rad(0),math.rad(-15*math.cos(sine/30)),math.rad(0)),1/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(135+-15*math.cos(sine/30)),math.rad(0),math.rad(25+15*math.cos(sine/30))) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(5),math.rad(5),math.rad(-10+15*math.cos(sine/30))) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(10+10*math.sin(sine/15))),1/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-10-10*math.sin(sine/15))),1/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "FAST" then
- GUN.Parent = nil
- Humanoid.HipHeight = .1
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-sine*6),math.rad(0),math.rad(0)),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(75*math.sin(sine/5)),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(75*math.sin(sine/5)),math.rad(90),math.rad(0)),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),math.rad(-90),math.rad(0)),.25)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Glitch" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(-2.5*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(10-10*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25)) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10+10*math.cos(sine/9))) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Chill" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.25,.5,-.1) * CFrame.Angles(math.rad(45),math.rad(-45),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1,.75,.1) * CFrame.Angles(math.rad(-165),math.rad(0),math.rad(40)) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0) * CFrame.Angles(math.rad(-12.5),math.rad(90),math.rad(0)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.7/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(12.5),math.rad(-90),math.rad(0)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.7/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Karma" then
- local headsnap = math.random(1,60);
- local headsnapping=false;
- if headsnap == 1 then
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(500,500)), math.rad(math.random(500,500)), math.rad(math.random(500,500))), 1)headsnapping=true headsnapping=false
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 , 0 , 2 - .5 * math.sin(sine/25)) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.8 / 3)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3))), .7 / 3)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(5+2* math.sin(sine/25+math.random(-0.25,3))), math.rad(-2+5*math.sin(sine / 25))) * LEFTSHOULDERC0, .7 / 3)
- RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
- LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
- elseif mde == "Mde4" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC02*CFrame.new(0,math.cos(sine/25),-math.sin(sine/25)+2)*CFrame.Angles(math.rad(5*math.sin(sine/25)),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(math.rad(5*math.cos(sine/25)),0,0),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(160),0,math.rad(15-5*math.sin(sine/25)))* RIGHTSHOULDERC0,.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(0,0,math.rad(-15+5*math.sin(sine/25)))* LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.1*math.sin(sine/25),-.01)*CFrame.Angles(0,math.rad(80),0),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.5-.25*math.sin(sine/25),-.51)*CFrame.Angles(math.rad(-10),math.rad(-80),0),.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- pcall(function()
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(0.321569, 0.054902, 1)
- NeckSnap = true
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- end
- end)
- elseif mde == "Mde5" then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0*CFrame.new(0,0,.05*math.cos(SINE/12))*CFrame.Angles(math.rad(15),0,0),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(-15-3*math.cos(SINE/12)),math.rad(5-5*math.sin(SINE/12)),0),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+0.1*math.cos(SINE/12),0)*CFrame.Angles(math.rad(-53.75+1.75*math.cos(SINE/12)),0,math.rad(5))*RIGHTSHOULDERC0,.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.1*math.sin(SINE/12),0)*CFrame.Angles(math.rad(15),0,math.rad(-5+5*math.cos(SINE/12)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.05*math.cos(SINE/12),-.01)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(0)),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1-.05*math.cos(SINE/12),-.01)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(0)),.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
- pcall(function()
- if math.random(1,60) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(0.101961, 1, 0.32549)
- NeckSnap = true
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- NeckSnap = false
- end
- end)
- elseif mde == "IC" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(sine/50)),0),1)
- NeckSnap = false
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(sine/50)),0),.25)
- end
- pcall(function()
- if math.random(1,math.floor((sine/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(sine/50))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(1,0,0)
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-2,0)*CFrame.Angles(80,0,0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(sine/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(sine/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(sine/25))),.25)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Nostaglic" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(165), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
- LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- end
- end
- elseif TORSOVELOCITY > 1 then
- ANIM = "Walk"
- if ATTACK == false then
- if mde == "IL" then
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- end
- pcall(function()
- if math.random(1,math.floor((15/SINE)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- end
- end)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-10),0,0)*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
- elseif mde == "LC" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- elseif mde == "Insane" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- elseif mde == "Error" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/15)) * CFrame.Angles(math.rad(40),math.rad(-5*math.cos(sine/30)),math.rad(0)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),math.rad(0),math.rad(0)),.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5 + 2 * math.cos(sine/19))) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "FAST" then
- Humanoid.HipHeight = 0
- GUN.Parent = Character
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.25/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.25/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-135),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.75/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-135),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.75/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(75*math.sin(sine/2)),math.rad(90),math.rad(0)),1)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(-75*math.sin(sine/2)),math.rad(-90),math.rad(0)),1)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Glitch" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(20-2.5*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(-10-10*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(-50+5*math.sin(sine/9)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(110),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Chill" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,-.1) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(135),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Karma" then
- local headsnap = math.random(1,60);
- local headsnapping=false;
- if headsnap == 1 then
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(500,500)), math.rad(math.random(500,500)), math.rad(math.random(500,500))), 1)headsnapping=true headsnapping=false
- end
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 , 0 , 2 - .5 * math.sin(sine/25)) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.8 / 3)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(25-math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3))), .7 / 3)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-4*math.sin(sine/25)), math.rad(5+2* math.sin(sine/25+math.random(-0.25,3))), math.rad(-2+5*math.sin(sine / 25))) * LEFTSHOULDERC0, .7 / 3)
- RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-30-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
- LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
- elseif mde == "Mde4" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC02*CFrame.new(0,math.cos(sine/25),-math.sin(sine/25)+2)*CFrame.Angles(math.rad(5*math.sin(sine/25)),0,math.rad(70)),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(0,0,math.rad(-70))*CFrame.Angles(math.rad(5*math.cos(sine/25)),0,0),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,.5,-.25)*CFrame.Angles(0,math.rad(-10),math.rad(-90))* RIGHTSHOULDERC0,.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(0,0,math.rad(-20+5*math.sin(sine/25)))* LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.1*math.sin(sine/25),-.01)*CFrame.Angles(0,math.rad(80),0),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.5-.25*math.sin(sine/25),-.51)*CFrame.Angles(math.rad(-10),math.rad(-80),0),.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
- elseif mde == "Mde5" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0,.125*math.sin(SINE/12),0)*CFrame.Angles(math.rad(10-5*math.cos(SINE/12)),math.rad(-10*math.cos(SINE/12)),math.rad(-5*math.cos(SINE/12))),.25)
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(10-5*math.cos(SINE/12)),math.rad(10*math.cos(SINE/12)),math.rad(5*math.cos(SINE/12))),.25)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.2*math.sin(SINE/12),-.25)*CFrame.Angles(math.rad(165-15*math.cos(SINE/12)),math.rad(-10+5*math.sin(SINE/12)),math.rad(10))*RIGHTSHOULDERC0,.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5-.15*math.cos(SINE/12),.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-30*math.sin(SINE/12)),math.rad(5*math.cos(SINE/12)),0)*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.9-.2*math.cos(SINE/12),.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-10-40*math.sin(SINE/12)),math.rad(90+5*math.cos(SINE/12)),math.rad(2.5*math.cos(SINE/12))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.9+.2*math.cos(SINE/12),-.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-10+40*math.sin(SINE/12)),math.rad(-90+5*math.cos(SINE/12)),math.rad(2.5*math.cos(SINE/12))),.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
- elseif mde == "IC" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
- if NeckSnap then
- Neck.C0 = Clerp(Neck.C0,NECKC0,1)
- Head2.Eye1.Color = Color3.new(1,0,0)
- Head2.Eye2.Color = Color3.new(1,0,0)
- NeckSnap = false
- else
- Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
- Head2.Eye1.Color = Color3.new(1,1,1)
- Head2.Eye2.Color = Color3.new(1,1,1)
- end
- pcall(function()
- if math.random(1,math.floor((sine/15)+.5)) == 1 then
- Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
- NeckSnap = true
- end
- end)
- RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25))*RIGHTSHOULDERC0,.25)
- SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-2,0)*CFrame.Angles(80,0,0),.25)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(sine/25)))*LEFTSHOULDERC0,.25)
- RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(sine/25))),.25)
- LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(sine/25))),.25)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),0,0),.25)
- elseif mde == "Nostaglic" then
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),.7/3)
- Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(165), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
- RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
- LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
- GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(math.rad(-93.75+7.25*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
- end
- end
- end
- unanchor()
- if Rooted == false then
- Disable_Jump = false
- Humanoid.WalkSpeed = 50
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- end
- local chat = function(MSG)
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(MSG, "All")
- end
- chat("[Immortality Lord]: mmmmmm yes pet froge asjdoi28247q8ysau7ff")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement