Roblox Lua Script for Player Setup
Roblox Lua Script for Player Setup
LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
m=Instance.new('Model',Character)
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right Arm"]
RightLeg=Character["Right Leg"]
LS=Torso["Left Shoulder"]
LH=Torso["Left Hip"]
RS=Torso["Right Shoulder"]
RH=Torso["Right Hip"]
Face = Head.face
Neck=Torso.Neck
it=Instance.new
attacktype=1
vt=Vector3.new
cf=CFrame.new
euler=CFrame.fromEulerAnglesXYZ
angles=CFrame.Angles
cloaked=false
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
RootPart=Character.HumanoidRootPart
RootJoint=RootPart.RootJoint
RootCF=euler(-1.57,0,3.14)
attack = false
attackdebounce = false
deb=false
equipped=true
hand=false
MMouse=nil
combo=0
mana=0
trispeed=.2
attackmode='none'
local idle=0
local Anim="Idle"
local Effects={}
local gun=false
local shoot=false
player=nil
mana=0
cam = workspace.CurrentCamera
ZTarget = nil
RocketTarget = nil
mouse=Player:GetMouse()
--save shoulders
RSH, LSH=nil, nil
--welds
RW, LW=Instance.new("Weld"), Instance.new("Weld")
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
LH=Torso["Left Hip"]
RH=Torso["Right Hip"]
TorsoColor=Torso.BrickColor
function NoOutline(Part)
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSur
face,Part.BackSurface = 10,10,10,10,10,10
end
player=Player
ch=Character
RSH=ch.Torso["Right Shoulder"]
LSH=ch.Torso["Left Shoulder"]
--
RSH.Parent=nil
LSH.Parent=nil
--
RW.Name="Right Shoulder"
RW.Part0=ch.Torso
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
RW.C1=cf(0, 0.5, 0)
RW.Part1=ch["Right Arm"]
RW.Parent=ch.Torso
--
LW.Name="Left Shoulder"
LW.Part0=ch.Torso
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
LW.C1=cf(0, 0.5, 0)
LW.Part1=ch["Left Arm"]
LW.Parent=ch.Torso
function swait(num)
if num==0 or num==nil then
game:service'RunService'.Heartbeat:wait(0)
else
for i=0,num do
game:service'RunService'.Heartbeat:wait(0)
end
end
end
function nooutline(part)
part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSur
face,part.BackSurface = 10,10,10,10,10,10
end
function
part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
local fp=it("Part")
fp.formFactor=formfactor
fp.Parent=parent
fp.Reflectance=reflectance
fp.Transparency=transparency
fp.CanCollide=false
fp.Locked=true
fp.BrickColor=BrickColor.new(tostring(brickcolor))
fp.Name=name
fp.Size=size
fp.Position=Character.Torso.Position
nooutline(fp)
fp.Material=material
fp:BreakJoints()
return fp
end
function mesh(Mesh,part,meshtype,meshid,offset,scale)
local mesh=it(Mesh)
mesh.Parent=part
if Mesh=="SpecialMesh" then
mesh.MeshType=meshtype
mesh.MeshId=meshid
end
mesh.Offset=offset
mesh.Scale=scale
return mesh
end
function weld(parent,part0,part1,c0,c1)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
weld.C1=c1
return weld
end
function Triangle(a, b, c)
local edg1 = (c-a):Dot((b-a).unit)
local edg2 = (a-b):Dot((c-b).unit)
local edg3 = (b-c):Dot((a-c).unit)
if edg1 <= (b-a).magnitude and edg1 >= 0 then
a, b, c = a, b, c
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
a, b, c = b, c, a
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
a, b, c = c, a, b
else
assert(false, "unreachable")
end
so = function(id,par,vol,pit)
coroutine.resume(coroutine.create(function()
local sou = Instance.new("Sound",par or workspace)
sou.Volume=vol
sou.Pitch=pit or 1
sou.SoundId=id
swait()
sou:play()
game:GetService("Debris"):AddItem(sou,6)
end))
end
function clerp(a,b,t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1-t
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az +
t*bz,QuaternionSlerp(qa, qb, t))
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5/s
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00-m11-m22+1)
local recip = 0.5/s
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
elseif i == 1 then
local s = math.sqrt(m11-m22-m00+1)
local recip = 0.5/s
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
elseif i == 2 then
local s = math.sqrt(m22-m00-m11+1)
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
end
end
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = math.acos(cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((1-t)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = 1-t
finishInterp = t
end
else
if (1+cosTheta) > 0.0001 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((t-1)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = t-1
finishInterp = t
end
end
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp,
a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
end
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackTyp
e,decreaseblock)
if hit.Parent==nil then
return
end
local h=hit.Parent:FindFirstChild("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h=v
end
end
if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
h=hit.Parent.Parent:FindFirstChild("Humanoid")
end
if hit.Parent.className=="Hat" then
hit=hit.Parent.Parent:findFirstChild("Head")
end
if h~=nil and hit.Parent.Name~=Character.Name and
hit.Parent:FindFirstChild("Torso")~=nil then
if hit.Parent:findFirstChild("DebounceHit")~=nil then if
hit.Parent.DebounceHit.Value==true then return end end
--[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil
then
return
end]]
-- hs(hit,1.2)
local c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=game:service("Players").LocalPlayer
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
local Damage=math.random(minim,maxim)
-- h:TakeDamage(Damage)
local blocked=false
local block=hit.Parent:findFirstChild("Block")
if block~=nil then
print(block.className)
if block.className=="NumberValue" then
if block.Value>0 then
blocked=true
if decreaseblock==nil then
block.Value=block.Value-1
end
end
end
if block.className=="IntValue" then
if block.Value>0 then
blocked=true
if decreaseblock~=nil then
block.Value=block.Value-1
end
end
end
end
if blocked==false then
-- h:TakeDamage(Damage)
h.Health=h.Health-Damage
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p +
Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
else
h.Health=h.Health-(Damage/2)
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p +
Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
end
if Type=="Knockdown" then
local hum=hit.Parent.Humanoid
hum.PlatformStand=true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand=false
end),hum)
local angle=(hit.Position-
(Property.Position+Vector3.new(0,0,0))).unit
--
hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFr
ame.fromEulerAnglesXYZ(math.pi/4,0,0)
local bodvol=Instance.new("BodyVelocity")
bodvol.velocity=angle*knockback
bodvol.P=5000
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodvol.Parent=hit
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-
10,10),math.random(-10,10))
rl.Parent=hit
game:GetService("Debris"):AddItem(bodvol,.5)
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Normal" then
local vp=Instance.new("BodyVelocity")
vp.P=500
vp.maxForce=Vector3.new(math.huge,0,math.huge)
-- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
if KnockbackType==1 then
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
elseif KnockbackType==2 then
vp.velocity=Property.CFrame.lookVector*knockback
end
if knockback>0 then
vp.Parent=hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp,.5)
elseif Type=="Up" then
local bodyVelocity=Instance.new("BodyVelocity")
bodyVelocity.velocity=vt(0,60,0)
bodyVelocity.P=5000
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodyVelocity.Parent=hit
game:GetService("Debris"):AddItem(bodyVelocity,1)
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-
30,30),math.random(-30,30))
rl.Parent=hit
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Snare" then
local bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=100
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position
bp.Parent=hit.Parent.Torso
game:GetService("Debris"):AddItem(bp,1)
elseif Type=="Target" then
local Targetting = false
if Targetting==false then
ZTarget=hit.Parent.Torso
coroutine.resume(coroutine.create(function(Part)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
swait(5)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
end),ZTarget)
local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
local targetgui=Instance.new("BillboardGui")
targetgui.Parent=ZTarget
targetgui.Size=UDim2.new(10,100,10,100)
local targ=Instance.new("ImageLabel")
targ.Parent=targetgui
targ.BackgroundTransparency=1
targ.Image="rbxassetid://4834067"
targ.Size=UDim2.new(1,0,1,0)
cam.CameraType="Scriptable"
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
local
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z
)
workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
Targetting=true
RocketTarget=ZTarget
for i=1,Property do
--while Targetting==true and Humanoid.Health>0 and
Character.Parent~=nil do
if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0
and TargHum.Parent~=nil and Targetting==true then
swait()
end
--workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rm
dir*100)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z
)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-
0.3,0,0)
end
Targetting=false
RocketTarget=nil
targetgui.Parent=nil
cam.CameraType="Custom"
end
end
local debounce=Instance.new("BoolValue")
debounce.Name="DebounceHit"
debounce.Parent=hit.Parent
debounce.Value=true
game:GetService("Debris"):AddItem(debounce,Delay)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=Player
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
end
end
Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really
black","Handle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1,
0, 0, 0, 1),CFrame.new(1.01009071, -0.0637333393, -0.0167479515, -0.00027436731,
0.999993384, -6.46220633e-006, 1.38920723e-005, -6.2527256e-006, -0.999993801,
-0.99999702, -0.00026819724, -1.3899984e-005))
mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really
black","FakeHandle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(8.58306885e-006, -0.000596046448, -2.38418579e-007, 0.999993742,
4.3684995e-006, 6.23631286e-006, -3.95727147e-006, 0.999987602, 9.94805305e-009,
6.10223196e-006, 9.11404641e-009, 0.999994099))
mesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.347999901, 0.812000155, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-0.818475366, -1.24264455, 5.84125519e-006, 0.707105577, 0.707095146,
-7.15835995e-008, -0.707099378, 0.707100868, 7.07505023e-008, 1.24391281e-005,
1.96059773e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.347999901, 1.62400007, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(5.48362732e-006, 1.79848576, 4.17232513e-006, 0.999993742,
-4.12408235e-006, -1.00579854e-007, 4.53530902e-006, 0.999987602, -6.63931132e-010,
1.2439099e-005, 1.96941983e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New
Yeller","Part",Vector3.new(0.579999864, 0.232000008, 0.34799999))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-3.06921482, -2.14576721e-006, 9.29832458e-006, -4.81849111e-006,
-0.999987602, 1.02045306e-008, -1.85413301e-005, -2.92047844e-008, -0.999994099,
0.999993742, -4.4072649e-006, -6.20281025e-006))
mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1,
1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.927999914, 0.579999983, 0.231999993))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(3.0750308, -1.1920929e-005, 7.15255737e-007, 5.43538044e-006,
0.999987602, 1.84245437e-008, -0.999993742, 5.02414923e-006, -1.22379215e-005,
1.00590412e-007, 6.63021638e-010, 0.999994099))
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?
id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.912919998, 0.907119989,
0.533599973))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.811999917, 0.69599998, 0.231999993))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-2.73329997, 0.222070813, 2.74181366e-006, 4.81849111e-006,
0.999987602, -1.02045306e-008, -0.999993742, 4.4072649e-006, 6.26986548e-006,
1.86083853e-005, 2.92038749e-008, 0.999994099))
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?
id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.856079936, 0.875800014, 1.73883998))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New
Yeller","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(5.96046448e-006, -0.810907125, 8.34465027e-007, 0.999993742,
-4.49649269e-006, -1.24725302e-005, 4.90771481e-006, 0.999987602, -1.99188435e-008,
2.48110555e-005, 3.8885446e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New
Yeller","Part",Vector3.new(0.347999901, 0.232000008, 0.34799999))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(2.72911215, -3.09944153e-006, -0.232034326, -5.02408784e-006,
-0.999987602, 1.97460395e-008, -2.47105891e-005, -3.87117325e-008, -0.999994099,
0.999993742, -4.61286618e-006, -1.23720656e-005))
mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1,
1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.463999897, 2.08800006, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(0.589904547, -2.67522669, 4.17232513e-006, 0.999993742, -4.53528401e-
006, -1.24391199e-005, 4.94650567e-006, 0.999987602, -1.974513e-008, 2.47776443e-
005, 3.8710823e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.347999901, 1.3920002, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-3.57627869e-007, -1.67933106, 4.05311584e-006, 0.999993742,
-4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008,
3.09469033e-005, 4.82132236e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New
Yeller","Part",Vector3.new(0.927999914, 0.232000008, 0.927999973))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(4.3587079, -6.7949295e-006, 0.121757269, -5.22968594e-006,
-0.999987602, 2.92857294e-008, -3.08798481e-005, -4.82132236e-008, -0.999994099,
0.999993742, -4.818462e-006, -1.8541321e-005))
mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1,
1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","Part",Vector3.new(0.231999904, 0.580000043, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-0.338058472, -3.42915106, 2.02655792e-006, 0.999993742,
-4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008,
3.09469033e-005, 4.82132236e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New
Yeller","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-1.40666962e-005, 0.812601328, 2.2649765e-006, 0.999993742,
-4.70208943e-006, -1.86417856e-005, 5.11331291e-006, 0.999987602, -2.94576239e-008,
3.09803145e-005, 4.83869371e-008, 0.999994099))
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
center=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy
blue","center",Vector3.new(1.04399991, 0.928000033, 0.231999993))
centerweld=weld(m,FakeHandle,center,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-4.35712862, -0.125956893, 4.88758087e-006, 5.22968639e-006,
0.999987602, -2.88782758e-008, -0.999993742, 4.818462e-006, 1.8541321e-005,
3.08798481e-005, 4.780577e-008, 0.999994099))
mesh("SpecialMesh",center,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?
id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.46971989, 1.53120005, 1.73883998))
hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy
blue","hitbox",Vector3.new(2.04399991, 2.12800026, 0.631999969))
hitboxweld=weld(m,FakeHandle,hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-4.2571373, -0.125955701, 9.89437103e-006, 5.43528176e-006,
0.999987602, -3.80077836e-008, -0.999993742, 5.02405965e-006, 2.46435502e-005,
3.69820809e-005, 5.6898898e-008, 0.999994099))
hitbox2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy
blue","hitbox2",Vector3.new(0.843999922, 1.12800026, 0.631999969))
hitbox2weld=weld(m,FakeHandle,hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(3.14270258, -0.0259480476, 1.6450882e-005, 6.46339595e-006,
0.999987602, -1.0207259e-008, -0.999993801, 6.05217065e-006, 6.26990641e-006,
1.86083962e-005, 2.91774995e-008, 0.999994099))
tip=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy
blue","tip",Vector3.new(0.643999934, 0.528000295, 0.631999969))
tipweld=weld(m,FakeHandle,tip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-4.35690403, -0.125970602, 3.06367874e-005, 5.64087668e-006,
0.999987602, -4.83623808e-008, -0.999993742, 5.2296582e-006, 3.09469469e-005,
4.32854467e-005, 6.72098395e-008, 0.999994099))
tip2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy
blue","tip2",Vector3.new(0.643999934, 0.728000283, 0.631999969))
tip2weld=weld(m,FakeHandle,tip2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0,
1),CFrame.new(-0.0259525776, -3.04272366, 2.0980835e-005, -0.999993742,
5.10741256e-006, 3.06882685e-005, -5.5184023e-006, -0.999987602, 5.35810159e-006,
4.30268083e-005, 5.37692085e-006, 0.999994099))
mouse.Button1Down:connect(function()
if attack==false and attacktype==1 then
attacktype=2
attackone()
elseif attack==false and attacktype==2 then
attacktype=1
attacktwo()
end
end)
mouse.KeyDown:connect(function(k)
k=k:lower()
if k=='e' and attack==false then
Debuff()
elseif k=='q' and attack==false then
Support()
elseif k=='r' and attack==false then
TelekineticSpin()
end
end)
function TelekineticSpin()
so("http://roblox.com/asset/?id=199145327",Torso,1,1)
attack=true
blcf=nil
scfr=nil
local con = hitbox.Touched:connect(function(hit)
Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
for i=0,1,0.1 do
swait()
FakeHandleweld.C0=cf(0,0,0)*euler(0,0,-5*i)
Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,.2),.2)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.8,0,0),.2)
RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
end
for i=0,1,0.15 do
swait()
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(0)),.3)
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0),.4)
RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
end
hitfloor=nil
swait(10)
attack=false
con:disconnect()
end
function attackone()
attack=true
for i=0,1.5,0.1 do
swait()
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(-55)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(55)
),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles
(math.rad(-25),0,0),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
RH.C0=clerp(RH.C0,cf(1,-
1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(20)),.3)
end
local con = hitbox.Touched:connect(function(hit)
Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
so("http://roblox.com/asset/?id=206083107",Torso,1,1)
for i=0,1.5,0.1 do
swait()
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(55)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-
45)),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles
(math.rad(90),0,0),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
RH.C0=clerp(RH.C0,cf(1,-
1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(20)),.3)
end
attack=false
con:disconnect()
end
function attacktwo()
attack=true
for i=0,1,0.1 do
swait()
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
end
local con = hitbox.Touched:connect(function(hit)
Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
so("http://roblox.com/asset/?id=206083107",Torso,1,.9)
for i=0,1,0.1 do
swait()
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
end
con:disconnect()
attack=false
end
ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2,color)
local rng = Instance.new("Part", Character.Torso)
rng.Anchored = true
rng.BrickColor = BrickColor.new(tostring(color))
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = .5
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = where * CFrame.Angles(math.rad(way), math.rad(way2), 0)
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = vector--10,10,1
for i = 1, 20, 1 do
rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2,
10 + i*2, 1)
rng.Transparency = i/20
swait()
end
wait()
rng:destroy''
end
function MagniDamage(HitPart,Part,magni,mindam,maxdam,knock,Type)
for _,c in pairs(workspace:children()) do
local hum=c:findFirstChild("Humanoid")
if hum~=nil then
local head=c:findFirstChild("Torso")
if head~=nil then
local targ=head.Position-Part.Position
local mag=targ.magnitude
if mag<=magni and c.Name~=Player.Name then
Damagefunc(HitPart,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
end
end
end
end
end
function Debuff()
attack=true
for i=0,2,0.1 do
swait()
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(0)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-
35),math.rad(0),math.rad(0)),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-
25),0,0),.3)
RH.C0=clerp(RH.C0,cf(1,-
1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(60)),.5)
end
x = Instance.new("Sound")
x.SoundId = "http://www.roblox.com/asset/?id=142070127"
x.Parent = Character.Head
x.Looped = false
x.Pitch = .88
x.Volume = 1
wait()
x:Play()
local Shockwave = function()
local Wave = Instance.new("Part", game.Workspace)
Wave.Name = "Shockwave"
Wave.BrickColor = BrickColor.new("Navy blue")
Wave.Size = Vector3.new(1, 1, 1)
Wave.CanCollide = false
Wave.Anchored = true
Wave.TopSurface = 0
Wave.BottomSurface = 0
Delay(0, function()
for i = 1, 38, 1 do
Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
Wave.CFrame = hitbox.CFrame
local t = i / 38
Wave.Transparency = t
wait()
end
Wave:Destroy()
end)
Delay(0, function()
while wait() do
if Wave ~= nil then
Wave.CFrame = hitbox.CFrame
else
break
end
end
end)
end
Shockwave()
wait(1)
for i=0,2,0.1 do
swait()
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(0)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)
),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-25)),.3)
RH.C0=clerp(RH.C0,cf(1,-
1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(-30)),.5)
end
x = Instance.new("Sound")
x.SoundId = "rbxassetid://2248511"
x.Parent = Character.Head
x.Looped = false
x.Pitch = .88
x.Volume = 1
wait()
x:Play()
ring(90,0,tip2.CFrame*CFrame.new(0,-
1,0),Vector3.new(1,1,1),1,1,1,.5,.5,'Navy blue')
attack=false
end
function Support()
attack=true
for i=0,2,0.1 do
swait()
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(0)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-
35),math.rad(0),math.rad(0)),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-
25),0,0),.3)
RH.C0=clerp(RH.C0,cf(1,-
1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(50)),.5)
end
x = Instance.new("Sound")
x.SoundId = "http://www.roblox.com/asset/?id=233091183"
x.Parent = Character.Head
x.Looped = false
x.Pitch = 1
x.Volume = 1
wait()
x:Play()
local Shockwave = function()
local Wave = Instance.new("Part", game.Workspace--[[?]])
Wave.Name = "Shockwave"
Wave.BrickColor = BrickColor.new("New Yeller")
Wave.Size = Vector3.new(1, 1, 1)
Wave.Shape = "Ball"
Wave.CanCollide = false
Wave.Anchored = true
Wave.TopSurface = 0
Wave.BottomSurface = 0
Wave.Touched:connect(function(hit)
print("Support Wave")
if hit.Parent:findFirstChild("Humanoid") and
hit.Parent:findFirstChild("Torso") then
if hit.Parent.Name ~= Character.Name then
print("Used Support wave on: " .. hit.Parent.Name)
hit.Parent:findFirstChild("Humanoid").WalkSpeed = 20
hit.Parent:findFirstChild("Humanoid").MaxHealth = 120
hit.Parent:findFirstChild("Humanoid").Health =
hit.Parent:findFirstChild("Humanoid").MaxHealth
end
end
end)
Delay(0, function()
for i = 1, 38, 1 do
Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
Wave.CFrame = hitbox.CFrame
local t = i / 38
Wave.Transparency = t
wait()
end
Wave:Destroy()
end)
Delay(0, function()
while wait() do
if Wave ~= nil then
Wave.CFrame = hitbox.CFrame
else
break
end
end
end)
end
Shockwave()
wait(1)
attack=false
end
local sine = 0
local change = 1
local val = 0
local mananum=0
while true do
swait()
sine = sine + change
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
local velderp=RootPart.Velocity.y
hitfloor,posfloor=rayCast(RootPart.Position,
(CFrame.new(RootPart.Position,RootPart.Position -
Vector3.new(0,1,0))).lookVector,4,Character)
if equipped==true or equipped==false then
if attack==false then
idle=idle+1
else
idle=0
end
if idle>=500 then
if attack==false then
--Sheath()
end
end
if RootPart.Velocity.y > 1 and hitfloor==nil then
Anim="Jump"
if attack==false then
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(0)),.3)
end
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
Anim="Fall"
if attack==false then
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(0)),.3)
end
elseif torvel<1 and hitfloor~=nil then
Anim="Idle"
if attack==false then
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(-45)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)
),.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45))*angle
s(math.rad(-25),0,0),.3)
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-
90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(.2,.5,0)*angles(math.rad(0),math.rad(0
),math.rad(-25)),.3)
end
elseif torvel>2 and hitfloor~=nil then
Anim="Walk"
if attack==false then
change=1
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),mat
h.rad(0)),.3)
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0))
,.3)
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-
15*math.cos(sine/9)),math.rad(0),math.rad(5)),.3)
LW.C0=clerp(LW.C0,cf(-
1.5,0.5,0)*angles(math.rad(35*math.cos(sine/9)),math.rad(0),math.rad(-5)),.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),
math.rad(0)),.3)
end
end
end
local FireColors = {'Navy blue', 'New Yeller'}
local p = Instance.new('Part', Character.Torso)
p.Transparency=.5
p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)])
p.FormFactor = 'Custom'
p.Size = Vector3.new(.8, .8, .8)
p.CanCollide = false
p.Anchored = true
p.Locked = true
p.CFrame = center.CFrame *
CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3))
Instance.new('BlockMesh', p)
coroutine.wrap(function()
for i = 1, 10 do
p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1)
p.CFrame = p.CFrame * CFrame.new(0, -.15, 0)
wait()
end
end)()
game:service'Debris':AddItem(p, 2)
end