print("FE code by Starzozero, Thanks to him!")
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
local Player,game,owner = owner,game
local RealPlayer = Player
do
print("FE Compatibility code by Mokiros, Edited by StarzoZero")
local rp = RealPlayer
script.Parent = rp.Character
--RemoteEvent for communicating
local Event = Instance.new("RemoteEvent")
Event.Name = "UserInput_Event"
--Fake event to make stuff like Mouse.KeyDown work
local function fakeEvent()
local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
t.connect = t.Connect
return t
end
--Creating fake input objects with fake variables
local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
end}
--Merged 2 functions into one by checking amount of arguments
CAS.UnbindAction = CAS.BindAction
--This function will trigger the events that have been :Connect()'ed
local function te(self,ev,...)
local t = m[ev]
if t and t._fakeEvent then
for _,f in pairs(t.Functions) do
f(...)
end
end
end
m.TrigEvent = te
UIS.TrigEvent = te
Event.OnServerEvent:Connect(function(plr,io)
if plr~=rp then return end
m.Target = io.Target
m.Hit = io.Hit
if not io.isMouse then
local b = io.UserInputState == Enum.UserInputState.Begin
if io.UserInputType == Enum.UserInputType.MouseButton1 then
return m:TrigEvent(b and "Button1Down" or "Button1Up")
end
if io.UserInputType == Enum.UserInputType.MouseButton2 then
return m:TrigEvent(b and "Button2Down" or "Button2Up")
end
for _,t in pairs(CAS.Actions) do
for _,k in pairs(t.Keys) do
if k==io.KeyCode then
t.Function(t.Name,io.UserInputState,io)
end
end
end
m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
end
end)
Event.Parent = NLS([==[
local Player = game:GetService("Players").LocalPlayer
local Event = script:WaitForChild("UserInput_Event")
local Mouse = Player:GetMouse()
local UIS = game:GetService("UserInputService")
local input = function(io,a)
if a then return end
--Since InputObject is a client-side instance, we create and pass table instead
Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
end
UIS.InputBegan:Connect(input)
UIS.InputEnded:Connect(input)
local h,t
--Give the server mouse data 30 times every second, but only if the values changed
--If player is not moving their mouse, client won't fire events
while wait(1/30) do
if h~=Mouse.Hit or t~=Mouse.Target then
h,t=Mouse.Hit,Mouse.Target
Event:FireServer({isMouse=true,Target=t,Hit=h})
end
end]==],Player.Character)
----Sandboxed game object that allows the usage of client-side methods and services
--Real game object
local _rg = game
--Metatable for fake service
local fsmt = {
__index = function(self,k)
local s = rawget(self,"_RealService")
if s then
return typeof(s[k])=="function"
and function(_,...)return s[k](s,...)end or s[k]
end
end,
__newindex = function(self,k,v)
local s = rawget(self,"_RealService")
if s then s[k]=v end
end
}
local function FakeService(t,RealService)
t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
return setmetatable(t,fsmt)
end
--Fake game object
local g = {
GetService = function(self,s)
return rawget(self,s) or _rg:GetService(s)
end,
Players = FakeService({
LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
},"Players"),
UserInputService = FakeService(UIS,"UserInputService"),
ContextActionService = FakeService(CAS,"ContextActionService"),
RunService = FakeService({
_btrs = {},
RenderStepped = _rg:GetService("RunService").Heartbeat,
BindToRenderStep = function(self,name,_,fun)
self._btrs[name] = self.Heartbeat:Connect(fun)
end,
UnbindFromRenderStep = function(self,name)
self._btrs[name]:Disconnect()
end,
},"RunService")
}
rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
g.service = g.GetService
FakeService(g,game)
--Changing owner to fake player object to support owner:GetMouse()
game,owner = g,g.Players.LocalPlayer
end
--[[Salvo_Starly[Salvy].Weaponry_2018.2]]--
--[[Project Name: Heavy from Critical Strike]]--
--[[bxyewx]]--
wait(.2)
plr=game.Players.LocalPlayer
chr=plr.Character
Head=chr.Head
Root=chr.HumanoidRootPart
Torso=chr.Torso
RArm=chr["Right Arm"]
LArm=chr["Left Arm"]
RLeg=chr["Right Leg"]
LLeg=chr["Left Leg"]
RJ=Root.RootJoint
Neck=Torso.Neck
LS=Torso["Left Shoulder"]
LH=Torso["Left Hip"]
RS=Torso["Right Shoulder"]
RH=Torso["Right Hip"]
hum=chr:FindFirstChildOfClass("Humanoid")
mouse=plr:GetMouse()
Pose="Idle"
attack=false
combo=1
skilldoing=false
skilldoing2=false
comb=1
sin=0
cha=1
create=LoadLibrary("RbxUtility").Create
chr.Animate:Remove()
hum.Animator:Remove()
function clerp(a,b,t)
return a:lerp(b,t)
end
local newMotor=function(p0,p1,c0,c1)
local w=Instance.new('Motor',p0)
w.Part0=p0
w.Part1=p1
w.C0=c0
w.C1=c1
return w
end
RJ.C0,RJ.C1=CFrame.new(0,0,0),CFrame.new(0,0,0)
Neck.C0,Neck.C1=CFrame.new(0,1.5,0),CFrame.new(0,0,0)
--[[RS.C0,RS.C1=CFrame.new(1.5,0,0),CFrame.new(0,0,0)
LS.C0,LS.C1=CFrame.new(-1.5,0,0),CFrame.new(0,0,0)
RH.C0,RH.C1=CFrame.new(.5,-2,0),CFrame.new(0,0,0)
LH.C0,LH.C1=CFrame.new(-.5,-2,0),CFrame.new(0,0,0)]]
local RS=newMotor(Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
local LS=newMotor(Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
local RH=newMotor(Torso, RLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
local LH=newMotor(Torso, LLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
function NoOutline(Part)
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10
end
function rayCast(Position,Direction,Range,Ignore)
return game:service("Workspace"):FindPartOnRay(Ray.new(Position,Direction.unit*(Range or 999.999)),Ignore)
end
function swait(num)
if num==0 or num==nil then
game:service'RunService'.Stepped:wait(0)
else
for i=0,num do
game:service'RunService'.Stepped:wait(0)
end
end
end
function parts(Par,name,size,color,mat,ref,tra)
local part=create("Part"){
Parent=Par,
Name=name,
Size=size,
CanCollide=false,
Anchored=false,
BrickColor=BrickColor.new(color),
Material=mat,
Reflectance=ref,
Transparency=tra}
--Position=Torso.Position}
NoOutline(part)
part:BreakJoints()
return part
end
function meshs(Par,name,scale,mtype,id)
local mesh=create("SpecialMesh"){
Parent=Par,
Name=name,
Scale=scale,
MeshType=mtype}
if id~="" then
mesh.MeshId="rbxassetid://"..id
end
return meshs
end
function welds(Par,name,p0,p1,c0,c1)
local weld=create("Weld"){
Parent=Par,
Name=name,
Part0=p0,
Part1=p1,
C0=c0,
C1=c1}
return weld
end
function sounds(Par,id,vol,pit)
local sound=create("Sound"){
Parent=Par,
SoundId=id,
Volume=vol,
PlaybackSpeed=pit}
sound:Play()
game:GetService("Debris"):AddItem(sound,10)
return sound
end
m=Instance.new("Model",chr)
m.Name="Suit"
e=Instance.new("Model",chr)
e.Name="Effect"
H2T=parts(m,"H2T",Vector3.new(2.00000024, 1.5999999, 0.199999988),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-06, -0.399926424, -0.600059271, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(0.599999964, 0.600000083, 0.400000006),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.636291504, -1.10225725, 0.699929953, 0.965937138, 0.258806705, -5.15418942e-05, -0.258808851, 0.96592921, -8.12581857e-06, 4.76827263e-05, 2.11879487e-05, 1.00000811))
H2T=parts(m,"H2T",Vector3.new(0.599999964, 0.600000083, 0.400000006),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.636545181, -1.10221863, 0.699983478, 0.965935051, -0.258814335, -5.93439327e-05, 0.258816451, 0.965927184, 6.57360943e-06, 5.56206214e-05, -2.17088036e-05, 1.00000811))
H2T=parts(m,"H2T",Vector3.new(0.799999714, 0.400000006, 0.199999958),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-05, 0.600176811, -0.600751638, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(0.99999994, 0.400000036, 1.4000001),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.752167702, -1.44380271, 3.93688679e-05, 0.965935051, -0.258814335, -5.93439327e-05, 0.258816451, 0.965927184, 6.57360943e-06, 5.56206214e-05, -2.17088036e-05, 1.00000811))
H2T=parts(m,"H2T",Vector3.new(2.0999999, 0.200000003, 1.10000002),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.00271606e-05, 0.899852753, -4.88162041e-05, 1.00000846, 1.52311586e-09, -0.00012207136, -2.20949126e-09, 1, 5.46424417e-09, 0.00012207136, -5.71526471e-09, 1.00000846))
H2T=parts(m,"H2T",Vector3.new(0.799999952, 1.80000019, 0.200000003),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000149726868, -0.299993277, 0.799986005, 1.00000834, 5.89469806e-10, -6.10355637e-05, -1.27319666e-09, 1, 2.66300049e-09, 6.10355637e-05, -2.92493496e-09, 1.00000834))
H2T=parts(m,"H2T",Vector3.new(0.99999994, 0.400000036, 1.4000001),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.751960754, -1.44379854, -6.14821911e-05, 0.965952218, 0.25875026, -5.15397987e-05, -0.258752406, 0.96594429, -8.15172098e-06, 4.76753339e-05, 2.12096566e-05, 1.00000811))
H2T=parts(m,"H2T",Vector3.new(1.60000002, 2.20000005, 1.20000005),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.95910645e-05, -0.0999653339, 0.100003541, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(1.60000014, 2, 0.0999999866),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",Torso,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-06, 6.7949295e-05, -0.550146699, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2=parts(m,"H2",Vector3.new(0.200000003, 1, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",Torso,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.282279015, 0.283462524, -0.700088263, -0.707178056, -0.707041323, -3.86749743e-05, 0.707047164, -0.707172334, -5.84764057e-05, 1.399545e-05, -6.86973217e-05, 1.00000823))
H2=parts(m,"H2",Vector3.new(0.200000003, 1, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",Torso,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.283407211, -0.282258034, -0.700118899, 0.707090676, -0.707128644, -4.44310717e-06, 0.707134485, 0.707084954, -1.53477304e-05, 1.39944605e-05, 7.70997576e-06, 1.00000834))
H2=parts(m,"H2",Vector3.new(0.300000012, 4.4000001, 1.20000005),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.17363739, -3.68727589, -1.01515055, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.400000006, 0.400000006, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180584908, 0.414657593, -5.08751345, -1.00000715, 0.00145755196, 0.000452020293, 0.00145739573, 0.999998868, -0.000369648827, -0.000452558626, -0.000368986337, -1.00000811))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.400000006, 4.19999981, 0.800000012),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180438995, -3.58728981, -1.01560521, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.400000006, 0.200000003, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.166507721, -5.78794765, 1.21521676, 1.00000119, -0.00150946039, -0.00341504137, -0.00341540808, -0.000240208232, -1.00000238, 0.00150864304, 0.999998868, -0.000245364237))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.200000003, 0.600000024),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.174100876, -5.98737621, -0.715121746, -1.00000727, 0.0012655512, 0.000485015014, -0.000485247467, -0.000183475306, -1.00000799, -0.00126547192, -0.999999225, 0.000184090983))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.15792942, -5.28811407, 0.213539362, 1.00000119, -0.00150946039, -0.00341504137, -0.00341577269, -0.00048220763, -1.00000215, 0.00150781649, 0.999998748, -0.000487364421))
H2=parts(m,"H2",Vector3.new(0.200000003, 1.60000014, 0.400000006),"Black",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.174054146, 0.312389284, -1.01499629, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.300000012, 0.800000012, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.157735825, 4.68804884, -0.313462257, 1.00000072, -0.00175646122, -0.00341605023, 0.00341679691, 0.000422207551, 1.00000226, -0.00175502244, -0.999998391, 0.000428209576))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.157650948, 4.88807058, -0.213747263, 0.999999404, -0.0024234606, -0.00341906887, 0.00342010171, 0.000422206707, 1.00000226, -0.00242202124, -0.99999702, 0.000430495216))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.400000006, 0.400000006, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180467606, -5.48726368, -0.414275646, -1.00000691, 0.00151055073, 0.000485022232, -0.000485666882, -0.000426475977, -1.00000787, -0.00151035527, -0.999998748, 0.00042721277))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(0.400000006, 0.400000006, 0.600000024),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.173959732, 1.31224442, -1.0149107, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.400000006, 0.200000003, 0.799999952),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.182508469, 0.514532566, -4.88745975, -1.00000715, 0.00145755196, 0.000452020293, 0.00145739573, 0.999998868, -0.000369648827, -0.000452558626, -0.000368986337, -1.00000811))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(0.600000024, 1, 1),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.173698425, -0.987195611, -1.01505065, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.400000006, 0.400000006, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.167329788, -5.4876194, 1.61520195, 1.00000119, -0.00150946039, -0.00341504137, -0.00341540808, -0.000240208232, -1.00000238, 0.00150864304, 0.999998868, -0.000245364237))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H21=parts(m,"H21",Vector3.new(0.200000003, 0.200000003, 0.200000003),"Pearl",Enum.Material.SmoothPlastic,0,1)
H21Weld=welds(H21,"H21Weld",RArm,H21,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180437088, -3.78728795, -1.01560426, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2T=parts(m,"H2T",Vector3.new(0.5, 1, 0.600000024),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.173845291, -1.13512576, -0.148705721, -1.00000703, 0.00149955158, 0.000458021706, -0.000830772682, -0.25899449, -0.965886295, -0.00132977066, -0.965877712, 0.2589975))
H2=parts(m,"H2",Vector3.new(0.300000012, 0.200000003, 0.600000024),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.174004555, -5.9874382, 1.31486142, 1.00000727, -0.0012655512, -0.000485015014, -0.000485323282, -0.000243475151, -1.00000787, 0.0012654427, 0.999999225, -0.000244091381))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.173289299, -5.28732967, -1.81480408, -1.00000691, 0.00151055073, 0.000485022232, -0.000485299912, -0.000183476601, -1.00000799, -0.0015104732, -0.999998868, 0.000184211152))
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.157435417, -5.68818426, -0.213293552, -1.00000155, 0.001268461, 0.00341503532, -0.00341557316, -0.00042220662, -1.00000226, -0.00126702106, -0.999999106, 0.000426540006))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173867226, -5.28742838, 2.11478782, 1.00000727, -0.0012655512, -0.000485015014, -0.000485323282, -0.000243475151, -1.00000787, 0.0012654427, 0.999999225, -0.000244091381))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.172198296, 4.8872757, 1.81511962, -1.00000536, 0.00236555305, 0.000425046368, 0.000425483886, 0.000184479926, 1.00000811, 0.00236549275, 0.999997258, -0.000185487632))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(0.5, 1, 0.600000024),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.174098015, -0.609588027, -1.81225657, -1.00000703, 0.00145155098, 0.000482020376, -9.01897438e-05, 0.258638412, -0.965982139, -0.00152684061, -0.965973079, -0.25864011))
H2=parts(m,"H2",Vector3.new(0.300000012, 0.800000012, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.17368412, 4.68725634, 1.71516502, -1.00000668, 0.00169355201, 0.000425027101, 0.0004253402, 0.000184480494, 1.00000811, 0.00169348682, 0.999998689, -0.000185202312))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173988342, -5.6874752, 1.8148458, 1.00000727, -0.0012655512, -0.000485015014, -0.000485323282, -0.000243475151, -1.00000787, 0.0012654427, 0.999999225, -0.000244091381))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.400000006, 0.200000003, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.181283951, -5.78758001, -0.814261675, -1.00000691, 0.00151055073, 0.000485022232, -0.000485666882, -0.000426475977, -1.00000787, -0.00151035527, -0.999998748, 0.00042721277))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.400000006, 0.200000003, 0.799999952),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.165299416, -1.51514339, -4.88787603, 1.00000119, -0.00150045997, -0.00343104126, -0.00149957894, -0.999998868, 0.000262683374, -0.00343143148, -0.000257534091, -1.00000226))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.400000006, 0.400000006, 0.400000006),"Pearl",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.167322159, -1.61496687, -5.08791256, 1.00000119, -0.00150045997, -0.00343104126, -0.00149957894, -0.999998868, 0.000262683374, -0.00343143148, -0.000257534091, -1.00000226))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.300000012, 0.400000006, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",RArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.157846451, -5.28812075, 0.0865528584, -1.00000155, 0.001268461, 0.00341503532, -0.00341557316, -0.00042220662, -1.00000226, -0.00126702106, -0.999999106, 0.000426540006))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(1.10000002, 0.400000006, 1.10000002),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000113487244, 0.600103378, -0.000729441643, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(1.10000002, 1.20000005, 1.10000002),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",RArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000117301941, -0.599912643, -7.92741776e-05, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2=parts(m,"H2",Vector3.new(0.200000003, 1.60000014, 0.399999976),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.19988346, -0.212693214, -0.495521426, 1.00000811, -5.00277383e-05, -4.70519299e-05, 6.86455169e-05, 0.707086086, 0.707133353, -2.10612779e-06, -0.707127512, 0.707091808))
H2T=parts(m,"H2T",Vector3.new(0.399999976, 1.19999993, 0.200000092),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699888229, -0.80000639, 0.999239445, -1.00000823, 6.10606148e-05, -2.91038305e-10, -6.10604839e-05, -1.00000024, -6.10103889e-05, -3.7252903e-09, -6.10101415e-05, 1.00000858))
meshs(H2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.200000003, 1.60000014, 0.399999976),"Institutional white",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.19989109, 0.495499611, -0.212711573, 1.00000811, 3.05044364e-06, -3.7405116e-05, -2.8607843e-05, 0.707077622, -0.707141817, 2.42907554e-05, 0.707136095, 0.707083344))
H2T=parts(m,"H2T",Vector3.new(0.399999976, 1.19999993, 0.600000083),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699649811, -0.400096655, 2.40065408, -1.00000823, 2.54608672e-08, -3.08500603e-09, 2.47945611e-08, 1, 6.10355346e-05, 3.08500603e-09, 6.10352727e-05, -1.00000823))
meshs(H2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.200000003, 0.99999994, 0.600000083),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.999858856, -0.699892521, 1.80029881, 1.00000834, -2.26936798e-08, -6.10327697e-05, -2.57500066e-08, -1.00000024, -6.10383286e-05, -6.10325369e-05, 6.10380666e-05, -1.00000811))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.200000003, 2.00000024, 2),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.999918938, 0.199962616, -0.500152528, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(1.10000002, 0.400000006, 1.10000002),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-05, 0.599960566, -0.000973433256, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2=parts(m,"H2",Vector3.new(0.200000003, 0.99999994, 0.200000003),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.999862671, -0.300048113, 0.599604964, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(0.399999976, 2.4000001, 3),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699845314, 0.199993134, -0.6006881, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2=parts(m,"H2",Vector3.new(0.200000003, 0.99999994, 0.200000003),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.999976158, -0.700129509, 0.599653721, -1.00000823, 6.10606148e-05, -2.91038305e-10, -6.10604839e-05, -1.00000024, -6.10103889e-05, -3.7252903e-09, -6.10101415e-05, 1.00000858))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2=parts(m,"H2",Vector3.new(0.200000003, 0.99999994, 0.600000083),"Fossil",Enum.Material.SmoothPlastic,0,0)
H2Weld=welds(H2,"H2Weld",LArm,H2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.99965477, -0.300126553, 1.80020738, -1.00000823, 2.54608672e-08, -3.08500603e-09, 2.47945611e-08, 1, 6.10355346e-05, 3.08500603e-09, 6.10352727e-05, -1.00000823))
meshs(H2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(0.399999976, 1.19999993, 0.200000003),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699890137, -0.400120974, 0.999312639, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
meshs(H2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H2T=parts(m,"H2T",Vector3.new(1.10000002, 1.20000005, 1.10000002),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000299453735, -0.600040436, -0.000292748213, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
H2T=parts(m,"H2T",Vector3.new(0.399999976, 1.19999993, 0.600000083),"Smoky grey",Enum.Material.SmoothPlastic,0,0)
H2TWeld=welds(H2T,"H2TWeld",LArm,H2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699907303, -0.799860477, 2.40064788, 1.00000834, -2.26936798e-08, -6.10327697e-05, -2.57500066e-08, -1.00000024, -6.10383286e-05, -6.10325369e-05, 6.10380666e-05, -1.00000811))
meshs(H2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Wedge,"")
H22=parts(m,"H22",Vector3.new(0.200000003, 0.200000003, 0.200000003),"Smoky grey",Enum.Material.SmoothPlastic,0,1)
H22Weld=welds(H22,"H22Weld",LArm,H22,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699845314, 0.199993134, -0.6006881, 1.00000858, -3.44176243e-10, 0, -3.44176243e-10, 1, -1.30967237e-10, 0, -1.30967237e-10, 1.00000858))
for _,v in pairs(m:children()) do
if v:IsA("Part")and v.Name=="H2T"then
v.BrickColor=Torso.BrickColor
end
end
aaa=NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(1, .3)})
bbb=NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
local Efect=create("ParticleEmitter"){
Color=ColorSequence.new(Color3.new(0, 0, 0)),
LightEmission=.45,
Texture="rbxassetid://50657528",
Transparency=bbb,
Size=aaa,
ZOffset=0,
Acceleration=Vector3.new(0, 0, 0),
LockedToPart=false,
EmissionDirection="Top",
Lifetime=NumberRange.new(.2, .6),
Rate=100,
Rotation=NumberRange.new(-100, 100),
RotSpeed=NumberRange.new(-50, 50),
Speed=NumberRange.new(3),
VelocitySpread=1000,
Enabled=false,
Parent=Root
}
local Buff=create("BillboardGui"){
Size=UDim2.new(5, 0, 15, 0),
Adornee=Root,
Parent=Root,
ExtentsOffset=Vector3.new(0, 3, 0),
AlwaysOnTop=true
}
local BuffLabel=create("TextLabel"){
AnchorPoint=Vector2.new(.5,.5),
BackgroundTransparency=1,
TextStrokeTransparency=1,
TextTransparency=1,
TextColor3=Color3.new(0, 1, 1),
Position=UDim2.new(.5, 0, .5, 0),
Size=UDim2.new(1.5, 0, .2, 0),
Text="Damage+",
Font="SourceSansBold",
TextScaled=true,
Parent=Buff,
}
function Damage(Type,Part,hit,dmg,delet)
if hit.Parent==nil then
return
end
local h=hit.Parent:FindFirstChildOfClass("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid")then
h=v
end
end
if h~=nil and hit.Parent.Name~=chr.Name then
if hit.Parent:findFirstChild("AHit")==nil then
h.Health=h.Health-dmg
if h.Health==math.huge then
hit.Parent:BreakJoints()
end
end
if Type=="Disappear"then
Part.Parent=nil
if hit.Parent:findFirstChild("AHit")==nil then
local c=create("BoolValue"){
Name="AHit",
Value=true,
Parent=hit.Parent}
game:GetService("Debris"):AddItem(c,.1)
end
elseif Type=="None"then
if hit.Parent:findFirstChild("AHit")==nil then
local c=create("BoolValue"){
Name="AHit",
Value=true,
Parent=hit.Parent}
game:GetService("Debris"):AddItem(c,.2)
end
elseif Type=="Stun"then
if hit.Parent:findFirstChild("AHit")==nil then
local c=create("BoolValue"){
Name="AHit",
Value=true,
Parent=hit.Parent}
game:GetService("Debris"):AddItem(c,.2)
if hit.Parent:findFirstChild("Stunn")==nil then
swait()
local st=create("BoolValue"){
Name="Stunn",
Value=true,
Parent=hit.Parent}
coroutine.resume(coroutine.create(function()
local Stunned=Buff:Clone()
Stunned.Parent=hit.Parent.Torso
Stunned.Adornee=hit.Parent.Torso
Stunned.TextLabel.TextTransparency=0
Stunned.TextLabel.Text="Stunned"
Stunned.TextLabel.TextColor3=BrickColor.new("Bright yellow").Color
for i=1,90 do
swait()
if h~=nil then
h.PlatformStand=true
end
end
if h~=nil then
h.PlatformStand=false
Stunned:Remove()
st:Remove()
end
end))
end
end
end
end
end
function Mdamage(Type,Part,Magn,Dmg)
for _,c in pairs(workspace:children()) do
local hum=c:findFirstChildOfClass("Humanoid")
if hum~=nil then
local ddee=c:findFirstChild("Torso")
if ddee~=nil then
local targ=ddee.Position-Part.Position
local mag=targ.magnitude
if mag<=Magn and c.Name~=plr.Name then
Damage(Type,Part,ddee,Dmg)
if hum.Health==math.huge then
ddee:BreakJoints()
end
end
end
end
end
end
--v efec
function effect(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ)
local ex=create("Part"){
Size=Vector3.new(.2,.2,.2),
BrickColor=color,
CanCollide=false,
Material="Neon",
Anchored=true,
CFrame=CF,
Parent=par}
NoOutline(ex)
local exe=create("SpecialMesh"){
Scale=Vector3.new(x,y,z),
MeshType=mtyp,
Parent=ex}
game:GetService("Debris"):AddItem(ex,10)
coroutine.resume(coroutine.create(function()
for i=0,1.1,de do
swait()
ex.Transparency=i
exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
if typ=="1" then
ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
end
end
ex:Remove()
end))
end
--v atak
function Double_Swing(Combo)
attack=true
if Combo==1 then
sounds(Root,"rbxasset://sounds/swordslash.wav",1.4,.5)
for i=0,1,0.04 do
swait()
RJ.C0=clerp(RJ.C0,CFrame.new(0, 2.38418579e-07, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.15)
Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49998498, 0, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.15)
RS.C0=clerp(RS.C0,CFrame.new(0.297922134, 0.499999523, -0.919246554, 0, 0.707107008, 0.707106769, 1, 0, 0, 0, 0.707106769, -0.707107008)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.15)
LS.C0=clerp(LS.C0,CFrame.new(-1.62321556, 0.186608791, -1.03428392e-05, 0.866025567, 0.50000006, -6.2584877e-07, -0.49999994, 0.866025448, -9.25152108e-07, 5.96046448e-08, 1.10268593e-06, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.15)
if skilldoing2==true then
break
end
end
for i=0,1,0.04 do
swait()
Mdamage("None",H21,5,25)
RJ.C0=clerp(RJ.C0,CFrame.new(-0.0134251472, 2.38418579e-07, 0.00248581823, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
Neck.C0=clerp(Neck.C0,CFrame.new(0.0103835147, 1.49998498, -0.00886688009, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
RS.C0=clerp(RS.C0,CFrame.new(1.95501375, 0.5, 0.0547414422, 0, -1.00000012, 3.63588333e-06, 1, 0, 0, 0, 3.63588333e-06, 1.00000024)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
LS.C0=clerp(LS.C0,CFrame.new(-1.70622027, 0.223207235, -8.61013723e-06, 0.866025448, 0.500000179, -1.01327896e-06, -0.500000179, 0.866025329, -3.30419766e-06, -7.74860382e-07, 3.35276127e-06, 1.00000012)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
end
elseif Combo==2 then
sounds(Root,"rbxasset://sounds/swordslash.wav",1.4,.5)
for i=0,1,0.04 do
swait()
RJ.C0=clerp(RJ.C0,CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0-360*i),0),.25)
Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49997187, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
RS.C0=clerp(RS.C0,CFrame.new(0.424177349, 0.499999523, -0.736603677, 0, 0.866025388, 0.500000238, 1, 0, 0, 0, 0.500000238, -0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
LS.C0=clerp(LS.C0,CFrame.new(-1.62321162, 0.186600506, -0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
if skilldoing2==true then
break
end
end
for i=0,1,0.04 do
swait()
Mdamage("None",H21,5,25)
RJ.C0=clerp(RJ.C0,CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,-math.rad(60),0),.25)
Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49997187, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
RS.C0=clerp(RS.C0,CFrame.new(1.94689858, 0.499999046, -0.271645725, 0, -0.965925872, 0.258818984, 1, 0, 0, 0, 0.258818984, 0.965925872)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
LS.C0=clerp(LS.C0,CFrame.new(-1.73972023, 0.184798926, -0.496405095, 0.866025388, 0.433012843, -0.250000209, -0.500000238, 0.749999821, -0.433012813, 0, 0.500000179, 0.866025329)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.25)
if skilldoing2==true then
break
end
end
end
attack=false
end
--20
function Shield_bash()
if skilldoing==true then
return
end
skilldoing=true
sounds(Root,"rbxasset://sounds/swordslash.wav",1.4,.5)
for i=0,1,0.04 do
swait()
RJ.C0=clerp(RJ.C0,CFrame.new(1.83887551e-06, -0, -1.20737604e-05, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0-.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.4)
Neck.C0=clerp(Neck.C0,CFrame.new(9.91087381e-06, 1.50000405, 5.72204863e-06, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(-math.rad(15),0,0),.4)
RS.C0=clerp(RS.C0,CFrame.new(1.64187026, 0.0915770605, 0.146579325, 0.834234059, -0.491481364, -0.249999776, 0.491481364, 0.868308008, -0.0669870153, 0.249999672, -0.0669873804, 0.965926111)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
LS.C0=clerp(LS.C0,CFrame.new(-1.06342804, 0.500001669, -0.556205809, 0.866025388, -0.500000238, -0, 0, 0, -1, 0.500000238, 0.866025388, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
end
for i=0,1,0.03 do
swait()
Torso.Velocity=Root.CFrame.lookVector*80
Mdamage("Stun",H22,5,20)
RJ.C0=clerp(RJ.C0,CFrame.new(1.83887551e-06, -0, -1.20737604e-05, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0-.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.4)
Neck.C0=clerp(Neck.C0,CFrame.new(9.91087381e-06, 1.50000405, 5.72204863e-06, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(-math.rad(15),0,0),.4)
RS.C0=clerp(RS.C0,CFrame.new(1.64187026, 0.0915770605, 0.146579325, 0.834234059, -0.491481364, -0.249999776, 0.491481364, 0.868308008, -0.0669870153, 0.249999672, -0.0669873804, 0.965926111)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
LS.C0=clerp(LS.C0,CFrame.new(-1.06342804, 0.500001669, -0.556205809, 0.866025388, -0.500000238, -0, 0, 0, -1, 0.500000238, 0.866025388, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
end
Torso.Velocity=Root.CFrame.lookVector*0
skilldoing=false
end
--15
function Heavy_Slam()
if skilldoing2==true then
return
end
skilldoing2=true
sounds(Root,"rbxasset://sounds/swordslash.wav",1.4,.5)
for i=0,1,0.05 do
swait()
RJ.C0=clerp(RJ.C0,CFrame.new(-5.1479683e-06, 0, 1.02652402e-05, 0.258818984, 0, -0.965925872, 0, 1, 0, 0.965925872, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.35)
Neck.C0=clerp(Neck.C0,CFrame.new(1.84235739e-06, 1.49997687, 4.93658035e-07, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.35)
RS.C0=clerp(RS.C0,CFrame.new(1.58752, 1.21087456, 0.126979947, -0.258818984, -0.249999955, 0.933012784, 0, -0.965925872, -0.258818984, 0.965925872, -0.0669872686, 0.249999955)*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(180),0),.35)
LS.C0=clerp(LS.C0,CFrame.new(-1.52271605, -0.0491575897, -0.299874544, 0.95729661, 0.182984173, 0.223830506, -0.0614559986, 0.885313869, -0.46091488, -0.282500446, 0.427476525, 0.858753383)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.35)
if attack==true or skilldoing==true then
break
end
end
for i=0,1,0.25 do
swait()
Mdamage("Stun",H21,5,25)
RJ.C0=clerp(RJ.C0,CFrame.new(-0.0731226653, 0.0694650114, -0.586155891, 0.965925872, 2.59081474e-07, -0.258818954, 0.066986993, 0.965925872, 0.24999997, 0.24999997, -0.258818924, 0.933012784)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
Neck.C0=clerp(Neck.C0,CFrame.new(0.0903269053, 1.49997711, 0.0546064675, 0.965925872, -2.68220901e-07, 0.258818954, 2.59081474e-07, 1, 5.96046448e-08, -0.258818954, 1.49011612e-08, 0.965925932)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
RS.C0=clerp(RS.C0,CFrame.new(1.32903087, 1.02654374, -0.715164542, 0.840777397, -0.170937806, -0.513686419, -0.466504991, -0.710224271, -0.527213871, -0.274711847, 0.682906806, -0.676883936)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
LS.C0=clerp(LS.C0,CFrame.new(-1.72370338, 0.169461936, 0.070544444, 0.95538187, 0.292732775, 0.0394070297, -0.295371622, 0.947278559, 0.124172792, -0.000979959965, -0.13027215, 0.991477847)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
if attack==true or skilldoing==true then
break
end
end
coroutine.resume(coroutine.create(function()
local ref=parts(e,"ref2",Vector3.new(9,.2,9),"Pastel Blue",Enum.Material.Neon,0,1)
ref.Anchored=true
ref.CFrame=Root.CFrame*CFrame.new(0,-2.5,0)
for i=1,10 do
swait(7)
ref.CFrame=ref.CFrame*CFrame.new(0,0,-5.5)
effect(e,Torso.BrickColor,ref.CFrame*CFrame.Angles(0,0,0),20,100,20,0,0,0,.06,"Brick",2,"")
sounds(ref,"rbxassetid://324561022",1.2,1.5)
Mdamage("Stun",ref,7,15)
end
game:GetService("Debris"):AddItem(ref,1)
end))
for i=0,1,0.06 do
swait()
Mdamage("Stun",H21,5,25)
RJ.C0=clerp(RJ.C0,CFrame.new(-1.14440918e-05, -0.335707039, -0.854133964, 0, 0, 1, -0.500000238, 0.866025388, 0, -0.866025388, -0.500000238, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
Neck.C0=clerp(Neck.C0,CFrame.new(-0.0965943933, 1.47408831, 0, 0, -0.258819342, -0.965925872, 0, 0.965925872, -0.258819342, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
RS.C0=clerp(RS.C0,CFrame.new(1.64268148, 0.172163099, 3.81469727e-06, 0, -0.403269738, -0.915081382, 0, 0.915081382, -0.403269738, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
LS.C0=clerp(LS.C0,CFrame.new(-1.67612326, 0.0290422738, -0.261712343, 0.441619009, 0.842752755, -0.307799578, -0.877860069, 0.4767268, 0.0457543656, 0.18529591, 0.249998927, 0.950350404)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
if attack==true or skilldoing==true then
break
end
end
skilldoing2=false
end
--15
mouse.Button1Down:connect(function()
if attack==false then
if combo==1 then
combo=2
Double_Swing(1)
elseif combo==2 then
combo=1
Double_Swing(2)
end
end
end)
mouse.KeyDown:connect(function(k)
k=k:lower()
if k=="z" and skilldoing==false then
Shield_bash()
elseif k=="x" and skilldoing2==false then
Heavy_Slam()
end
end)
while chr.Humanoid.Health>=0 do
swait()
sin=sin+cha
hum.WalkSpeed=25
local torvel=(Root.Velocity*Vector3.new(1,0,1)).magnitude
local velderp=Root.Velocity.y
hitfloor,posfloor=rayCast(Root.Position,(CFrame.new(Root.Position,Root.Position-Vector3.new(0,1,0))).lookVector,4,chr)
if Root.Velocity.y>1 and hitfloor==nil then
Pose="Jump"
if attack==false and skilldoing==false and skilldoing2==false then
RJ.C0=clerp(RJ.C0,CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49998474, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
RS.C0=clerp(RS.C0,CFrame.new(1.70980763, 0.236601114, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
LS.C0=clerp(LS.C0,CFrame.new(-1.70980763, 0.236601114, -0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
end
RH.C0=clerp(RH.C0,CFrame.new(0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
LH.C0=clerp(LH.C0,CFrame.new(-0.5, -1.99998808, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
elseif Root.Velocity.y<-1 and hitfloor==nil then
Pose="Fall"
if attack==false and skilldoing==false and skilldoing2==false then
RJ.C0=clerp(RJ.C0,CFrame.new(-0.034501072, -0, -0.0986937582, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
Neck.C0=clerp(Neck.C0,CFrame.new(0.0941823646, 1.49998474, 0.0453972146, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
RS.C0=clerp(RS.C0,CFrame.new(1.63909817, 0.114127249, -2.24583914e-07, 0.965925992, -0.258818954, 1.78813934e-07, 0.258818924, 0.965925932, -6.76490401e-07, 0, 7.15255737e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
LS.C0=clerp(LS.C0,CFrame.new(-1.63910222, 0.114126861, 2.24584937e-07, 0.965925992, 0.258818954, 1.78813934e-07, -0.258818924, 0.965925932, 6.76490401e-07, 0, -7.15255737e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
end
RH.C0=clerp(RH.C0,CFrame.new(0.499996245, -1.99998808, -7.62939544e-06, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
LH.C0=clerp(LH.C0,CFrame.new(-0.499994338, -1.19998801, -0.500003874, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
elseif torvel<1 and hitfloor~=nil then
Pose="Idle"
if attack==false and skilldoing==false and skilldoing2==false then
RJ.C0=clerp(RJ.C0,CFrame.new(0, -0.1, -0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388)*CFrame.new(0,0-.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
Neck.C0=clerp(Neck.C0,CFrame.new(-9.53674771e-07, 1.49998951, -1.65181234e-06, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
RS.C0=clerp(RS.C0,CFrame.new(1.67320299, 0.10000509, 3.71405895e-06, 0.866025567, -0.5, 8.94069672e-08, 0.49999994, 0.866025507, -2.49183756e-07, 5.96046448e-08, 2.5331974e-07, 1.00000012)*CFrame.new(0-.05*math.cos(sin/18),0,0) * CFrame.Angles(0,0,math.rad(0-8*math.cos(sin/18))),.3)
LS.C0=clerp(LS.C0,CFrame.new(-1.67320156, 0.0999999046, 1.0063988e-07, 0.866025567, 0.5, 8.94069672e-08, -0.49999994, 0.866025507, 2.50893436e-07, 5.96046448e-08, -2.5331974e-07, 1.00000012)*CFrame.new(0+.05*math.cos(sin/18),0,0) * CFrame.Angles(0,0,math.rad(0+8*math.cos(sin/18))),.3)
end
RH.C0=clerp(RH.C0,CFrame.new(0.500003934, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
LH.C0=clerp(LH.C0,CFrame.new(-0.500000119, -1.89999309, -0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
elseif torvel>2 and hitfloor~=nil then
Pose="Walk"
if attack==false and skilldoing==false and skilldoing2==false then
RJ.C0=clerp(RJ.C0,CFrame.new(0, -0.0669884086-.1*math.cos(sin/3), -0.249999404, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0)+Root.RotVelocity.Y/15,0),.3)
Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.47410548, 0.096591115, 1, 0, 0, 0, 0.965925872, -0.258819342, 0, 0.258819342, 0.965925872)*CFrame.new(0,0,0)*CFrame.Angles(0,0+Head.RotVelocity.Y/25,0),.3)
RS.C0=clerp(RS.C0,CFrame.new(1.50000083, -1.7881257e-07, -7.55374003e-07, 0.866024852, -0.500000954, -3.31524848e-06, 0.500000954, 0.866024971, -2.38418579e-07, 2.98023224e-06, -1.4603138e-06, 1.00000012)*CFrame.new(.2,.1,0+.8*math.cos(sin/6)) * CFrame.Angles(math.rad(0-70*math.cos(sin/6)),0,0),.3)
LS.C0=clerp(LS.C0,CFrame.new(-1.5, 7.74863224e-07, -2.42472197e-07, 0.86602515, 0.500000536, -1.43179045e-06, -0.500000536, 0.866025209, 1.49011612e-06, 1.98185444e-06, -5.66244125e-07, 1.00000012)*CFrame.new(-.2,.1,0-.8*math.cos(sin/6)) * CFrame.Angles(math.rad(0+70*math.cos(sin/6)),0,0),.3)
end
RH.C0=clerp(RH.C0,CFrame.new(0.5, -1.99998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024)*CFrame.new(0,0,0-1*math.cos(sin/6)) * CFrame.Angles(math.rad(0+70*math.cos(sin/6)),0,0),.3)
LH.C0=clerp(LH.C0,CFrame.new(-0.5, -1.99998903, -0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024)*CFrame.new(0,0,0+1*math.cos(sin/6)) * CFrame.Angles(math.rad(0-70*math.cos(sin/6)),0,0),.3)
end
end