--//====================================================\\--
--|| CREATED BY SHACKLUSTER
--\\====================================================//--
local Player = owner
--Player = game:GetService("Players"):GetPlayerFromCharacter(script.Parent)
local Mouse,mouse,UserInputService,ContextActionService
do
local GUID = {}
do
GUID.IDs = {};
function GUID:new(len)
local id;
if(not len)then
id = (tostring(function() end))
id = id:gsub("function: ","")
else
local function genID(len)
local newID = ""
for i = 1,len do
newID = newID..string.char(math.random(48,90))
end
return newID
end
repeat id = genID(len) until not GUID.IDs[id]
local oid = id;
id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
GUID.IDs[oid]=true;
end
return id
end
end
local FPS = 60
function swait(num)
if num == 0 or num == nil then
game:GetService("RunService").Heartbeat:Wait()
else
for i = 1, num do
game:GetService("RunService").Heartbeat:Wait()
end
end
end
local loudnesses={}
script.Parent = Player.PlayerGui
local CoAS = {Actions={}}
local Event = Instance.new("RemoteEvent")
Event.Name = "UserInputEvent"
Event.Parent = Player.PlayerGui
local Func = Instance.new("RemoteFunction")
Func.Name = "GetClientProperty"
Func.Parent = Player.PlayerGui
local fakeEvent = function()
local t = {_fakeEvent=true,Waited={}}
t.Connect = function(self,f)
local ft={Disconnected=false;disconnect=function(s) s.Disconnected=true end}
ft.Disconnect=ft.disconnect
ft.Func=function(...)
for id,_ in next, t.Waited do
t.Waited[id] = true
end
return f(...)
end;
self.Function=ft;
return ft;
end
t.connect = t.Connect
t.Wait = function()
local guid = GUID:new(25)
local waitingId = guid:Get()
t.Waited[waitingId]=false
repeat swait() until t.Waited[waitingId]==true
t.Waited[waitingId]=nil;
guid:Trash()
end
t.wait = t.Wait
return t
end
local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
function CoAS:BindAction(name,fun,touch,...)
CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
end
function CoAS:UnbindAction(name)
CoAS.Actions[name] = nil
end
local function te(self,ev,...)
local t = self[ev]
if t and t._fakeEvent and t.Function and t.Function.Func and not t.Function.Disconnected then
t.Function.Func(...)
elseif t and t._fakeEvent and t.Function and t.Function.Func and t.Function.Disconnected then
self[ev].Function=nil
end
end
m.TrigEvent = te
UsIS.TrigEvent = te
Event.OnServerEvent:Connect(function(plr,io)
if plr~=Player then return end
if io.Mouse then
m.Target = io.Target
m.Hit = io.Hit
elseif io.KeyEvent then
m:TrigEvent('Key'..io.KeyEvent,io.Key)
elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
if io.UserInputState == Enum.UserInputState.Begin then
m:TrigEvent("Button1Down")
else
m:TrigEvent("Button1Up")
end
end
if(not io.KeyEvent and not io.Mouse)then
for n,t in pairs(CoAS.Actions) do
for _,k in pairs(t.Keys) do
if k==io.KeyCode then
t.Function(t.Name,io.UserInputState,io)
end
end
end
if io.UserInputState == Enum.UserInputState.Begin then
UsIS:TrigEvent("InputBegan",io,false)
else
UsIS:TrigEvent("InputEnded",io,false)
end
end
end)
Func.OnServerInvoke = function(plr,inst,play)
if plr~=Player then return end
if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
loudnesses[inst]=play
end
end
function GetClientProperty(prop,inst)
if(prop == 'PlaybackLoudness' and loudnesses[inst])then
return loudnesses[inst]
elseif(prop == 'PlaybackLoudness')then
return Func:InvokeClient(Player,'RegSound',inst)
end
return Func:InvokeClient(Player,inst,prop)
end
Mouse, mouse, UserInputService, ContextActionService = m, m, UsIS, CoAS
end
NLS([==[local me = game:service'Players'.localPlayer;
local mouse = me:GetMouse();
local UIS = game:service'UserInputService'
local ch = me.Character;
local UserEvent = me.PlayerGui:WaitForChild('UserInputEvent',30)
UIS.InputChanged:connect(function(io,gpe)
if(io.UserInputType == Enum.UserInputType.MouseMovement)then
UserEvent:FireServer{Mouse=true,Target=mouse.Target,Hit=mouse.Hit}
end
end)
mouse.Changed:connect(function(o)
if(o == 'Target' or o == 'Hit')then
UserEvent:FireServer{Mouse=true,Target=mouse.Target,Hit=mouse.Hit}
end
end)
UIS.InputBegan:connect(function(io,gpe)
if(gpe)then return end
UserEvent:FireServer{InputObject=true,KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
end)
UIS.InputEnded:connect(function(io,gpe)
if(gpe)then return end
UserEvent:FireServer{InputObject=true,KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
end)
mouse.KeyDown:connect(function(k)
UserEvent:FireServer{KeyEvent='Down',Key=k}
end)
mouse.KeyUp:connect(function(k)
UserEvent:FireServer{KeyEvent='Up',Key=k}
end)
local ClientProp = me.PlayerGui:WaitForChild('GetClientProperty',30)
local sounds = {}
function regSound(o)
if(o:IsA'Sound')then
local lastLoudness = o.PlaybackLoudness
ClientProp:InvokeServer(o,lastLoudness)
table.insert(sounds,{o,lastLoudness})
--ClientProp:InvokeServer(o,o.PlaybackLoudness)
end
end
ClientProp.OnClientInvoke = function(inst,prop)
if(inst == 'RegSound')then
regSound(prop)
for i = 1, #sounds do
if(sounds[i][1] == prop)then
return sounds[i][2]
end
end
else
return inst[prop]
end
end
for _,v in next, workspace:GetDescendants() do regSound(v) end
workspace.DescendantAdded:connect(regSound)
me.Character.DescendantAdded:connect(regSound)
game:service'RunService'.RenderStepped:connect(function()
for i = 1, #sounds do
local tab = sounds[i]
local object,last=unpack(tab)
if(object.PlaybackLoudness ~= last)then
sounds[i][2]=object.PlaybackLoudness
ClientProp:InvokeServer(object,sounds[i][2])
end
end
end)]==],owner.PlayerGui)
wait(0.5)
Player = owner
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Character = Player.Character
Humanoid = Character.Humanoid
RootPart = Character["HumanoidRootPart"]
Torso = Character["Torso"]
Head = Character["Head"]
RightArm = Character["Right Arm"]
LeftArm = Character["Left Arm"]
RightLeg = Character["Right Leg"]
LeftLeg = Character["Left Leg"]
RootJoint = RootPart["RootJoint"]
Neck = Torso["Neck"]
RightShoulder = Torso["Right Shoulder"]
LeftShoulder = Torso["Left Shoulder"]
RightHip = Torso["Right Hip"]
LeftHip = Torso["Left Hip"]
local sick = Instance.new("Sound",Character)
sick.SoundId = "rbxassetid://170282324"
sick.Looped = true
sick.Volume = 1
IT = Instance.new
CF = CFrame.new
VT = Vector3.new
RAD = math.rad
C3 = Color3.new
UD2 = UDim2.new
BRICKC = BrickColor.new
ANGLES = CFrame.Angles
EULER = CFrame.fromEulerAnglesXYZ
COS = math.cos
ACOS = math.acos
SIN = math.sin
ASIN = math.asin
ABS = math.abs
MRANDOM = math.random
FLOOR = math.floor
--//=================================\\
--|| USEFUL VALUES
--\\=================================//
Animation_Speed = 3
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
local Speed = 45
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
local DAMAGEMULTIPLIER = 1
local ANIM = "Idle"
local ATTACK = false
local EQUIPPED = false
local HOLD = false
local COMBO = 1
local Rooted = false
local SINE = 0
local KEYHOLD = false
local CHANGE = 2 / Animation_Speed
local WALKINGANIM = false
local VALUE1 = false
local VALUE2 = false
local ROBLOXIDLEANIMATION = IT("Animation")
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
--ROBLOXIDLEANIMATION.Parent = Humanoid
local WEAPONGUI = IT("ScreenGui", PlayerGui)
WEAPONGUI.Name = "Weapon GUI"
local Effects = IT("Folder", Character)
Effects.Name = "Effects"
local ANIMATOR = Humanoid.Animator
local ANIMATE = Character.Animate
local UNANCHOR = true
local HITPOS = nil
local HITFLOOR = nil
local LEFTWINGS = {}
local LEFTWINGS2 = {}
local LEFTWINGS3 = {}
local RIGHTWINGS = {}
local RIGHTWINGS2 = {}
local RIGHTWINGS3 = {}
local BODY = {}
--//=================================\\
--\\=================================//
--//=================================\\
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
--\\=================================//
ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "ArtificialHB"
script:WaitForChild("ArtificialHB")
frame = Frame_Speed
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
script.ArtificialHB:Fire()
game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
script.ArtificialHB:Fire()
lastframe = tick()
else
for i = 1, math.floor(tf / frame) do
script.ArtificialHB:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * math.floor(tf / frame)
end
end
end)
--//=================================\\
--\\=================================//
--//=================================\\
--|| SOME FUNCTIONS
--\\=================================//
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
end
function PositiveAngle(NUMBER)
if NUMBER >= 0 then
NUMBER = 0
end
return NUMBER
end
function NegativeAngle(NUMBER)
if NUMBER <= 0 then
NUMBER = 0
end
return NUMBER
end
function Swait(NUMBER)
if NUMBER == 0 or NUMBER == nil then
ArtificialHB.Event:wait()
else
for i = 1, NUMBER do
ArtificialHB.Event:wait()
end
end
end
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
local NEWMESH = IT(MESH)
if MESH == "SpecialMesh" then
NEWMESH.MeshType = MESHTYPE
if MESHID ~= "nil" and MESHID ~= "" then
NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
end
if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
end
end
NEWMESH.Offset = OFFSET or VT(0, 0, 0)
NEWMESH.Scale = SCALE
NEWMESH.Parent = PARENT
return NEWMESH
end
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
local NEWPART = IT("Part")
NEWPART.formFactor = FORMFACTOR
NEWPART.Reflectance = REFLECTANCE
NEWPART.Transparency = TRANSPARENCY
NEWPART.CanCollide = false
NEWPART.Locked = true
NEWPART.Anchored = true
if ANCHOR == false then
NEWPART.Anchored = false
end
NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
NEWPART.Name = NAME
NEWPART.Size = SIZE
NEWPART.Position = Torso.Position
NEWPART.Material = MATERIAL
NEWPART:BreakJoints()
NEWPART.Parent = PARENT
return NEWPART
end
local function weldBetween(a, b)
local weldd = Instance.new("ManualWeld")
weldd.Part0 = a
weldd.Part1 = b
weldd.C0 = CFrame.new()
weldd.C1 = b.CFrame:inverse() * a.CFrame
weldd.Parent = a
return weldd
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 QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w * xs, w * ys, w * zs
local xx = x * xs
local xy = x * ys
local xz = x * zs
local yy = y * ys
local yz = y * zs
local zz = z * zs
return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
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 = ACOS(cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((1 - t) * theta) * invSinTheta
finishInterp = SIN(t * theta) * invSinTheta
else
startInterp = 1 - t
finishInterp = t
end
else
if (1 + cosTheta) > 0.0001 then
local theta = ACOS(-cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((t - 1) * theta) * invSinTheta
finishInterp = 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
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 clerp(a, b, t)
return a:lerp(b, t)
end
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
local frame = IT("Frame")
frame.BackgroundTransparency = TRANSPARENCY
frame.BorderSizePixel = BORDERSIZEPIXEL
frame.Position = POSITION
frame.Size = SIZE
frame.BackgroundColor3 = COLOR
frame.BorderColor3 = BORDERCOLOR
frame.Name = NAME
frame.Parent = PARENT
return frame
end
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
local label = IT("TextLabel")
label.BackgroundTransparency = 1
label.Size = UD2(1, 0, 1, 0)
label.Position = UD2(0, 0, 0, 0)
label.TextColor3 = TEXTCOLOR
label.TextStrokeColor3 = BRICKC"Really red".Color
label.TextStrokeTransparency = STROKETRANSPARENCY
label.TextTransparency = TRANSPARENCY
label.FontSize = TEXTFONTSIZE
label.Font = TEXTFONT
label.BorderSizePixel = BORDERSIZEPIXEL
label.TextScaled = false
label.Text = TEXT
label.Name = NAME
label.Parent = PARENT
return label
end
function NoOutlines(PART)
PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
end
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
local NEWWELD = IT(TYPE)
NEWWELD.Part0 = PART0
NEWWELD.Part1 = PART1
NEWWELD.C0 = C0
NEWWELD.C1 = C1
NEWWELD.Parent = PARENT
return NEWWELD
end
local S = IT("Sound")
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
local NEWSOUND = nil
coroutine.resume(coroutine.create(function()
NEWSOUND = S:Clone()
NEWSOUND.Parent = PARENT
NEWSOUND.Volume = VOLUME
NEWSOUND.Pitch = PITCH
NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
NEWSOUND:play()
NEWSOUND.Name = "Audio"
if DOESLOOP == true then
NEWSOUND.Looped = true
else
repeat Swait() until NEWSOUND.Playing == false
NEWSOUND:remove()
end
end))
return NEWSOUND
end
function CFrameFromTopBack(at, top, back)
local right = top:Cross(back)
return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
end
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
function WACKYEFFECT(Table)
local TYPE = (Table.EffectType or "Sphere")
local SIZE = (Table.Size or VT(1,1,1))
local ENDSIZE = (Table.Size2 or VT(0,0,0))
local TRANSPARENCY = (Table.Transparency or 0)
local ENDTRANSPARENCY = (Table.Transparency2 or 1)
local CFRAME = (Table.CFrame or Torso.CFrame)
local MOVEDIRECTION = (Table.MoveToPos or nil)
local ROTATION1 = (Table.RotationX or 0)
local ROTATION2 = (Table.RotationY or 0)
local ROTATION3 = (Table.RotationZ or 0)
local MATERIAL = (Table.Material or "Neon")
local COLOR = (Table.Color or C3(1,1,1))
local TIME = (Table.Time or 45)
local SOUNDID = (Table.SoundID or nil)
local SOUNDPITCH = (Table.SoundPitch or nil)
local SOUNDVOLUME = (Table.SoundVolume or nil)
coroutine.resume(coroutine.create(function()
local PLAYSSOUND = false
local SOUND = nil
local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
PLAYSSOUND = true
SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
end
EFFECT.Color = COLOR
local MSH = nil
if TYPE == "Sphere" then
MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
elseif TYPE == "Block" then
MSH = IT("BlockMesh",EFFECT)
MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
elseif TYPE == "Box" then
MSH = IT("BlockMesh",EFFECT)
MSH.Scale = SIZE
elseif TYPE == "Wave" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
elseif TYPE == "Ring" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
elseif TYPE == "Slash" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
elseif TYPE == "Round Slash" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
elseif TYPE == "Swirl" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
elseif TYPE == "Skull" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
elseif TYPE == "Crystal" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
end
if MSH ~= nil then
local MOVESPEED = nil
if MOVEDIRECTION ~= nil then
MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
end
local GROWTH = SIZE - ENDSIZE
local TRANS = TRANSPARENCY - ENDTRANSPARENCY
if TYPE == "Block" then
EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
else
EFFECT.CFrame = CFRAME
end
for LOOP = 1, TIME do
Swait()
MSH.Scale = MSH.Scale - GROWTH/TIME
if TYPE == "Wave" then
MSH.Offset = VT(0,0,-MSH.Scale.X/8)
end
EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
if TYPE == "Block" then
EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
else
EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
end
if MOVEDIRECTION ~= nil then
local ORI = EFFECT.Orientation
EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
EFFECT.Orientation = ORI
end
end
if PLAYSSOUND == false then
EFFECT:remove()
else
repeat Swait() until SOUND.Playing == false
EFFECT:remove()
end
else
if PLAYSSOUND == false then
EFFECT:remove()
else
repeat Swait() until SOUND.Playing == false
EFFECT:remove()
end
end
end))
end
function Shatter(Part)
if Part.Transparency == 0 then
local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
Debris:AddItem(SOUNDPART,5)
CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
local SIZESET = SIZE/4
local XOffset = Part.Size.X*1.5/SIZESET
local YOffset = Part.Size.Y*1.5/SIZESET
local ZOffset = Part.Size.Z*1.5/SIZESET
for x = 1, math.ceil(XOffset) do
for y = 1, math.ceil(YOffset) do
for z = 1, math.ceil(ZOffset) do
local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
SHARD.CanCollide = true
SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
Debris:AddItem(SHARD,MRANDOM(10,25)/3)
end
end
end
end
Part:remove()
end
function MakeForm(PART,TYPE)
if TYPE == "Cyl" then
local MSH = IT("CylinderMesh",PART)
elseif TYPE == "Ball" then
local MSH = IT("SpecialMesh",PART)
MSH.MeshType = "Sphere"
elseif TYPE == "Wedge" then
local MSH = IT("SpecialMesh",PART)
MSH.MeshType = "Wedge"
end
end
Debris = game:GetService("Debris")
function CastProperRay(StartPos, EndPos, Distance, Ignore)
local DIRECTION = CF(StartPos,EndPos).lookVector
return Raycast(StartPos, DIRECTION, Distance, Ignore)
end
function turnto(position)
RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
end
function newBezier(startpos, pos2, pos3, endpos, t)
local A = clerp(startpos, pos2, t)
local B = clerp(pos2, pos3, t)
local C = clerp(pos3, endpos, t)
local lerp1 = clerp(A, B, t)
local lerp2 = clerp(B, C, t)
local cubic = clerp(lerp1, lerp2, t)
return cubic
end
function CreateMagicCircle()
local sinkhole = IT("Part")
sinkhole.Size = VT(0,0,0)
sinkhole.Parent = Effects
sinkhole.Material = "Neon"
sinkhole.Color = C3(0,0,0)
sinkhole.Anchored = true
sinkhole.CanCollide = false
sinkhole.Transparency = 1
local decal = IT("Decal",sinkhole)
decal.Face = "Top"
decal.Texture = "http://www.roblox.com/asset/?id=2589263045"
local decal2 = IT("Decal",sinkhole)
decal2.Face = "Bottom"
decal2.Texture = "http://www.roblox.com/asset/?id=2589263040"
return sinkhole
end
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
local mesh = IT("SpecialMesh",wave)
mesh.MeshType = "Sphere"
mesh.Scale = SIZE
mesh.Offset = VT(0,0,0)
wave.CFrame = CFRAME
coroutine.resume(coroutine.create(function(PART)
for i = 1, WAIT do
Swait()
mesh.Scale = mesh.Scale + GROW
wave.Transparency = wave.Transparency + (1/WAIT)
if wave.Transparency > 0.99 then
wave:remove()
end
end
end))
end
--//=================================\\
--|| WEAPON CREATION
--\\=================================//
local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false)
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
local ANGLE = 35
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(LEFTWINGS,WingWeld)
end
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(LEFTWINGS2,WingWeld)
end
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(LEFTWINGS3,WingWeld)
end
ANGLE = 35
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(RIGHTWINGS,WingWeld)
end
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(RIGHTWINGS2,WingWeld)
end
for i = 1, 5 do
local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
ANGLE = ANGLE - 15
table.insert(RIGHTWINGS3,WingWeld)
end
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false)
local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false)
local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false)
local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
local SKILLTEXTCOLOR = BRICKC"Really red".Color
local SKILLFONT = "SciFi"
local SKILLTEXTSIZE = 6
local naeeym2 = Instance.new("BillboardGui",Character)
naeeym2.AlwaysOnTop = true
naeeym2.Size = UDim2.new(5,35,2,15)
naeeym2.StudsOffset = Vector3.new(0,1.2,0)
naeeym2.Adornee = Character.Head
naeeym2.Name = "Name"
local tecks2 = Instance.new("TextLabel",naeeym2)
tecks2.BackgroundTransparency = 1
tecks2.TextScaled = true
tecks2.BorderSizePixel = 0
tecks2.Text = "Cyber Monarch"
tecks2.Font = SKILLFONT
tecks2.TextSize = 30
tecks2.TextStrokeTransparency = 0
tecks2.TextColor3 = C3(0,0,0)
tecks2.TextStrokeColor3 = BRICKC"Really red".Color
tecks2.Size = UDim2.new(1,0,0.5,0)
tecks2.Parent = naeeym2
for _, c in pairs(Character:GetChildren()) do
if c.ClassName == "Part" then
table.insert(BODY,{c,Character})
for _, q in pairs(c:GetChildren()) do
if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
table.insert(BODY,{q,c})
end
end
end
end
function refit()
Character.Parent = workspace
for e = 1, #BODY do
if BODY[e] ~= nil then
local STUFF = BODY[e]
local PART = STUFF[1]
local PARENT = STUFF[2]
PART.Parent = PARENT
end
end
end
Humanoid.HealthChanged:connect(function()
Humanoid.Parent = nil
Humanoid.MaxHealth = "inf"
Humanoid.Health = "inf"
refit()
Humanoid.Parent = Character
end)
Humanoid.Died:connect(function()
Humanoid.Parent = nil
Humanoid.MaxHealth = "inf"
Humanoid.Health = "inf"
refit()
Humanoid.Parent = Character
end)
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
--//=================================\\
--|| DAMAGING
--\\=================================//
function killnearest(position,range,EFFECT)
for i,v in ipairs(workspace:GetChildren()) do
local body = v:GetChildren()
for part = 1, #body do
if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
local SIZE = body[part].Size.Magnitude
if(body[part].Position - position).Magnitude < range + SIZE/2 then
if v.ClassName == "Model" then
if v:FindFirstChildOfClass("Humanoid") ~= nil then
if v:FindFirstChildOfClass("Humanoid").Health > 0 then
v:BreakJoints()
if EFFECT == "Glitch" then
coroutine.resume(coroutine.create(function()
local ORIGINPOS = body[part].CFrame
local SIZE = body[part].Size
for i = 1, 100 do
Swait()
local PART = body[part]
PART.Anchored = true
PART.Size = SIZE*MRANDOM(5,15)/10
PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
end
body[part]:remove()
end))
elseif EFFECT == "Shatter" then
for _, c in pairs(v:GetChildren()) do
if c.ClassName == "Part" or c.ClassName == "MeshPart" then
Shatter(c)
end
end
end
end
end
end
end
end
end
end
end
function Voided(Char)
local NewCharacter = IT("Model",Effects)
NewCharacter.Name = "Ow im ded ;-;"
for _, c in pairs(Char:GetDescendants()) do
if c:IsA("BasePart") and c.Transparency == 0 then
if c.Parent == Char then
end
c:BreakJoints()
c.Material = "Glass"
c.Color = C3(0.5,0,0.5)
c.CanCollide = true
c.Transparency = 0.3
if c:FindFirstChildOfClass("SpecialMesh") then
c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
end
if c.Name == "Head" then
c:ClearAllChildren()
c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
end
if c.ClassName == "MeshPart" then
c.TextureID = ""
end
if c:FindFirstChildOfClass("BodyPosition") then
c:FindFirstChildOfClass("BodyPosition"):remove()
end
if c:FindFirstChildOfClass("ParticleEmitter") then
c:FindFirstChildOfClass("ParticleEmitter"):remove()
end
c.Parent = NewCharacter
c.Name = "DeadPart"
c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
end
end
Char:remove()
Debris:AddItem(NewCharacter,5)
end
function getbloody(victim,amount)
local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
PART.CFrame = victim.CFrame
local HITPLAYERSOUNDS = {"356551938","264486467"}
Debris:AddItem(PART,5)
CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
local prtcl = Instance.new("ParticleEmitter")
prtcl.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
prtcl.LightEmission = .1
prtcl.Texture = "http://www.roblox.com/asset/?ID=291880914"
local aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
local bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
prtcl.Transparency = bbb
prtcl.Size = aaa
prtcl.ZOffset = .9
prtcl.Acceleration = Vector3.new(0, -15, 0)
prtcl.LockedToPart = false
prtcl.EmissionDirection = "Back"
prtcl.Lifetime = NumberRange.new(1, 2)
prtcl.Rotation = NumberRange.new(-100, 100)
prtcl.RotSpeed = NumberRange.new(-100, 100)
prtcl.Speed = NumberRange.new(10)
prtcl.Enabled = false
prtcl.VelocitySpread = 999
prtcl.Parent = PART
prtcl:Emit(amount*10)
end
function impale(chain,hit)
if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid.Health ~= 0 then
hit.Parent:BreakJoints()
end
end
end
--//=================================\\
--|| ATTACK FUNCTIONS AND STUFF
--\\=================================//
function CyberOutburst()
if HITFLOOR ~= nil then
ATTACK = true
Rooted = true
for i=0, 2, 0.1 / Animation_Speed do
Swait()
WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
for i=0, 2, 0.1 / Animation_Speed do
Swait()
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6})
WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4})
WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2})
for i=0, 0.4, 0.1 / Animation_Speed do
Swait()
killnearest(Torso.Position,45,"Glitch")
WACKYEFFECT({Time = 75, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
ATTACK = false
Rooted = false
end
end
function Technobeam()
ATTACK = true
Rooted = false
local GYRO = IT("BodyGyro",RootPart)
GYRO.D = 100
GYRO.P = 2000
GYRO.MaxTorque = VT(0,4000000,0)
GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
CreateSound("93724183", RightArm, 5, 1, false)
for i=1, 35 do
Swait()
WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
local TOCH = BEAM.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Shatter(hit)
end
end)
local I = 0
repeat
Swait()
I = I + 1
if I <= 10 then
BEAM.Transparency = BEAM.Transparency - 0.1
end
local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
local DISTANCE = (STARTPOS - ENDPOS).Magnitude
BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
BEAM.Size = VT(2,2,DISTANCE)
WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
if ENDHIT ~= nil then
if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
Shatter(ENDHIT)
end
end
until LOOP.Playing == false
GYRO:remove()
BEAM:remove()
ATTACK = false
Rooted = false
end
function Technowarp()
local FRAME = RootPart.Position
for i = 1, 6 do
WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
end
RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
for i = 1, 6 do
WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
end
end
function CyberSmash()
ATTACK = true
Rooted = false
local GYRO = IT("BodyGyro",RootPart)
GYRO.D = 100
GYRO.P = 2000
GYRO.MaxTorque = VT(0,4000000,0)
GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH.CanCollide = true
SMASH.Color = C3(0,0,0)
local EF = Instance.new("SelectionBox",SMASH)
EF.Adornee = SMASH
EF.Color = BrickColor.new("Really red")
EF.LineThickness = 0.2
EF.Transparency = 1
local SMASH2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH2.CanCollide = true
SMASH2.Color = C3(0,0,0)
local EF2 = Instance.new("SelectionBox",SMASH2)
EF2.Adornee = SMASH2
EF2.Color = BrickColor.new("Really red")
EF2.LineThickness = 0.2
EF2.Transparency = 1
local SMASH3 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH3.CanCollide = true
SMASH3.Color = C3(0,0,0)
local EF3 = Instance.new("SelectionBox",SMASH3)
EF3.Adornee = SMASH3
EF3.Color = BrickColor.new("Really red")
EF3.LineThickness = 0.2
EF3.Transparency = 1
local SMASH4 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH4.CanCollide = true
SMASH4.Color = C3(0,0,0)
local EF4 = Instance.new("SelectionBox",SMASH4)
EF4.Adornee = SMASH4
EF4.Color = BrickColor.new("Really red")
EF4.LineThickness = 0.2
EF4.Transparency = 1
local SMASH5 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH5.CanCollide = true
SMASH5.Color = C3(0,0,0)
local EF5 = Instance.new("SelectionBox",SMASH5)
EF5.Adornee = SMASH5
EF5.Color = BrickColor.new("Really red")
EF5.LineThickness = 0.2
EF5.Transparency = 1
local SMASH6 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH6.CanCollide = true
SMASH6.Color = C3(0,0,0)
local EF6 = Instance.new("SelectionBox",SMASH6)
EF6.Adornee = SMASH6
EF6.Color = BrickColor.new("Really red")
EF6.LineThickness = 0.2
EF6.Transparency = 1
local SMASH7 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH7.CanCollide = true
SMASH7.Color = C3(0,0,0)
local EF7 = Instance.new("SelectionBox",SMASH7)
EF7.Adornee = SMASH7
EF7.Color = BrickColor.new("Really red")
EF7.LineThickness = 0.2
EF7.Transparency = 1
local SMASH8 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH8.CanCollide = true
SMASH8.Color = C3(0,0,0)
local EF8 = Instance.new("SelectionBox",SMASH8)
EF8.Adornee = SMASH8
EF8.Color = BrickColor.new("Really red")
EF8.LineThickness = 0.2
EF8.Transparency = 1
local SMASH9 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
SMASH9.CanCollide = true
SMASH9.Color = C3(0,0,0)
local EF9 = Instance.new("SelectionBox",SMASH9)
EF9.Adornee = SMASH9
EF9.Color = BrickColor.new("Really red")
EF9.LineThickness = 0.2
EF.Transparency = 1
coroutine.resume(coroutine.create(function()
for i = 1, 20 do
Swait()
SMASH.Transparency = SMASH.Transparency - 0.05
EF.Transparency = SMASH.Transparency
SMASH2.Transparency = SMASH2.Transparency - 0.05
EF2.Transparency = SMASH2.Transparency
SMASH3.Transparency = SMASH3.Transparency - 0.05
EF3.Transparency = SMASH3.Transparency
SMASH4.Transparency = SMASH4.Transparency - 0.05
EF4.Transparency = SMASH4.Transparency
SMASH5.Transparency = SMASH5.Transparency - 0.05
EF5.Transparency = SMASH.Transparency
SMASH6.Transparency = SMASH6.Transparency - 0.05
EF6.Transparency = SMASH6.Transparency
SMASH7.Transparency = SMASH7.Transparency - 0.05
EF7.Transparency = SMASH7.Transparency
SMASH8.Transparency = SMASH8.Transparency - 0.05
EF8.Transparency = SMASH8.Transparency
SMASH9.Transparency = SMASH9.Transparency - 0.05
EF9.Transparency = SMASH9.Transparency
end
end))
repeat
SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
SMASH2.CFrame = CF(Mouse.Hit.p)*CF(45,35,0)
SMASH3.CFrame = CF(Mouse.Hit.p)*CF(0,35,45)
SMASH4.CFrame = CF(Mouse.Hit.p)*CF(45,35,-45)
SMASH5.CFrame = CF(Mouse.Hit.p)*CF(0,35,-45)
SMASH6.CFrame = CF(Mouse.Hit.p)*CF(-45,35,0)
SMASH7.CFrame = CF(Mouse.Hit.p)*CF(-45,35,45)
SMASH8.CFrame = CF(Mouse.Hit.p)*CF(-45,35,-45)
SMASH9.CFrame = CF(Mouse.Hit.p)*CF(45,35,45)
Swait()
GYRO.cframe = CF(RootPart.Position,SMASH.Position)
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
until HOLD == true and SMASH.Transparency < 0.99
for i = 1, 25 do
Swait()
SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
SMASH2.CFrame = SMASH2.CFrame*CF(0,15/25,0)
SMASH3.CFrame = SMASH3.CFrame*CF(0,15/25,0)
SMASH4.CFrame = SMASH4.CFrame*CF(0,15/25,0)
SMASH5.CFrame = SMASH5.CFrame*CF(0,15/25,0)
SMASH6.CFrame = SMASH6.CFrame*CF(0,15/25,0)
SMASH8.CFrame = SMASH8.CFrame*CF(0,15/25,0)
SMASH7.CFrame = SMASH7.CFrame*CF(0,15/25,0)
SMASH9.CFrame = SMASH9.CFrame*CF(0,15/25,0)
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
local TOCH = SMASH.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH2 = SMASH2.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH3 = SMASH3.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH4 = SMASH4.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH5 = SMASH5.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH6 = SMASH6.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH7 = SMASH7.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH8 = SMASH8.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local TOCH9 = SMASH9.Touched:Connect(function(hit)
if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
Voided(hit)
end
end)
local n0 = nil
local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR ~= nil then
if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR.Parent.ClassName == "Model" then
HITFLOOR.Parent:BreakJoints()
elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
HITFLOOR.Parent.Parent:BreakJoints()
end
end
local POS = HITPOS
n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
end
end
local HITFLOOR3,HITPOS3 = Raycast(SMASH3.Position, (CF(SMASH3.Position, SMASH3.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR3 ~= nil then
if HITFLOOR3.Anchored == false and HITFLOOR3.Parent ~= workspace then
if HITFLOOR3.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR3.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR3.Parent.ClassName == "Model" then
HITFLOOR3.Parent:BreakJoints()
elseif HITFLOOR3.Parent.Parent.ClassName == "Model" then
HITFLOOR3.Parent.Parent:BreakJoints()
end
end
local POS3 = HITPOS3
n0,HITPOS3 = Raycast(POS3, (CF(POS3, POS3 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR3.Parent)
end
end
local HITFLOOR4,HITPOS4 = Raycast(SMASH4.Position, (CF(SMASH4.Position, SMASH4.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR4 ~= nil then
if HITFLOOR4.Anchored == false and HITFLOOR4.Parent ~= workspace then
if HITFLOOR4.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR4.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR4.Parent.ClassName == "Model" then
HITFLOOR4.Parent:BreakJoints()
elseif HITFLOOR4.Parent.Parent.ClassName == "Model" then
HITFLOOR4.Parent.Parent:BreakJoints()
end
end
local POS4 = HITPOS4
n0,HITPOS4 = Raycast(POS4, (CF(POS4, POS4 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR4.Parent)
end
end
local HITFLOOR5,HITPOS5 = Raycast(SMASH5.Position, (CF(SMASH5.Position, SMASH5.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR5 ~= nil then
if HITFLOOR5.Anchored == false and HITFLOOR5.Parent ~= workspace then
if HITFLOOR5.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR5.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR5.Parent.ClassName == "Model" then
HITFLOOR5.Parent:BreakJoints()
elseif HITFLOOR5.Parent.Parent.ClassName == "Model" then
HITFLOOR5.Parent.Parent:BreakJoints()
end
end
local POS5 = HITPOS5
n0,HITPOS5 = Raycast(POS5, (CF(POS5, POS5 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR5.Parent)
end
end
local HITFLOOR6,HITPOS6 = Raycast(SMASH6.Position, (CF(SMASH6.Position, SMASH6.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR6 ~= nil then
if HITFLOOR6.Anchored == false and HITFLOOR6.Parent ~= workspace then
if HITFLOOR6.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR6.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR6.Parent.ClassName == "Model" then
HITFLOOR6.Parent:BreakJoints()
elseif HITFLOOR6.Parent.Parent.ClassName == "Model" then
HITFLOOR6.Parent.Parent:BreakJoints()
end
end
local POS6 = HITPOS6
n0,HITPOS6 = Raycast(POS6, (CF(POS6, POS6 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR6.Parent)
end
end
local HITFLOOR2,HITPOS2 = Raycast(SMASH2.Position, (CF(SMASH2.Position, SMASH2.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR2 ~= nil then
if HITFLOOR2.Anchored == false and HITFLOOR2.Parent ~= workspace then
if HITFLOOR2.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR2.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR2.Parent.ClassName == "Model" then
HITFLOOR2.Parent:BreakJoints()
elseif HITFLOOR2.Parent.Parent.ClassName == "Model" then
HITFLOOR2.Parent.Parent:BreakJoints()
end
end
local POS2 = HITPOS2
n0,HITPOS2 = Raycast(POS2, (CF(POS2, POS2 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR2.Parent)
end
end
local HITFLOOR7,HITPOS7 = Raycast(SMASH7.Position, (CF(SMASH7.Position, SMASH7.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR7 ~= nil then
if HITFLOOR7.Anchored == false and HITFLOOR7.Parent ~= workspace then
if HITFLOOR7.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR7.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR7.Parent.ClassName == "Model" then
HITFLOOR7.Parent:BreakJoints()
elseif HITFLOOR7.Parent.Parent.ClassName == "Model" then
HITFLOOR7.Parent.Parent:BreakJoints()
end
end
local POS7 = HITPOS7
n0,HITPOS7 = Raycast(POS7, (CF(POS7, POS7 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR7.Parent)
end
end
local HITFLOOR8,HITPOS8 = Raycast(SMASH8.Position, (CF(SMASH8.Position, SMASH8.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR8 ~= nil then
if HITFLOOR8.Anchored == false and HITFLOOR8.Parent ~= workspace then
if HITFLOOR8.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR8.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR8.Parent.ClassName == "Model" then
HITFLOOR8.Parent:BreakJoints()
elseif HITFLOOR8.Parent.Parent.ClassName == "Model" then
HITFLOOR8.Parent.Parent:BreakJoints()
end
end
local POS8 = HITPOS8
n0,HITPOS8 = Raycast(POS8, (CF(POS8, POS8 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR8.Parent)
end
end
local HITFLOOR9,HITPOS9 = Raycast(SMASH9.Position, (CF(SMASH9.Position, SMASH9.Position + VT(0, -1, 0))).lookVector, 25000, Character)
if HITFLOOR9 ~= nil then
if HITFLOOR9.Anchored == false and HITFLOOR9.Parent ~= workspace then
if HITFLOOR9.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR9.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HITFLOOR9.Parent.ClassName == "Model" then
HITFLOOR9.Parent:BreakJoints()
elseif HITFLOOR9.Parent.Parent.ClassName == "Model" then
HITFLOOR9.Parent.Parent:BreakJoints()
end
end
local POS9 = HITPOS9
n0,HITPOS9 = Raycast(POS9, (CF(POS9, POS9 + VT(0, -1, 0))).lookVector, 25000, HITFLOOR9.Parent)
end
end
killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
killnearest(HITPOS2,SMASH2.Size.X/1.3,"Shatter")
killnearest(HITPOS3,SMASH3.Size.X/1.3,"Shatter")
killnearest(HITPOS4,SMASH4.Size.X/1.3,"Shatter")
killnearest(HITPOS5,SMASH5.Size.X/1.3,"Shatter")
killnearest(HITPOS6,SMASH6.Size.X/1.3,"Shatter")
killnearest(HITPOS,SMASH7.Size.X/1.3,"Shatter")
killnearest(HITPOS,SMASH8.Size.X/1.3,"Shatter")
killnearest(HITPOS,SMASH9.Size.X/1.3,"Shatter")
SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
SMASH2.CFrame = CF(HITPOS2+VT(0,SMASH2.Size.Y/2,0))
SMASH3.CFrame = CF(HITPOS3+VT(0,SMASH3.Size.Y/2,0))
SMASH4.CFrame = CF(HITPOS4+VT(0,SMASH4.Size.Y/2,0))
SMASH5.CFrame = CF(HITPOS5+VT(0,SMASH5.Size.Y/2,0))
SMASH6.CFrame = CF(HITPOS6+VT(0,SMASH6.Size.Y/2,0))
SMASH7.CFrame = CF(HITPOS7+VT(0,SMASH7.Size.Y/2,0))
SMASH8.CFrame = CF(HITPOS8+VT(0,SMASH8.Size.Y/2,0))
SMASH9.CFrame = CF(HITPOS9+VT(0,SMASH9.Size.Y/2,0))
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS6), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS4), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS3), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS7), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS8), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS9), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
for i = 1, 25 do
Swait()
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
coroutine.resume(coroutine.create(function()
wait(0.2)
TOCH:disconnect()
TOCH2:disconnect()
TOCH3:disconnect()
TOCH4:disconnect()
TOCH5:disconnect()
TOCH6:disconnect()
TOCH7:disconnect()
TOCH8:disconnect()
TOCH9:disconnect()
wait(1.8)
for i = 1, 100 do
Swait()
SMASH.Transparency = i/100
SMASH2.Transparency = i/100
SMASH3.Transparency = i/100
SMASH4.Transparency = i/100
SMASH5.Transparency = i/100
SMASH6.Transparency = i/100
SMASH7.Transparency = i/100
SMASH8.Transparency = i/100
SMASH9.Transparency = i/100
end
for i = 1, 10 do
Swait()
EF.Transparency = EF.Transparency + 0.1
EF2.Transparency = EF2.Transparency + 0.1
EF3.Transparency = EF3.Transparency + 0.1
EF4.Transparency = EF4.Transparency + 0.1
EF5.Transparency = EF5.Transparency + 0.1
EF6.Transparency = EF6.Transparency + 0.1
EF7.Transparency = EF7.Transparency + 0.1
EF8.Transparency = EF8.Transparency + 0.1
EF9.Transparency = EF9.Transparency + 0.1
end
SMASH:remove()
SMASH2:remove()
SMASH3:remove()
SMASH4:remove()
SMASH5:remove()
SMASH6:remove()
SMASH7:remove()
SMASH8:remove()
SMASH9:remove()
end))
GYRO:remove()
ATTACK = false
Rooted = false
end
function assuredDeath()
ATTACK = true
Rooted = true
local TAUNT = CreateSound("907332670", Head, 10, 0.95)
Swait(2)
repeat
Swait()
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(30), RAD(0)), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.35 + 0.025 * COS(SINE / 45), -0.5) * ANGLES(RAD(62 + 6 * COS(SINE / 72)), RAD(3 - 2 * COS(SINE / 58)), RAD(-82 + 2 * COS(SINE / 45))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5 + 0.025 * COS(SINE / 45), -0.5) * ANGLES(RAD(89 - 7 * COS(SINE / 66)), RAD(4 - 3 * COS(SINE / 59)), RAD(67 - 4 * COS(SINE / 45))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
until TAUNT.Playing == false
Rooted = false
ATTACK = false
end
function Chain()
ATTACK = true
Rooted = false
for i=0, 2, 0.1 / Animation_Speed do
turnto(Mouse.Hit.p)
Swait()
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
CreateSound("1208650519", RightArm, 10, 2)
local RING = CreateMagicCircle()
RING.CFrame = RightArm.CFrame * CF(0,-1.1,0)
for i = 1, 5 do
turnto(Mouse.Hit.p)
Swait()
local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
MagicSphere(VT(0,0,5),25,FRAME,"Really red",VT(0.2,0.2,0))
MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0))
RING.Size = RING.Size + VT(1,0,1)
end
coroutine.resume(coroutine.create(function()
local POS = Mouse.Hit.p
local A = IT("Attachment",RING)
for i = 1, 15 do
Swait(MRANDOM(0,5))
coroutine.resume(coroutine.create(function()
local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
Front.CanCollide = true
CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
local B = IT("Attachment",Front)
local ChainLink = IT("Beam",RING)
ChainLink.Texture = "rbxassetid://2589262756"
ChainLink.TextureSpeed = 0
ChainLink.Width0 = 3
ChainLink.Attachment0 = A
ChainLink.Attachment1 = B
ChainLink.CurveSize0 = MRANDOM(-5,5)
ChainLink.CurveSize1 = MRANDOM(-5,5)
ChainLink.TextureMode = "Static"
local bv = Instance.new("BodyVelocity")
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
bv.Parent = Front
bv.Name = "MOVE"
coroutine.resume(coroutine.create(function()
Swait(50)
bv:remove()
local POS = Front.Position
Front.CanCollide = false
local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
for i = 0, 1, 0.07 do
Swait()
Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
end
Front:remove()
ChainLink:remove()
end))
local harm = Front.Touched:Connect(function(hit)
Voided(hit)
end)
end))
end
Swait(60)
for i = 1, 5 do
Swait()
RING.Size = RING.Size - VT(1,0,1)
end
RING:remove()
end))
ATTACK = false
Rooted = false
end
--//=================================\\
--|| ASSIGN THINGS TO KEYS
--\\=================================//
function MouseDown(Mouse)
HOLD = true
if ATTACK == false then
end
end
function MouseUp(Mouse)
HOLD = false
end
function KeyDown(Key)
if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
KEYHOLD = true
if Key == "z" and ATTACK == false then
CyberOutburst()
end
if Key == "x" and ATTACK == false then
Technobeam()
end
if Key == "c" and ATTACK == false then
CyberSmash()
end
if Key == "v" and ATTACK == false then
Chain()
end
if Key == "b" and ATTACK == false then
Technowarp()
end
if Key == "t" and ATTACK == false then
assuredDeath()
end
end
end
function KeyUp(Key)
if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
KEYHOLD = false
end
end
Mouse.Button1Down:connect(function(NEWKEY)
MouseDown(NEWKEY)
end)
Mouse.Button1Up:connect(function(NEWKEY)
MouseUp(NEWKEY)
end)
Mouse.KeyDown:connect(function(NEWKEY)
KeyDown(NEWKEY)
end)
Mouse.KeyUp:connect(function(NEWKEY)
KeyUp(NEWKEY)
end)
--//=================================\\
--\\=================================//
function unanchor()
if UNANCHOR == true then
local g = Character:GetChildren()
for i = 1, #g do
if g[i].ClassName == "Part" then
g[i].Anchored = false
end
end
end
end
--//=================================\\
--|| WRAP THE WHOLE SCRIPT UP
--\\=================================//
Humanoid.Changed:connect(function(Jump)
if Jump == "Jump" and (Disable_Jump == true) then
Humanoid.Jump = false
end
end)
local ACTUALROTATIONVALUE = 0
Humanoid.HipHeight = 2
while true do
Swait()
refit()
Character.Parent = workspace
Humanoid.Parent = Character
ANIMATE.Parent = nil
ACTUALROTATIONVALUE = ACTUALROTATIONVALUE + 1
local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
IDLEANIMATION:Play()
SINE = SINE + CHANGE
local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
local TORSOVERTICALVELOCITY = RootPart.Velocity.y
HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed)
for LW = 1, #LEFTWINGS do
if LEFTWINGS[LW] ~= nil then
LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
LEFTWINGS[LW].C0 = Clerp(LEFTWINGS[LW].C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0 + 3600 * COS(SINE / 360))), 1 / Animation_Speed)
end
end
for LW = 1, #LEFTWINGS2 do
if LEFTWINGS2[LW] ~= nil then
LEFTWINGS2[LW].C1 = Clerp(LEFTWINGS2[LW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
LEFTWINGS2[LW].C0 = Clerp(LEFTWINGS2[LW].C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(120 + 3600 * COS(SINE / 360))), 1 / Animation_Speed)
end
end
for LW = 1, #LEFTWINGS3 do
if LEFTWINGS3[LW] ~= nil then
LEFTWINGS3[LW].C1 = Clerp(LEFTWINGS3[LW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
LEFTWINGS3[LW].C0 = Clerp(LEFTWINGS3[LW].C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-120 + 3600 * COS(SINE / 360))), 1 / Animation_Speed)
end
end
for RW = 1, #RIGHTWINGS do
if RIGHTWINGS[RW] ~= nil then
RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
RIGHTWINGS[RW].C0 = Clerp(RIGHTWINGS[RW].C0, CF(0, 0, 0)* ANGLES(RAD(0), RAD(0), RAD(0 - 3600 * COS(SINE / 720))), 1 / Animation_Speed)
end
end
for RW = 1, #RIGHTWINGS2 do
if RIGHTWINGS2[RW] ~= nil then
RIGHTWINGS2[RW].C1 = Clerp(RIGHTWINGS2[RW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
RIGHTWINGS2[RW].C0 = Clerp(RIGHTWINGS2[RW].C0, CF(0, 0, 0)* ANGLES(RAD(0), RAD(0), RAD(120 - 3600 * COS(SINE / 720))), 1 / Animation_Speed)
end
end
for RW = 1, #RIGHTWINGS3 do
if RIGHTWINGS3[RW] ~= nil then
RIGHTWINGS3[RW].C1 = Clerp(RIGHTWINGS3[RW].C1, CF(0, -2, -2.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
RIGHTWINGS3[RW].C0 = Clerp(RIGHTWINGS3[RW].C0, CF(0, 0, 0)* ANGLES(RAD(0), RAD(0), RAD(-120 - 3600 * COS(SINE / 720))), 1 / Animation_Speed)
end
end
if ATTACK == false then
if TORSOVELOCITY < 1 then
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
elseif TORSOVELOCITY > 1 then
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
end
end
for _, c in pairs(Character:GetChildren()) do
if c.ClassName == "Part" and c.Name ~= "Eye" then
c.Material = "Neon"
if c:FindFirstChildOfClass("ParticleEmitter") then
c:FindFirstChildOfClass("ParticleEmitter"):remove()
end
if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
local EF = Instance.new("SelectionBox",c)
EF.Adornee = c
EF.Color = BrickColor.new("Really red")
EF.LineThickness = 0.01
EF.Transparency = 0
EF.Name = "BoxEffect"
end
c.Color = C3(0,0,0)
if c == Head then
--[[if c:FindFirstChild("Dominus") == nil then
local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
M.Name = "Dominus"
end]]--
if c:FindFirstChild("face") then
c.face:remove()
end
end
elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
c:remove()
end
end
if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
if BOXFLOOR ~= nil then
WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
end
end
unanchor()
Humanoid.MaxHealth = "inf"
Humanoid.Health = "inf"
if Rooted == false then
Disable_Jump = false
Humanoid.WalkSpeed = Speed
elseif Rooted == true then
Disable_Jump = true
Humanoid.WalkSpeed = 0
end
for _, c in pairs(workspace:GetChildren()) do
if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
end
end
script.Parent = WEAPONGUI
Humanoid.Name = "Monarch"
sick.Parent = Effects
sick.Pitch = 0.85
sick.Playing = true
for _, q in pairs(Head:GetChildren()) do
if q.ClassName == "Sound" and q.Name ~= "Audio" then
q:remove()
end
end
Humanoid.DisplayDistanceType = "None"
end
--//=================================\\
--\\=================================//
--//====================================================\\--
--|| END OF SCRIPT
--\\====================================================//--