Run it
Copy the script and paste it into your executor.
.CharacterBug =
.GodMode =
.R6 =
(:())()
() .MSG ~=
() .MSG.Text ==
().LoadLibrary = (a)
t = {}
=
=
=
=
=
=
=
=
=
=
assert = assert
StringBuilder = {
buffer = {}
}
StringBuilder:()
o = {}
(o, self)
self.__index = self
o.buffer = {}
o
StringBuilder:(s)
self.buffer[#self.buffer+] = s
StringBuilder:()
.(self.buffer)
JsonWriter = {
backslashes = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] =
}
}
JsonWriter:()
o = {}
o.writer = StringBuilder:()
(o, self)
self.__index = self
o
JsonWriter:(s)
self.writer:(s)
JsonWriter:()
self.writer:()
JsonWriter:(o)
t = (o)
t ==
self:()
t ==
self:(o)
t ==
self:(o)
t ==
self:(o)
t ==
self:(o)
t ==
self:(o)
t ==
self:(o)
t ==
self:(o)
JsonWriter:()
self:()
JsonWriter:(o)
self:((o))
JsonWriter:(s)
self:()
self:(.(s, , (n)
c = self.backslashes[n]
c c
.(, .(n))
))
self:()
JsonWriter:(t)
count =
isindex = (k)
(k) == k >
.(k) == k
k,v (t)
(k)
, ,
count = .(count, k)
, , , count
JsonWriter:(t)
ba, st, et, n = self:(t)
self:(st)
ba
i = , n
self:(t[i])
i < n
self:()
first = ;
k, v (t)
first
self:()
first = ;
self:(k)
self:()
self:(v)
self:(et)
JsonWriter:(o)
(.(
,
(o)))
JsonWriter:(o)
o == Null
self:()
self:(o)
StringReader = {
s = ,
i =
}
StringReader:(s)
o = {}
(o, self)
self.__index = self
o.s = s o.s
o
StringReader:()
i = self.i +
i <= #self.s
.(self.s, i, i)
StringReader:()
self.i = self.i+
self.i <= #self.s
.(self.s, self.i, self.i)
StringReader:()
self.s
JsonReader = {
escapes = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
}
}
JsonReader:(s)
o = {}
o.reader = StringReader:(s)
(o, self)
self.__index = self
o;
JsonReader:()
self:()
peek = self:()
peek ==
(.(
,
self:()))
peek ==
self:()
peek ==
self:()
peek ==
self:()
.(peek, )
self:()
peek ==
self:()
peek ==
self:()
peek ==
self:()
peek ==
self:()
self:()
JsonReader:()
self:{,,,}
JsonReader:()
self:{,,,,}
JsonReader:()
self:{,,,}
JsonReader:(t)
i, v (t)
self:() ~= v
(.(
,
.(t),
self:()))
JsonReader:()
result = self:()
peek = self:()
peek ~= .(
peek,
)
result = result .. self:()
peek = self:()
result = (result)
result ==
(.(
,
result))
result
JsonReader:()
result =
(self:() == )
self:() ~=
ch = self:()
ch ==
ch = self:()
self.escapes[ch]
ch = self.escapes[ch]
result = result .. ch
(self:() == )
fromunicode = (m)
.((m, ))
.(
result,
,
fromunicode)
JsonReader:()
(self:() == )
second = self:()
second ==
self:()
second ==
self:()
(.(
,
self:()))
JsonReader:()
done =
done
ch = self:()
ch == self:() ==
done =
done
ch ==
self:() ==
(.(
,
self:()))
self:()
JsonReader:()
ch = self:()
ch ~= ch ~=
ch = self:()
JsonReader:()
result = {}
(self:() == )
done =
self:() ==
done = ;
done
item = self:()
result[#result+] = item
self:()
self:() ==
done =
done
ch = self:()
ch ~=
(.(
,
self:(), ch))
( == self:())
result
JsonReader:()
result = {}
(self:() == )
done =
self:() ==
done =
done
key = self:()
(key) ~=
(.(
,
key))
self:()
ch = self:()
ch ~=
(.(
,
self:(),
ch))
self:()
val = self:()
result[key] = val
self:()
self:() ==
done =
done
ch = self:()
ch ~=
(.(
,
self:(),
ch))
(self:() == )
result
JsonReader:()
p = self:()
p ~= .(p, )
p ==
self:()
self:()
p = self:()
JsonReader:()
self.reader:()
JsonReader:()
self.reader:()
JsonReader:()
self.reader:()
(o)
writer = JsonWriter:()
writer:(o)
writer:()
(s)
reader = JsonReader:(s)
reader:()
()
Null
t.DecodeJSON = (jsonString)
(() () )
(jsonString) ==
(jsonString)
()
t.EncodeJSON = (jsonTable)
(() () )
(jsonTable)
t.MakeWedge = (x, y, z, defaultmaterial)
:():(x,y,z)
t.SelectTerrainRegion = (regionToSelect, color, selectEmptyCells, selectionParent)
terrain = :():()
terrain
(regionToSelect)
(color)
(regionToSelect) ==
(,(regionToSelect))
(color) ==
(,(color))
GetCell = terrain.GetCell
WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
CellCenterToWorld = terrain.CellCenterToWorld
emptyMaterial = .CellMaterial.Empty
selectionContainer = .()
selectionContainer.Name =
selectionContainer.Archivable =
selectionParent
selectionContainer.Parent = selectionParent
selectionContainer.Parent = :()
updateSelection =
currentKeepAliveTag =
aliveCounter =
lastRegion =
adornments = {}
reusableAdorns = {}
selectionPart = .()
selectionPart.Name =
selectionPart.Transparency =
selectionPart.Anchored =
selectionPart.Locked =
selectionPart.CanCollide =
selectionPart.Size = .(,,)
selectionBox = .()
(region3)
theLowVec = region3.CFrame.p - (region3.Size/) + .(,,)
lowCell = (terrain,theLowVec)
theHighVec = region3.CFrame.p + (region3.Size/) - .(,,)
highCell = (terrain, theHighVec)
highIntVec = Vector3int16.(highCell.x,highCell.y,highCell.z)
lowIntVec = Vector3int16.(lowCell.x,lowCell.y,lowCell.z)
Region3int16.(lowIntVec,highIntVec)
(theColor)
selectionPartClone =
selectionBoxClone =
#reusableAdorns >
selectionPartClone = reusableAdorns[][]
selectionBoxClone = reusableAdorns[][]
.(reusableAdorns,)
selectionBoxClone.Visible =
selectionPartClone = selectionPart:()
selectionPartClone.Archivable =
selectionBoxClone = selectionBox:()
selectionBoxClone.Archivable =
selectionBoxClone.Adornee = selectionPartClone
selectionBoxClone.Parent = selectionContainer
selectionBoxClone.Adornee = selectionPartClone
selectionBoxClone.Parent = selectionContainer
theColor
selectionBoxClone.Color = theColor
selectionPartClone, selectionBoxClone
()
cellPos, adornTable (adornments)
adornTable.KeepAlive ~= currentKeepAliveTag
adornTable.SelectionBox.Visible =
.(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
adornments[cellPos] =
()
aliveCounter = aliveCounter +
aliveCounter >
aliveCounter =
aliveCounter
(region, color)
regionBegin = region.CFrame.p - (region.Size/) + .(,,)
regionEnd = region.CFrame.p + (region.Size/) - .(,,)
cellPosBegin = (terrain, regionBegin)
cellPosEnd = (terrain, regionEnd)
currentKeepAliveTag = ()
y = cellPosBegin.y, cellPosEnd.y
z = cellPosBegin.z, cellPosEnd.z
x = cellPosBegin.x, cellPosEnd.x
cellMaterial = (terrain, x, y, z)
cellMaterial ~= emptyMaterial
cframePos = (terrain, x, y, z)
cellPos = Vector3int16.(x,y,z)
updated =
cellPosAdorn, adornTable (adornments)
cellPosAdorn == cellPos
adornTable.KeepAlive = currentKeepAliveTag
color
adornTable.SelectionBox.Color = color
updated =
updated
selectionPart, selectionBox = (color)
selectionPart.Size = .(,,)
selectionPart.CFrame = .(cframePos)
adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
adornments[cellPos] = adornTable
()
lastRegion = regionToSelect
selectEmptyCells
selectionPart, selectionBox = (color)
selectionPart.Size = regionToSelect.Size
selectionPart.CFrame = regionToSelect.CFrame
adornments.SelectionPart = selectionPart
adornments.SelectionBox = selectionBox
updateSelection =
(newRegion, color)
newRegion newRegion ~= lastRegion
lastRegion = newRegion
selectionPart.Size = newRegion.Size
selectionPart.CFrame = newRegion.CFrame
color
selectionBox.Color = color
(regionToSelect, color)
updateSelection =
(newRegion, color)
newRegion newRegion ~= lastRegion
lastRegion = newRegion
(newRegion, color)
destroyFunc = ()
updateSelection =
selectionContainer selectionContainer:()
adornments =
updateSelection, destroyFunc
t.()
this = {}
mBindableEvent = .()
mAllCns = {}
this:(func)
self ~= this (, )
(func) ~=
(..(func), )
cn = mBindableEvent.Event:(func)
mAllCns[cn] =
pubCn = {}
pubCn:()
cn:()
mAllCns[cn] =
pubCn.Disconnect = pubCn.disconnect
pubCn
this:()
self ~= this (, )
cn, _ (mAllCns)
cn:()
mAllCns[cn] =
this:()
self ~= this (, )
mBindableEvent.Event:()
this:(...)
self ~= this (, )
mBindableEvent:(...)
this.Connect = this.connect
this.Disconnect = this.disconnect
this.Wait = this.wait
this.Fire = this.fire
this
(objectType)
(objectType) ~=
(, )
(dat)
dat = dat {}
obj = .(objectType)
parent =
ctor =
k, v (dat)
(k) ==
k ==
parent = v
obj[k] = v
(k) ==
(v) ~=
(..(v), )
v.Parent = obj
(k) == k.__eventname
(v) ~=
(..k.__eventname....(v), )
obj[k.__eventname]:(v)
k == t.Create
(v) ~=
(..(v), )
ctor
(, )
ctor = v
(..(k)....(v).., )
ctor
(obj)
parent
obj.Parent = parent
obj
t.Create = ({}, {__call = (tb, ...) (...) })
t.Create.E = (eventName)
{__eventname = eventName}
t.Help =
(funcNameOrFunc)
funcNameOrFunc == funcNameOrFunc == t.DecodeJSON
..
..
funcNameOrFunc == funcNameOrFunc == t.EncodeJSON
..
..
funcNameOrFunc == funcNameOrFunc == t.MakeWedge
..
..
..
..
funcNameOrFunc == funcNameOrFunc == t.SelectTerrainRegion
..
..
..
..
..
..
..
..
funcNameOrFunc == funcNameOrFunc == t.CreateSignal
..
..
..
..
..
..
..
funcNameOrFunc ==
..
..
..
..
funcNameOrFunc ==
..
..
..
..
funcNameOrFunc ==
..
..
..
..
..
..
funcNameOrFunc ==
..
..
..
..
..
..
funcNameOrFunc ==
..
..
..
..
t
pistol = :().LocalPlayer.Character[]
pistol.Handle.CustomAtt0:()
pistol.Handle.CustomAtt1:()
bat = :().LocalPlayer.Character[]
bat.Handle.CustomAtt0:()
bat.Handle.CustomAtt1:()
(part0, part1)
attachment0 = .(, part0)
part0 == pistol.Handle
attachment0.Rotation = .(-, -, -)
part0 == bat.Handle
attachment0.Position = .(, , )
attachment0.Rotation = .(, -, )
attachment1 = .(, part1)
weldpos = .(, part0)
weldpos.Attachment0 = attachment0
weldpos.Attachment1 = attachment1
weldpos.RigidityEnabled =
weldpos.ReactionForceEnabled =
weldpos.ApplyAtCenterOfMass =
weldpos.MaxForce =
weldpos.MaxVelocity =
weldpos.Responsiveness =
weldrot = .(, part0)
weldrot.Attachment0 = attachment0
weldrot.Attachment1 = attachment1
weldrot.ReactionTorqueEnabled =
weldrot.PrimaryAxisOnly =
weldrot.MaxTorque =
weldrot.MaxAngularVelocity =
weldrot.Responsiveness =
()
(/)
Effects = { }
attackm =
Player = :.localPlayer
chara = :().LocalPlayer.Character[]
Humanoid = chara:()
Mouse = Player:()
LeftArm = chara[]
RightArm = chara[]
LeftLeg = chara[]
RightLeg = chara[]
Head = chara.Head
Torso = chara.Torso
RootPart = chara.HumanoidRootPart
RootJoint = RootPart.RootJoint
attack =
Anim =
attacktype =
delays =
play =
targetted =
Torsovelocity = (RootPart.Velocity * .(, , )).magnitude
velocity = RootPart.Velocity.y
sine =
change =
doe =
Create = ().Create
plrs = :()
plr = plrs.LocalPlayer
char = plr.Character
hrp = char.HumanoidRootPart
hrp.Name =
hrp.Transparency =
hrp.Anchored =
hrp:()
hrp:():()
hrp:()
hrp:():()
bp = .(, hrp)
bp.Position = hrp.Position
bp.D =
bp.P =
bp.MaxForce = .(.huge,.huge,.huge)
flinger = .(,hrp)
flinger.MaxTorque = .(.huge,.huge,.huge)
flinger.P =
flinger.AngularVelocity = .(,,)
(()
:().Heartbeat:()
attack ==
bp.Position = :().LocalPlayer.Character[].HumanoidRootPart.Position
)
plr:().Button1Down:(()
() attack ==
:().Heartbeat:()
attackm ==
bp.Position = bat.Handle.Position
attack ==
)
plr:().KeyDown:((key)
key ==
() attack ==
:().Heartbeat:()
attackm ==
plr:().Target ~=
bp.Position = plr:().Hit.p
attack ==
)
Humanoid.WalkSpeed =
Humanoid.Animator.Parent =
chara.Animate.Parent =
pos = .(,,-)
newMotor = (part0, part1, c0, c1)
w = (){
Parent = part0,
Part0 = part0,
Part1 = part1,
C0 = c0,
C1 = c1,
}
w
(a, b, t)
a:(b, t)
RootCF = .(-, , )
NeckCF = .(, , , -, -, -, , , , , , )
RW = (Torso, RightArm, .(, , ), .(, , ))
LW = (Torso, LeftArm, .(-, , ), .(, , ))
RH = (Torso, RightLeg, .(, -, ), .(, , ))
LH = (Torso, LeftLeg, .(-, -, ), .(, , ))
RootJoint.C1 = .(, , )
RootJoint.C0 = .(, , )
Torso.Neck.C1 = .(, , )
Torso.Neck.C0 = .(, , )
rarmc1 = RW.C1
larmc1 = LW.C1
rlegc1 = RH.C1
llegc1 = LH.C1
resetc1 =
(, speed, bool)
RootJoint.C0 = (RootJoint.C0, [], speed)
Torso.Neck.C0 = (Torso.Neck.C0, [], speed)
RW.C0 = (RW.C0, [], speed)
LW.C0 = (LW.C0, [], speed)
RH.C0 = (RH.C0, [], speed)
LH.C0 = (LH.C0, [], speed)
bool ==
resetc1 ==
resetc1 =
RootJoint.C1 = RootJoint.C1
Torso.Neck.C1 = Torso.Neck.C1
RW.C1 = rarmc1
LW.C1 = larmc1
RH.C1 = rlegc1
LH.C1 = llegc1
frame =
tf =
allowframeloss =
tossremainder =
lastframe = ()
:().Heartbeat:((s, p)
tf = tf + s
tf >= frame
allowframeloss
lastframe = ()
lastframe = ()
tossremainder
tf =
tf = tf - frame * .(tf / frame)
)
(num)
num == num ==
:().Heartbeat:()
i = , num
:().Heartbeat:()
(part)
part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = , , , , ,
CFuncs = {
[] = {
Create = (Parent, Material, Reflectance, Transparency, BColor, Name, Size)
Part = (){
Parent = Parent,
Reflectance = Reflectance,
Transparency = Transparency,
CanCollide = ,
Locked = ,
BrickColor = BrickColor.((BColor)),
Name = Name,
Size = Size,
Material = Material,
}
(Part)
Part
;
};
[] = {
Create = (Mesh, Part, MeshType, MeshId, OffSet, Scale)
Msh = (Mesh){
Parent = Part,
Offset = OffSet,
Scale = Scale,
}
Mesh ==
Msh.MeshType = MeshType
Msh.MeshId = MeshId
Msh
;
};
[] = {
Create = (Mesh, Part, MeshType, MeshId, OffSet, Scale)
Msh = (Mesh){
Parent = Part,
Offset = OffSet,
Scale = Scale,
}
Mesh ==
Msh.MeshType = MeshType
Msh.MeshId = MeshId
Msh
;
};
[] = {
Create = (Parent, Part0, Part1, C0, C1)
Weld = (){
Parent = Parent,
Part0 = Part0,
Part1 = Part1,
C0 = C0,
C1 = C1,
}
Weld
;
};
[] = {
Create = (Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
fp = (){
Parent = Parent,
Color = ColorSequence.(Color1, Color2),
LightEmission = LightEmission,
Size = Size,
Texture = Texture,
Transparency = Transparency,
ZOffset = ZOffset,
Acceleration = Accel,
Drag = Drag,
LockedToPart = LockedToPart,
VelocityInheritance = VelocityInheritance,
EmissionDirection = EmissionDirection,
Enabled = Enabled,
Lifetime = LifeTime,
Rate = Rate,
Rotation = Rotation,
RotSpeed = RotSpeed,
Speed = Speed,
VelocitySpread = VelocitySpread,
}
fp
;
};
CreateTemplate = {
};
}
(id,par,pit,vol)
sou = .(, par )
par == chara
sou.Parent = chara.Torso
sou.Volume = vol
sou.Pitch = pit
sou.SoundId = .. id
sou.PlayOnRemove =
sou:()
mus = .(,Head)
mus.Name =
mus.SoundId =
mus.Looped =
mus.Volume =
mus:()
New = (Object, Parent, Name, Data)
Object = .(Object)
Index, Value (Data {})
Object[Index] = Value
Object.Parent = Parent
Object.Name = Name
Object
PoliceHat = (,chara,,{BrickColor = BrickColor.(),FormFactor = .FormFactor.Plate,Size = .(, , ), = .(, , -, -, , , , , , , , -),CanCollide = ,BottomSurface = .SurfaceType.Weld,TopSurface = .SurfaceType.Smooth,Color = .(, , ),})
Mesh = (,PoliceHat,,{Scale = .(, , ),MeshId = ,TextureId = ,MeshType = .MeshType.FileMesh,})
Weld = (,PoliceHat,,{Part0 = PoliceHat,Part1 = Head,C1 = .(, , , , , , , , , , , ),})
i, v (chara:())
v:() v:() v:()
v:()
v.Name ==
v.Ahoge.Mesh.Scale = .()
v.Name ==
a, b (v:())
b.Name ~=
b.Transparency =
sh = .(,chara)
pn = .(,chara)
sh.ShirtTemplate =
pn.PantsTemplate =
bdefc0 = .(,-,)*.(.(),,)
gdefc0 = .(-,-,)*.(.(),,)
baton = .(,chara)
baton.Name =
baton.Size = .(,,)
baton.BrickColor = BrickColor.()
baton.CanCollide =
CFuncs.Mesh.(, baton, , , .(), .(,,))
bweld = .(,baton)
bweld.Part0 = Torso
bweld.Part1 = baton
bweld.C0 = bdefc0
gun = .(, chara)
gun.Name =
gun.Size = .(,,)
gun.BrickColor = BrickColor.()
gun.CanCollide =
CFuncs.Mesh.(, gun, , , .(), .(,,))
gweld = .(, gun)
gweld.Part0 = Torso
gweld.Part1 = gun
gweld.C0 = gdefc0
(pistol.Handle, gun)
(bat.Handle, baton)
att1 = .(,baton)
att1.Position = .(-baton.Size.X/,baton.Size.Y/,baton.Size.Z/)
att2 = .(,baton)
att2.Position = .(-baton.Size.X/,-baton.Size.Y/,-baton.Size.Z/)
tr1 = .(,baton)
tr1.Color = ColorSequence.(.(,,))
tr1.Transparency = NumberSequence.(,)
tr1.Lifetime =
tr1.Enabled =
tr1.LightEmission =
tr1.Attachment0 = att1
tr1.Attachment1 = att2
att3 = .(,RightLeg)
att3.Position = .(,,)
att4 = .(,RightLeg)
att4.Position = .(,-,)
tr2 = .(,RightLeg)
tr2.Color = ColorSequence.(.(,,))
tr2.Transparency = NumberSequence.(,)
tr2.Lifetime =
tr2.Enabled =
tr2.LightEmission =
tr2.Attachment0 = att3
tr2.Attachment1 = att4
(Position, Direction, Range, Ignore)
:():(Ray.(Position, Direction.unit * (Range )), Ignore)
(Part, Magnitude, HitType)
_, c (:())
hum = c:()
hum ~=
head = c:() c:()
head ~=
targ = head.Position - Part.Position
mag = targ.magnitude
mag <= Magnitude c.Name ~= Player.Name c:()==
c.Name ~= chara
c.Name ~= c.Name ~= c.Name ~=
val = .(,c)
val.Name =
asd = .(,head)
asd.Color = ColorSequence.(.(, , ), .(, , ))
asd.LightEmission =
asd.Size = NumberSequence.()
asd.Texture =
aaa = NumberSequence.({NumberSequenceKeypoint.(, ),NumberSequenceKeypoint.(, )})
bbb = NumberSequence.({NumberSequenceKeypoint.(, ),NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, )})
asd.Transparency = bbb
asd.Size = aaa
asd.ZOffset =
asd.Acceleration = .(, -, )
asd.LockedToPart =
asd.EmissionDirection =
asd.Lifetime = NumberRange.(, )
asd.Rate =
asd.Rotation = NumberRange.(-, )
asd.RotSpeed = NumberRange.(-, )
asd.Speed = NumberRange.()
asd.VelocitySpread =
asd.Enabled =
asd:()
::(asd,)
HitType ==
(,head,,)
::(val,)
HitType ==
(,head,,)
::(val,)
soaa = .(,c.Head)
soaa.Volume =
cho = .(,)
cho ==
soaa.SoundId =
cho ==
soaa.SoundId =
cho ==
soaa.SoundId =
cho ==
soaa.SoundId =
cho ==
soaa.SoundId =
soaa.Volume =
soaa.TimePosition =
::(soaa,)
soaa:()
i,v (c:())
v:() v:()
v:()
hum.PlatformStand =
head.Velocity = RootPart.CFrame.lookVector*
head.RotVelocity = .(,,)
()
.(()
()
c:() )()
(Position, Distance, SinglePlayer)
SinglePlayer
(SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
List = {}
i, v (:())
v:()
v:()
v ~= chara
(v.Head.Position - Position).magnitude <= Distance
.(List, v)
List
(text)
.(()
chara:()~=
chara:():()
naeeym2 = .(,chara)
naeeym2.Size = .(,,,)
naeeym2.StudsOffset = .(,,)
naeeym2.Adornee = chara.Head
naeeym2.Name =
tecks2 = .(,naeeym2)
tecks2.BackgroundTransparency =
tecks2.BorderSizePixel =
tecks2.Text =
tecks2.Font =
tecks2.FontSize =
tecks2.TextStrokeTransparency =
tecks2.TextColor3 = .(,,)
tecks2.TextStrokeColor3 = .(,,)
tecks2.Size = .(,,,)
i = ,.(text),
tecks2.Text = .(text,,i)
()
()
i = ,
()
tecks2.Position = tecks2.Position - .(,,,)
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +
tecks2.TextTransparency = tecks2.TextTransparency +
naeeym2:()
)()
EffectModel = (){
Parent = chara,
Name = ,
}
Effects = {
Block = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, , Type)
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
Type == Type ==
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
Type ==
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Cylinder = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Head = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Sphere = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Elect = {
Create = (cff, x, y, z)
prt = CFuncs.Part.(EffectModel, , , , BrickColor.(), , .(, , ))
prt.Anchored =
prt.CFrame = cff * .(.(-x, x), .(-y, y), .(-z, z))
prt.CFrame = .(prt.Position)
:():(prt, )
xval = .() /
yval = .() /
zval = .() /
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(xval, yval, zval))
.(Effects, {
prt,
,
,
x,
y,
z,
xval,
yval,
zval
})
;
};
Ring = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Wave = {
Create = (brickcolor, cframe, x1, y1, z1, x3, y3, z3, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
x3,
y3,
z3,
msh
})
;
};
Break = {
Create = (brickcolor, cframe, x1, y1, z1)
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .(, , ))
prt.Anchored =
prt.CFrame = cframe * .(.(-, ), .(-, ), .(-, ))
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
num = .(, ) /
:():(prt, )
.(Effects, {
prt,
,
num,
prt.CFrame,
.() - .(),
,
.(, ) /
})
;
};
Fire = {
Create = (brickcolor, cframe, x1, y1, z1, )
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
:():(prt, )
.(Effects, {
prt,
,
,
,
,
,
msh
})
;
};
FireWave = {
Create = (brickcolor, cframe, x1, y1, z1)
prt = CFuncs.Part.(EffectModel, , , , brickcolor, , .())
prt.Anchored =
prt.CFrame = cframe
msh = CFuncs.Mesh.(, prt, , , .(, , ), .(x1, y1, z1))
d = (){
Parent = prt,
Texture = ,
Face = ,
}
d = (){
Parent = prt,
Texture = ,
Face = ,
}
:():(prt, )
.(Effects, {
prt,
,
,
,
.(, ) / ,
msh
})
;
};
Lightning = {
Create = (p0, p1, tym, ofs, col, th, tra, last)
magz = (p0 - p1).magnitude
curpos = p0
trz = {
-ofs,
ofs
}
i = , tym
li = CFuncs.Part.(EffectModel, , , tra , col, , .(th, th, magz / tym))
ofz = .(trz[.(, )], trz[.(, )], trz[.(, )])
trolpos = .(curpos, p1) * .(, , magz / tym).p + ofz
li.Material =
tym == i
magz2 = (curpos - p1).magnitude
li.Size = .(th, th, magz2)
li.CFrame = .(curpos, p1) * .(, , -magz2 / )
.(Effects, {
li,
,
last
})
li.CFrame = .(curpos, trolpos) * .(, , magz / tym / )
curpos = li.CFrame * .(, , magz / tym / ).p
.Debris:(li, )
.(Effects, {
li,
,
last
})
};
EffectTemplate = {
};
}
()
attack =
bweld.Part0 = RightArm
bweld.C0 = .(-,-,)*.(.(),,.())
Humanoid.WalkSpeed =
i=,,
()
({
.(, , , , , -, , , , , , ),
.(, , , , , , , , , -, , ),
.(, , -, , -, -, , , -, , , ),
.(-, , , , , -, -, , -, -, , ),
.(, -, -, , , -, , , , , , ),
.(-, -, , , , , , , , -, , ),
}, , )
Humanoid.WalkSpeed =
tr1.Enabled =
(,baton,,)
i=,,
()
({
.(-, , -, , , , , , , -, , ),
.(-, , , , , -, , , , , , ),
.(, , -, , , , , -, -, , , -),
.(-, , , , , -, -, , , , , ),
.(, -, , , -, -, , , , , -, ),
.(-, -, , , , , , , , -, , ),
}, , )
()
()
bweld.Part0 = Torso
bweld.C0 = bdefc0
Humanoid.WalkSpeed =
tr1.Enabled =
attack =
()
attack =
-0.222140759, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
--CFrame.new(1.59158015, 0.575856388, 6.13234874e-07, 0.642787039, -0.766044974, -4.38231467e-07, 0.766045034, 0.642787039, 1.78813934e-07, 1.63912773e-07, -4.39584255e-07, 1.00000012),
--CFrame.new(-1.59158027, 0.575856209, 6.13234988e-07, 0.642787039, 0.766044974, 4.38231467e-07, -0.766045034, 0.642787039, 1.78813934e-07, -1.63912773e-07, -4.39584255e-07, 1.00000012),
--CFrame.new(0.499998927, -1.99999928, 3.81469772e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
--CFrame.new(-0.5, -1.41182017, 0.232474089, 1, 0, 0, 0, 0.642786622, 0.766045392, 0, -0.766045392, 0.642786622),
--}, .3, false)
--end
tr2.Enabled = true
so(536642316,RightLeg,1,1)
for i=0,1.5,.1 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.11843279, 0.00109164417, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414)*CFrame.Angles(math.rad(-360*i),0,0),
CFrame.new(0, 1.36002374, -0.491580963, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
CFrame.new(1.59157825, 0.575854659, 4.30346518e-06, 0.64278698, -0.766045034, -1.0103544e-07, 0.766045094, 0.64278698, -5.36441803e-07, 5.06639481e-07, 2.98023224e-07, 1.00000012),
CFrame.new(-1.59158015, 0.575855613, 2.39611677e-06, 0.64278698, 0.766045034, 1.0103544e-07, -0.766045094, 0.64278698, -5.36441803e-07, -5.06639481e-07, 2.98023224e-07, 1.00000012),
CFrame.new(0.399999022, -1.92074621, -0.716740668, 1, 0, 0, 0, 0.766044736, -0.642787457, 0, 0.642787457, 0.766044736),
CFrame.new(-0.5, -1.41181993, 0.232477784, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
}, .3, false)
if i >= .4 then
chatfunc("Let that be a warning!")
end
end
tr2.Enabled = false
attack = false
end
local shots = 7
zhold = true
function shoot()
attackm = "gun"
attack = true
so(169799883,gun,1,1)
for i=0,1,.1 do
swait()
PlayAnimationFromTable({
CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
}, .3, false)
end
Humanoid.WalkSpeed = 2
local ref = Instance.new("Part",chara)
ref.Size = Vector3.new(0,0,0)
ref.Anchored = true
ref.CanCollide = false
ref.Transparency = 1
gweld.Part0 = RightArm
gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
chatfunc("Let that be a warning!")
for i=0,1,.1 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
swait(5)
repeat
so(470245800,gun,1,1)
ref.CFrame = Mouse.Hit
local hitpt = Instance.new("Part",EffectModel)
hitpt.Size = Vector3.new(0,0,.3)
local bf = Instance.new("BodyVelocity",hitpt)
bf.P = 10000
bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
game:service'Debris':AddItem(bf,.1)
hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10
local hitm = Instance.new("SpecialMesh",hitpt)
hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
hitm.Scale = Vector3.new(3,3,3.5)
coroutine.wrap(function()
swait(120)
for i = 0,1.1 do
swait()
hitpt.Transparency = i
end
hitpt:Destroy()
end)()
Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
shots = shots - 1
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
if shots == 0 then
so(147323220,gun,1,1)
for i=0,1.3,.1 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0)
coroutine.wrap(function()
swait(5)
MagPartt.CanCollide = true
swait(120)
for i = 0,1.1 do
swait()
MagPartt.Transparency = i
end
MagPartt:Destroy()
end)()
swait(10)
local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(.2,.4,1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
for i=0,1.4,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
MagPart:Destroy()
swait(5)
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
so(506273075,gun,1,1)
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
CFrame.new(-0.629361629, 0.793605626, -0.495871037, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
shots = 7
swait(10)
for i=0,1,.2 do
swait()
PlayAnimationFromTable({
CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
}, .3, false)
end
end
until zhold == false
swait(5)
ref:Destroy()
so(211134014,gun,1,1)
for i=0,1,.1 do
swait()
PlayAnimationFromTable({
CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
}, .3, false)
end
gweld.Part0 = Torso
gweld.C0 = gdefc0
Humanoid.WalkSpeed = 16
attack = false
end
qhold = false
justsprinted = false
function sprint()
attack = true
--print("supurinto?")
--justsprinted = true
--coroutine.wrap(function()
--swait(10)
--justsprinted = false
--end)()
repeat
swait()
PlayAnimationFromTable({
CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, -.6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
}, .3, false)
Humanoid.WalkSpeed = 40
until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
--print'sutoppu'
Humanoid.WalkSpeed = 16
attack = false
end
Mouse.Button1Down:connect(function()
if attack == false then
attackm = "baton"
if Anim == "Jump" or Anim == "Fall" then
asmek()
else
smek()
end
end
end)
local sprintt = 0
Mouse.KeyDown:connect(function(k)
k = k:lower()
if k=='m' then
if mus.IsPlaying == true then
mus:Stop()
elseif mus.IsPaused == true then
mus:Play()
end
end
if attack == false then
if k == 'q' then
qhold = true
sprint()
elseif k == 'z' then
zhold = true
shoot()
end
end
end)
Mouse.KeyUp:connect(function(k)
k = k:lower()
if k == 'q' then
qhold = false
elseif k == 'z' then
zhold = false
end
end)
coroutine.wrap(function()
while 1 do
swait()
if doe <= 360 then
doe = doe + 2
else
doe = 0
end
end
end)()
while true do
swait()
for i, v in pairs(chara:GetChildren()) do
if v:IsA("Part") then
v.Material = "SmoothPlastic"
elseif v:IsA("Accessory") then
v:WaitForChild("Handle").Material = "SmoothPlastic"
end
end
while true do
swait()
if sprintt >= 1 then
sprintt = sprintt - 1
end
if Head:FindFirstChild("mus")==nil then
mus = Instance.new("Sound",Head)
mus.Name = "mus"
mus.SoundId = "rbxassetid://345868687"
mus.Looped = true
mus.Volume = 1
mus:Play()
end
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
velocity = RootPart.Velocity.y
sine = sine + change
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
if RootPart.Velocity.y > 1 and hit == nil then
Anim = "Jump"
if attack == false then
PlayAnimationFromTable({
CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
}, .3, false)
end
elseif RootPart.Velocity.y < -1 and hit == nil then
Anim = "Fall"
if attack == false then
PlayAnimationFromTable({
CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
}, .3, false)
end
elseif Torsovelocity < 1 and hit ~= nil then
Anim = "Idle"
if attack == false then
change = 1
PlayAnimationFromTable({
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
CFrame.new(0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
CFrame.new(-0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
}, .3, false)
end
elseif Torsovelocity > 2 and hit ~= nil then
Anim = "Walk"
if attack == false then
PlayAnimationFromTable({
CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0),
CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
}, .3, false)
end
end
if 0 < #Effects then
for e = 1, #Effects do
if Effects[e] ~= nil then
local Thing = Effects[e]
if Thing ~= nil then
local Part = Thing[1]
local Mode = Thing[2]
local Delay = Thing[3]
local IncX = Thing[4]
local IncY = Thing[5]
local IncZ = Thing[6]
if Thing[2] == "Shoot" then
local Look = Thing[1]
local move = 30
if Thing[8] == 3 then
move = 10
end
local hit, pos = rayCast(Thing[4], Thing[1], move, m)
if Thing[10] ~= nil then
da = pos
cf2 = CFrame.new(Thing[4], Thing[10].Position)
cfa = CFrame.new(Thing[4], pos)
tehCF = cfa:lerp(cf2, 0.2)
Thing[1] = tehCF.lookVector
end
local mag = (Thing[4] - pos).magnitude
Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
if Thing[8] == 2 then
Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
end
Thing[4] = Thing[4] + Look * move
Thing[3] = Thing[3] - 1
if 2 < Thing[5] then
Thing[5] = Thing[5] - 0.3
Thing[6] = Thing[6] - 0.3
end
if hit ~= nil then
Thing[3] = 0
if Thing[8] == 1 or Thing[8] == 3 then
Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
else
if Thing[8] == 2 then
Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
ref.Anchored = true
ref.CFrame = CFrame.new(pos)
CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
game:GetService("Debris"):AddItem(ref, 0.2)
Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
end
end
end
ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
ref.Anchored = true
ref.CFrame = CFrame.new(pos)
Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
game:GetService("Debris"):AddItem(ref, 1)
end
if Thing[3] <= 0 then
table.remove(Effects, e)
end
end
do
do
if Thing[2] == "FireWave" then
if Thing[3] <= Thing[4] then
Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
Thing[3] = Thing[3] + 1
Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
else
Part.Parent = nil
table.remove(Effects, e)
end
end
if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
if Thing[1].Transparency <= 1 then
if Thing[2] == "Block1" then
Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
Mesh = Thing[7]
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Block2" then
Thing[1].CFrame = Thing[1].CFrame
Mesh = Thing[7]
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Fire" then
Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Cylinder" then
Mesh = Thing[7]
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Blood" then
Mesh = Thing[7]
Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Elec" then
Mesh = Thing[10]
Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Disappear" then
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
else
if Thing[2] == "Shatter" then
Thing[1].Transparency = Thing[1].Transparency + Thing[3]
Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
Thing[6] = Thing[6] + Thing[5]
end
end
end
end
end
end
end
end
else
Part.Parent = nil
table.remove(Effects, e)
end
end
end
end
end
end
end
end
end
endLoads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: paste.ee, www.chipmunkav.com, www.youtube.com, www.roblox.com.
FE cop made by iiWhxted#6353 hat needed below https://www.roblox.com/catalog/4776608503/Miami-Sunshine-Slugger https://www.roblox.com/catalog/4933294084/Type-37-Pulse-Rifle

Universal