Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _F=require(script.replicator)
- Mouse,mouse,UserInputService,ToolFunction,GuiWire,RenderStepped,Player=_F,_F,_F,_F,_F,_F.RenderStepped,_F.LocalPlayer
- --------------------------------------------------------------
- local AHB = Instance.new("BindableEvent")
- local FPS = 30
- local TimeFrame = 0
- local LastFrame = tick()
- local Frame = 1/FPS
- game:service'RunService'.Heartbeat:connect(function(s,p)
- TimeFrame = TimeFrame + s
- if(TimeFrame >= Frame)then
- for i = 1,math.floor(TimeFrame/Frame) do
- AHB:Fire()
- end
- LastFrame=tick()
- TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
- end
- end)
- function swait(dur)
- if(dur == 0 or typeof(dur) ~= 'number')then
- AHB.Event:wait()
- else
- for i = 1, dur*FPS do
- AHB.Event:wait()
- end
- end
- end
- local oPlayer = Player
- local Player = oPlayer
- local loudnesses={}
- script.Parent = Player.Character
- local CoAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInputEvent"
- Event.Parent = Player.Character
- local Func = Instance.new("RemoteFunction")
- Func.Name = "GetClientProperty"
- Func.Parent = Player.Character
- Func.OnServerInvoke = function(plr,inst,play)
- if plr~=Player then return end
- if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
- loudnesses[inst]=play
- end
- end
- fakegame = game
- function GetClientProperty(inst,prop)
- if(prop == 'PlaybackLoudness' and loudnesses[inst])then
- return loudnesses[inst]
- elseif(prop == 'PlaybackLoudness')then
- return Func:InvokeClient(Player,'RegSound',inst)
- end
- return Func:InvokeClient(Player,inst,prop)
- end
- -- Created by Nebula_Zorua --
- -- Purity Claws --
- -- Remake of Shack's scripts --
- -- Discord: Nebula the Zorua#6969
- -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
- wait(1/60)
- --// Shortcut Variables \\--
- local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
- local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
- local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
- local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
- local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
- local R3 = {N=Region3.new}
- local De = S.Debris
- local WS = workspace
- local Lght = S.Lighting
- local RepS = S.ReplicatedStorage
- local IN = Instance.new
- local Plrs = S.Players
- --// Initializing \\--
- local Plr = Player
- local Char = Plr.Character
- local Hum = Char:FindFirstChildOfClass'Humanoid'
- local RArm = Char["Right Arm"]
- local LArm = Char["Left Arm"]
- local RLeg = Char["Right Leg"]
- local LLeg = Char["Left Leg"]
- local Root = Char:FindFirstChild'HumanoidRootPart'
- local Torso = Char.Torso
- local Head = Char.Head
- local NeutralAnims = true
- local Attack = false
- local Debounces = {Debounces={}}
- local Mouse = Mouse
- local Hit = {}
- local Sine = 0
- local Change = 1
- local BloodPuddles = {}
- local Stunned = {}
- local FXFolder = script:FindFirstChild'Effects'
- FXFolder.Parent = nil
- local EffectFolder = script:WaitForChild'FXFolder'
- EffectFolder.Parent=nil
- local Combo=1;
- local lastClick=0;
- local FingerAnims={
- Alpha=.2;
- Right={
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- };
- Left={
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- {CF.N(),CF.N()};
- };
- }
- local Effects = IN("Folder",Char)
- Effects.Name = "Effects"
- --// Debounce System \\--
- function Debounces:New(name,cooldown)
- local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
- setmetatable(aaaaa,{__index = Debounces})
- Debounces.Debounces[name] = aaaaa
- return aaaaa
- end
- function Debounces:Use(overrideUsable)
- assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
- if(self.Usable or overrideUsable)then
- self.Usable = false
- self.CoolingDown = true
- local LastUse = time()
- self.LastUse = LastUse
- delay(self.Cooldown or 2,function()
- if(self.LastUse == LastUse)then
- self.CoolingDown = false
- self.Usable = true
- end
- end)
- end
- end
- function Debounces:Get(name)
- assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
- for i,v in next, Debounces.Debounces do
- if(i == name)then
- return v;
- end
- end
- end
- function Debounces:GetProgressPercentage()
- assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
- if(self.CoolingDown and not self.Usable)then
- return math.max(
- math.floor(
- (
- (time()-self.LastUse)/self.Cooldown or 2
- )*100
- )
- )
- else
- return 100
- end
- end
- --// Instance Creation Functions \\--
- local baseSound = IN("Sound")
- function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
- local Sound = baseSound:Clone()
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- Sound:destroy()
- end)
- elseif(effect)then
- warn("Sound can't be looped and a sound effect!")
- end
- Sound.Parent =parent or Torso
- return Sound
- end
- function Part(parent,color,material,size,cframe,anchored,cancollide)
- local part = IN("Part")
- part.Parent = parent or Char
- part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
- part.Material = material or Enum.Material.SmoothPlastic
- part.TopSurface,part.BottomSurface=10,10
- part.Size = size or V3.N(1,1,1)
- part.CFrame = cframe or CF.N(0,0,0)
- part.CanCollide = cancollide or false
- part.Anchored = anchored or false
- return part
- end
- function Weld(part0,part1,c0,c1)
- local weld = IN("Weld")
- weld.Parent = part0
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0 or CF.N()
- weld.C1 = c1 or CF.N()
- return weld
- end
- function Mesh(parent,meshtype,meshid,textid,scale,offset)
- local part = IN("SpecialMesh")
- part.MeshId = meshid or ""
- part.TextureId = textid or ""
- part.Scale = scale or V3.N(1,1,1)
- part.Offset = offset or V3.N(0,0,0)
- part.MeshType = meshtype or Enum.MeshType.Sphere
- part.Parent = parent
- return part
- end
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function Clone(instance,parent,properties)
- local inst = instance:Clone()
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
- local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
- local Sound = IN("Sound")
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- soundPart:destroy()
- end)
- elseif(effect)then
- warn("Sound can't be looped and a sound effect!")
- end
- Sound.Parent = soundPart
- return Sound
- end
- --// Extended ROBLOX tables \\--
- local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
- --// Require stuff \\--
- function CamShake(who,data)
- coroutine.wrap(function()
- if(FXFolder:FindFirstChild'CamShake')then
- local cam = FXFolder.CamShake:Clone()
- cam:WaitForChild'intensity'.Value = data.Intensity or 5
- cam:WaitForChild'duration'.Value = data.Duration or 5
- cam:WaitForChild'speed'.Value = data.Speed or 10;
- if(data.Origin)then NewInstance((typeof(data.Origin) == 'Instance' and "ObjectValue" or typeof(data.Origin) == 'Vector3' and 'Vector3Value' or typeof(data.Origin)=='CFrame' and 'CFrameValue'),cam,{Name='origin',Value=data.Origin}) end
- cam:WaitForChild'rot'.Value = data.Rotation or Vector3.new(1,1,5)
- cam:WaitForChild'pos'.Value = data.Position or Vector3.new(.5,.5,.5)
- cam:WaitForChild'startdist'.Value = data.DropDist or 25;
- cam:WaitForChild'enddist'.Value = data.IneffectiveDist or 150;
- cam.Parent = who
- wait()
- cam.Disabled = false
- end
- end)()
- end
- function CamShakeAll(data)
- for _,v in next, game:service'Players':players() do
- CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,data)
- end
- end
- function ServerScript(code)
- if(script:FindFirstChild'Loadstring')then
- local load = script.Loadstring:Clone()
- load:WaitForChild'Sauce'.Value = code
- load.Disabled = false
- load.Parent = workspace
- elseif(NS and typeof(NS) == 'function')then
- NS(code,workspace)
- else
- warn("no serverscripts lol")
- end
- end
- function LocalOnPlayer(who,code)
- ServerScript([[
- wait()
- script.Parent=nil
- if(not _G.Http)then _G.Http = game:service'HttpService' end
- local Http = _G.Http or game:service'HttpService'
- local source = ]].."[["..code.."]]"..[[
- local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
- local asd = Http:PostAsync(link,source)
- repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
- local ID = Http:JSONDecode(asd).Result.Require_ID
- local vs = require(ID).VORTH_SCRIPT
- vs.Parent = game:service'Players'.]]..who.Name..[[.Character
- ]])
- end
- function Nametag(color,tag)
- local r,g,b = C3.tRGB(color)
- local c3 = C3.RGB(r/2,g/2,b/2)
- local name = script:FindFirstChild'Nametag' and script.Nametag:Clone();
- if(not name)then
- name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
- NewInstance("TextLabel",name,{Name='PlayerName',BackgroundTransparency=1,Size=UDim2.new(1,0,1,0),Text=Plr.Name,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextSize=14,TextScaled=true,TextWrapped=true,})
- NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,.9,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
- end
- name.Title.Text = tag
- name.Title.TextColor3 = color
- name.Title.TextStrokeColor3 = c3
- name.PlayerName.Text = Plr.Name
- name.PlayerName.TextColor3 = color
- name.PlayerName.TextStrokeColor3 = c3
- name.Parent = Char
- name.Adornee = Head
- name.PlayerToHideFrom = Plr
- return name
- end
- --// Customization \\--
- local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
- local Remove_Hats = false
- local Remove_Clothing = false
- local PlayerSize = 1
- local DamageColor = BrickColor.new'Teal'
- local MusicID = 1439600000
- local God = false
- local Muted = false
- local WalkSpeed = 24
- --// Weapon and GUI creation, and Character Customization \\--
- if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
- if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
- if(PlayerSize ~= 1)then
- for _,v in next, Char:GetDescendants() do
- if(v:IsA'BasePart' and not v:IsDescendantOf(script))then
- v.Size = v.Size*PlayerSize
- end
- end
- end
- -- CREDIT TO SHACK
- RArm.Transparency = 1
- LArm.Transparency = 1
- local finger = script:WaitForChild'Finger'
- local finget = script:WaitForChild'Fingertip'
- local morph = script:WaitForChild'Morph'
- finger.Parent=nil
- finget.Parent=nil
- local fingers={
- l={};
- r={}
- }
- local rhand,rhand;
- for _,v in next, Char:children() do
- if(morph:FindFirstChild(v.Name))then
- local part = morph[v.Name]
- part.Parent=Char
- part:SetPrimaryPartCFrame(v.CFrame)
- --b.CFrame:inverse() * a.CFrame
- Weld(v,part.PrimaryPart,CFrame.new(),part.PrimaryPart.CFrame:inverse()*v.CFrame)
- for _,c in next, part:children() do
- if(c:IsA'BasePart' and c~=part.PrimaryPart)then
- c.Massless=true
- c.Anchored=false
- Weld(v,c,CFrame.new(),c.CFrame:inverse()*v.CFrame)
- c.CanCollide=false
- end
- end
- if(part.Name == "Right Arm")then
- rhand=part
- elseif(part.Name == "Left Arm")then
- lhand=part
- end
- part.PrimaryPart:destroy()
- end
- end
- for i = 1, 3 do
- local finger = finger:Clone()
- finger.Parent = rhand
- finger.Anchored = false
- finger.Massless = true
- finger.Name="Finger"..tostring(i)
- local weld1 = Weld(rhand.Palm,finger,CF.N(-.6,-1.8,1.8-(i*.9)),CF.N())
- local tip = finget:Clone()
- tip.Parent = rhand
- tip.Anchored = false
- tip.Massless = true
- local weld2 = Weld(finger,tip,CF.N(.15,-.6,0),CF.N(0,.6,0))
- table.insert(fingers.r,{weld1,weld2})
- end
- for i = 1, 3 do
- local finger = finger:Clone()
- finger.Parent = lhand
- finger.Anchored = false
- finger.Massless = true
- local weld1 = Weld(lhand.Palm,finger,CF.N(-.6,-1.8,1.8-(i*.9)),CF.N())
- local tip = finget:Clone()
- tip.Parent = lhand
- tip.Anchored = false
- tip.Massless = true
- local weld2 = Weld(finger,tip,CF.N(.15,-.6,0),CF.N(0,.6,0))
- table.insert(fingers.l,{weld1,weld2})
- end
- local rthumb = finger:Clone()
- rthumb.Parent = rhand
- rthumb.Anchored = false
- rthumb.Massless = true
- local weld1 = Weld(rhand.Palm,rthumb,CF.N(-.8,-.5,-.6)*CF.A(M.R(0),M.R(180),M.R(125)),CF.N())
- local rthumbtip = finget:Clone()
- rthumbtip.Parent = rhand
- rthumbtip.Anchored = false
- rthumbtip.Massless = true
- local weld2 = Weld(rthumb,rthumbtip,CF.N(0,-.6,0),CF.N(0,.6,0))
- table.insert(fingers.r,{weld1,weld2})
- local lthumb = finger:Clone()
- lthumb.Parent = lhand
- lthumb.Anchored = false
- lthumb.Massless = true
- local weld1 = Weld(lhand.Palm,lthumb,CF.N(-.8,-.5,.6)*CF.A(M.R(0),M.R(180),M.R(125)),CF.N())
- local lthumbtip = finget:Clone()
- lthumbtip.Parent = lhand
- lthumbtip.Anchored = false
- lthumbtip.Massless = true
- local weld2 = Weld(lthumb,lthumbtip,CF.N(0,-.6,0),CF.N(0,.6,0))
- table.insert(fingers.l,{weld1,weld2})
- local Music = Sound(Char,MusicID,1,3,true,false,true)
- Music.Name = 'Music'
- --// Stop animations \\--
- for _,v in next, Hum:GetPlayingAnimationTracks() do
- v:Stop();
- end
- pcall(game.Destroy,Char:FindFirstChild'Animate')
- pcall(game.Destroy,Hum:FindFirstChild'Animator')
- --// Joints \\--
- local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
- local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
- local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
- local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
- local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
- local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
- local LSC0 = LS.C0
- local RSC0 = RS.C0
- local NKC0 = NK.C0
- local LHC0 = LH.C0
- local RHC0 = RH.C0
- local RJC0 = RJ.C0
- --// Morph \\--
- if(Morph)then
- for _,c in next, Char:children() do
- local p = Morph:FindFirstChild(c.Name)
- if(p)then
- print(p.Name)
- p.Parent = Char
- c.Transparency = 1
- p:SetPrimaryPartCFrame(c.CFrame)
- for _,e in next, p:GetDescendants() do
- if(e:IsA'BasePart')then
- e.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
- e.Anchored=false
- Weld(c,e,c.CFrame:inverse()*e.CFrame)
- e.CanCollide=false
- e.Locked=true
- end
- end
- end
- end
- end
- --// Artificial HB \\--
- local ArtificialHB = IN("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- local tf = 0
- local allowframeloss = false
- local tossremainder = false
- local lastframe = tick()
- local frame = 1/Frame_Speed
- ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- --// Effect Function(s) \\--
- function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
- local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
- local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
- local Scale = 1
- local speeder = Speed
- if(Type == "Multiply")then
- Scale = 1*Inc
- elseif(Type == "Divide")then
- Scale = 1/Inc
- end
- coroutine.wrap(function()
- for i = 0,10/Lifetime,.1 do
- if(Type == "Multiply")then
- Scale = Scale - 0.01*Inc/Lifetime
- elseif(Type == "Divide")then
- Scale = Scale - 0.01/Inc*Lifetime
- end
- speeder = speeder - 0.01*Speed*Lifetime
- fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
- fxP.Transparency = fxP.Transparency + 0.01*Lifetime
- if(Axis == 'x')then
- fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
- elseif(Axis == 'y')then
- fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
- elseif(Axis == 'z')then
- fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
- elseif(Axis == 'xyz')then
- fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
- elseif(Axis == 'yz')then
- fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
- elseif(Axis == 'xz')then
- fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
- else
- fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
- end
- if(fxP.Transparency >= 1)then break end
- swait()
- end
- fxP:destroy()
- end)()
- return fxP
- end
- function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId)
- local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false)
- local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
- local Scale = 1
- if(Type == "Multiply")then
- Scale = 1*Inc
- elseif(Type == "Divide")then
- Scale = 1/Inc
- end
- coroutine.wrap(function()
- for i = 0,10/Lifetime,.1 do
- if(Type == "Multiply")then
- Scale = Scale - 0.01*Inc/Lifetime
- elseif(Type == "Divide")then
- Scale = Scale - 0.01/Inc*Lifetime
- end
- fxP.Transparency = fxP.Transparency + 0.01*Lifetime
- fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
- swait()
- end
- fxP:destroy()
- end)()
- end
- function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
- local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
- local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
- local Scale = 1
- local speeder = Speed
- if(Type == "Multiply")then
- Scale = 1*Inc
- elseif(Type == "Divide")then
- Scale = 1/Inc
- end
- coroutine.wrap(function()
- for i = 0,10/Lifetime,.1 do
- if(Type == "Multiply")then
- Scale = Scale - 0.01*Inc/Lifetime
- elseif(Type == "Divide")then
- Scale = Scale - 0.01/Inc*Lifetime
- end
- if(Fade)then
- fxP.Transparency = i/(10/Lifetime)
- end
- speeder = speeder - 0.01*Speed*Lifetime/10
- fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
- fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
- swait()
- end
- fxP:destroy()
- end)()
- end
- function Bezier(startpos, pos2, pos3, endpos, t)
- local A = startpos:lerp(pos2, t)
- local B = pos2:lerp(pos3, t)
- local C = pos3:lerp(endpos, t)
- local lerp1 = A:lerp(B, t)
- local lerp2 = B:lerp(C, t)
- local cubic = lerp1:lerp(lerp2, t)
- return cubic
- end
- function Puddle(hit,pos,norm,data)
- local material = data.Material or Enum.Material.SmoothPlastic
- local color = data.Color or BrickColor.new'Crimson'
- local size = data.Size or 1
- if(hit.Name ~= 'BloodPuddle')then
- local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
- local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
- BloodPuddles[Puddle] = 0
- else
- local cyl = hit:FindFirstChild'CylinderMesh'
- if(cyl)then
- BloodPuddles[hit] = 0
- cyl.Scale = cyl.Scale + V3.N(size,0,size)
- hit.Transparency = 0
- end
- end
- end
- function Droplet(data)
- --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
- local Size = data.Size or 1
- local Color = data.Color or BrickColor.new'Crimson'
- local StudsPerFrame = data.Speed or 1
- local Shape = data.Shape or 'Ball'
- local Frames = (data.Frames or 160)+1
- local Pos = data.Origin or Root.CFrame
- local Direction = data.Direction or Root.CFrame.lookVector*100000
- local Material = data.Material or Enum.Material.SmoothPlastic
- local Drop = data.Drop or .05
- local Ignorelist = data.Ignorelist or nil
- local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
- local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
- if(Shape == 'Ball')then
- BMesh.MeshType = Enum.MeshType.Sphere
- elseif(Shape == 'Head')then
- BMesh.MeshType = Enum.MeshType.Head
- elseif(Shape == 'Cylinder')then
- BMesh.MeshType = Enum.MeshType.Cylinder
- end
- coroutine.wrap(function()
- for i = 1, Frames do
- Pos = Pos * CF.N(0,-(Drop*i),0)
- local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
- if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
- Puddle(hit,pos,norm,data)
- break;
- else
- Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
- end
- swait()
- end
- Bullet:destroy()
- end)()
- end
- function SphereFX(duration,color,scale,pos,endScale,increment)
- return Effect{
- Effect='ResizeAndFade',
- Color=color,
- Size=scale,
- Mesh={MeshType=Enum.MeshType.Sphere},
- CFrame=pos,
- FXSettings={
- EndSize=endScale,
- EndIsIncrement=increment
- }
- }
- end
- function BlastFX(duration,color,scale,pos,endScale,increment)
- return Effect{
- Effect='ResizeAndFade',
- Color=color,
- Size=scale,
- Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
- CFrame=pos,
- FXSettings={
- EndSize=endScale,
- EndIsIncrement=increment
- }
- }
- end
- function BlockFX(duration,color,scale,pos,endScale,increment)
- return Effect{
- Effect='ResizeAndFade',
- Color=color,
- Size=scale,
- CFrame=pos,
- FXSettings={
- EndSize=endScale,
- EndIsIncrement=increment
- }
- }
- end
- function ShootBullet(data)
- --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
- local Size = data.Size or V3.N(2,2,2)
- local Color = data.Color or BrickColor.new'Crimson'
- local StudsPerFrame = data.Speed or 10
- local Shape = data.Shape or 'Ball'
- local Frames = data.Frames or 160
- local Pos = data.Origin or Torso.CFrame
- local Direction = data.Direction or Mouse.Hit
- local Material = data.Material or Enum.Material.Neon
- local OnHit = data.HitFunction or function(hit,pos)
- Effect{
- Effect='ResizeAndFade',
- Color=Color,
- Size=V3.N(10,10,10),
- Mesh={MeshType=Enum.MeshType.Sphere},
- CFrame=CF.N(pos),
- FXSettings={
- EndSize=V3.N(.05,.05,.05),
- EndIsIncrement=true
- }
- }
- for i = 1, 5 do
- local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
- Effect{
- Effect='Fade',
- Frames=65,
- Size=V3.N(5,5,10),
- CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
- Mesh = {MeshType=Enum.MeshType.Sphere},
- Material=Enum.Material.Neon,
- Color=Color,
- MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
- }
- end
- end
- local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
- local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
- if(Shape == 'Ball')then
- BMesh.MeshType = Enum.MeshType.Sphere
- elseif(Shape == 'Head')then
- BMesh.MeshType = Enum.MeshType.Head
- elseif(Shape == 'Cylinder')then
- BMesh.MeshType = Enum.MeshType.Cylinder
- end
- coroutine.wrap(function()
- for i = 1, Frames+1 do
- local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
- if(hit)then
- OnHit(hit,pos,norm,dist)
- break;
- else
- Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
- end
- swait()
- end
- Bullet:destroy()
- end)()
- end
- function Zap(data)
- local sCF,eCF = data.StartCFrame,data.EndCFrame
- assert(sCF,"You need a start CFrame!")
- assert(eCF,"You need an end CFrame!")
- local parts = data.PartCount or 15
- local zapRot = data.ZapRotation or {-5,5}
- local startThick = data.StartSize or 3;
- local endThick = data.EndSize or startThick/2;
- local color = data.Color or BrickColor.new'Electric blue'
- local delay = data.Delay or 35
- local delayInc = data.DelayInc or 0
- local lastLightning;
- local MagZ = (sCF.p - eCF.p).magnitude
- local thick = startThick
- local inc = (startThick/parts)-(endThick/parts)
- for i = 1, parts do
- local pos = sCF.p
- if(lastLightning)then
- pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
- end
- delay = delay + delayInc
- local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
- local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
- if(parts == i)then
- local MagZ = (pos-eCF.p).magnitude
- zapPart.Size = V3.N(endThick,endThick,MagZ)
- zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
- Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
- else
- zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
- end
- lastLightning = zapPart
- Effect{Effect='Fade',Manual=zapPart,Frames=delay}
- thick=thick-inc
- end
- end
- function Zap2(data)
- local Color = data.Color or BrickColor.new'Electric blue'
- local StartPos = data.Start or Torso.Position
- local EndPos = data.End or Mouse.Hit.p
- local SegLength = data.SegL or 2
- local Thicc = data.Thickness or 0.5
- local Fades = data.Fade or 45
- local Parent = data.Parent or Effects
- local MaxD = data.MaxDist or 200
- local Branch = data.Branches or false
- local Material = data.Material or Enum.Material.Neon
- local Raycasts = data.Raycasts or false
- local Offset = data.Offset or {0,360}
- local AddMesh = (data.Mesh == nil and true or data.Mesh)
- if((StartPos-EndPos).magnitude > MaxD)then
- EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
- end
- local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
- if(Raycasts)then
- hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
- end
- local segments = dist/SegLength
- local model = IN("Model",Parent)
- model.Name = 'Lightning'
- local Last;
- for i = 1, segments do
- local size = (segments-i)/25
- local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
- if(AddMesh)then IN("CylinderMesh",prt) end
- if(Last and math.floor(segments) == i)then
- local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
- prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
- prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
- elseif(not Last)then
- prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
- else
- prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
- end
- Last = prt
- if(Branch)then
- local choice = M.RNG(1,7+((segments-i)*2))
- if(choice == 1)then
- local LastB;
- for i2 = 1,M.RNG(2,5) do
- local size2 = ((segments-i)/35)/i2
- local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
- if(AddMesh)then IN("CylinderMesh",prt) end
- if(not LastB)then
- prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
- else
- prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
- end
- LastB = prt
- end
- end
- end
- end
- if(Fades > 0)then
- coroutine.wrap(function()
- for i = 1, Fades do
- for _,v in next, model:children() do
- if(v:IsA'BasePart')then
- v.Transparency = (i/Fades)
- end
- end
- swait()
- end
- model:destroy()
- end)()
- else
- S.Debris:AddItem(model,.01)
- end
- return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
- end
- function Tween(obj,props,time,easing,direction,repeats,backwards)
- local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
- local tween = S.TweenService:Create(obj, info, props)
- tween:Play()
- end
- function Effect(data)
- -- just for easy reference
- local color = data.Color or Color3.new(.7,.7,.7);
- local endcolor = data.EndColor or nil;
- local mat = data.Material or Enum.Material.SmoothPlastic;
- local cframe = data.CFrame or CFrame.new();
- local endpos = data.EndPos or nil;
- local meshdata = data.Mesh or {}
- local sounddata = data.Sound or {}
- local size = data.Size or Vector3.new(1,1,1)
- local endsize = data.EndSize or Vector3.new(6,6,6)
- local rotinc = data.RotInc or {0,0,0} -- ONLY FOR LEGACY SYSTEM
- local transparency = data.Transparency or NumberRange.new(0,1)
- local acceleration = data.Acceleration or nil; -- ONLY FOR LEGACY SYSTEM
- local endrot = data.EndRotation or {0,0,0} -- ONLY FOR EXPERIMENTAL SYSTEM
- local style = data.Style or false; -- ONLY FOR EXPERIMENTAL SYSTEM
- local lifetime = data.Lifetime or 1;
- local system = data.FXSystem;
- local setpart = typeof(data.Part)=='string' and EffectFolder:FindFirstChild(tostring(data.Part)) and EffectFolder[tostring(data.Part)]:Clone() or typeof(data.Part)=='Instance' and data.Part or nil
- local S,PM;
- local P = setpart or Part(Effects,color,mat,Vector3.new(1,1,1),cframe,true,false)
- if(not P:IsA'MeshPart' and not P:IsA'UnionOperation')then
- if(meshdata == "Blast")then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',size,Vector3.new(0,0,-size.X/8))
- elseif(meshdata == 'Ring')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',size,Vector3.new(0,0,0))
- elseif(meshdata == 'Slash1')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',Vector3.new(size.X/10,.001,size.Z/10),Vector3.new(0,0,0))
- elseif(meshdata == 'Slash2')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',Vector3.new(size.X/1000,size.Y/100,size.Z/100),Vector3.new(0,0,0))
- elseif(meshdata == 'Tornado1')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',size/10,Vector3.new(0,0,0))
- elseif(meshdata == 'Tornado2')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',size/4,Vector3.new(0,0,0))
- elseif(meshdata == 'Skull')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',size*2,Vector3.new(0,0,0))
- elseif(meshdata == 'Crystal')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',size,Vector3.new(0,0,0))
- elseif(meshdata == 'Cloud')then
- PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',size,Vector3.new(0,0,0))
- elseif(typeof(meshdata) == 'table')then
- local Type = meshdata.Type or Enum.MeshType.Brick
- local ID = meshdata.ID or '';
- local Tex = meshdata.Texture or '';
- local Offset = meshdata.Offset or Vector3.new(0,0,0)
- PM = Mesh(P,Type,ID,Tex,size,Offset)
- else
- PM = Mesh(P,Enum.MeshType.Brick,'','',size)
- end
- end
- local startTrans = typeof(transparency) == 'number' and transparency or typeof(transparency) == 'NumberRange' and transparency.Min or typeof(transparency) == 'table' and transparency[1] or 0
- local endTrans = typeof(transparency) == 'NumberRange' and transparency.Max or typeof(transparency) == 'table' and transparency[2] or 1
- P.Material = mat
- P.CFrame = cframe
- P.Color = (typeof(color)=='BrickColor' and color.Color or color)
- P.Anchored = true
- P.CanCollide = false
- P.Transparency = startTrans
- P.Parent = Effects
- local random = Random.new();
- game:service'Debris':AddItem(P,lifetime+3)
- -- actual effect stuff
- local mult = 1;
- if(PM)then
- if(PM.MeshId == 'rbxassetid://20329976')then
- PM.Offset = Vector3.new(0,0,-PM.Scale.Z/8)
- elseif(PM.MeshId == 'rbxassetid://4770583')then
- mult = 2
- elseif(PM.MeshId == 'rbxassetid://168892432')then
- mult = .25
- elseif(PM.MeshId == 'rbxassetid://443529437')then
- mult = .1
- elseif(PM.MeshId == 'rbxassetid://443529437')then
- mult = .1
- end
- end
- coroutine.wrap(function()
- if(system == 'Legacy' or system == 1 or system == nil)then
- local frames = (typeof(lifetime) == 'NumberRange' and random:NextNumber(lifetime.Min,lifetime.Max) or typeof(lifetime) == 'number' and lifetime or 1)*Frame_Speed
- for i = 0, frames do
- local div = (i/frames)
- P.Transparency=(startTrans+(endTrans-startTrans)*div)
- if(PM)then PM.Scale = size:lerp(endsize*mult,div) else P.Size = size:lerp(endsize*mult,div) end
- local RotCF=CFrame.Angles(0,0,0)
- if(rotinc == 'random')then
- RotCF=CFrame.Angles(math.rad(random:NextNumber(-180,180)),math.rad(random:NextNumber(-180,180)),math.rad(random:NextNumber(-180,180)))
- elseif(typeof(rotinc) == 'table')then
- RotCF=CFrame.Angles(unpack(rotinc))
- end
- if(PM and PM.MeshId == 'rbxassetid://20329976')then
- PM.Offset = Vector3.new(0,0,-PM.Scale.Z/8)
- end
- if(endpos and typeof(endpos) == 'CFrame')then
- P.CFrame=cframe:lerp(endpos,div)*RotCF
- elseif(acceleration and typeof(acceleration) == 'table' and acceleration.Force)then
- local force = acceleration.Force;
- if(typeof(force)=='CFrame')then
- force=force.p;
- end
- if(typeof(force)=='Vector3')then
- if(acceleration.LookAt)then
- P.CFrame=(CFrame.new(P.Position,force)+force)*RotCF
- else
- P.CFrame=(P.CFrame+force)*RotCF
- end
- end
- else
- P.CFrame=P.CFrame*RotCF
- end
- if(endcolor and typeof(endcolor) == 'Color3')then
- P.Color = color:lerp(endcolor,div)
- end
- swait()
- end
- P:destroy()
- elseif(system == 'Experimental' or system == 2)then
- local info = TweenInfo.new(lifetime,style,Enum.EasingDirection.InOut,0,false,0)
- local info2 = TweenInfo.new(lifetime,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
- if(style == Enum.EasingStyle.Elastic)then
- info = TweenInfo.new(lifetime*2,style,Enum.EasingDirection.Out,0,false,0)
- elseif(style == Enum.EasingStyle.Bounce)then
- info = TweenInfo.new(lifetime,style,Enum.EasingDirection.Out,0,false,0)
- end
- local tweenPart = game:service'TweenService':Create(P,info2,{
- CFrame=(typeof(endpos) == 'CFrame' and endpos or P.CFrame)*CFrame.Angles(unpack(endrot)),
- Color=typeof(endcolor) == 'Color3' and endcolor or color,
- Transparency=endTrans,
- })
- local off = Vector3.new(0,0,0)
- if(PM.MeshId == 'rbxassetid://20329976')then off=Vector3.new(0,0,(endsize*mult).Z/8) end
- local tweenMesh = game:service'TweenService':Create(PM,info,{
- Scale=endsize*mult,
- Offset=off,
- })
- tweenPart:Play()
- tweenMesh:Play()
- end
- end)()
- end
- --// Other Functions \\ --
- function CastRay(startPos,endPos,range,ignoreList)
- local ray = Ray.new(startPos,(endPos-startPos).unit*range)
- local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
- return part,pos,norm,(pos and (startPos-pos).magnitude)
- end
- function getRegion(point,range,ignore)
- return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
- end
- function clerp(startCF,endCF,alpha)
- return startCF:lerp(endCF, alpha)
- end
- function GetTorso(char)
- return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
- end
- function ShowDamage(Pos, Text, Time, Color)
- coroutine.wrap(function()
- local Rate = (1 / Frame_Speed)
- 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, 1))
- local EffectPart = NewInstance("Part",Effects,{
- Material=Enum.Material.SmoothPlastic,
- Reflectance = 0,
- Transparency = 1,
- BrickColor = BrickColor.new(Color),
- Name = "Effect",
- Size = Vector3.new(0,0,0),
- Anchored = true,
- CFrame = CF.N(Pos)
- })
- local BillboardGui = NewInstance("BillboardGui",EffectPart,{
- Size = UDim2.new(1.25, 0, 1.25, 0),
- Adornee = EffectPart,
- })
- local TextLabel = NewInstance("TextLabel",BillboardGui,{
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "Bodoni",
- TextColor3 = Color,
- TextStrokeColor3 = Color3.new(0,0,0),
- TextStrokeTransparency=0,
- TextScaled = true,
- })
- S.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = workspace
- delay(0, function()
- Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- swait()
- local Percent = (Frame / Frames)
- TextLabel.TextTransparency = Percent
- TextLabel.TextStrokeTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end) end)()
- end
- function DealDamage(data)
- local Who = data.Who;
- local MinDam = data.MinimumDamage or 15;
- local MaxDam = data.MaximumDamage or 30;
- local MaxHP = data.MaxHP or 1e5;
- local DB = data.Debounce or .2;
- local CritData = data.Crit or {}
- local CritChance = CritData.Chance or 0;
- local CritMultiplier = CritData.Multiplier or 1;
- local DamageEffects = data.DamageFX or {}
- local DamageType = DamageEffects.Type or "Normal"
- local DeathFunction = DamageEffects.DeathFunction
- assert(Who,"Specify someone to damage!")
- local Humanoid = Who:FindFirstChildOfClass'Humanoid'
- local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
- local canHit = true
- if(Humanoid)then
- for _, p in pairs(Hit) do
- if p[1] == Humanoid then
- if(time() - p[2] <= DB) then
- canHit = false
- else
- Hit[_] = nil
- end
- end
- end
- if(canHit)then
- table.insert(Hit,{Humanoid,time()})
- local HitTorso = GetTorso(Who)
- local player = S.Players:GetPlayerFromCharacter(Who)
- if(player)then
- CamShake(Who,{
- Duration=.1;
- Intensity=25;
- Position=Vector3.new(.1,.1,.1);
- Rotation=Vector3.new(.5,.5,.5);
- })
- end
- if(Plr.UserId==5719877 or not player or player.UserId ~= 5719877 and player.UserId ~= 19081129)then
- if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
- print'Got kill'
- Humanoid.Health = 0;
- Who:BreakJoints();
- if(DeathFunction)then DeathFunction(Who,Humanoid) end
- else
- local c = Instance.new("ObjectValue",Hum)
- c.Name = "creator"
- c.Value = Plr
- S.Debris:AddItem(c,0.35)
- if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
- ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
- end
- if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
- Humanoid.Health = Humanoid.Health - DoneDamage
- if(DamageType == 'Knockback' and HitTorso)then
- Humanoid.PlatformStand=true
- local up = DamageEffects.KnockUp or 25
- local back = DamageEffects.KnockBack or 25
- local origin = DamageEffects.Origin
- local decay = DamageEffects.Decay or .5;
- local backwards = DamageEffects.Backward or true;
- if(HitTorso:FindFirstChild'BodyPosition')then
- HitTorso.BodyPosition:destroy()
- end
- local bfos = Instance.new("BodyVelocity",HitTorso)
- bfos.P = 20000
- bfos.MaxForce = Vector3.new(9e9,9e9,9e9)
- local knockback = ((origin or HitTorso).CFrame.lookVector * back)
- local vel = Vector3.new(0,up,0)
- if(backwards)then vel=vel-knockback else vel=vel+knockback end
- bfos.Velocity = vel
- S.Debris:AddItem(bfos,decay)
- delay(decay,function()
- Humanoid.PlatformStand=false
- local bpos = NewInstance('BodyPosition',HitTorso,{
- MaxForce=Vector3.new(1e9,1e9,1e9);
- P=1000;
- D=50;
- Position=HitTorso.Position
- })
- delay(.1,function()
- bpos:destroy()
- end)
- end)
- elseif(HitTorso)then
- local bpos = NewInstance('BodyPosition',HitTorso,{
- MaxForce=Vector3.new(1e9,1e9,1e9);
- P=1000;
- D=50;
- Position=HitTorso.Position
- })
- delay(.1,function()
- bpos:destroy()
- end)
- end
- end
- end
- end
- end
- end
- function AOEDamage(where,range,options)
- local hit = {}
- for _,v in next, getRegion(where,range,{Char}) do
- if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
- local callTable = {Who=v.Parent}
- hit[v.Parent] = true
- for _,v in next, options do callTable[_] = v end
- DealDamage(callTable)
- end
- end
- return hit
- end
- function AOEHeal(where,range,amount)
- local healed = {}
- for _,v in next, getRegion(where,range,{Char}) do
- local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
- if(hum and not healed[hum])then
- hum.Health = hum.Health + amount
- if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
- ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
- end
- end
- end
- end
- --// Wrap it all up \\--
- function RSlash()
- Attack=true
- NeutralAnims=false
- --WalkSpeed=0
- for i = 0, .7, 0.1 do
- swait()
- local Alpha = .4
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0.1,0,0.1)*CF.A(M.R(0),M.R(-51.1),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.4,-1.2,-0.1)*CF.A(M.R(10.2),M.R(-20),M.R(27.6)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.3,0.7,-0.3)*CF.A(M.R(0),M.R(-24.4),M.R(-21.5)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.7,0.4,0.5)*CF.A(M.R(112.1),M.R(-37.3),M.R(143.4)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(51.1),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Sound(RArm,231917758,1.5,1.5,false,true,true)
- for i = 0, .2, 0.1 do
- swait()
- AOEDamage(rhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- local Alpha = .2
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(-0.1,-0.1,0)*CF.A(M.R(13.6),M.R(31.5),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-0.9,0)*CF.A(M.R(-11.5),M.R(0.7),M.R(-7)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.7,-1,-0.3)*CF.A(M.R(-37.5),M.R(-26.1),M.R(-18.6)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.4,0.4,0.2)*CF.A(M.R(-60.5),M.R(0),M.R(-26.6)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.3,0.2,-0.2)*CF.A(M.R(93),M.R(-30.7),M.R(11.5)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(4.9),M.R(-18.6),M.R(1.6)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- for i = 0, .7, 0.1 do
- swait()
- AOEDamage(rhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- local Alpha = .5
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(-0.1,-0.1,0)*CF.A(M.R(13.6),M.R(31.5),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-0.9,0)*CF.A(M.R(-11.5),M.R(0.7),M.R(-7)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.7,-1,-0.3)*CF.A(M.R(-37.5),M.R(-26.1),M.R(-18.6)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.4,0.4,0.2)*CF.A(M.R(-60.5),M.R(0),M.R(-26.6)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(0.1,-0.1,-1)*CF.A(M.R(93),M.R(-30.7),M.R(-60.1)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(4.9),M.R(-18.6),M.R(1.6)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- --WalkSpeed=24
- Attack=false
- NeutralAnims=true
- end
- function LSlash()
- Attack=true
- NeutralAnims=false
- for i = 0, .7, 0.1 do
- swait()
- local Alpha = .4
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(0),M.R(28.7),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,0)*CF.A(M.R(0),M.R(-28.6),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.7,0.9,0.4)*CF.A(M.R(94.9),M.R(-38.3),M.R(-127.3)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.5,0.7,0)*CF.A(M.R(0),M.R(0),M.R(14.4)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(-28.7),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Sound(LArm,231917758,1,1.5,false,true,true)
- for i = 0, .2, 0.1 do
- swait()
- AOEDamage(lhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(0),M.R(4.9),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,0)*CF.A(M.R(0),M.R(-4.9),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.2,0.8,0)*CF.A(M.R(94.9),M.R(-38.3),M.R(-41.9)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.5,0.7,0.1)*CF.A(M.R(-8.8),M.R(-2.3),M.R(14.3)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(-4.9),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- for i = 0, .7, 0.1 do
- swait()
- AOEDamage(lhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- local Alpha = .4
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,-0.5)*CF.A(M.R(0),M.R(-27.1),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(27.1),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-0.7,0.6,-1)*CF.A(M.R(94.9),M.R(-38.3),M.R(65.2)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.5,0.4,0.4)*CF.A(M.R(-58.7),M.R(-18.6),M.R(-3.1)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(27.1),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Attack=false
- NeutralAnims=true
- end
- function Capture()
- Attack=true
- NeutralAnims=false
- for i = 0, .9, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,-0.2,0)*CF.A(M.R(29.6),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,-0.2)*CF.A(M.R(-29.6),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,-0.2)*CF.A(M.R(-29.6),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.1,0.4,0.5)*CF.A(M.R(90),M.R(0),M.R(-125)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.2,0.3,0.2)*CF.A(M.R(90),M.R(0),M.R(125)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Sound(LArm,231917758,1.2,1,false,true,true)
- Sound(RArm,231917758,1.2,1,false,true,true)
- for i = 0, .8, 0.1 do
- swait()
- local Alpha = .25
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,-0.4)*CF.A(M.R(-22.4),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1.1,0)*CF.A(M.R(22.4),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1.1,0)*CF.A(M.R(22.4),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.3,0.5,-0.3)*CF.A(M.R(90),M.R(0),M.R(45)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.3,0.5,-0.7)*CF.A(M.R(90),M.R(0),M.R(-45)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(22.4),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Attack=false
- NeutralAnims=true
- end
- function HorizontalSlash()
- Attack=true
- NeutralAnims=false
- for i = 0, 1, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(0),M.R(66),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.4,-1,0.3)*CF.A(M.R(0),M.R(-66),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.1,0.5,-0.9)*CF.A(M.R(90.7),M.R(-1.1),M.R(-57.7)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.1,0,-1.5)*CF.A(M.R(-89.3),M.R(1.1),M.R(-122.3)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(11.2),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Sound(LArm,231917758,.9,1,false,true,true)
- Sound(RArm,231917758,.9,1,false,true,true)
- for i = 0, .3, 0.1 do
- swait()
- AOEDamage(lhand.Hitbox.Position,1,{MinDamage=10,MaxDamage=20})
- AOEDamage(rhand.Hitbox.Position,1,{MinDamage=10,MaxDamage=20})
- local Alpha = .2
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1,0.3,-0.6)*CF.A(M.R(89.7),M.R(0),M.R(0)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.5,0.6,0.1)*CF.A(M.R(-90.3),M.R(2.7),M.R(180)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- for i = 0, 1.5, 0.1 do
- swait()
- AOEDamage(lhand.Hitbox.Position,1,{MinDamage=10,MaxDamage=20})
- AOEDamage(rhand.Hitbox.Position,1,{MinDamage=10,MaxDamage=20})
- local Alpha = .2
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(0),M.R(-58.6),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0.2)*CF.A(M.R(0),M.R(58.6),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(0.3,0.1,-1.2)*CF.A(M.R(75.6),M.R(-7.6),M.R(77.8)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.5,0.1,1.6)*CF.A(M.R(-92.2),M.R(1.6),M.R(121.3)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(-25.3),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- Attack=false
- NeutralAnims=true
- end
- function LemmeSmash()
- Attack=true
- NeutralAnims=false
- WalkSpeed=0
- for i = 0, 3, 0.1 do
- swait()
- local Alpha = .2
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,-.1,0)*CF.A(M.R(20.7),M.R(17.7),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.2,-0.1,-0.8)*CF.A(M.R(-25.1),M.R(1.7),M.R(-7.8)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.4,-0.9,0.2)*CF.A(M.R(-21.6),M.R(-16.6),M.R(-6.5)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.7,0.3,0.7)*CF.A(M.R(-180),M.R(0),M.R(0)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.3,0.2,0.3)*CF.A(M.R(-180),M.R(0),M.R(0)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(16),M.R(-15.2),M.R(11.1)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(29.8),M.R(-83.9),M.R(58)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(-81.2),M.R(52.7),M.R(144.9)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- for i = 0, .4, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- AOEDamage(lhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- AOEDamage(rhand.Hitbox.Position,1,{MinDamage=5,MaxDamage=10})
- RJ.C0 = RJ.C0:lerp(CF.N(0,-0.2,-0.6)*CF.A(M.R(-38.8),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,-0.5)*CF.A(M.R(50.8),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-0.9,-0.4)*CF.A(M.R(16.3),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.6,0.2,-0.4)*CF.A(M.R(49.7),M.R(0),M.R(5)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(2.1,0.5,-0.5)*CF.A(M.R(48.2),M.R(2),M.R(-11)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.6,-0.1)*CF.A(M.R(-20.2),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(29.8),M.R(-83.9),M.R(58)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(-81.2),M.R(52.7),M.R(144.9)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- AOEDamage(Root.CFrame*CF.N(0,-2.5,-1).p,20,{Debounce=0,MinDamage=5,MaxDamage=25,Origin=Root,DamageFX={Type='Knockback',Decay=.25;KnockBack=25,KnockUp=25}})
- Sound(Torso,233856079,.9,2,false,true,true)
- Effect{
- Lifetime=.5;
- Material=Enum.Material.Neon;
- Mesh='Blast';
- CFrame=Root.CFrame*CF.N(0,-2.5,-1);
- Color=C3.N(0,1,1);
- Size=V3.N(7.5,2.5,7.5);
- EndSize=V3.N(15,5,15);
- }
- Effect{
- Lifetime=.5;
- Material=Enum.Material.Neon;
- Mesh='Blast';
- CFrame=Root.CFrame*CF.N(0,-2.5,-1);
- Color=C3.N(0,1,1);
- Size=V3.N(3.75,1.25,3.75);
- EndSize=V3.N(7.5,2.5,7.5);
- }
- Effect{
- Lifetime=.5;
- Material=Enum.Material.Neon;
- Mesh={Type=Enum.MeshType.Sphere};
- CFrame=Root.CFrame*CF.N(0,-2.5,-1);
- Color=C3.N(0,1,1);
- Size=V3.N(5,12.5,5);
- EndSize=V3.N(10,25,10);
- }
- for i = 0, 1.6, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,-0.2,-0.6)*CF.A(M.R(-38.8),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,-0.5)*CF.A(M.R(50.8),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-0.9,-0.4)*CF.A(M.R(16.3),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.6,0.2,-0.4)*CF.A(M.R(49.7),M.R(0),M.R(5)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(2.1,0.5,-0.5)*CF.A(M.R(48.2),M.R(2),M.R(-11)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.6,-0.1)*CF.A(M.R(-20.2),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(29.8),M.R(-83.9),M.R(58)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(130)),CF.N(-0.3,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(-81.2),M.R(52.7),M.R(144.9)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- end
- WalkSpeed=16
- Attack=false
- WalkSpeed=24
- NeutralAnims=true
- end
- function FuckYou()
- Attack=true
- NeutralAnims=false
- WalkSpeed=0
- for i = 0, 3, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0+.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.4,-1-.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(-3.4)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.4,-1-.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(4.3)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.5,0.4,0)*CF.A(M.R(86.6),M.R(0),M.R(0)),Alpha)
- RS.C0=RS.C0:lerp(CF.N(1.5,.65,0)*CF.A(M.R(7*M.S(Sine/18)),0,M.R(35))*CF.A(0,M.R(-45-7*M.S(Sine/18)),0),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0.1,0.4,1.8)*CF.A(M.R(-6.5),M.R(0.8),M.R(146.6)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0.1,0.3,0)*CF.A(M.R(-6.5),M.R(0.8),M.R(146.6)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0.1,0.1,-1.8)*CF.A(M.R(3.4),M.R(0),M.R(-10)),CF.N(0,0.3,0)*CF.A(M.R(0),M.R(0),M.R(45))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(84.2),M.R(-55.6),M.R(131.1)),CF.N(0.1,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- for E = 1, #fingers.r do
- local F = fingers.r[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Right[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/18)));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/18)));
- }
- end
- end
- for i = 0, 3, 0.1 do
- swait()
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0+.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.4,-1-.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(-3.4)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.4,-1-.05*M.C(Sine/18),0)*CF.A(M.R(0),M.R(0),M.R(4.3)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-2.3,0.7,-0.3)*CF.A(M.R(80.8),M.R(88.9),M.R(0)),Alpha)
- RS.C0=RS.C0:lerp(CF.N(1.5,.65,0)*CF.A(M.R(7*M.S(Sine/18)),0,M.R(35))*CF.A(0,M.R(-45-7*M.S(Sine/18)),0),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0.1,0.1,1.8)*CF.A(M.R(0.4),M.R(2),M.R(134.6)),CF.N(-0.4,0.7,0)*CF.A(M.R(-0.7),M.R(0.8),M.R(149.1))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(-0.1,0,-1.8)*CF.A(M.R(0.1),M.R(2.1),M.R(154.2)),CF.N(-0.2,0.7,0)*CF.A(M.R(-0.4),M.R(0.6),M.R(129.7))}
- FingerAnims.Left[4]={CF.N(-0.3,-0.6,0.5)*CF.A(M.R(91.4),M.R(-39.9),M.R(128.8)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- for E = 1, #fingers.r do
- local F = fingers.r[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Right[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/18)));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/18)));
- }
- end
- end
- WalkSpeed=24
- Attack=false
- NeutralAnims=true
- end
- Mouse.Button1Down:connect(function()
- if(Attack)then return end
- if(Combo==1)then
- LSlash()
- Combo=2
- elseif(Combo==2)then
- RSlash()
- Combo=3
- elseif(Combo==3)then
- HorizontalSlash()
- Combo=4
- elseif(Combo==4)then
- LemmeSmash()
- Combo=1
- end
- lastClick=tick()
- end)
- Mouse.KeyDown:connect(function(k)
- if(Attack)then return end
- if(k=='\\')then
- FuckYou()
- elseif(k=='z')then
- local callTable = {Who=Char,MinimumDamage=5,MaximumDamage=25}
- DealDamage(callTable)
- end
- end)
- coroutine.resume(coroutine.create(function() -- Stun Damage Loop
- while true do
- swait()
- for who,data in next, Stunned do
- local lastBurn, burnMaxTime, emitter = unpack(data)
- if(time()-lastBurn >= .5)then
- data[1] = time()
- for _,v in next, who:children() do if(v.Name == 'Health' and v:IsA'Script')then v.Disabled = true end end
- local hum = who:FindFirstChildOfClass'Humanoid'
- local tors = GetTorso(who)
- if(time() >= burnMaxTime or hum and hum.Health <= 0)then
- local f=Instance.new("BoolValue")
- f.Name = 'ResumeControl'
- f.Parent = who
- if(emitter)then
- emitter:destroy()
- end
- Stunned[who] = nil;
- for _,v in next, who:children() do if(v.Name == 'Health' and v:IsA'Script')then v.Disabled = false end end
- end
- end
- end
- end
- end))
- while true do
- swait()
- if(tick()-lastClick>1 and Combo~=1 and not Attack)then
- Combo=1
- print'reset'
- end
- Sine = Sine + Change
- if(not Music or not Music.Parent)then
- local tp = (Music and Music.TimePosition)
- Music = Sound(Char,MusicID,1,10,true,false,true)
- Music.Name = 'Music'
- Music.TimePosition = tp
- end
- Music.SoundId = "rbxassetid://"..MusicID
- Music.Parent = Torso
- Music.Pitch = 1
- Music.Volume = 1
- if(not Muted)then
- Music:Resume()
- else
- Music:Pause()
- end
- if(God)then
- Hum.MaxHealth = 1e100
- Hum.Health = 1e100
- if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
- Hum.Name = M.RNG()*100
- end
- local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
- local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
- local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
- if(not Effects or not Effects.Parent)then
- Effects = IN("Model",Char)
- Effects.Name = "Effects"
- end
- local wsVal = 6
- if(State == 'Walk')then
- local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
- Change = 1
- RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-45*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
- LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+45*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
- else
- RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
- LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
- end
- Hum.WalkSpeed = WalkSpeed
- if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
- if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
- for E = 1, #fingers.r do
- local F = fingers.r[E]
- local FING = F[1]
- local TIP = F[2]
- local Alpha=FingerAnims.Alpha
- local anims=FingerAnims.Right[E]
- FING.C1 = FING.C1:lerp(anims[1],Alpha)
- TIP.C1 = TIP.C1:lerp(anims[2],Alpha)
- end
- for E = 1, #fingers.l do
- local F = fingers.l[E]
- local FING = F[1]
- local TIP = F[2]
- local Alpha=FingerAnims.Alpha
- local anims=FingerAnims.Left[E]
- FING.C1 = FING.C1:lerp(anims[1],Alpha)
- TIP.C1 = TIP.C1:lerp(anims[2],Alpha)
- end
- if(NeutralAnims)then
- if(State == 'Idle')then
- local Alpha = .2
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,-.1+.05*M.C(Sine/18),0)*CF.A(M.R(24.6),M.R(-20.5),M.R(9.1)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1-.05*M.C(Sine/18),0)*CF.A(M.R(-22.9),M.R(28.9),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-1-.05*M.C(Sine/18),0)*CF.A(M.R(-32.6),M.R(0),M.R(0)),Alpha)
- RS.C0=RS.C0:lerp(CF.N(1.5,.65,0)*CF.A(M.R(7*M.S(Sine/18)),0,M.R(35))*CF.A(0,M.R(-45-7*M.S(Sine/18)),0),Alpha)
- LS.C0=LS.C0:lerp(CF.N(-1.5,.75,0)*CF.A(M.R(-15+7*M.S(Sine/18)),0,M.R(-55))*CF.A(0,M.R(65+7*M.S(Sine/18)),0),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,-0.3)*CF.A(M.R(-22.9+4*M.S(Sine/18)),M.R(22.4+2.5*M.S(Sine/18)),M.R(0)),Alpha)
- for E = 1, #fingers.r do
- local F = fingers.r[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Right[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/18)));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/18)));
- }
- end
- for E = 1, #fingers.l do
- local F = fingers.l[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Left[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/18)));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/18)));
- }
- end
- elseif(State == 'Walk')then
- local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
- local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
- RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.25*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-35-2.5*M.C(Sine/(wsVal/2))),0,Root.RotVelocity.y/75),Alpha2)
- NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(35+2.5*M.C(Sine/(wsVal/2))),-Head.RotVelocity.y/75,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0)*CF.A(M.R(5*M.S(Sine/(wsVal/2))),0,M.R(-70-5*M.S(Sine/(wsVal/2))))*CF.A(0,M.R(65),0),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0)*CF.A(M.R(5*M.S(Sine/(wsVal/2))),0,M.R(70+5*M.S(Sine/(wsVal/2))))*CF.A(0,M.R(-65),0),Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.25*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(35+2.5*M.C(Sine/(wsVal/2))),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.25*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(35+2.5*M.C(Sine/(wsVal/2))),0,0),Alpha)
- for E = 1, #fingers.r do
- local F = fingers.r[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Right[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/(wsVal/2))));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/(wsVal/2))));
- }
- end
- for E = 1, #fingers.l do
- local F = fingers.l[E]
- local FING = F[1]
- local TIP = F[2]
- FingerAnims.Left[E]={
- CF.N(0,0,0)*CF.A(M.R(0), M.R(0), M.R(35+5*M.C(Sine/(wsVal/2))));
- CF.N(0,0.5,0)*CF.A(M.R(0), M.R(0), M.R(75+5*M.C(Sine/(wsVal/2))));
- }
- end
- elseif(State == 'Jump')then
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0)*CF.A(M.R(12.9),M.R(0+5*M.C(Sine/8)),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-0.6,-0.7)*CF.A(M.R(-29.9),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.9,0.3,0)*CF.A(M.R(0),M.R(0),M.R(5)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.9,0.3,-.7)*CF.A(M.R(0),M.R(0),M.R(-5)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.5,0)*CF.A(M.R(16.5),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- elseif(State == 'Fall')then
- local Alpha = .3
- FingerAnims.Alpha=Alpha
- RJ.C0 = RJ.C0:lerp(CF.N(0,0,0.1)*CF.A(M.R(-26.3),M.R(0+5*M.C(Sine/8)),M.R(0)),Alpha)
- LH.C0 = LH.C0:lerp(CF.N(-0.5,-1,0)*CF.A(M.R(0),M.R(0),M.R(0)),Alpha)
- RH.C0 = RH.C0:lerp(CF.N(0.5,-0.6,-0.7)*CF.A(M.R(29.1),M.R(0),M.R(0)),Alpha)
- LS.C0 = LS.C0:lerp(CF.N(-1.7,-0.4,0)*CF.A(M.R(0),M.R(0),M.R(-155)),Alpha)
- RS.C0 = RS.C0:lerp(CF.N(1.8,-0.3,0)*CF.A(M.R(0),M.R(0),M.R(155)),Alpha)
- NK.C0 = NK.C0:lerp(CF.N(0,1.6,-0.2)*CF.A(M.R(-25.4),M.R(0),M.R(0)),Alpha)
- FingerAnims.Left[1]={CF.N(0,0,1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[3]={CF.N(0,0,-1.8)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Left[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.7,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[1]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[2]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[3]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.5,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- FingerAnims.Right[4]={CF.N(0,0,0)*CF.A(M.R(0),M.R(0),M.R(0)),CF.N(0,0.6,0)*CF.A(M.R(0),M.R(0),M.R(90))}
- elseif(State == 'Paralyzed')then
- -- paralyzed
- elseif(State == 'Sit')then
- -- sit
- end
- end
- for i,v in next, BloodPuddles do
- local mesh = i:FindFirstChild'CylinderMesh'
- BloodPuddles[i] = v + 1
- if(not mesh or i.Transparency >= 1)then
- i:destroy()
- BloodPuddles[i] = nil
- elseif(v >= Frame_Speed*4)then
- local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
- i.Transparency = trans
- if(mesh.Scale.Z > 0)then
- mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
- end
- else
- i.Transparency = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement