Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local attack = "false"
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local hed = chr.Head
- local rutprt = chr.HumanoidRootPart
- local torso = chr.Torso
- local otheranims=false
- local armanims=false
- local swimming=false
- chr.Animate.Disabled=true
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local RunSpeed=41
- local WlkSpeed=18
- local SwimSpeed=14
- local SwimDashSpeed=28
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- ptez = {0.7, 0.8, 0.9, 1}
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= chr then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- local acos = math.acos
- local sqrt = math.sqrt
- local Vec3 = Vector3.new
- local fromAxisAngle = CFrame.fromAxisAngle
- local function toAxisAngle(CFr)
- local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
- local Angle = math.acos((R00+R11+R22-1)/2)
- local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- A = A == 0 and 0.00001 or A
- local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- B = B == 0 and 0.00001 or B
- local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- C = C == 0 and 0.00001 or C
- local x = (R21-R12)/sqrt(A)
- local y = (R02-R20)/sqrt(B)
- local z = (R10-R01)/sqrt(C)
- return Vec3(x,y,z),Angle
- end
- function ApplyTrig(Num,Func)
- local Min,Max = Func(0),Func(1)
- local i = Func(Num)
- return (i-Min)/(Max-Min)
- end
- function LerpCFrame(CFrame1,CFrame2,Num)
- local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
- return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
- end
- function Crater(Torso,Radius)
- Spawn(function()
- local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
- local Ignore = {}
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Character ~= nil then
- Ignore[#Ignore+1] = v.Character
- end
- end
- local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
- if Hit == nil then return end
- local Parts = {}
- for i = 1,360,10 do
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(2,5,5)*(math.random(1,10)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
- if math.random(0,5) == 0 then -- rubble
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(1,1,1)*(math.random(1,10)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
- end
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
- end
- wait(0.02)
- end
- for i,v in pairs(Parts) do
- if v[1].Size.X > 2.1 then
- v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
- end
- v[1].Anchored = false
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].Transparency = i
- if i == 1 then
- v[1]:Destroy()
- elseif i >= 0.25 then
- v[1].CanCollide = false
- end
- end
- wait(0.02)
- end
- Parts = nil
- end)
- end
- ROW = function(out, trans, s, wt, t, ang, plus)
- for i = 1, 360, 360/t do
- local c = Instance.new("Part", game.Workspace)
- c.FormFactor = 3
- c.TopSurface = 0
- c.BottomSurface = 0
- c.Size = s
- c.Anchored = true
- c.CanCollide = wt
- c.Material=workspace.Base.Material
- c.Transparency = trans
- c.BrickColor = workspace.Base.BrickColor
- c.CFrame = CFrame.new(sp2.CFrame.x,0,sp2.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
- c.Locked=true
- game.Debris:AddItem(c,15)
- end
- end
- --[[Crater(sp2,20)
- ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)),0,math.rad(math.random(-30,30))), 0)]]
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Mouse = Player:GetMouse()
- local LeftArm = Character:WaitForChild("Left Arm")
- local RightArm = Character:WaitForChild("Right Arm")
- local LeftLeg = Character:WaitForChild("Left Leg")
- local RightLeg = Character:WaitForChild("Right Leg")
- local Head = Character:WaitForChild("Head")
- local Torso = Character:WaitForChild("Torso")
- z = Instance.new("Sound", torso)
- z.SoundId = "rbxassetid://" -- Put Music ID Here.
- z.Looped = true
- z.Pitch = 0.82
- z.Volume = 1
- wait(.1)
- z:Play()
- local RootPart = Character:WaitForChild("HumanoidRootPart")
- local Humanoid = Character:WaitForChild("Humanoid")
- local LeftShoulder = Torso:WaitForChild("Left Shoulder")
- local RightShoulder = Torso:WaitForChild("Right Shoulder")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local RightHip = Torso:WaitForChild("Right Hip")
- local Neck = Torso:WaitForChild("Neck")
- local RootJoint = RootPart:WaitForChild("RootJoint")
- local Camera = workspace.CurrentCamera
- local FLeftShoulder, FRightShoulder = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
- FLeftShoulder.Name = "LS"
- FRightShoulder.Name = "RS"
- local FLeftHip, FRightHip = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
- FLeftHip.Name = "LH"
- FRightHip.Name = "RH"
- local FRootJoint = Instance.new("Weld", RootPart)
- FRootJoint.Name = "RJ"
- local F1, F2, F3 = Instance.new("Folder", Character), Instance.new("Folder"), Instance.new("Folder")
- F1.Name = "Parts Folder"
- F2.Parent = F1
- F2.Name = "Effects"
- F3.Parent = F1
- F3.Name = "Extra Parts"
- local Drag_To_Part = Instance.new("Part", F3)
- Drag_To_Part.Transparency = 1
- Drag_To_Part.Name = "Drag-to-part"
- Drag_To_Part.Size = Vector3.new(0.2, 0.2, 0.2)
- Drag_To_Part.Anchored = false
- Drag_To_Part.CanCollide = false
- Drag_To_Part.Locked = true
- local DTPWeld = Instance.new("Weld", Drag_To_Part)
- DTPWeld.Part0 = RootPart
- DTPWeld.Part1 = Drag_To_Part
- local WepWeld, WepWeld2, WepWeld3, SheWeld = nil, nil, nil, nil
- local NLSC0 = LeftShoulder.C0
- local NLSC1 = LeftShoulder.C1
- local NRSC0 = RightShoulder.C0
- local NRSC1 = RightShoulder.C1
- local NLHC0 = LeftHip.C0
- local NLHC1 = LeftHip.C1
- local NRHC0 = RightHip.C0
- local NRHC1 = RightHip.C1
- local NNC0 = Neck.C0
- local NNC1 = Neck.C1
- local NRJC0 = RootJoint.C0
- local NRJC1 = RootJoint.C1
- local Handle, Hit_Box, Handle2, Hit_Box2, TEHandle, TESHandle, TEHit_Box, CEP = nil, nil, nil, nil, nil, nil, nil, nil
- local chatServ = game:GetService("Chat")
- local runServ = game:GetService("RunService")
- local debServ = game:GetService("Debris")
- local CurrentSpeed = 16
- local Current_Anim = "Idle"
- local Attack_Num = 1
- local Damage_Buff = 0
- local Max_Health = 400
- local Last_Health = Max_Health
- local idle = 1
- local idlenum = 1
- local idlenum2 = 1
- local walk = 1
- local walknum = 1
- local walknum2 = 1
- local Effects = {}
- local DragTable = {}
- local InputTable = {}
- local InputFrameTable = {}
- local TEBladeP = {}
- local TEBEffect, c1, c2 = nil, nil, nil
- local RGyro = Instance.new("BodyGyro")
- RGyro.MaxTorque = Vector3.new(0, 0, 0)
- RGyro.P = 2000
- local LLCF = CFrame.new()
- local SWP = Instance.new("BoolValue")
- local ControlScript = Player.PlayerScripts:WaitForChild("ControlScript")
- local Z_Pressed = false
- local Debounces = {Equipped = false, Equipping = false, HasWep = false, DuelWielding = false, Attacking = false, Locked_On = false, Can_Double_Jump = false, AnimOverride = false, Guarding = false, Crouching = false, JumpAnim = false, DoubleJumpAnim = false, KeyStrokeEnabled = false, Successful_KeyStroke = false, KeyStroke_CoolDown = false, UIAction = false, ZeroGravity = false, DoubleJumping = false, Charging_Erupt = false, Guarding = false, Transformed = false, DisableJump = false, Dashing = false, Hovering = false, TEWield = false, TESWield = false, CanGuard = true, SpedUp = false, HurrSlash = false, Stompped = false}
- local rad = math.rad
- local huge = math.huge
- local rand = math.random
- local Vec = Vector3.new
- local Cf = CFrame.new
- local Euler = CFrame.fromEulerAnglesXYZ
- local BC = BrickColor.new
- local Col3 = Color3.new
- local Inst = Instance.new
- local Ud2 = UDim2.new
- local FONT = "SourceSansLight"
- MakeText = function(text, font, duration, tcr, tcg, tcb, scr, scg, scb, cFrame)
- local tpart = Instance.new("Part")
- tpart.Parent = F2
- tpart.Transparency = 1
- tpart.Name = "hoi hoi"
- tpart.Anchored = true
- tpart.CanCollide = false
- tpart.Locked = true
- tpart.Size = Vector3.new(0.2, 0.2, 0.2)
- tpart.CFrame = cFrame * CFrame.new(math.random(-2, 2), 0, math.random(-2, 2))
- local bill = Instance.new("BillboardGui")
- bill.Parent = tpart
- bill.AlwaysOnTop = true
- bill.Name = "HUHHHHHNAAAA"
- bill.Size = UDim2.new(4, 0, 4, 0)
- bill.StudsOffset = Vector3.new(0, 1, 0)
- local counter = 0
- local textl = Instance.new("TextLabel")
- textl.Parent = bill
- textl.Name = "WHYYYYYYYY"
- textl.BackgroundTransparency = 1
- textl.Size = UDim2.new(1, 0, 1, 0)
- textl.Font = font
- textl.Text = text
- textl.TextColor3 = Color3.new(tcr / 255, tcg / 255, tcb / 255)
- textl.TextScaled = true
- textl.TextStrokeColor3 = Color3.new(scr / 255, scg / 255, scb / 255)
- textl.TextStrokeTransparency = 0
- coroutine.resume(coroutine.create(function()
- while textl.TextTransparency < 1 do
- swait()
- if bill.StudsOffset.Y >= 5 then
- if duration <= counter then
- textl.TextTransparency = textl.TextTransparency + 0.15
- textl.TextStrokeTransparency = textl.TextStrokeTransparency + 0.15
- end
- end
- counter = counter + 0.1
- bill.StudsOffset = Vector3.new(0, bill.StudsOffset.Y + 0.15, 0)
- end
- debServ:AddItem(bill, 0)
- debServ:AddItem(textl, 0)
- debServ:AddItem(tpart, 0)
- end))
- end
- Apply_Buff = function(amount, duration)
- coroutine.resume(coroutine.create(function()
- if amount > 0 and duration > 0 then
- Damage_Buff = Damage_Buff + amount
- MakeText("+" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
- wait(duration)
- Damage_Buff = Damage_Buff - amount
- MakeText("-" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
- end
- end
- ))
- end
- Apply_Health_Buff = function(amount, duration)
- coroutine.resume(coroutine.create(function()
- if amount > 0 and duration > 0 then
- Max_Health = Max_Health + amount
- coroutine.resume(coroutine.create(function()
- wait()
- Humanoid.Health = Humanoid.Health + amount
- end
- ))
- MakeText("+" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
- wait(duration)
- Max_Health = Max_Health - amount
- MakeText("-" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
- end
- end
- ))
- end
- FindHum = function(parent)
- local hm = nil
- for _,HM in pairs(parent:GetChildren()) do
- if HM:IsA("Humanoid") then
- hm = HM
- end
- end
- return hm
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.033333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if frame <= tf then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end
- )
- swait = function(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- local DamageFunction = function(Hit, IsRan, MinDam, MaxDam, HKB, Knockback, DamType, Property, Duration, HDrag, DragDuration, SoEff, SoID, SoPit, SoVol)
- local humanoid = FindHum(Hit.Parent)
- if humanoid and humanoid ~= Humanoid then
- local IsSafe = true
- local Deb = humanoid:FindFirstChild("ChaosDebounce")
- if Deb then
- local Cre = Deb:FindFirstChild("Creator")
- if Cre and Cre.Value == Player.UserId then
- IsSafe = false
- end
- end
- if IsSafe then
- local deb = Inst("BoolValue", humanoid)
- deb.Name = "ChaosDebounce"
- local cre = Inst("NumberValue", deb)
- cre.Name = "Creator"
- cre.Value = Player.UserId
- debServ:AddItem(deb, Duration)
- debServ:AddItem(cre, Duration)
- local Damage = 1
- if IsRan then
- Damage = rand(MinDam, MaxDam)
- else
- Damage = MaxDam
- end
- local this_nigga_had_op_health = false
- if SoEff then
- local HitSound = Sound(Hit, "http://roblox.com/asset/?id=" .. SoID .. "", SoVol, SoPit, false)
- debServ:AddItem(HitSound, 6)
- end
- -- DECOMPILER ERROR at PC100: Unhandled construct in 'MakeBoolean' P1
- if (DamType == "Compensate" or string.sub(DamType, 1, 10) == "Compensate") and (humanoid.MaxHealth >= 100000 or humanoid.MaxHealth == 0) then
- if humanoid.MaxHealth >= 1000000000 or humanoid.MaxHealth == 0 then
- humanoid.MaxHealth = 100
- this_nigga_had_op_health = true
- end
- Damage = Damage * (humanoid.MaxHealth / 100)
- end
- if humanoid.MaxHealth >= 100000000 or humanoid.MaxHealth == 0 then
- this_nigga_had_op_health = true
- humanoid.MaxHealth = 100
- end
- if Damage_Buff > 0 then
- Damage = Damage * Damage_Buff
- end
- humanoid.Health = humanoid.Health - Damage
- if humanoid.MaxHealth / 4 <= Damage then
- MakeText("-" .. Damage .. "", "SourceSansBold", 0.3, 170, 0, 0, 255, 85, 0, Hit.CFrame)
- else
- local mtc = BrickColor.new("Crimson").Color
- MakeText("-" .. Damage .. "", FONT, 0.3, mtc.r * 255, mtc.g * 255, mtc.b * 255, 0, 0, 0, Hit.CFrame)
- end
- do
- if HKB and (DamType ~= "SkyRocket" or DamType ~= "Compensate-SkyRocket") then
- if Property.Name ~= "Point" then
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- local KBCF = Cf(Hit.Position, Property.Position)
- Hit.Velocity = KBCF.lookVector * -Knockback
- else
- do
- Hit.Velocity = Property.CFrame.lookVector * Knockback
- if (DamType == "Normal" and DamType == "Stun") or DamType == "Compensate-Stun" then
- MakeText("Stunned", FONT, 0.3, 255, 255, 0, 0, 0, 0, Hit.CFrame)
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- local pos = Inst("BodyPosition", Hit)
- pos.MaxForce = Vec(huge, huge, huge)
- pos.Position = Hit.Position
- debServ:AddItem(pos, Duration * 10)
- else
- do
- if DamType == "LifeSteal" or DamType == "Compensate-LifeSteal" then
- Humanoid.Health = Humanoid.Health + Damage / 2
- MakeText("+" .. Damage / 2, FONT, 0.4, 0, 0, 0, 0, 255, 0, RootPart.CFrame)
- else
- if DamType == "MomentumStopper" or DamType == "Compensate-MomentumStopper" then
- local vel = Inst("BodyVelocity", Hit)
- vel.Name = "MomentumStopper"
- vel.MaxForce = Vec(huge, huge, huge)
- vel.Velocity = Vec(0, 0, 0)
- debServ:AddItem(vel, 3)
- else
- do
- if DamType == "Knockdown" or DamType == "Compensate-Knockdown" then
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- else
- if DamType == "SkyRocket" or DamType == "Compensate-SkyRocket" then
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- Hit.Velocity = Vec(0, Knockback, 0)
- if rand(1, 4) == 1 then
- local Twista = Inst("BodyAngularVelocity", Hit)
- Twista.MaxTorque = Vec(1000000, 1000000, 1000000)
- Twista.AngularVelocity = Vec(rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2))
- debServ:AddItem(Twista, 0.01)
- end
- else
- do
- if DamType == "FreezeStun" or DamType == "Compensate-FreezeStun" then
- MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 170, 0, Hit.CFrame)
- coroutine.resume(coroutine.create(function()
- local ti = 0
- local hHead = Hit.Parent:FindFirstChild("Head")
- if hHead then
- hHead = Hit
- local h = Inst("Part", F2)
- h.Size = Vec(0.2, 0.2, 0.2)
- h.CanCollide = false
- h.Transparency = 1
- h.Position = hHead.Position
- local hWELD = Inst("Weld", h)
- hWELD.Part0 = hHead
- hWELD.Part1 = h
- hWELD.C0 = Cf(0, -4, 0)
- repeat
- ti = ti + 0.1
- for _,p in pairs(humanoid.Parent:GetChildren()) do
- if p:IsA("BasePart") then
- p.Anchored = true
- end
- end
- swait()
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- local p1 = hHead.Position + Vec(rand(-200, 200) / 100, -(hHead.Size.y * 1.5), rand(-200, 200) / 100)
- local p0 = h.Position
- Lightning(p0, p1, 5, 3, "Deep orange", "Neon", 0.1, 0.2, 0.2)
- until Duration * 12 <= ti
- for _,p in pairs(humanoid.Parent:GetChildren()) do
- if p:IsA("BasePart") then
- p.Anchored = false
- end
- end
- debServ:AddItem(h, 0)
- end
- end
- ))
- else
- if DamType == "KnockDownFreezeStun" or DamType == "Compensate-KnockDownFreezeStun" then
- MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 64, 0, Hit.CFrame)
- coroutine.resume(coroutine.create(function()
- local ti = 0
- local scf = nil
- local h = Inst("Part", F2)
- h.Size = Vec(0.2, 0.2, 0.2)
- h.CanCollide = false
- h.Anchored = true
- h.Transparency = 1
- h.Position = Hit.Position
- h.CFrame = h.CFrame * Euler(rad(-90), 0, 0)
- local IL = {Character, Hit.Parent}
- local Ground, Pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(h.Position, h.CFrame.lookVector.Unit * 999), IL, true, true)
- if Ground then
- Hit.CFrame = Cf(Pos) * Euler(rad(-90), 0, 0)
- scf = Cf(Pos) * Euler(rad(-90), 0, 0)
- end
- repeat
- ti = ti + 0.1
- for _,p in pairs(humanoid.Parent:GetChildren()) do
- if p:IsA("BasePart") then
- p.Anchored = true
- end
- end
- Hit.CFrame = scf
- swait()
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- until Duration * 7 <= ti
- for _,p in pairs(humanoid.Parent:GetChildren()) do
- if p:IsA("BasePart") then
- p.Anchored = false
- end
- end
- debServ:AddItem(h, 0)
- end
- ))
- end
- end
- if HDrag then
- humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- local pos = Inst("BodyPosition", Hit)
- pos.MaxForce = Vec(huge, huge, huge)
- pos.Position = Drag_To_Part.Position
- local d = Inst("NumberValue", pos)
- d.Name = "Duration"
- d.Value = DragDuration
- table.insert(DragTable, pos)
- end
- do
- if this_nigga_had_op_health then
- coroutine.resume(coroutine.create(function()
- swait()
- Damage = Damage * 2
- humanoid.Health = humanoid.Health - Damage
- MakeText("-" .. Damage .. "", FONT, 0.4, 0, 0, 0, 0, 0, 91, Hit.CFrame)
- end
- ))
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- MagniDamage = function(Part, range, isRan, mindam, maxdam, hkb, knock, DType, dur, hd, dd, soe, soid, sopit, sovol)
- for _,c in pairs(workspace:GetChildren()) do
- local hum = FindHum(c)
- if hum and hum ~= Humanoid then
- local head = c:FindFirstChild("Head")
- local tor = c:FindFirstChild("Torso")
- local larm = c:FindFirstChild("Left Arm")
- local rarm = c:FindFirstChild("Right Arm")
- local lleg = c:FindFirstChild("Left Leg")
- local rleg = c:FindFirstChild("Right Leg")
- local Dis = range
- local Par = nil
- if head then
- local Mag = (head.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = head
- end
- end
- if tor then
- local Mag = (tor.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = tor
- end
- end
- if rarm then
- local Mag = (rarm.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = rarm
- end
- end
- if larm then
- local Mag = (larm.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = larm
- end
- end
- if rleg then
- local Mag = (rleg.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = rleg
- end
- end
- if lleg then
- local Mag = (lleg.Position - Part.Position).magnitude
- if Mag <= Dis then
- Dis = Mag
- Par = lleg
- end
- end
- if Par then
- DamageFunction(Par, isRan, mindam, maxdam, hkb, knock, DType, Part, dur, hd, dd, soe, soid, sopit, sovol)
- end
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- CreatePart = function(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
- local Part = Instance.new(className, parent)
- Part.BrickColor = BrickColor.new(Brickcolor)
- Part.Transparency = Transparency
- Part.Reflectance = Reflectance
- Part.Material = Material
- Part.Name = Name
- Part.Anchored = true
- Part.CanCollide = false
- Part.Locked = true
- Part.Size = Size
- Part.Position = Position
- Part.Rotation = Rotation
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- local Mesh = Instance.new(MeshClass, Part)
- Mesh.Scale = MeshScale
- if MeshClass == "SpecialMesh" then
- Mesh.MeshId = MeshId
- Mesh.MeshType = MeshType
- end
- return Part
- end
- rayCast = function(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- local Point = Torso.CFrame * Cf(0, Torso.Size.Y, 0)
- LastPoint = Point
- effect = function(Color, Ref, LP, P1, returnn)
- local effectsmsh = Instance.new("CylinderMesh")
- effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.5, 1, 0.5)
- effectsg.Parent = F2
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = BrickColor.new(Color)
- effectsg.Reflectance = Ref
- local point1 = P1
- local mg = (LP.p - point1.p).magnitude
- effectsg.Size = Vector3.new(0.5, mg, 0.5)
- effectsg.CFrame = Cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
- effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
- game:GetService("Debris"):AddItem(effectsg, 2)
- if returnn then
- return effectsg
- end
- coroutine.resume(coroutine.create(function(Part, Mesh)
- if not returnn then
- for i = 0, 1, 0.05 do
- swait()
- Part.Transparency = 1 * i
- Mesh.Scale = Vector3.new(0.5 - 0.5 * i, 1, 0.5 - 0.5 * i)
- end
- Part.Parent = nil
- end
- end
- ), effectsg, effectsmsh)
- end
- local CFrameFromTopBack = function(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
- NoOutline = function(Part)
- Part.TopSurface = 10
- end
- pert = function(parent, reflectance, transparency, brickcolor, name, size, material)
- local fp = Inst("Part")
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked = true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- NoOutline(fp)
- fp.Material = material
- fp:BreakJoints()
- return fp
- end
- mesh = function(Mesh, part, meshtype, meshid, offset, scale)
- local mesh = Inst(Mesh)
- mesh.Parent = part
- if Mesh == "SpecialMesh" then
- mesh.MeshType = meshtype
- mesh.MeshId = meshid
- end
- mesh.Offset = offset
- mesh.Scale = scale
- return mesh
- end
- MagicBlock = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
- end
- MagicBlock2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Disappear", Delay, x3, y3, z3})
- end
- MagicSpikeBall = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/Asset/?id=9982590", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
- end
- MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
- end
- MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
- end
- MagicWave2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Wave", Delay, x3, y3, z3})
- end
- MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Head", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
- end
- MagicCylinder2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("CylinderMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
- end
- MagicBlood = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
- end
- MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
- end
- MagicRing2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
- local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 5)
- table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
- end
- ElecEffect = function(brickCol, material, cff, x, y, z)
- local prt = pert(F2, 0, 0, brickCol, "Part", Vec(1, 1, 1), material)
- prt.Anchored = true
- prt.CFrame = cff * Cf(rand(-x, x), rand(-y, y), rand(-z, z))
- prt.CFrame = Cf(prt.Position)
- debServ:AddItem(prt, 2)
- local xval = math.random() / 2
- local yval = math.random() / 2
- local zval = math.random() / 2
- local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(xval, yval, zval))
- Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
- end
- Lightning = function(p0, p1, tym, ofs, col, mat, th, tra, last)
- local magz = (p0 - p1).magnitude
- local curpos = p0
- local trz = {-ofs, ofs}
- for i = 1, tym do
- local li = Instance.new("Part", F2)
- li.TopSurface = 0
- li.BottomSurface = 0
- li.Anchored = true
- li.Transparency = tra or 0.4
- li.BrickColor = BrickColor.new(col)
- li.Material = mat
- li.Material = "Neon"
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(th, th, magz / tym)
- local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
- if tym == i then
- local magz2 = (curpos - p1).magnitude
- li.Size = Vector3.new(th, th, magz2)
- li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
- game:GetService("Debris"):AddItem(li, last)
- else
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
- curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
- game:GetService("Debris"):AddItem(li, last)
- end
- end
- end
- Triangle = function(a, b, c, tcol, tmat)
- 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 = a
- elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
- a = b
- elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
- a = c
- else
- return
- 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 = {}
- if len1 > 0.01 then
- local w1 = Inst("WedgePart", F2)
- w1.Material = tmat
- w1.BrickColor = BC(tcol)
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vec(0.2, width, len1)
- w1.Size = sz
- local sp = Inst("SpecialMesh", w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vec(0, 1, 1) * sz / w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Transparency = 0.7
- debServ:AddItem(w1, 25)
- table.insert(Effects, {w1, "Disappear", 0.045})
- 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 = Inst("WedgePart", F2)
- w2.Material = tmat
- w2.BrickColor = BC(tcol)
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vec(0.2, width, len2)
- w2.Size = sz
- local sp = Inst("SpecialMesh", w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vec(0, 1, 1) * sz / w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Transparency = 0.7
- debServ:AddItem(w2, 25)
- table.insert(Effects, {w2, "Disappear", 0.045})
- 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
- runServ.RenderStepped:connect(function()
- 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]:FindFirstChild("Mesh")
- if not Mesh then
- Mesh = Instance.new("BlockMesh")
- end
- Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Wave" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.Angles(0, rad(10), 0)
- Mesh = Thing[1]:FindFirstChild("Mesh")
- if not Mesh then
- Mesh = Instance.new("BlockMesh")
- end
- Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- Mesh = Thing[1]:FindFirstChild("Mesh")
- if not Mesh then
- Mesh = Instance.new("BlockMesh")
- end
- Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- Mesh = Thing[1]:FindFirstChild("Mesh")
- if not Mesh then
- Mesh = Instance.new("BlockMesh")
- end
- Thing[1].CFrame = Thing[1].CFrame * Cf(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- Mesh = Thing[1]:FindFirstChild("Mesh")
- if not Mesh then
- Mesh = Instance.new("BlockMesh")
- end
- Mesh.Scale = Mesh.Scale + Vec(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
- debServ:AddItem(Part, 0)
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end)
- maus.KeyDown:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=true
- end
- if kei=='w' then fldb.w=true end
- if kei=='a' then fldb.a=true end
- if kei=='s' then fldb.s=true end
- if kei=='d' then fldb.d=true end
- end)
- maus.KeyUp:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- runnin=false
- end
- if kei=='w' then fldb.w=false end
- if kei=='a' then fldb.a=false end
- if kei=='s' then fldb.s=false end
- if kei=='d' then fldb.d=false end
- end)
- coroutine.wrap(function()
- for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- local angles = CFrame.Angles
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- local rutwald=Instance.new('Weld',rutprt)
- rutwald.Part0=rutprt
- rutwald.Part1=torso
- rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- local function setupPart(part)
- part.Anchored = true
- part.FormFactor = 'Custom'
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Dark indigo")
- part.Material = "Neon"
- part.TopSurface = 'SmoothNoOutlines'
- part.BottomSurface = 'SmoothNoOutlines'
- part.FrontSurface = 'SmoothNoOutlines'
- part.BackSurface = 'SmoothNoOutlines'
- part.LeftSurface = 'SmoothNoOutlines'
- part.RightSurface = 'SmoothNoOutlines'
- end
- 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 CreateTriangle(parent, a, b, c)
- local this = {}
- local mPart1 = Instance.new('WedgePart')
- setupPart(mPart1)
- local mPart2 = Instance.new('WedgePart')
- setupPart(mPart2)
- function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
- local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
- local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
- local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
- local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
- if edg1 < edg2 then
- if edg1 < edg3 then
- -- nothing to change
- else
- a, b, c = c, a, b
- ab, bc, ca = ca, ab, bc
- abm = cam
- end
- else
- if edg2 < edg3 then
- a, b, c = b, c, a
- ab, bc, ca = bc, ca, ab
- abm = bcm
- else
- a, b, c = c, a, b
- ab, bc, ca = ca, ab, bc
- abm = cam
- end
- end
- local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
- local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
- mPart1.Parent = parent
- mPart1.Size = Vector3.new(1,1,1)
- mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- local Mesh = Instance.new("SpecialMesh",mPart1)
- Mesh.MeshType = "Wedge"
- Mesh.Scale = Vector3.new(0.005, width, len1)
- mPart2.Parent = parent
- mPart2.Size = Vector3.new(1,1,1)
- mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- local Mesh = Instance.new("SpecialMesh",mPart2)
- Mesh.MeshType = "Wedge"
- Mesh.Scale = Vector3.new(0.005, width, len2)
- end
- function this:SetProperty(prop, value)
- mPart1[prop] = value
- mPart2[prop] = value
- end
- function this:GetProperty(prop)
- return mPart1[prop]
- end
- this:Set(a, b, c)
- function this:Destroy()
- mPart1:Destroy()
- mPart2:Destroy()
- end
- return this
- end
- function CreateTrail(Adornee, Axis)
- local Axis = Axis or "X"
- local trail = {}
- trail.Triangles = {}
- trail.Adornee = Adornee
- trail.Axis = Axis
- local L1, L2
- function trail:Fade(speed)
- local speed = speed or 0.01
- for n, v in pairs(trail.Triangles) do
- v:SetProperty("Transparency", v:GetProperty("Transparency") + speed)
- if v:GetProperty("Transparency") >= 1 then
- v:Destroy()
- table.remove(trail.Triangles, n)
- end
- end
- end
- function trail:Update()
- local adornee = trail.Adornee
- local axis = trail.Axis
- local Size = Vector3.new((axis == "X" and adornee.Size.X or 0), (axis == "Y" and adornee.Size.Y or 0), (axis == "Z" and adornee.Size.Z or 0))
- local P1 = adornee.CFrame * CFrame.new(Size / 2)
- local P2 = adornee.CFrame * CFrame.new(Size / -2)
- if L1 and L2 then
- table.insert(trail.Triangles, CreateTriangle(adornee, L1.p, L2.p, P1.p))
- table.insert(trail.Triangles, CreateTriangle(adornee, P1.p, P2.p, L2.p))
- end
- L1, L2 = P1, P2
- end
- return trail
- end
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- 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
- it=Instance.new
- 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=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- handle=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,1,"Nougat","Handle",Vector3.new(1.60000002, 0.200000003, 0.200000003))
- handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0195121765, 1.00891566, 0.00454330444, 0.000431999884, 0.000514999847, -0.999999762, -2.89999916e-005, 0.999999762, 0.000514987449, 0.999999881, 2.87775056e-005, 0.000432014756))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(1, 1, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.42999268, 0.000979423523, 0.00117683411, -1, 1.16415322e-010, 0, 0, -2.22473147e-007, -0.99999994, 1.16415322e-010, -0.999999762, 2.22488154e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.14999998))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, 0.000138282776, 3.14712524e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699996948, 0.000144481659, 6.67572021e-006, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.5, 0.000144958496, 6.67572021e-006, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Crimson","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.900005341, 0.000144720078, 1.71661377e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.20000005, 1.20000005))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.500003815, 0.000138759613, 3.52859497e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299995422, 0.000147104263, 1.71661377e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, 0.378684998, 0.000153779984, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 2.5))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, -0.371305466, 0.000169992447, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 2.5))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(2.04999948, 2.02999949, 0.199999958))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.21500778, 0.004986763, 0.00018286705, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.14999998))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(1.73000002, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.0249939, 0.00048160553, -5.81741333e-005, -0.999999344, 0.00103198539, 0.00049302954, -0.00103225536, -0.999999166, -0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.349999994))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0999984741, 0.000143527985, 1.90734863e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(2.27000022, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.80500412, 0.000491380692, -4.57763672e-005, -0.999999344, 0.00103198539, 0.00049302954, -0.00103225536, -0.999999166, -0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.349999994))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, 0.378663063, 0.000155925751, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 2))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0.5,"Maroon","Part",Vector3.new(0.270000041, 0.290000021, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.21500015, -0.0348873138, 0.00018286705, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 2.5))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.96999359, -0.00117921829, -0.00098323822, 1, -1.16415322e-010, 0, -1.16415322e-010, 0.999999762, -7.51754214e-012, 0, -7.51754214e-012, 0.99999994))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.20000005, 1.20000005))
- Orb=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Orb",Vector3.new(2.04999948, 2.02999949, 0.199999958))
- Orbweld=weld(m,handle,Orb,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.21500778, 0.0050163269, 0.00018286705, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Orb,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 2.5))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.42999649, -0.00127482414, 0.000159263611, -0.999999344, 0.00103198539, 0.00049302954, -0.00103225536, -0.999999166, -0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.600000024))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(1.36000001, 1.37000012, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56000137, -0.374933243, 0.000169754028, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(1.36000001, 1.37000012, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56000137, 0.375066757, 0.000154733658, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(5.97000074, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.884998322, 0.000459194183, -4.00543213e-005, -0.999999344, 0.00103198539, 0.00049302954, -0.00103225536, -0.999999166, -0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(0.500000417, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09410095, 0.00118803978, 0.60358429, -0.950826585, -4.2374013e-006, 0.309723854, 4.50946391e-006, -0.999999762, 1.61743017e-007, 0.309723794, 1.5504047e-006, 0.950826526))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.935000002, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0.0090000033378601,"Maroon","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.42999268, 0.000979423523, 0.00117683411, -1, 1.16415322e-010, 0, 0, -2.22473147e-007, -0.99999994, 1.16415322e-010, -0.999999762, 2.22488154e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.699999988))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(0.500000417, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.11287308, 0.00118708611, -0.534433365, -0.960263133, -3.43291322e-006, -0.279096276, 3.26376176e-006, -0.999999762, 1.07158689e-006, -0.279096276, 1.18161552e-007, 0.960263133))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.935000002, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(2.04999948, 2.02999949, 0.199999958))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.21500778, 0.004986763, 0.000183820724, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 2))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300003052, 0.000143527985, 1.90734863e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, 0.378663063, 0.000155925751, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.14999998))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Maroon","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, -0.371323586, 0.000169992447, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.14999998))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Crimson","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.899990082, 0.000149011612, 2.19345093e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.20000005, 1.20000005))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(1.48899221, 1.47446549, 0.145267531))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.56500626, -0.371323586, 0.000170946121, -0.999999762, 0.000562987407, 0.000432016124, -0.000431999884, 2.89999916e-005, -0.999999881, -0.000562999805, -0.999999642, -2.87567655e-005))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 2))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Granite,0,0,"Nougat","Part",Vector3.new(0.199999988, 0.199999988, 0.199999988))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100002289, 0.000143051147, 1.90734863e-005, 0.999999344, -0.00103198539, -0.00049302954, 0.00103225536, 0.999999166, 0.000547553995, 0.000492464169, -0.00054806238, 0.999999762))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.10000002, 1.10000002))
- local co1 = 3
- local co2 = 10
- local co3 = 15
- local co4 = 30
- local cooldown1 = 0
- local cooldown2 = 0
- local cooldown3 = 0
- local cooldown4 = 0
- local maxEnergy = 100
- local Energy = 0
- local skill1stam = 10
- local skill2stam = 50
- local skill3stam = 60
- local skill4stam = 100
- local recovermana = 5
- local skillcolorscheme = BrickColor.new("Crimson").Color
- local scrn = Instance.new("ScreenGui", Player.PlayerGui)
- makeframe = function(par, trans, pos, size, color)
- local frame = Instance.new("Frame", par)
- frame.BackgroundTransparency = trans
- frame.BorderSizePixel = 0
- frame.Position = pos
- frame.Size = size
- frame.BackgroundColor3 = color
- return frame
- end
- makelabel = function(par, text)
- local label = Instance.new("TextLabel", par)
- label.BackgroundTransparency = 1
- label.Size = UDim2.new(1, 0, 1, 0)
- label.Position = UDim2.new(0, 0, 0, 0)
- label.TextColor3 = Color3.new(255, 255, 255)
- label.TextStrokeTransparency = 0
- label.FontSize = Enum.FontSize.Size32
- label.Font = Enum.Font.SourceSansLight
- label.BorderSizePixel = 0
- label.TextScaled = true
- label.Text = text
- end
- framesk1 = makeframe(scrn, 0.5, UDim2.new(0.84, 0, 0.64, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
- framesk2 = makeframe(scrn, 0.5, UDim2.new(0.84, 0, 0.74, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
- framesk3 = makeframe(scrn, 0.5, UDim2.new(0.84, 0, 0.84, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
- framesk4 = makeframe(scrn, 0.5, UDim2.new(0.84, 0, 0.94, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
- bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
- bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
- bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
- bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
- text1 = makelabel(framesk1, "[Z] ForceFeild")
- text2 = makelabel(framesk2, "[X] Recon")
- text3 = makelabel(framesk3, "[C] attackthree")
- text4 = makelabel(framesk4, "[V] attackfour")
- ForceField = function()
- local FF = Instance.new("Model", Character)
- local p2 = Instance.new("Part", FF)
- p2.Size = Vector3.new(12, 12, 12)
- p2.Anchored = true
- p2.CanCollide = false
- p2.Transparency = .35
- p2.TopSurface = 0
- p2.Material = "Granite"
- p2.Shape = "Ball"
- p2.BrickColor = BrickColor.new("Really red")
- local p3 = Instance.new("Part", FF)
- p3.Size = Vector3.new(12, 12, 12)
- p3.Anchored = true
- p3.CanCollide = false
- p3.Transparency = .7
- p3.TopSurface = 0
- p3.Material = "Neon"
- p3.Shape = "Ball"
- p3.BrickColor = BrickColor.new("Really red")
- local i = 0
- rad = math.rad
- game:service'RunService'.RenderStepped:connect(function()
- i = i + .95
- p2.CFrame = torso.CFrame * CFrame.Angles(rad(i), rad(i), rad(i))
- p3.CFrame = p2.CFrame + Vector3.new(.1,.1,.1)
- end)
- for i = 0, 20, 0.13 do
- swait()
- MagniDamage(p2, 6, true, 1, 2, true, 10, "Compensate-Knockdown", 0.01, false, 0, false, _, "", "")
- end
- wait(2)
- FF:Destroy()
- end
- game:service'RunService'.RenderStepped:connect(function()
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if not otheranims and not swimming then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Sprinting"
- elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
- anim='Jumping'
- elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
- anim='Falling'
- end
- end
- if otheranims then return end
- if anim=="Idling" then
- --ElecEffect(BrickColor.new("Crimson"), "Neon", Orb:GetRenderCFrame(), math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1))
- idlesineinc=35
- if not armanims then
- idlesineinc=35
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
- end
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Walking" then
- if not armanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(30),math.rad(-30)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- end
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
- end
- if anim=="Sprinting" then
- if not armanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,.525,-.1)*CFrame.Angles(math.rad(90),math.rad(60),math.rad(-30)),.2)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.55,0)*CFrame.Angles(math.rad(90),math.rad(-60),math.rad(-30)),.2)
- end
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
- end
- if anim=="Jumping" then
- if not armanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
- end
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
- end
- if anim=="Falling" then
- if not armanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
- end
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
- end
- if runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=RunSpeed
- elseif not runnin and not otheranims and not swimming then
- chr.Humanoid.WalkSpeed=WlkSpeed
- end
- end)
- --[[]]----[[Moves]]----[[]]--
- --if just moving arms the debounce should be armanims if anything else then otheranims
- attackone = function()
- attack = true
- armanims=true
- for i = 0, 1, 0.13 do
- swait()
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.650,0)*CFrame.Angles(math.rad(90), math.rad(-20), math.rad(0)),.1)
- end
- for i = 1,5 do
- MagicBlock(BrickColor.new("Maroon"), "Neon", Orb:GetRenderCFrame(), .002, .002, .002, .5, .5, .5, 0.02)
- MagicBlock2(BrickColor.new("Crimson"), "Neon", Orb:GetRenderCFrame(), .002, .002, .002, .5, .5, .5, 0.02)
- MagicCircle(BrickColor.new("Maroon"), "Neon", Orb:GetRenderCFrame(), .002, .002, .002, .5, .5, .5, 0.02)
- end
- wait(.6)
- ForceField()
- armanims=false
- attack = false
- end
- attacktwo = function()
- attack = true
- armanims=true
- sp = Instance.new("Part",larm)
- sp.Anchored = true
- sp.CanCollide = false
- sp.Locked = true
- sp.Transparency = 1
- sp.Material = "Neon"
- sp.Size = Vector3.new(1,1,1)
- sp.TopSurface = "SmoothNoOutlines"
- sp.BottomSurface = "SmoothNoOutlines"
- sp.BrickColor = BrickColor.new("Crimson")
- spm = Instance.new("SpecialMesh",sp)
- spm.MeshType = "Sphere"
- spm.Scale = Vector3.new(1,1,1)
- for i = 1, 100, 20 do
- swait()
- sp.CFrame = torso.CFrame*CFrame.new(0,1,-2)
- end
- for i = 1, 20 do
- swait()
- sp.CFrame = torso.CFrame*CFrame.new(0,1,-2)
- end
- sp.Transparency = 0
- for i = 0, 1, 0.02 do
- swait()
- sp.CFrame = larm.CFrame*CFrame.new(0,-1,0)
- larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(90),math.rad(-12),math.rad(-150)), 0.1)
- MagicBlock(BrickColor.new("Crimson"), "Neon", sp:GetRenderCFrame(), .002, .002, .002, .16, .16, .16, .02)
- MagicCircle(BrickColor.new("Really red"), "Neon", sp:GetRenderCFrame(), .002, .002, .002, .2, .2, .2, .02)
- end
- for i = 0, 1, 0.02 do
- swait()
- sp.CFrame = larm.CFrame*CFrame.new(0,-1,0)
- larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(130),math.rad(-6),math.rad(-20)), 0.1)
- end
- sp.CFrame = torso.CFrame + Vector3.new(0,0,-2)
- sp:Destroy()
- sp2 = Instance.new("Part",larm)
- sp2.Anchored = false
- sp2.CanCollide = false
- sp2.Transparency = 0
- sp2.Material = "Neon"
- sp2.Size = Vector3.new(1,1,1)
- sp2.TopSurface = "SmoothNoOutlines"
- sp2.BottomSurface = "SmoothNoOutlines"
- sp2.BrickColor = BrickColor.new("Really red")
- spm2 = Instance.new("SpecialMesh",sp2)
- spm2.MeshType = "Sphere"
- spm2.Scale = Vector3.new(1,1,1)
- sp2.CFrame = larm.CFrame + Vector3.new(0,3,0)
- local bv = Instance.new("BodyPosition",sp2)
- bv.maxForce = Vector3.new(99999,99999,99999)
- bv.position = Mouse.Hit.p
- bv.D = 100
- bv.P = 100
- wait(3)
- local cf = sp2.CFrame
- bv:Destroy()
- sp2.Anchored = true
- sp2.Size = Vector3.new(1,1,1)
- sp2.CanCollide = false
- for i,v in pairs(FindNearestTorso(sp2.CFrame.p,30))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(90,99))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- end
- local blast = Instance.new("Part", larm)
- blast.BrickColor = BrickColor.new("Crimson")
- blast.Material = "Neon"
- blast.Anchored = true
- blast.CanCollide = false
- blast.Locked = true
- blast.Size = Vector3.new(1, 1, 1)
- blast.TopSurface = "Smooth"
- blast.BottomSurface = "Smooth"
- blast.Transparency = 0
- blast.CFrame = sp2.CFrame
- local bm = Instance.new("SpecialMesh", blast)
- bm.Scale = Vector3.new(3,3,3)
- bm.MeshType = "Sphere"
- local blast2 = Instance.new("Part", larm)
- blast2.BrickColor = BrickColor.new("Really red")
- blast2.Material = "Neon"
- blast2.Anchored = true
- blast2.CanCollide = false
- blast2.Locked = true
- blast2.Size = Vector3.new(1, 1, 1)
- blast2.TopSurface = "Smooth"
- blast2.BottomSurface = "Smooth"
- blast2.Transparency = 0
- blast2.CFrame = sp2.CFrame
- local bm2 = Instance.new("SpecialMesh", blast2)
- bm2.Scale = Vector3.new(3,3,3)
- bm2.MeshType = "Sphere"
- local blast3 = Instance.new("Part", larm)
- blast3.BrickColor = BrickColor.new("Crimson")
- blast3.Material = "Neon"
- blast3.Anchored = true
- blast3.CanCollide = false
- blast3.Locked = true
- blast3.Size = Vector3.new(1, 1, 1)
- blast3.TopSurface = "Smooth"
- blast3.BottomSurface = "Smooth"
- blast3.Transparency = 0
- blast3.CFrame = sp2.CFrame
- local bm3 = Instance.new("SpecialMesh", blast3)
- bm3.Scale = Vector3.new(3,3,3)
- bm3.MeshType = "Sphere"
- for i = 1,300 do swait()
- sp2.Transparency = sp2.Transparency + (1/300)
- blast.Transparency = blast.Transparency + (1/300)
- blast2.Transparency = blast2.Transparency + (1/300)
- blast3.Transparency = blast3.Transparency + (1/300)
- sp2.Size = sp2.Size + Vector3.new(.25,.25,.25)
- bm.Scale = bm.Scale + Vector3.new(.25,.25,.25)
- bm2.Scale = bm2.Scale + Vector3.new(.20,.20,.20)
- bm3.Scale = bm3.Scale + Vector3.new(.20,.20,.20)
- sp2.CFrame = cf
- blast.CFrame = cf
- blast2.CFrame = cf
- blast3.CFrame = cf
- end
- sp2:Destroy()
- blast:Destroy()
- blast2:Destroy()
- blast3:Destroy()
- armanims=false
- attack = false
- end
- attackthree = function()
- attack = true
- otheranims=true
- sp = Instance.new("Part",larm)
- sp.Anchored = true
- sp.CanCollide = false
- sp.Locked = true
- sp.Transparency = 1
- sp.Material = "Neon"
- sp.Size = Vector3.new(1,1,1)
- sp.TopSurface = "SmoothNoOutlines"
- sp.BottomSurface = "SmoothNoOutlines"
- sp.BrickColor = BrickColor.new("Crimson")
- spm = Instance.new("SpecialMesh",sp)
- spm.MeshType = "Sphere"
- spm.Scale = Vector3.new(3,3,3)
- for i = 1, 100, 20 do
- swait()
- sp.CFrame = torso.CFrame*CFrame.new(0,1,-2)
- end
- for i = 1, 20 do
- swait()
- sp.CFrame = torso.CFrame*CFrame.new(0,1,-2)
- end
- sp.Transparency = 0
- for i = 0, 1, 0.02 do
- swait()
- sp.CFrame = larm.CFrame*CFrame.new(0,-1,0)
- larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40)), 0.1)
- MagicBlock(BrickColor.new("Crimson"), "Neon", sp:GetRenderCFrame(), .002, .002, .002, .16, .16, .16, .02)
- MagicCircle(BrickColor.new("Really red"), "Neon", sp:GetRenderCFrame(), .002, .002, .002, .2, .2, .2, .02)
- end
- sp.CFrame = torso.CFrame + Vector3.new(0,0,-2)
- sp:Destroy()
- sp2 = Instance.new("Part",larm)
- sp2.Anchored = false
- sp2.CanCollide = false
- sp2.Transparency = 0
- sp2.Material = "Neon"
- sp2.Size = Vector3.new(1,1,1)
- sp2.TopSurface = "SmoothNoOutlines"
- sp2.BottomSurface = "SmoothNoOutlines"
- sp2.BrickColor = BrickColor.new("Really red")
- spm2 = Instance.new("SpecialMesh",sp2)
- spm2.MeshType = "Sphere"
- spm2.Scale = Vector3.new(3,3,3)
- sp2.CFrame = larm.CFrame + Vector3.new(0,3,0)
- local bv = Instance.new("BodyPosition",sp2)
- bv.maxForce = Vector3.new(99999,99999,99999)
- bv.position = Mouse.Hit.p
- bv.D = 100
- bv.P = 100
- wait(10)
- local cf = sp2.CFrame
- bv:Destroy()
- sp2.Anchored = true
- sp2.Size = Vector3.new(1,1,1)
- sp2.CanCollide = false
- for i,v in pairs(FindNearestTorso(sp2.CFrame.p,30))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(90,99))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- end
- local blast = Instance.new("Part", larm)
- blast.BrickColor = BrickColor.new("Crimson")
- blast.Material = "Neon"
- blast.Anchored = true
- blast.CanCollide = false
- blast.Locked = true
- blast.Size = Vector3.new(1, 1, 1)
- blast.TopSurface = "Smooth"
- blast.BottomSurface = "Smooth"
- blast.Transparency = 0
- blast.CFrame = sp2.CFrame
- local bm = Instance.new("SpecialMesh", blast)
- bm.Scale = Vector3.new(3,3,3)
- bm.MeshType = "Sphere"
- local blast2 = Instance.new("Part", larm)
- blast2.BrickColor = BrickColor.new("Really red")
- blast2.Material = "Neon"
- blast2.Anchored = true
- blast2.CanCollide = false
- blast2.Locked = true
- blast2.Size = Vector3.new(1, 1, 1)
- blast2.TopSurface = "Smooth"
- blast2.BottomSurface = "Smooth"
- blast2.Transparency = 0
- blast2.CFrame = sp2.CFrame
- local bm2 = Instance.new("SpecialMesh", blast2)
- bm2.Scale = Vector3.new(3,3,3)
- bm2.MeshType = "Sphere"
- local blast3 = Instance.new("Part", larm)
- blast3.BrickColor = BrickColor.new("Crimson")
- blast3.Material = "Neon"
- blast3.Anchored = true
- blast3.CanCollide = false
- blast3.Locked = true
- blast3.Size = Vector3.new(1, 1, 1)
- blast3.TopSurface = "Smooth"
- blast3.BottomSurface = "Smooth"
- blast3.Transparency = 0
- blast3.CFrame = sp2.CFrame
- local bm3 = Instance.new("SpecialMesh", blast3)
- bm3.Scale = Vector3.new(3,3,3)
- bm3.MeshType = "Sphere"
- for i = 1,300 do swait()
- sp2.Transparency = sp2.Transparency + (1/300)
- blast.Transparency = blast.Transparency + (1/300)
- blast2.Transparency = blast2.Transparency + (1/300)
- blast3.Transparency = blast3.Transparency + (1/300)
- sp2.Size = sp2.Size + Vector3.new(.25,.25,.25)
- bm.Scale = bm.Scale + Vector3.new(.25,.25,.25)
- bm2.Scale = bm2.Scale + Vector3.new(.20,.20,.20)
- bm3.Scale = bm3.Scale + Vector3.new(.20,.20,.20)
- sp2.CFrame = cf
- blast.CFrame = cf
- blast2.CFrame = cf
- blast3.CFrame = cf
- end
- sp2:Destroy()
- blast:Destroy()
- blast2:Destroy()
- blast3:Destroy()
- otheranims=false
- attack = false
- end
- attackfour = function()
- attack = true
- otheranims=true
- for i = 0, 1, 0.13 do
- swait()
- end
- for i = 0, 1, 0.1 do
- swait()
- end
- otheranims=false
- attack = false
- end
- --[[]]----[[Moves]]----[[]]--
- maus.KeyDown:connect(function(kei)
- if kei=='z' --[[and not attack]] then
- attackone()
- elseif kei=='x' --[[and not attack]] then
- attacktwo()
- elseif kei=='c' --[[and not attack]] then
- attackthree()
- elseif kei=='v' --[[and not attack]] then
- attackfour()
- 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 * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(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 + Vector3.new(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 * Vector3.new(0, .5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(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 + Vector3.new(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]
- elseif Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment