Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:service'Players'.LocalPlayer
- local pl = plr
- repeat wait() until plr.Character
- local chr = plr.Character
- local ch = chr
- local Character = chr
- 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
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local torso = chr.Torso
- local otheranims=false
- local swimming=false
- local attacking =false
- function punchSfx()
- local punch1s = Instance.new("Sound",chr.Torso)
- game:service'Debris':AddItem(punch1s,1)
- punch1s.Volume=3
- punch1s.SoundId='rbxassetid://541909763'
- punch1s.PlaybackSpeed = 1.2
- punch1s:Play()
- end
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- --//*CHARACTER
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- 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
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 0))
- local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",Vector3.new(0,0,0))
- EffectPart.Anchored = true
- local BillboardGui = Instance.new("BillboardGui")
- BillboardGui.Size = UDim2.new(3, 0, 3, 0)
- BillboardGui.Adornee = EffectPart
- local TextLabel = Instance.new("TextLabel")
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Text = Text
- TextLabel.TextColor3 = Color
- TextLabel.TextScaled = true
- TextLabel.Font = Enum.Font.ArialBold
- TextLabel.Parent = BillboardGui
- BillboardGui.Parent = EffectPart
- game.Debris:AddItem(EffectPart, (Time + 0.1))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- local h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=chr.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- local c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- local Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- local blocked=false
- local block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- if h.Health == 0 and h.Parent.Name == "Lost Soul" then
- game.Players.LocalPlayer:WaitForChild("leaderstats").Currency.Value = game.Players.LocalPlayer:WaitForChild("leaderstats").Currency.Value + 23
- end
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health=h.Health-(Damage/2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
- end
- if Type=="Knockdown" then
- local hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=0
- bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003)
- bodvol.Parent=hit
- local rl=Instance.new("BodyAngularVelocity")
- rl.P=0
- rl.maxTorque=Vector3.new(1,1,1)*1
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,2)
- game:GetService("Debris"):AddItem(rl,2)
- end
- end
- end
- --make hair here :/
- ch["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
- shirt = Instance.new("Shirt", ch)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", ch)
- pants.Name = "Pants"
- ch.Shirt:Remove()
- ch.Pants:Remove()
- ch.Shirt.ShirtTemplate = ("http://www.roblox.com/asset/?id = 539481437")
- ch.Pants.PantsTemplate = ("http://www.roblox.com/asset/?id = 539482020")
- ch.Head.face.Texture = ("rbxassetid://683375744")
- for i,v in pairs(ch:GetChildren()) do if v:IsA("Accessory") then
- v:Remove()
- end
- end
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Attachment3 = Instance.new("Attachment")
- Vector3Value4 = Instance.new("Vector3Value")
- Weld5 = Instance.new("Weld")
- Part1.Name = "Handle"
- Part1.Parent = game.Players.LocalPlayer.Character
- Part1.Anchored = false
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Rotation = Vector3.new(8.84999943, 70.3199997, -8.34000015)
- Part1.CanCollide = false
- Part1.Locked = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(1.60002756, 0.800000012, 1.59999776)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(-718.445313, -25.8889561, 151.164215)
- Part1.Orientation = Vector3.new(2.97000003, 70.5299988, 0)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://560152258"
- SpecialMesh2.Scale = Vector3.new(7, 6.30000019, 6)
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(7, 6.30000019, 6)
- Attachment3.Name = "HairAttachment"
- Attachment3.Parent = Part1
- Attachment3.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
- Attachment3.CFrame = CFrame.new(0, -0.100000001, -0.300000012, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
- Attachment3.Position = Vector3.new(0, -0.100000001, -0.300000012)
- Attachment3.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
- Attachment3.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
- Vector3Value4.Name = "OriginalSize"
- Vector3Value4.Parent = Part1
- Vector3Value4.Value = Vector3.new(1.60002756, 0.800000012, 1.59999776)
- Weld5.Name = "AccessoryWeld"
- Weld5.Parent = Part1
- Weld5.C0 = CFrame.new(0, -0.100000001, -0.300000012, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
- Weld5.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld5.Part0 = Part1
- Weld5.Part1 = game.Players.LocalPlayer.Character.Head
- ---//*DEBOUNCES
- canChangeFromC = true
- canChangeFromA = true
- canChangeFromCF = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ----*\\
- ---
- ----*\\
- --//*Instances
- ---*\\
- ----
- local multiversalThreat = false
- -----*\\
- chr.Animate.Disabled=true
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local RunSpeed=30
- local WlkSpeed=16
- 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
- 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(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)
- -----
- ---------EFFECTS
- ---------
- ---------DEBOUNCE ENABLE
- canChangeFromCF = true
- canChangeFromA = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- ---------EFFECTS
- ---------
- ---------DEBOUNCE ENABLE
- canChangeFromCF = true
- canChangeFromC = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- ---------DEBOUNCE ENABLE
- wait(1)
- canChangeFromC = true
- canChangeFromA = true
- canChangeFromSF = true
- canChangeFromPT = true
- canChangeFromGT = true
- canChangeFromUT = true
- ----
- canChangeFromMT = true
- ---------
- ---//*MOVES
- --*\\
- 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)
- function debounce(func)
- local isRunning = false -- Create a local debounce variable
- return function(...) -- Return a new function
- if not isRunning then
- isRunning = true
- func(...) -- Call it with the original arguments
- isRunning = false
- end
- end
- end
- local punch1 = false
- local punch2 = false
- local punch_delay = 0.4
- local blue = false
- local dmg_val = 1
- function phit1()
- local rm = Instance.new('Part',rarm)
- rm.Transparency = 1
- rm.Name = "rm"
- rm.CanCollide = false
- rm.Anchored = false
- rm.Size = Vector3.new(1.1, .1, 1.1)
- rm.BrickColor=BrickColor.new("Neon orange")
- local rmm = Instance.new("SpecialMesh",rm)
- rmm.MeshId = "rbxasset://fonts/rightarm.mesh"
- rmm.Scale = Vector3.new(1.1, .1, 1.1)
- local rw = Instance.new("Weld",rm)
- rw.Part0=rm
- rw.Part1=rarm
- rw.C0=CFrame.new(0,.8,0)
- rm.Touched:connect(debounce(function(hit)
- dmg = true
- if hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
- hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(dmg_val)
- end
- game:GetService'Debris':AddItem(rm,.00001)
- end))
- end
- function phit2()
- local rm = Instance.new('Part',larm)
- rm.Transparency = 1
- rm.Name = "lm"
- rm.CanCollide = false
- rm.Anchored = false
- rm.Size = Vector3.new(1.1, .1, 1.1)
- rm.BrickColor=BrickColor.new("Neon orange")
- local rmm = Instance.new("SpecialMesh",rm)
- rmm.MeshId = "rbxasset://fonts/rightarm.mesh"
- rmm.Scale = Vector3.new(1.1, .1, 1.1)
- local rw = Instance.new("Weld",rm)
- rw.Part0=rm
- rw.Part1=larm
- rw.C0=CFrame.new(0,.8,0)
- rm.Touched:connect(debounce(function(hit)
- dmg = true
- if hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
- hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(dmg_val)
- end
- rm:Destroy()
- end))
- end
- AAura = Instance.new("ParticleEmitter")
- maus.KeyDown:connect(function(kei)
- if kei == "q" then
- orb = true
- anim = "attackin"
- if orb == true 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(0),math.rad(70)),1)
- local pew = Instance.new("Sound",chr.Torso)
- pew.Volume = 1
- pew.SoundId='rbxassetid://586187912'
- pew:Play()
- local Wave=Instance.new("Part",chr)
- Wave.BrickColor = BrickColor.new("Deep blue")
- Wave.Size = Vector3.new(1,1,1)
- Wave.Name = "Wave"
- Wave.Material = 'Neon'
- Wave.Transparency = 0
- Wave.Shape = "Ball"
- Wave.CanCollide = false
- Wave.CFrame = rutprt.CFrame*CFrame.new(1,0,1)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
- local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = chr.HumanoidRootPart.CFrame.lookVector*185
- Wave.Touched:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") then
- if hit.Anchored == false and hit.Parent ~= chr then
- Damagefunc(Wave,hit,5,8,math.random(3,3),"Normal",RootPart,.2,1)
- end
- end
- end)
- end
- end
- end)
- maus.KeyUp:connect(function(kei)
- if kei == "q" then
- orb = false
- anim = "Idling"
- end
- end)
- maus.KeyDown:connect(function(kei)
- if kei == "1" then
- AAura.Parent = nil
- spawn(function()
- for i=1,55 do
- wait()
- local c = chr
- local radius = 8
- local pos = torso.CFrame
- local clrz = {'White','White'};
- for i = 1,2.7 do
- local clr = clrz[math.random(1,#clrz)]
- pos = torso.CFrame
- local p = Instance.new('Part',c)
- local mafa = math.random(-360,360)
- p.CanCollide = false
- p.Size = Vector3.new(1,1,1)
- local m = Instance.new('SpecialMesh',p)
- m.MeshType = 'Sphere'
- spawn(function()
- for i = 0,50 do
- local int,int2 = .05,.05
- m.Scale = m.Scale - Vector3.new(int,int,int)
- p.Transparency = p.Transparency + int2
- swait()
- end
- end)
- p.BrickColor = BrickColor.new(clr)
- p.Material = 'Neon'
- p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
- local bp = Instance.new('BodyPosition',p)
- bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0)
- bp.D = 100
- bp.P = 300
- bp.Position = pos.p
- game.Debris:AddItem(p,10)
- end
- end
- end)
- wait(3)
- annoyedPOWERUP = Instance.new("Sound")
- annoyedPOWERUP.Parent = chr.Torso
- annoyedPOWERUP.Volume = 1
- annoyedPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
- annoyedPOWERUP:Play()
- AExplodeP = Instance.new("Part",chr)
- AExplodeP.Anchored = true
- AExplodeP.TopSurface = 0
- AExplodeP.Material = "Neon"
- AExplodeP.BottomSurface = 0
- AExplodeP.CanCollide = false
- AExplodeP.CFrame = chr.Torso.CFrame
- AExplodeP.BrickColor = BrickColor.new("White")
- AExplodeP.Size = Vector3.new(1,1,1)
- AExplodeM = Instance.new("SpecialMesh",AExplodeP)
- AExplodeM.MeshType = "Sphere"
- blue = false
- Part1.BrickColor = BrickColor.new("Really black")
- ch.Head.face.Texture = ("rbxassetid://683375744")
- for i = 1,50,2 do wait()
- AExplodeM.Scale = Vector3.new(i,i,i)
- AExplodeP.Transparency = i/50
- end
- AExplodeP:Remove()
- dmg_val = .5
- punch_delay = .2
- end
- if kei == "2" and blue == false then
- blue = true
- annoyedPOWERUP = Instance.new("Sound")
- annoyedPOWERUP.Parent = chr.Torso
- annoyedPOWERUP.Volume = 1
- annoyedPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
- annoyedPOWERUP:Play()
- AExplodeP = Instance.new("Part",chr)
- AExplodeP.Anchored = true
- AExplodeP.TopSurface = 0
- AExplodeP.Material = "Neon"
- AExplodeP.BottomSurface = 0
- AExplodeP.CanCollide = false
- AExplodeP.CFrame = chr.Torso.CFrame
- AExplodeP.BrickColor = BrickColor.new("Cyan")
- AAura.Parent = chr.Torso
- local color1 = Color3.new(255,255,255)
- local color2 = Color3.new(0,20,255)
- AAura.Texture = "rbxassetid://347730682"
- AAura.Color = ColorSequence.new(color1,color2)
- AAura.Size = NumberSequence.new(6,6,6,6,6,6)
- AAura.Lifetime = NumberRange.new(0.3,0.3,0.3,0.3,0.3)
- AAura.Rate = 200
- AAura.LightEmission = .7
- AAura.Transparency = NumberSequence.new(0.6,0.6,0.6,0.6,0.6,0.6)
- AAura.Speed = NumberRange.new(10,10,10,10,10,10)
- AAura.LockedToPart = true
- AExplodeP.Size = Vector3.new(1,1,1)
- AExplodeM = Instance.new("SpecialMesh",AExplodeP)
- AExplodeM.MeshType = "Sphere"
- AExplodeP2 = Instance.new("Part",chr)
- AExplodeP2.Anchored = true
- AExplodeP2.TopSurface = 0
- AExplodeP2.Material = "Neon"
- AExplodeP2.BottomSurface = 0
- AExplodeP2.CanCollide = false
- AExplodeP2.CFrame = chr.Torso.CFrame
- AExplodeP2.BrickColor = BrickColor.new("Cyan")
- AExplodeP2.Size = Vector3.new(1,1,1)
- AExplodeM2 = Instance.new("FileMesh",AExplodeP2)
- AExplodeM2.MeshId = "rbxassetid://20329976"
- Part1.BrickColor = BrickColor.new("Cyan")
- ch.Head.face.Texture = ("rbxassetid://683375946")
- dmg_val = 1
- punch_delay = .06
- for i = 1,50,2 do wait()
- AExplodeM.Scale = Vector3.new(i,i,i)
- AExplodeP.Transparency = i/50
- AExplodeM2.Scale = Vector3.new(i,i-30,i)
- AExplodeP2.Transparency = i/50
- end
- AExplodeP:Remove()
- AExplodeP2:Remove()
- end
- end)
- spawn(function()
- while wait() do
- if attacking then
- otheranims = true
- if attacking == true then
- punch1 = false
- punch2 = true
- anim = "Punch2"
- wait(0.05)
- if anim == "Punch2" then
- punchSfx()
- wait(punch_delay)
- end
- punch2 = false
- punch1 = true
- anim = "Punch1"
- wait(0.05)
- if anim == "Punch1" then
- punchSfx()
- wait(punch_delay)
- end
- end
- end
- end
- end)
- maus.Button1Down:connect(function()
- otheranims = false
- attacking = true
- punch1 = false
- punch2 = false
- end)
- maus.Button1Up:connect(function()
- otheranims = false
- attacking = false
- punch1 = false
- punch2 = false
- anim = "Idling"
- 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 anim=="Idling" and attacking == false 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(50),0,math.rad(3)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(120),0,math.rad(-3)),.1)
- 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(-4)),.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(4)),.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,math.rad(-60),0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.rad(0),math.cos(syne/idlesineinc)/35+math.rad(60),math.rad(0)),.1)
- end
- if anim=="Walking" and attacking == false then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.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)
- 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" and attacking == false then
- RunSpeed = 50
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
- hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55,0)*CFrame.Angles(math.rad(15),0,0),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-25),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
- end
- if anim=="Jumping" and attacking == false 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)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2.3,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,-.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" and attacking == false 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)
- 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 anim=="Punch1" 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(70)),.6)
- 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)),.6)
- 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)),.6)
- 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)),.6)
- 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,math.rad(-70),0),.6)
- 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(70),math.rad(0)),.6)
- phit1()
- end
- if anim == "Punch2" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.6)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-70)),.6)
- 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)),.6)
- 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)),.6)
- 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,math.rad(70),0),.6)
- 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(-70),math.rad(0)),.6)
- phit2()
- 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)
Add Comment
Please, Sign In to add comment