Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---// Genocider Noob \\---
- ---|| Maked By Artucox7 ||---
- ---\\ You're here venge //---
- wait(1)
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local hed = char.Head
- local tors = char.Torso
- local Torso = tors
- local hum = char.Humanoid
- local mouse = plr:GetMouse()
- local Mouse = plr:GetMouse()
- local Player = plr
- local Character = char
- local Humanoid = hum
- local RA = char["Right Arm"]
- local LA = char["Left Arm"]
- local RL = char["Right Leg"]
- local LL = char["Left Leg"]
- local root = char.HumanoidRootPart
- local BC = char["Body Colors"]
- local rainbowmode = false
- local chaosmode = false
- modz = Instance.new("Model")
- modz.Name = "efx"
- modz.Parent = char
- Heartbeat = Instance.new("BindableEvent")
- Heartbeat.Name = "Heartbeat"
- Heartbeat.Parent = script
- LS=tors["Left Shoulder"]
- LH=tors["Left Hip"]
- RS=tors["Right Shoulder"]
- RH=tors["Right Hip"]
- Neck=tors.Neck
- radical = math.rad
- angles=CFrame.Angles
- random = math.random
- Vec3 = Vector3.new
- Inst = Instance.new
- cFrame = CFrame.new
- Euler = CFrame.fromEulerAnglesXYZ
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- 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
- Cos = math.cos
- Acos = math.acos
- FLOOR = math.floor
- Player_Size = 1 --Size of the player.
- Animation_Speed = 1
- Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
- CF = CFrame.new
- VT = Vector3.new
- angles = CFrame.Angles
- attack = false
- Euler = CFrame.fromEulerAnglesXYZ
- Rad = math.rad
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- Sin = math.sin
- Asin = math.asin
- Abs = math.abs
- Mrandom = math.random
- Floor = math.floor
- rd2 = math.random
- local CHANGE = 2 / Animation_Speed
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local Speed = 20
- local r = 255
- local g = 0
- local b = 0
- local Effects2 = {}
- 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 RSC0 = 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 idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- local sine = 0
- local change = 1
- local ANIMATE = char.Animate
- local ROBLOXIDLEANIMATION = IT("Animation")
- local RootPart = char.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- necko=CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=CF(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=CF(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=CF(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=CF(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=CF(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=char.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=Euler(-1.57,0,3.14)
- necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- RSH = tors["Right Shoulder"]
- LSH = tors["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = tors
- RW.C0 = CF(1.5, 0.5, 0)
- RW.C1 = CF(0, 0.5, 0)
- RW.Part1 = RA
- RW.Parent = tors
- LW.Name = "LW"
- LW.Part0 = tors
- LW.C0 = CF(-1.5, 0.5, 0)
- LW.C1 = CF(0, 0.5, 0)
- LW.Part1 = LA
- LW.Parent = tors
- Effects = {}
- --Theme
- local them = Instance.new("Sound", tors)
- them.SoundId = "rbxassetid://3351731797"
- them.Volume = 7
- them.Looped = true
- them.TimePosition = 0
- them:Play()
- --Functions
- function CreateSound(Id,Vol,prnt)
- local sund = Instance.new("Sound", prnt)
- sund.SoundId = "rbxassetid://".. Id
- sund.Volume = Vol
- sund:Play()
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function chatfunc(Text,chatcolor,font)
- local chat = coroutine.wrap(function()
- if char:FindFirstChild("TalkingBillBoard")~= nil then
- char:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local Bill = Instance.new("BillboardGui",hed)
- Bill.Size = UDim2.new(0,100,0,40)
- Bill.StudsOffset = Vector3.new(0,3,0)
- Bill.Name = "TalkingBillBoard"
- local Hehe = Instance.new("TextLabel",Bill)
- Hehe.BackgroundTransparency = 1
- Hehe.BorderSizePixel = 0
- Hehe.Text = Text
- Hehe.Font = font
- Hehe.TextSize = 40
- Hehe.TextStrokeTransparency = 0
- Hehe.TextColor3 = Color3.new(chatcolor)
- Hehe.TextStrokeColor3 = Color3.new(0,0,0)
- Hehe.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while Hehe ~= nil do
- wait(0.01)
- Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- Hehe.Rotation = math.random(-2.5,2.5)
- end
- end))
- for i = 1,string.len(Text) do
- wait(0.01)
- Hehe.Text = string.sub(Text,1,i)
- end
- for i = 0, 1, .025 do
- wait(0.01)
- Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
- Hehe.TextStrokeTransparency = i
- Hehe.TextTransparency = i
- end
- Bill:Destroy()
- end)
- chat()
- 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 RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- 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 = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- 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)
- 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
- local Create = LoadLibrary("RbxUtility").Create
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["LongSound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 30)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(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,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function sphere(bonuspeed,type,pos,scale,value,color)
- local type = type
- local rng = Instance.new("Part", workspace)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- wait(0.01)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", workspace)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- wait(0.01)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function DestroyerBall(pos,times,beamsize,color)
- attack = true
- local tagged = nil
- local p = Instance.new("Part",root)
- p.Anchored = true
- p.CanCollide = false
- p.BrickColor = color
- p.Material = Enum.Material.Neon
- p.Size = Vector3.new(1,1,1)
- p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,2,2)
- local targ = Instance.new("Part",root)
- targ.Transparency = 1
- targ.CanCollide = false
- targ.Size = Vector3.new(1,1,1)
- targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
- CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
- CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
- for i = 1,beamsize do
- targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
- sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, BrickColor.new("Really red"))
- sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, BrickColor.new("Really red"), 0)
- m.Scale = m.Scale+Vector3.new(0,1,1)
- p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
- wait(0.01)
- end
- sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Really red"), 0)
- for i = 1,times do
- targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
- sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, BrickColor.new("Really red"), 0)
- sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, BrickColor.new("Really red"))
- p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
- wait(0.01)
- end
- for i =1,15 do
- m.Scale = m.Scale-Vector3.new(1,1,1)
- p.Transparency = i / 15
- wait(0.01)
- end
- p:Destroy()
- hum.WalkSpeed = 50
- attack = false
- 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
- 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 CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CF(StartPos,EndPos).lookVector
- return rayCast(StartPos, DIRECTION, Distance, Ignore)
- 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
- function turnto(position)
- RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
- end
- --intro
- hum.WalkSpeed = 0
- wait(0.5)
- attack = true
- for i = 1,25 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(10),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(10),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 35))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.07 * math.cos(sine / 30))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(-120)),.1)
- LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(120)),.1)
- end
- chatfunc("I love everything",BrickColor.new("Bright red"),"Fantasy")
- wait(2.8)
- chatfunc("Fire's spreading all around my room",BrickColor.new("Bright red"),"Fantasy")
- wait(3.5)
- chatfunc("My world's so bright",BrickColor.new("Bright red"),"Fantasy")
- wait(2)
- chatfunc("It's hard to breathe",BrickColor.new("Bright red"),"Fantasy")
- wait(1)
- chatfunc("but that's alright",BrickColor.new("Bright red"),"Fantasy")
- wait(1)
- chatfunc("Hush!",BrickColor.new("Bright red"),"Fantasy")
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- end
- wait(0)
- --Hat Remover
- local d = char:GetChildren()
- for i=1, #d do
- if (d[i].className == "Accessory") then
- d[i]:remove()
- end
- end
- --Cloths & Face
- BC.HeadColor = BrickColor.new("Bright yellow")
- function cloths(id1,id2)
- char:FindFirstChildOfClass("Shirt"):Destroy()
- local shirt = Instance.new("Shirt", char)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=".. id1
- char:FindFirstChildOfClass("Pants"):Destroy()
- local pan = Instance.new("Pants", char)
- pan.PantsTemplate = "http://www.roblox.com/asset/?id=".. id2
- end
- cloths(2421011350,3710369472)
- function CreateDecal(id,prnt,face,itisaface)
- if itisaface == true then
- if hed.face ~= nil then
- hed.face:Destroy()
- end
- end
- local Decal = Instance.new("Decal", prnt)
- Decal.Face = face
- Decal.Texture = "http://www.roblox.com/asset/?id=".. id
- Decal.Name = "Imaige"
- end
- CreateDecal(3788128593,hed,"Front",true)
- attack = false
- DestroyerBall(root.Position,100,15,BrickColor.new("Really red"))
- --The Gun
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Weld")
- o4 = Instance.new("Part")
- o5 = Instance.new("SpecialMesh")
- o6 = Instance.new("CFrameValue")
- o7 = Instance.new("Weld")
- o8 = Instance.new("Part")
- o9 = Instance.new("Weld")
- o10 = Instance.new("CFrameValue")
- o1.Name = "Gun"
- o1.Parent = char
- o2.Name = "WeldP"
- o2.Parent = o1
- o2.Transparency = 1
- o2.Position = Vector3.new(17.6912975, 9.1799202, 6.53496313)
- o2.Velocity = Vector3.new(0, -1165.99634, 0)
- o2.CanCollide = false
- o2.Size = Vector3.new(1, 2, 1)
- o2.CFrame = CFrame.new(17.6912975, 9.1799202, 6.53496313, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Position = Vector3.new(17.6912975, 9.1799202, 6.53496313)
- o3.Name = "RAWeld"
- o3.Parent = o2
- o3.Part0 = o2
- o3.Part1 = RA
- o4.Name = "GunBody"
- o4.Parent = o1
- o4.Position = Vector3.new(17.8213062, 7.84493065, 6.12496281)
- o4.Rotation = Vector3.new(-90, 0, 0)
- o4.Velocity = Vector3.new(0, -1165.99634, 0)
- o4.CanCollide = false
- o4.Size = Vector3.new(0.300000012, 1, 1.50999963)
- o4.CFrame = CFrame.new(17.8213062, 7.84493065, 6.12496281, 1, 0, 0, 0, -1.1920929e-07, 1.00000012, 0, -1.00000012, -1.1920929e-07)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Position = Vector3.new(17.8213062, 7.84493065, 6.12496281)
- o4.Orientation = Vector3.new(-90, 0, 0)
- o5.Parent = o4
- o5.MeshId = "rbxassetid://602885639"
- o5.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
- o5.TextureId = "rbxassetid://602886463"
- o5.VertexColor = Vector3.new(2, 2, 2)
- o5.MeshType = Enum.MeshType.FileMesh
- o5.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
- o6.Name = "qRelativeCFrameWeldValue"
- o6.Parent = o4
- o6.Value = CFrame.new(-0.130008698, -0.410000324, 1.33498967, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
- o7.Name = "qCFrameWeldThingy"
- o7.Parent = o4
- o7.C1 = CFrame.new(-0.130008698, -0.410000324, 1.33498967, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
- o7.Part0 = o2
- o7.Part1 = o4
- o8.Name = "FireHole"
- o8.Parent = o1
- o8.Transparency = 1
- o8.Position = Vector3.new(17.8099995, 7.06997013, 5.77999496)
- o8.Velocity = Vector3.new(0, -1165.99634, 0)
- o8.CanCollide = false
- o8.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o8.CFrame = CFrame.new(17.8099995, 7.06997013, 5.77999496, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o8.BottomSurface = Enum.SurfaceType.Smooth
- o8.TopSurface = Enum.SurfaceType.Smooth
- o8.Position = Vector3.new(17.8099995, 7.06997013, 5.77999496)
- o9.Name = "qCFrameWeldThingy"
- o9.Parent = o8
- o9.C1 = CFrame.new(-0.118701935, 2.10995007, 0.754968166, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o9.Part0 = o2
- o9.Part1 = o8
- o10.Name = "qRelativeCFrameWeldValue"
- o10.Parent = o8
- o10.Value = CFrame.new(-0.118701935, 2.10995007, 0.754968166, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local Effectu = IT("Folder", o1)
- Effectu.Name = "Effects"
- --Targetted Gui
- abss = Instance.new("BillboardGui",Character)
- abss.Size = UDim2.new(10,0,10,0)
- abss.Enabled = false
- imgl = Instance.new("ImageLabel",abss)
- imgl.Position = UDim2.new(0,0,0,0)
- imgl.Size = UDim2.new(1,0,1,0)
- imgl.Image = "rbxassetid://711463989"
- imgl.BackgroundTransparency = 1
- imgl.ImageColor3 = Color3.new(.9,0,0)
- img2 = Instance.new("ImageLabel",abss)
- img2.Position = UDim2.new(0,0,0,0)
- img2.Size = UDim2.new(1,0,1,0)
- img2.Image = "rbxassetid://711463989"
- img2.BackgroundTransparency = 1
- img2.ImageColor3 = Color3.new(.9,0,0)
- --eye effect
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("ParticleEmitter")
- o4 = Instance.new("ParticleEmitter")
- o5 = Instance.new("ParticleEmitter")
- o6 = Instance.new("ParticleEmitter")
- o7 = Instance.new("ParticleEmitter")
- o8 = Instance.new("ParticleEmitter")
- o9 = Instance.new("ParticleEmitter")
- o10 = Instance.new("ParticleEmitter")
- o11 = Instance.new("ParticleEmitter")
- o12 = Instance.new("ParticleEmitter")
- o13 = Instance.new("Part")
- o14 = Instance.new("Weld")
- o15 = Instance.new("CFrameValue")
- o16 = Instance.new("Weld")
- o1.Name = "Eye Effects"
- o1.Parent = char
- o2.Name = "1"
- o2.Parent = o1
- o2.Transparency = 1
- o2.Position = Vector3.new(0.966393709, 6.71075773, 47.394249)
- o2.Rotation = Vector3.new(88.0500031, 17.8999996, -83.6900024)
- o2.Velocity = Vector3.new(0, -2763.47119, 0)
- o2.CanCollide = false
- o2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- o2.CFrame = CFrame.new(0.966393709, 6.71075773, 47.394249, 0.104522705, 0.945848703, 0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, -0.994522512, 0.0993859768, 0.0323638916)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Position = Vector3.new(0.966393709, 6.71075773, 47.394249)
- o2.Orientation = Vector3.new(72, 83.9899979, -0.00999999978)
- o3.Parent = o2
- o3.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o3.Rotation = NumberRange.new(1000,1000)
- o3.Size = NumberSequence.new(0.059999998658895,0)
- o3.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o3.LightEmission = 1
- o3.Texture = "http://www.roblox.com/asset/?id=242550536"
- o3.Lifetime = NumberRange.new(5,5)
- o3.Rate = 100000
- o3.RotSpeed = NumberRange.new(1000,1000)
- o3.VelocitySpread = 10
- o3.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o4.Parent = o2
- o4.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o4.Rotation = NumberRange.new(1000,1000)
- o4.Size = NumberSequence.new(0.059999998658895,0)
- o4.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o4.LightEmission = 1
- o4.Texture = "http://www.roblox.com/asset/?id=242550536"
- o4.Lifetime = NumberRange.new(5,5)
- o4.Rate = 100000
- o4.RotSpeed = NumberRange.new(1000,1000)
- o4.VelocitySpread = 10
- o4.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o5.Parent = o2
- o5.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o5.Rotation = NumberRange.new(1000,1000)
- o5.Size = NumberSequence.new(0.059999998658895,0)
- o5.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o5.LightEmission = 1
- o5.Texture = "http://www.roblox.com/asset/?id=242550536"
- o5.Lifetime = NumberRange.new(5,5)
- o5.Rate = 100000
- o5.RotSpeed = NumberRange.new(1000,1000)
- o5.VelocitySpread = 10
- o5.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o6.Parent = o2
- o6.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o6.Rotation = NumberRange.new(1000,1000)
- o6.Size = NumberSequence.new(0.059999998658895,0)
- o6.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o6.LightEmission = 1
- o6.Texture = "http://www.roblox.com/asset/?id=242550536"
- o6.Lifetime = NumberRange.new(5,5)
- o6.Rate = 100000
- o6.RotSpeed = NumberRange.new(1000,1000)
- o6.VelocitySpread = 10
- o6.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o7.Parent = o2
- o7.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o7.Rotation = NumberRange.new(1000,1000)
- o7.Size = NumberSequence.new(0.059999998658895,0)
- o7.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o7.LightEmission = 1
- o7.Texture = "http://www.roblox.com/asset/?id=242550536"
- o7.Lifetime = NumberRange.new(5,5)
- o7.Rate = 100000
- o7.RotSpeed = NumberRange.new(1000,1000)
- o7.VelocitySpread = 10
- o7.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o8.Parent = o2
- o8.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o8.Rotation = NumberRange.new(1000,1000)
- o8.Size = NumberSequence.new(0.059999998658895,0)
- o8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o8.LightEmission = 1
- o8.Texture = "http://www.roblox.com/asset/?id=242550536"
- o8.Lifetime = NumberRange.new(5,5)
- o8.Rate = 100000
- o8.RotSpeed = NumberRange.new(1000,1000)
- o8.VelocitySpread = 10
- o8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o9.Parent = o2
- o9.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o9.Rotation = NumberRange.new(1000,1000)
- o9.Size = NumberSequence.new(0.059999998658895,0)
- o9.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o9.LightEmission = 1
- o9.Texture = "http://www.roblox.com/asset/?id=242550536"
- o9.Lifetime = NumberRange.new(5,5)
- o9.Rate = 100000
- o9.RotSpeed = NumberRange.new(1000,1000)
- o9.VelocitySpread = 10
- o9.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o10.Parent = o2
- o10.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o10.Rotation = NumberRange.new(1000,1000)
- o10.Size = NumberSequence.new(0.059999998658895,0)
- o10.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o10.LightEmission = 1
- o10.Texture = "http://www.roblox.com/asset/?id=242550536"
- o10.Lifetime = NumberRange.new(5,5)
- o10.Rate = 100000
- o10.RotSpeed = NumberRange.new(1000,1000)
- o10.VelocitySpread = 10
- o10.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o11.Parent = o2
- o11.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o11.Rotation = NumberRange.new(1000,1000)
- o11.Size = NumberSequence.new(0.059999998658895,0)
- o11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o11.LightEmission = 1
- o11.Texture = "http://www.roblox.com/asset/?id=242550536"
- o11.Lifetime = NumberRange.new(5,5)
- o11.Rate = 100000
- o11.RotSpeed = NumberRange.new(1000,1000)
- o11.VelocitySpread = 10
- o11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o12.Parent = o2
- o12.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
- o12.Rotation = NumberRange.new(1000,1000)
- o12.Size = NumberSequence.new(0.059999998658895,0)
- o12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o12.LightEmission = 1
- o12.Texture = "http://www.roblox.com/asset/?id=242550536"
- o12.Lifetime = NumberRange.new(5,5)
- o12.Rate = 100000
- o12.RotSpeed = NumberRange.new(1000,1000)
- o12.VelocitySpread = 10
- o12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- o13.Name = "HedW"
- o13.Parent = o1
- o13.BrickColor = BrickColor.new("Bright yellow")
- o13.Transparency = 1
- o13.Position = Vector3.new(0.832499981, 6.5000329, 46.8062744)
- o13.Rotation = Vector3.new(-180, 0, -180)
- o13.Velocity = Vector3.new(0, -2763.47119, 0)
- o13.CanCollide = false
- o13.Size = Vector3.new(2, 1, 1)
- o13.CFrame = CFrame.new(0.832499981, 6.5000329, 46.8062744, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o13.Position = Vector3.new(0.832499981, 6.5000329, 46.8062744)
- o13.Orientation = Vector3.new(0, 180, 0)
- o13.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o14.Name = "HEDWeld"
- o14.Parent = o13
- o14.Part0 = o13
- o14.Part1 = hed
- o15.Name = "qRelativeCFrameWeldValue"
- o15.Parent = o13
- o15.Value = CFrame.new(-0.133893728, 0.210724831, -0.587974548, -0.104522705, -0.945848703, -0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, 0.994522512, -0.0993859768, -0.0323638916)
- o16.Name = "qCFrameWeldThingy"
- o16.Parent = o13
- o16.C1 = CFrame.new(-0.133893728, 0.210724831, -0.587974548, -0.104522705, -0.945848703, -0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, 0.994522512, -0.0993859768, -0.0323638916)
- o16.Part0 = o2
- o16.Part1 = o13
- local Hole = char.Gun.FireHole
- --another functions
- 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, Effectu, 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" or 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(math.random(0,360)),RAD(math.random(0,360)),RAD(math.random(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- wait(0.01)
- 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(math.random(0,360)),RAD(math.random(0,360)),RAD(math.random(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 wait(0.01) until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait(0.01) until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- function SpawnTrail(FROM,TO,BIG)
- local TRAIL = CreatePart(3, Effectu, "Neon", 0, 0.5, BrickColor.Random().Color, "Trail", VT(0,0,0))
- MakeForm(TRAIL,"Cyl")
- local DIST = (FROM - TO).Magnitude
- if BIG == true then
- TRAIL.Size = VT(0.5,DIST,0.5)
- else
- TRAIL.Size = VT(0.25,DIST,0.25)
- end
- TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
- coroutine.resume(coroutine.create(function()
- for i = 1, 5 do
- wait(0.01)
- TRAIL.Transparency = TRAIL.Transparency + 0.1
- end
- TRAIL:remove()
- end))
- end
- function damage(partomg,amount)
- local candamage = true
- partomg.Touched:Connect(function(hit)
- if (hit.Parent:IsA("Model")) then
- if hit.Parent.Humanoid ~= nil and candamage == true then
- hit.Parent.Humanoid:TakeDamage(amount)
- candamage = false
- end
- end
- end)
- end
- --Sprint
- local sprinted = false
- mouse.KeyDown:Connect(function(key)
- if key == "q" then
- if sprinted == false then
- sprinted = true
- hum.WalkSpeed = hum.WalkSpeed + 30
- elseif sprinted == true then
- sprinted = false
- hum.WalkSpeed = hum.WalkSpeed - 30
- end
- end
- end)
- --attacks
- --functions
- local canAttack = true
- local Rooted = false
- local keyHold = true
- local targetted = nil
- local istargetted = false
- function tagotplr()
- if mouse.Target == nil then
- print("Mouse's Target Is Nil")
- elseif mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- targetted = mouse.Target.Parent
- abss.Parent = targetted
- abss.Adornee = targetted.Torso
- CreateSound("743521450",10,targetted.Torso)
- abss.Enabled = true
- istargetted = true
- end
- end
- local shutting = false
- function shot()
- attack = true
- Rooted = false
- for i=0, 0.2, 0.05 / Animation_Speed do
- wait(0.01)
- turnto(mouse.Hit.p)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RSC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- repeat
- for i=0, 0.2, 0.05 / Animation_Speed do
- wait(0.01)
- turnto(mouse.Hit.p)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RSC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- local HIT,POS = CastProperRay(Hole.Position, mouse.Hit.p, 1000, Character)
- SpawnTrail(Hole.Position,POS,1)
- if HIT ~= nil then
- if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
- HIT:Destroy()
- end
- end
- WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
- WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
- WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
- Humanoid.CameraOffset = VT(math.random(-5,5)/2.5,math.random(-5,5)/2.5,math.random(-5,5)/2.5)/30
- for i=0, 15 do
- wait(0.01)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
- end
- until keyHold == false
- attack = false
- Rooted = false
- end
- function attackone()
- attack = true
- for i = 0,1,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
- end
- CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
- local hitb = Instance.new("Part", char)
- hitb.Anchored = true
- hitb.CanCollide = false
- hitb.FormFactor = 3
- hitb.Name = "Ring"
- hitb.Material = "Neon"
- hitb.Size = Vector3.new(1, 1, 1)
- hitb.Transparency = 1
- hitb.TopSurface = 0
- hitb.BottomSurface = 0
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
- damage(RA,15)
- hitb:Destroy()
- for i = 0,1,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
- end
- attack = false
- end
- function attacktwo()
- attack = true
- for i = 0,1,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
- end
- CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
- local hitb = Instance.new("Part", char)
- hitb.Anchored = true
- hitb.CanCollide = false
- hitb.FormFactor = 3
- hitb.Name = "Ring"
- hitb.Material = "Neon"
- hitb.Size = Vector3.new(1, 1, 1)
- hitb.Transparency = 1
- hitb.TopSurface = 0
- hitb.BottomSurface = 0
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
- damage(LA,15)
- hitb:Destroy()
- for i = 0,1,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
- end
- attack = false
- end
- function XTarget()
- attack = true
- keyHold = true
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(180),math.rad(0),math.rad(20)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(180),math.rad(0),math.rad(-20)),.1)
- end
- repeat
- wait(0.1)
- local espl = Instance.new("Explosion", char)
- espl.Position = Mouse.Hit.Position
- espl.BlastRadius = 4
- espl.BlastPressure = 100
- espl.ExplosionType = "CratersAndDebris"
- until keyHold == false
- attack = false
- end
- function XBai()
- if istargetted == true then
- local truiget = abss.Parent
- root.CFrame = targetted.HumanoidRootPart.CFrame * cf(0,0.5,2)
- local wed = Instance.new("Weld", targetted.Head)
- wed.Part0 = targetted.Head
- wed.Part1 = LA
- wed.C0 = CFrame.new(0,0,1)*angles(1.5,0,0)
- attack =true
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(150),math.rad(0),math.rad(0)),.1)
- end
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,0,0)*angles(math.rad(30),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),-1.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
- end
- local espl = Instance.new("Explosion", char)
- espl.Position = targetted.Torso.Position
- espl.BlastRadius = 0
- espl.BlastPressure = 1000
- espl.ExplosionType = "CratersAndDebris"
- targetted.Humanoid.Health = 0
- CreateSound("142070127",10,tors)
- wait(2)
- attack = false
- end
- end
- function XTaunt()
- attack = true
- CreateSound("1247581778",10,hed)
- for i = 1,100 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1+0.1*math.cos(sine / 35),0)*angles(math.rad(20),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine / 35),0)*angles(math.rad(20),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.2*math.cos(sine / 35))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5-0.1*math.cos(sine / 30) ,0)*angles(math.rad(-40),math.rad(0),math.rad(-150)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5-0.1*math.cos(sine / 30) ,0)*angles(math.rad(-40),math.rad(0),math.rad(150)),.1)
- end
- attack = false
- end
- local Transformed = false
- function transform()
- if Transformed == false then
- Transformed = true
- attack = true
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- end
- BC.LeftArmColor = BrickColor.new("Black")
- BC.RightArmColor = BrickColor.new("Black")
- BC.TorsoColor = BrickColor.new("Black")
- BC.HeadColor = BrickColor.new("Black")
- cloths(3070874281,3263268363)
- them.SoundId = "rbxassetid://885996042"
- attack = false
- DestroyerBall(root.Position,100,15,BrickColor.new("Really black"))
- elseif Transformed == true then
- Transformed = false
- attack = true
- for i = 1,30 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- end
- cloths(2421011350,3710369472)
- them.SoundId = "rbxassetid://3351731797"
- attack = false
- BC.LeftArmColor = BrickColor.new("Bright yellow")
- BC.RightArmColor = BrickColor.new("Bright yellow")
- BC.TorsoColor = BrickColor.new("Bright yellow")
- BC.HeadColor = BrickColor.new("Bright yellow")
- DestroyerBall(root.Position,100,15,BrickColor.new("Really red"))
- end
- end
- function Laugh()
- attack = true
- for i = 1,20 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- end
- function Ashes() --Straight from... Whatever it was called.
- attack = true
- hum.WalkSpeed = 1.01
- Character.Head.Imaige.Texture = "rbxassetid://360687027"
- CreateSound("290084602",10,hed)
- for i = 0,6.2,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
- end
- for i = 0,6.2,0.1 do
- wait(0.01)
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
- end
- attack = false
- Character.Head.Imaige.Texture = "rbxassetid://3788128593"
- hum.WalkSpeed = 16
- end
- local attacktype = 1
- --keys & mouse
- mouse.Button1Down:Connect(function()
- if attacktype == 1 then
- if canAttack == true then
- canAttack = false
- attacktype = 2
- attackone()
- wait(0.05)
- canAttack = true
- end
- elseif attacktype == 2 then
- if canAttack == true then
- canAttack = false
- attacktype = 1
- attacktwo()
- wait(0.05)
- canAttack = true
- end
- end
- end)
- mouse.Button1Up:Connect(function()
- keyHold = true
- end)
- mouse.KeyDown:Connect(function(key)
- if key == "e" then
- tagotplr()
- elseif key == "z" then
- keyHold = true
- shot()
- elseif key == "x" then
- XTarget()
- elseif key == "r" then
- XBai()
- elseif key == "t" then
- if Transformed == false then
- XTaunt()
- elseif Transformed == true then
- Ashes()
- end
- elseif key == "m" then
- transform()
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if key == "z" then
- keyHold = false
- elseif key == "x" then
- keyHold = false
- end
- end)
- --Animations
- local equipped = false
- local idle = 0
- local change = 1
- local val = 0
- local toim = 0
- local idleanim = 0.4
- ANIMATE.Parent = nil
- hum.WalkSpeed = 14
- hum.JumpPower = 60
- hum.MaxHealth = "inf"
- hum.Health = "inf"
- hum.Animator.Parent = nil
- while true do
- wait(0.001)
- img2.Rotation = img2.Rotation + 3
- imgl.Rotation = imgl.Rotation + 3
- sine = sine + change
- local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = root.Velocity.y
- hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
- if equipped == true or equipped == false then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if 1 < root.Velocity.y and hitfloor == nil and attack == false then
- Anim = "Jump"
- change = 1
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 3 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- elseif -1 > root.Velocity.y and hitfloor == nil and attack == false then
- Anim = "FaLL"
- change = 1
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
- elseif torvel < 1 and hitfloor ~= nil and attack == false then
- Anim = "Idle"
- change = 1
- RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 35))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.07 * math.cos(sine / 30))*angles(math.rad(20),math.rad(10),math.rad(10)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.07 * math.cos(sine / 30) ,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
- LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20 + 0.5 * math.cos(sine / 30)),math.rad(0),math.rad(120)),.1)
- elseif torvel > 2 and torvel < 25 and hitfloor ~= nil and attack == false then
- Anim = "Walk"
- change = 2.6
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0 + 30 * math.cos(sine / 25)),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0 - 30 * math.cos(sine / 25)),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.07 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.06 * math.cos(sine / 20))*angles(math.rad(20),math.rad(10),math.rad(10)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.06 * math.cos(sine / 20) ,0)*angles(math.rad(0 - 30 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.06 * math.cos(sine / 20) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(120)),.1)
- elseif torvel >= 25 and hitfloor ~= nil and attack == false then
- Anim = "Sprint"
- change = 3
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 90 * math.cos(sine / 20)),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 - 90 * math.cos(sine / 20)),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.07 * math.cos(sine / 35))*angles(math.rad(30),math.rad(0 + 5 * math.cos(sine / 30)),math.rad(0 + 5 * math.cos(sine / 30))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.06 * math.cos(sine / 30))*angles(math.rad(-30),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.06 * math.cos(sine / 30) ,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.06 * math.cos(sine / 30) ,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.1)
- 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 1 >= Thing[1].TRAnsparency 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))
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Block3" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50)) + Vector3.new(0, 0.15, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Blood" then
- local Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.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]
- elseif Thing[2] == "Elec" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif 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
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement