Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("gogging, get ready for a whole lot of lag!")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- -----------------------------
- Player = owner
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- 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"]
- LVALUE = LeftArm.Color
- RVALUE = RightArm.Color
- LLVALUE = LeftLeg.Color
- RLVALUE = RightLeg.Color
- TVALUE = Torso.Color
- HVALUE = Head.Color
- har = {"rbxassetid://6074619806"}
- local sick = Instance.new("Sound",Character)
- sick.Parent = Torso
- sick.Name = "comander_cool"
- sick:resume()
- sick.Looped = true
- sick.Volume = 1
- sick.MaxDistance = 80
- sick.Pitch = 1
- local zee = 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
- it = Instance.new
- Animation_Speed = 3
- local FORCERESET = false
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 16
- 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 HOODC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
- local SHOTGUNC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
- local GUNC0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(30), RAD(0))
- 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 s = 0
- local Delete = false
- local c = 1
- local anchrd = false
- local RUN = game:service'RunService'
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local VALUE1 = false
- local AntiBanish = true
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- local NICE = false
- local VALUE3 = false
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local Fdead = false
- local Effects = IT("Folder", Character)
- Effects.Name = "Effects"
- local kay = false
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character:FindFirstChild("Animate")
- local UNANCHOR = true
- local TOBANISH = {}
- local SKILLFONT = "Arcade"
- --//=================================\\
- --\\=================================//
- function BypassGS(sound)
- Instance.new("StringValue",sound).Name = "PleaseDontDestroyMeImAGoodBoiSoundSoPleaseDontDestroyMe"
- end
- local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
- local Plrs = S.Players
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- local INFACES = {54225558,4218765670,43840015,2305445434,62715613,328783891,297839245,121800545,66766963,7918803}
- local Lift = math.random(0,255)
- ff = Instance.new("ForceField",Character)
- ff.Visible = false
- face = 297839245
- local MATTER = {"Plastic","Wood","Slate","Concrete","CorrodedMetal","DiamondPlate","Foil","Grass","Ice","Marble","Granite","Brick","Pebble","Sand","Fabric","SmoothPlastic","Metal","WoodPlanks","Cobblestone","Air","Water","Rock","Glacier","Snow","Sandstone","Mud","Basalt","Ground","CrackedLava","Neon","Glass","Asphalt","LeafyGrass","Salt","Limestone","Pavement","ForceField"}
- local PlayerSize = 1
- local FT,FRA,FLA,FRL,FLL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
- FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
- FRA.MeshId,FRA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
- FLA.MeshId,FLA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
- FRL.MeshId,FRL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
- FLL.MeshId,FLL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
- local AUDIOS = {"rbxassetid://844654533","rbxassetid://1439600000","rbxassetid://2256088590","rbxassetid://3154204326"}
- if Player.Character:FindFirstChild("Animate") then
- local an = Humanoid:GetPlayingAnimationTracks()
- for i = 1, #an do
- an[i]:Stop()
- end
- Humanoid.Animator:Destroy()
- Player.Character:FindFirstChild("Animate"):Destroy()
- ANIMATOR:Destroy()
- ANIMATE:Destroy()
- end
- local fakerot = 0
- local mde = "LORD"
- local FONTS = {"Fantasy","Highway","SciFi"}
- function NewJoint(Part0,Part1,C0,C1)
- local Joint = Instance.new("Motor6D",Part0)
- Joint.Part0 = Part0
- Joint.Part1 = Part1
- Joint.C0 = C0
- Joint.C1 = C1
- Joint.Name = Part0.Name.." "..Part1.Name
- return Joint
- end
- local Neck,RightShoulder,LeftShoulder,RightHip,LeftHip,RootJoint = NewJoint(Torso,Head,CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),CF(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)),NewJoint(Torso,RightArm,CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),CF(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)),NewJoint(Torso,LeftArm,CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),CF(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)),NewJoint(Torso,RightLeg,CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),CF(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)),NewJoint(Torso,LeftLeg,CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),CF(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)),NewJoint(RootPart,Torso,CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0))
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- --DO NOT TOUCH THIS
- if Character:FindFirstChild("Adds")then wait(.2) script.Disabled = true script:Destroy() error("You Shouldn't Have Added A Banisher Gun To My Script") end
- 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)
- 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 Rwait(num)
- if num == 0 or num == nil then
- RUN.Stepped:wait()
- else
- for i=0,num do
- RUN.Stepped:wait()
- end
- end
- end
- BypassGS(sick)
- local S = IT("Sound",script)
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- BypassGS(NEWSOUND)
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- if Head:FindFirstChild("face") then
- coolface = Head.face.Texture
- end
- function CreateSound2(ID, PARENT, VOLUME, PITCH, TIMEPOS, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- BypassGS(NEWSOUND)
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.TimePosition = TIMEPOS
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- 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 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
- 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 ApplyDamage(Humanoid,Damage)
- Damage = Damage * DAMAGEMULTIPLIER
- if Humanoid.Health < 2000 then
- if Humanoid.Health - Damage > 0 then
- Humanoid.Health = Humanoid.Health - Damage
- else
- Humanoid.Parent:BreakJoints()
- end
- else
- Humanoid.Parent:BreakJoints()
- end
- end
- function Fancy_spawntrail(LOC,AIMTO,OUCH)
- WACKYEFFECT2({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1.1,1.1,1.1), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- for i = 1, 1 do
- local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
- local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)))*CF(0,0,MRANDOM(5,75)/10).p
- local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
- local DISTANCE = (POS - LOC).Magnitude
- if HIT then
- local HUM = nil
- if HIT.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
- elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if HUM then
- Kill3(HIT.Parent)
- end
- end
- WACKYEFFECT2({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 4})
- WACKYEFFECT2({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.7,0.7,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- function Fancy_spawntrail7(LOC,AIMTO,OUCH)
- for i = 1, 1 do
- local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
- local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(0), RAD(0), RAD(0))*CF(0,0,10).p
- local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
- local DISTANCE = (POS - LOC).Magnitude
- if HIT then
- local HUM = nil
- if HIT.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
- elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if HUM then
- end
- end
- local Z = math.random(150,255)
- Kill4(HIT)
- WACKYEFFECT2({Time = 5, EffectType = "Box", Size = VT(0.4,0.4,DISTANCE), Size2 = VT(0,0,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- function Fancy_spawntrail6(LOC,AIMTO,OUCH)
- for i = 1, 1 do
- local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
- local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(0), RAD(0), RAD(0))*CF(0,0,10).p
- local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
- local DISTANCE = (POS - LOC).Magnitude
- if HIT then
- local HUM = nil
- if HIT.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
- elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if HUM then
- end
- end
- local Z = math.random(150,255)
- ApplyAoE10(POS,3,30,65,0,true)
- WACKYEFFECT2({Time = 5, EffectType = "Box", Size = VT(0.4,0.4,DISTANCE), Size2 = VT(0,0,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- function Fancy_spawntrail3(LOC,AIMTO,OUCH)
- WACKYEFFECT2({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1.1,1.1,1.1), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- for i = 1, 1 do
- local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
- local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(-0,0)), RAD(MRANDOM(-0,0)), RAD(MRANDOM(-0,0)))*CF(0,0,MRANDOM(5,75)/10).p
- local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
- local DISTANCE = (POS - LOC).Magnitude
- if HIT then
- local HUM = nil
- if HIT.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent:FindFirstChildOfClass("Humanoid")
- elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
- HUM = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
- end
- if HUM then
- Kill2(HUM)
- BEAN(HUM)
- end
- end
- WACKYEFFECT2({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 4})
- WACKYEFFECT2({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.7,0.7,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- local ragdolled = false
- function Fancy_spawntrail2(LOC,AIMTO,OUCH)
- WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(LOC), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- for i = 1, 1 do
- local POS1 = CF(LOC,AIMTO)*CF(0,0,-45).p
- local AIMPOS = CF(LOC,POS1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,15)), RAD(MRANDOM(0,15)))*CF(0,0,MRANDOM(5,75)/10).p
- local HIT,POS = CastProperRay(LOC,AIMPOS,1000,Character)
- local DISTANCE = (POS - LOC).Magnitude
- WACKYEFFECT2({Time = 20, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT2({Time = 20, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0.6, Transparency2 = 1, CFrame = CF(LOC,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- function SpawnTrail(FROM,TO,BIG)
- local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, BrickColor.Random(), "Trail", VT(0,0,0))
- MakeForm(TRAIL,"Ball")
- local DIST = (FROM - TO).Magnitude
- if BIG == true then
- TRAIL.Size = VT(1,DIST,1)
- 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()
- TRAIL.Transparency = TRAIL.Transparency
- end
- TRAIL:remove()
- end))
- end
- function WACKYEFFECT2(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)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- 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" 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", "168892432", "", 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))
- elseif TYPE == "Head" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "539723444", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- 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
- if USEBOOMERANGMATH == true then
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/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)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- else
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/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.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- function WACKYEFFECT3(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)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- 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" 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", "168892432", "", 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 BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)))
- else
- EFFECT.CFrame = CFRAME
- end
- if USEBOOMERANGMATH == true then
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)))
- 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)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- else
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)))
- 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.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- 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 == "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))
- elseif TYPE == "Hat" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "173774068", "", SIZE, VT(0,0,0))
- elseif TYPE == "Arm" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2828256740", "", SIZE, VT(0,0,0))
- elseif TYPE == "torso" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "48112070", "", SIZE, VT(0,0,0))
- elseif TYPE == "Head" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "539723444", "", SIZE, VT(0,0,0))
- elseif TYPE == "Mask" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4548197626", "", SIZE, VT(0,0,0))
- elseif TYPE == "Spike" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2720161649", "", SIZE, VT(0,0,0))
- elseif TYPE == "Headtaker" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1039854907", "1039856529", SIZE, VT(0,0,0))
- elseif TYPE == "Pumpkin" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1050943947", "1050943957", 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
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- wait()
- 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 = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- 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
- SOUND.Stopped:Connect(function()
- EFFECT:remove()
- end)
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- 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 WACKYEFFECT4(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local MIDDLESIZE = (Table.Size2 or VT(0.5,0.5,0.5))
- local ENDSIZE = (Table.Size3 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 == "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))
- elseif TYPE == "Hat" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "173774068", "", SIZE, VT(0,0,0))
- elseif TYPE == "Arm" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2828256740", "", SIZE, VT(0,0,0))
- elseif TYPE == "torso" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "48112070", "", SIZE, VT(0,0,0))
- elseif TYPE == "Head" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "539723444", "", SIZE, VT(0,0,0))
- elseif TYPE == "Mask" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4548197626", "", SIZE, VT(0,0,0))
- elseif TYPE == "Spike" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2720161649", "", 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 + MIDDLESIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- wait()
- 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 = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- 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
- SOUND.Stopped:Connect(function()
- EFFECT:remove()
- end)
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- local glitch = false
- local INTRO2 = true
- function how(text,doclone,obj,type,pos,rot)
- spawn(function()
- local raig
- local w
- if not doclone then
- if type:lower() == "bgui" then
- raig= Instance.new("BillboardGui", Head)
- elseif type:lower() == "frame" then
- raig = Instance.new("Frame", nil)
- end
- raig.Adornee = nil
- raig.Name = "why"
- raig.Size = UDim2.new(4, 0, 1.2, 0)
- raig.StudsOffset = pos
- w = Instance.new("TextLabel", raig)
- w.Size = UDim2.new(10/2, 0, 7/2, 0)
- w.FontSize = "Size8"
- w.TextScaled = true
- w.Rotation=rot
- w.TextTransparency = 0
- w.BackgroundTransparency = 1
- w.TextTransparency = 0
- w.TextStrokeTransparency = 0
- w.Font = "Arcade"
- w.TextStrokeColor3 = Color3.new(1,1,1)
- w.TextColor3 = Color3.new(0,0,0)
- w.Text = text
- elseif doclone and obj then
- w = obj:Clone()
- w.Parent = obj.Parent
- end
- wait()
- for i=1,55 do
- wait()
- w.TextTransparency = 1-(1/i)
- w.TextStrokeTransparency = 1-(1/i)
- end
- game:GetService("Debris"):AddItem(w,0)
- end)
- end
- function chatfunc(text)
- local stop = false
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local Bill = Instance.new("BillboardGui",Character)
- Bill.Size = UDim2.new(5, 35,3, 15)
- Bill.StudsOffset = Vector3.new(0,2,0)
- Bill.Adornee = Character.Head
- Bill.Name = "TalkingBillBoard"
- Bill.MaxDistance = 70
- local Hehe = Instance.new("TextLabel",Bill)
- Hehe.BackgroundTransparency = 1
- Hehe.BorderSizePixel = 0
- Hehe.Text = ""
- Hehe.TextSize = 30
- Hehe.TextStrokeTransparency = 0
- Hehe.TextScaled = true
- Hehe.TextWrapped = false
- Hehe.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while Hehe ~= nil do
- wait()
- if math.random(1,55) == 1 then
- for i = 1, math.random(5,25) do
- wait()
- Hehe.Font = (FONTS[MRANDOM(1,#FONTS)])
- Hehe.Position = UDim2.new(math.random(-1,1)/10,math.random(0,0),math.random(-1,1)/10,0)
- Hehe.Rotation = math.random(-20,20)
- Hehe.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- Hehe.TextStrokeColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- end
- else
- Hehe.Font = "Fantasy"
- Hehe.Position = UDim2.new(math.random(-0,0),math.random(-0,0),.1,0)
- Hehe.Rotation = math.random(-0,0)
- Hehe.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- Hehe.TextStrokeColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- Hehe.Rotation = 0
- end
- Bill.ExtentsOffset = Vector3.new(0,0.2*COS(SINE/15),0)
- end
- end))
- for i = 1,string.len(text),1 do
- wait()
- how('',true,Hehe)
- Hehe.Text = string.sub(text,1,i)
- end
- coroutine.resume(coroutine.create(function()
- while stop == false do
- wait()
- how('',true,Hehe)
- end
- end))
- wait(3)--Re[math.random(1, 93)]
- for i = 0, 5, .035 do
- wait()
- local spin = 0
- spin = spin + 0.5
- Hehe.TextStrokeTransparency = i
- Hehe.TextTransparency = i
- stop = true
- end
- Bill:Destroy()
- end)
- chat()
- end
- function vanguard()
- ATTACK = true
- Rooted = true
- chatfunc("I am the vanguard of your destruction.")
- CreateSound(2563659001,Torso,5,1,false)
- for i=0, 0.1, 0.008 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-15*SIN(SINE/3)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+0.08*SIN(SINE/10), 0) * ANGLES(RAD(180), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.35 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- for i=0, 0.1, 0.07 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-15*SIN(SINE/3)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+0.08*SIN(SINE/10), -0.3) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- for i=0, 0.1, 0.01 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-15*SIN(SINE/3)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.5, 0.5+0.08*SIN(SINE/10), -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0))* RIGHTSHOULDERC0,1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- for i=0, 0.1, 0.07 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-15*SIN(SINE/3)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+0.08*SIN(SINE/10), -0.3) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- for i=0, 0.1, 0.0035 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-15*SIN(SINE/3)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+0.08*SIN(SINE/10), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(-90), RAD(0))* RIGHTSHOULDERC0, 0.35 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- ATTACK = false
- Rooted = false
- end
- --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
- function Banish(Foe)
- if Foe then
- coroutine.resume(coroutine.create(function()
- --if game.Players:FindFirstChild(Foe.Name) then
- table.insert(TOBANISH,Foe.Name)
- --end
- Foe.Archivable = true
- local CLONE = Foe:Clone()
- Foe:Destroy()
- CLONE.Parent = Effects
- CLONE:BreakJoints()
- local MATERIALS = {"Glass","Neon"}
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Transparency = c.Transparency + 1
- c.Material = MATERIALS[MRANDOM(1,2)]
- c.Color = C3(1,0,0)
- if c.ClassName == "MeshPart" then
- c.TextureID = ""
- end
- if c:FindFirstChildOfClass("SpecialMesh") then
- c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- c.Name = "Banished"
- c.CanCollide = false
- else
- c:remove()
- end
- end
- local A = false
- for i = 1, 35 do
- if A == false then
- A = true
- elseif A == true then
- A = false
- end
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Material = MATERIALS[MRANDOM(1,2)]
- c.Transparency = c.Transparency + 0.8/35
- if A == false then
- c.CFrame = c.CFrame*CF(0,0,0)
- elseif A == true then
- c.CFrame = c.CFrame*CF(0,0,0)
- end
- end
- end
- wait()
- end
- CLONE:remove()
- end))
- end
- end
- function FBanish(Foe)
- if Foe then
- coroutine.resume(coroutine.create(function()
- --if game.Players:FindFirstChild(Foe.Name) then
- --table.insert(TOBANISH,Foe.Name)
- --end
- Foe.Archivable = true
- local CLONE = Foe:Clone()
- Foe:Destroy()
- CLONE.Parent = Effects
- CLONE:BreakJoints()
- local MATERIALS = {"Glass","Neon"}
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Transparency = c.Transparency + 1
- c.Material = MATERIALS[MRANDOM(1,2)]
- c.Color = C3(1,0,0)
- if c.ClassName == "MeshPart" then
- c.TextureID = ""
- end
- if c:FindFirstChildOfClass("SpecialMesh") then
- c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- c.Name = "Banished"
- c.CanCollide = false
- else
- c:remove()
- end
- end
- local A = false
- for i = 1, 35 do
- if A == false then
- A = true
- elseif A == true then
- A = false
- end
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Material = MATERIALS[MRANDOM(1,2)]
- c.Transparency = c.Transparency + 0.8/35
- if A == false then
- c.CFrame = c.CFrame*CF(0,0,0)
- elseif A == true then
- c.CFrame = c.CFrame*CF(0,0,0)
- end
- end
- end
- wait()
- end
- CLONE:remove()
- end))
- end
- end
- function Kill2(Foe)
- local TARGET = Mouse.Target
- if Foe then
- if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
- local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
- local FOE = Mouse.Target.Parent
- ATTACK = true
- Rooted = true
- WACKYEFFECT({Time = 100, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(-2,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color=Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 100, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(2,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color=Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 100, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color=Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 100, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,-2,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color=Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 100, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,-2,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color=Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 100, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,1,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Plastic", Color= Color3.fromRGB(MRANDOM(1,255),MRANDOM(1,255),MRANDOM(1,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- FOE.Parent = nil
- end
- end
- end
- function Kill3(Foe)
- local TARGET = Mouse.Target
- if Foe then
- if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
- local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
- local FOE = Mouse.Target.Parent
- ATTACK = true
- Rooted = true
- WACKYEFFECT({Time = 35, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(-2,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color=Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 35, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(2,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color=Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 35, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,0,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color=Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 35, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,-2,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color=Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 35, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,-2,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color=Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 35, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame*CF(0,1,0), MoveToPos = ROOT.CFrame*CF(MRANDOM(-9,9),MRANDOM(-9,9),MRANDOM(-9,9)).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color= Color3.fromRGB(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- FOE.Parent = nil
- end
- end
- end
- workspace.ChildAdded:connect(function(instance)
- for BANISH = 1, #TOBANISH do
- if TOBANISH[BANISH] ~= nil then
- if instance.Name == TOBANISH[BANISH] then
- coroutine.resume(coroutine.create(function()
- instance:ClearAllChildren()
- end))
- end
- end
- end
- end)
- function StatLabel(CFRAME, TEXT, COLOR)
- local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
- STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
- local BODYGYRO = IT("BodyGyro", STATPART)
- game:GetService("Debris"):AddItem(STATPART ,5)
- local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
- BILLBOARDGUI.Adornee = STATPART
- BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
- BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
- BILLBOARDGUI.AlwaysOnTop = false
- local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
- TEXTLABEL.BackgroundTransparency = 1
- TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
- TEXTLABEL.Text = TEXT
- TEXTLABEL.Font = SKILLFONT
- TEXTLABEL.FontSize="Size42"
- TEXTLABEL.TextColor3 = COLOR
- TEXTLABEL.TextStrokeTransparency = 0
- TEXTLABEL.TextScaled = true
- TEXTLABEL.TextWrapped = true
- coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
- for i = 1, 10 do
- wait()
- STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
- TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
- end
- THEPART.Parent = nil
- end),STATPART, TEXTLABEL)
- end
- function ApplyDamage2(Humanoid,Damage,TorsoPart)
- local defence = Instance.new("BoolValue",Humanoid.Parent)
- defence.Name = ("HitBy"..Player.Name)
- game:GetService("Debris"):AddItem(defence, 0.001)
- Damage = Damage * DAMAGEMULTIPLIER
- if Humanoid.Health ~= 0 then
- local CritChance = MRANDOM(1,100)
- if Damage > Humanoid.Health then
- Damage = math.ceil(Humanoid.Health)
- if Damage == 0 then
- Damage = 0.1
- end
- end
- Humanoid.Health = Humanoid.Health - Damage
- end
- end
- function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if INSTAKILL == true then
- CHILD:BreakJoints()
- else
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE4(POSITION,RANGE,MINDMG,MAXDMG,FLING,PARTICLE)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if PARTICLE == true then
- if HUM.Health < 10 then
- KillChildren3(TORSO.Parent)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE5(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health < 30 then
- Ragdoll(TORSO.Parent,false,false)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE6(POSITION,RANGE,MINDMG,MAXDMG,FLING,DKILL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if DKILL == true then
- if HUM.Health < 30 then
- HUM.Health = 50
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE7(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 then
- CreateSound(4988625180,TORSO,sick.Volume + 1,1,false)
- Ragdoll(TORSO.Parent,false,false)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE8(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 then
- WACKYEFFECT2({Time = 10, EffectType = "Sphere", Size = VT(20,20,20), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0, CFrame = TORSO.CFrame*CF(0,0,0)*CFrame.Angles(math.rad(0),math.rad(math.random(-360,360)),math.rad(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(150,0,150), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- HUM.Parent:Destroy()
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- local souls = 0
- function SoulSteal(dude)
- if dude.Name ~= Character then
- local val = IT("BoolValue", dude)
- val.Name = "IsHit"
- local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
- local soulst = coroutine.wrap(function()
- local soul = Instance.new("Part",dude)
- soul.Size = Vector3.new(1,1,1)
- soul.CanCollide = false
- soul.Anchored = false
- soul.Position = torso.Position
- soul.Transparency = 1
- local PartEmmit1 = IT("ParticleEmitter", soul)
- PartEmmit1.LightEmission = 1
- PartEmmit1.Texture = "rbxassetid://569507414"
- PartEmmit1.Color = ColorSequence.new(Head.Color)
- PartEmmit1.Rate = 250
- PartEmmit1.Lifetime = NumberRange.new(1.6)
- PartEmmit1.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1, 0),
- NumberSequenceKeypoint.new(1, 0, 0)
- })
- PartEmmit1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- PartEmmit1.Speed = NumberRange.new(0, 0)
- PartEmmit1.VelocitySpread = 30000
- PartEmmit1.Rotation = NumberRange.new(-360, 360)
- PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
- local BodPoss = IT("BodyPosition", soul)
- BodPoss.P = 3000
- BodPoss.D = 1000
- BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- BodPoss.position = torso.Position + Vector3.new(MRANDOM(-15, 15), MRANDOM(-15, 15), MRANDOM(-15, 15))
- wait(1.6)
- soul.Touched:connect(function(hit)
- if hit.Parent == Character then
- soul:Destroy()
- end
- end)
- wait(1.2)
- while soul do
- wait()
- PartEmmit1.Color = ColorSequence.new(Head.Color)
- BodPoss.Position = Torso.Position
- end
- end)
- soulst()
- end
- end
- local NP = false
- function ApplyAoE9(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 and NP == false then
- CreateSound(4988625180,TORSO,sick.Volume + 1,1,false)
- end
- if HUM.Health < 30 then
- if HUM.Health > 0 then
- Ragdoll(TORSO.Parent,false,false)
- souls = souls + 1
- end
- elseif HUM.Health > 500 then
- souls = souls + 1
- Ragdoll(TORSO.Parent,false,false)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- local Cooldown = false
- local asd = Instance.new("ParticleEmitter")
- local Z = math.random(0,255)
- asd.LightEmission = 0
- asd.Texture = "http://www.roblox.com/asset/?id=132155326"
- aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
- bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
- asd.Transparency = bbb
- asd.Size = aaa
- asd.ZOffset = 0
- asd.Acceleration = Vector3.new(0, -51, 0)
- asd.LockedToPart = false
- asd.EmissionDirection = "Top"
- asd.Lifetime = NumberRange.new(1, 2)
- asd.Rotation = NumberRange.new(-180,180)
- asd.RotSpeed = NumberRange.new(-9000, 9000)
- asd.Speed = NumberRange.new(20)
- asd.Enabled = false
- asd.VelocitySpread = 999
- function getbloody(victim,amount)
- local PART = IT("Part",Effects)
- PART.Transparency = 1
- PART.Size = victim.Size
- PART.Anchored = true
- PART.CanCollide = false
- PART.CFrame = CF(victim.Position)
- local HITPLAYERSOUNDS = {"2544621925","2544621925"}
- Debris:AddItem(PART,5)
- local prtcl = asd:Clone()
- prtcl.Parent = PART
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, sick.Volume + 1, (math.random(8,12)/10))
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, sick.Volume + 1, (math.random(8,12)/10))
- prtcl:Emit(amount*5)
- end
- function getbloody2(victim,amount)
- local PART = IT("Part",Effects)
- PART.Transparency = 1
- PART.Size = victim.Size
- PART.Anchored = true
- PART.CanCollide = false
- PART.CFrame = CF(victim.Position)
- local HITPLAYERSOUNDS = {"2544621925","2544621925"}
- Debris:AddItem(PART,5)
- local prtcl = asd:Clone()
- prtcl.Parent = PART
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, sick.Volume + 1, (math.random(8,12)/10))
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, sick.Volume + 1, (math.random(8,12)/10))
- prtcl:Emit(amount*30)
- end
- function JointKiller(Model)
- for index, CHILD in pairs(Model:GetDescendants()) do
- if CHILD:IsA("JointInstance") then
- CHILD.Part0 = nil
- CHILD.Part1 = nil
- CHILD:remove()
- end
- end
- end
- function Kill(Humanoid)
- if Humanoid:FindFirstChild("Killed") == nil then
- local Mark = IT("Folder",Humanoid)
- Mark.Name = "Killed"
- local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
- Lightning(TORSO.Position,TORSO.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(TORSO.Position,TORSO.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(TORSO.Position,TORSO.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- coroutine.resume(coroutine.create(function()
- wait()
- local Z = math.random(0,255)
- for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
- if CHILD:IsA("BasePart") then
- if CHILD.Name == "Head" then
- CHILD:BreakJoints()
- getbloody(CHILD,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z)*MRANDOM(8,16)/12, Size2 = (VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z))*MRANDOM(7,14)/10, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), RotationX = MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Skull", Size = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z)*3.75, Size2 = (VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z))*MRANDOM(7,14)/5, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(0,MRANDOM(17,23)/1.5,0), RotationX = MRANDOM(-90,90)/35, RotationY = MRANDOM(-90,90)/35, RotationZ = MRANDOM(-90,90)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- elseif CHILD.Name ~= "HumanoidRootPart" then
- CHILD:BreakJoints()
- getbloody(CHILD,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = CHILD.Size*MRANDOM(8,16)/12, Size2 = CHILD.Size*MRANDOM(8,16)/12, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- end
- CHILD:Destroy()
- end
- end
- Humanoid.MaxHealth = 0
- Humanoid.Health = 0
- Humanoid:Destroy()
- end))
- end
- end
- function Kill4(Foe)
- if Foe and Foe.Name ~= "Baseplate" and Foe.Name ~= "Base" and Foe.Name ~= "BasePlate" then
- Lightning(Foe.Position,Foe.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(Foe.Position,Foe.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(Foe.Position,Foe.Position+VT(math.random(-10,10),55,math.random(-10,10)),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- coroutine.resume(coroutine.create(function()
- --if game.Players:FindFirstChild(Foe.Name) then
- --table.insert(TOBANISH,Foe.Name)
- --end
- if Foe.Name == "Head" then
- getbloody(Foe,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Head", Size = VT(1,1,1)*MRANDOM(8,16)/12, Size2 = VT(1,1,1)*MRANDOM(8,16)/12, Transparency = Foe.Transparency, Transparency2 = 1, CFrame = Foe.CFrame, MoveToPos = Foe.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- Ragdoll(Foe.Parent,false,false)
- Foe:Destroy()
- else
- getbloody(Foe,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = Foe.Size*MRANDOM(8,16)/12, Size2 = Foe.Size*MRANDOM(8,16)/12, Transparency = Foe.Transparency, Transparency2 = 1, CFrame = Foe.CFrame, MoveToPos = Foe.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- Foe:Destroy()
- end
- end))
- end
- end
- sick.SoundId = (har[MRANDOM(1,#har)])
- --[[ function FakeDeath()
- getbloody(Torso,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = Torso.Size*MRANDOM(8,16)/12, Size2 = Torso.Size*MRANDOM(8,16)/12, Transparency = Torso.Transparency, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- getbloody(RightArm,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = RightArm.Size*MRANDOM(8,16)/12, Size2 = RightArm.Size*MRANDOM(8,16)/12, Transparency = RightArm.Transparency, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = RightArm.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.fromRGB(128 + 1278*COS(SINE/15), 78 + 78*COS(SINE/15)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- getbloody(LeftArm,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = LeftArm.Size*MRANDOM(8,16)/12, Size2 = LeftArm.Size*MRANDOM(8,16)/12, Transparency = LeftArm.Transparency, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = LeftArm.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.fromRGB(128 + 1278*COS(SINE/15), 78 + 78*COS(SINE/15)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- getbloody(Head,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Head", Size = VT(1,1,1)*MRANDOM(8,16)/12, Size2 = VT(1,1,1)*MRANDOM(8,16)/12, Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame, MoveToPos = Head.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.fromRGB(128 + 1278*COS(SINE/15), 78 + 78*COS(SINE/15)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- getbloody(LeftLeg,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = LeftLeg.Size*MRANDOM(8,16)/12, Size2 = LeftLeg.Size*MRANDOM(8,16)/12, Transparency = LeftLeg.Transparency, Transparency2 = 1, CFrame = LeftLeg.CFrame, MoveToPos = LeftLeg.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.fromRGB(128 + 1278*COS(SINE/15), 78 + 78*COS(SINE/15)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- getbloody(RightLeg,2)
- WACKYEFFECT2({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = RightLeg.Size*MRANDOM(8,16)/12, Size2 = RightLeg.Size*MRANDOM(8,16)/12, Transparency = RightLeg.Transparency, Transparency2 = 1, CFrame = RightLeg.CFrame, MoveToPos = RightLeg.Position+VT(MRANDOM(-5,5)*1.5,MRANDOM(5,8)/1.5,MRANDOM(-5,5)*1.5), MRANDOM(-55,55)/35, RotationY = MRANDOM(-55,55)/35, RotationZ = MRANDOM(-55,55)/35, Material = "Neon", Color = Color3.fromRGB(128 + 1278*COS(SINE/15), 78 + 78*COS(SINE/15)), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 75, SizeBoomerang = 50})
- Fdead = true
- INTRO2 = false
- sick.Volume = 0
- Cooldown = true
- if Cooldown == true then
- coroutine.resume(coroutine.create(function()
- wait(1)
- Cooldown = false
- end))
- end
- end--]]
- local AMMO = 200
- function ApplyAoE10(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 then
- Kill(HUM)
- elseif HUM.Health > 1000 then
- Kill(HUM)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- local Stunb2 = {}
- function ApplyAoE12(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health < 30 then
- if HUM.Health > 0 then
- Ragdoll(TORSO.Parent,false,false)
- end
- elseif HUM.Health > 0 then
- HUM.PlatformStand = true
- elseif HUM.Health > 1000 then
- Kill(HUM)
- end
- TORSO.CFrame = TORSO.CFrame* ANGLES(RAD(-40), RAD(0), RAD(0))
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- if HUM.PlatformStand == true then
- coroutine.resume(coroutine.create(function()
- wait(6)
- HUM.PlatformStand = false
- end))
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE13(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- local HEAD = CHILD:FindFirstChild("Head")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.PlatformStand == true then
- if HUM.Health > 0 then
- getbloody2(HEAD,10)
- Ragdoll2(HUM.Parent,false,true)
- end
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE14(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- local HEAD = CHILD:FindFirstChild("Head")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 then
- getbloody2(HEAD,10)
- Ragdoll2(HUM.Parent,false,true)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(0, 1e9, 0)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE15(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso")or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health > 0 then
- Kill(HUM)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyAoE11(POSITION,RANGE,MINDMG,MAXDMG,FLING,RAGDOLL)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if RAGDOLL == true then
- if HUM.Health < 30 then
- if HUM.Health > 0 then
- AMMO = AMMO + 50
- Ragdoll(TORSO.Parent,false,false)
- souls = souls + 1
- end
- elseif HUM.Health > 1000 then
- AMMO = AMMO + 200
- Ragdoll(TORSO.Parent,false,false)
- end
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage2(HUM,DMG,TORSO)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function ApplyDamage(Humanoid,Damage,TorsoPart)
- local defence = Instance.new("BoolValue",Humanoid.Parent)
- defence.Name = ("HitBy"..Player.Name)
- game:GetService("Debris"):AddItem(defence, 0.001)
- Damage = Damage * DAMAGEMULTIPLIER
- if Humanoid.Health ~= 0 then
- local CritChance = MRANDOM(1,100)
- if Damage > Humanoid.Health then
- Damage = math.ceil(Humanoid.Health)
- if Damage == 0 then
- Damage = 0.1
- end
- end
- Humanoid.Health = Humanoid.Health - Damage
- StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
- end
- end
- --[[
- top=it("Shirt",Character)
- top.Name = "Shirt"
- bottom=it("Pants",Character)
- bottom.Name = "Pants"
- if Player.Name ~= "HeavyWeaponsGuy" then
- for i,x in pairs(Character:GetDescendants()) do if x:IsA("Shirt") or x:IsA("Pants") then x:Destroy() end end
- top=it("Shirt",Character)
- top.Name = "Shirt"
- bottom=it("Pants",Character)
- bottom.Name = "Pants"
- Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4086984456"
- Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=4482384709"
- end
- ]]
- --[[coroutine.resume(coroutine.create(function()
- while wait() do
- end
- end))--]]
- --[[
- local hd = script.Headz
- hd.Parent = Character
- hd.CFrame = Head.CFrame
- weldBetween(Head,hd)
- local BUCKETWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, hd, CF(0, 0, 0), CF(0, 0, 0))
- BUCKETWELD.C0 = BUCKETWELD.C0 * ANGLES(RAD(-0), RAD(0), RAD(0))
- ]]
- local AA = {"!","@","#","$","%","^","&","*","(",")","-","_","=","+","[","]","}","{","'","|",",","<",".",">","/","?"," "}
- name= Player.Name
- coroutine.resume(coroutine.create(function()
- while wait() do
- for _,c in pairs(Character:GetDescendants()) do
- if c.ClassName == "CharacterMesh" then
- c:Remove()
- end
- end
- end
- end))
- -- glitchbaby
- local BB = {"DIE","PERISH","ROT","PAIN","BURN","DEATH","MURDER","PANIC"}
- coroutine.resume(coroutine.create(function()
- while wait() do
- if VALUE1 == false and math.random(1,55) == 1 then
- coroutine.resume(coroutine.create(function()
- VALUE1 = true
- Static:Play()
- for i=1,math.random(8,25) do
- wait()
- Humanoid.DisplayName = (AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..[[
- ]]..BB[MRANDOM(1,#BB)]..[[
- ]]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)]..AA[MRANDOM(1,#AA)])
- FT.Parent = Torso
- FRA.Parent = RightArm
- FLA.Parent = LeftArm
- FRL.Parent = RightLeg
- FLL.Parent = LeftLeg
- for _,v in next, Character:GetDescendants() do
- if(v:IsA'DataModelMesh')then
- v.Offset = VT(math.random(-80,80)/100,math.random(-80,80)/100,math.random(-80,80)/100)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(math.random(-30,30)), RAD(math.random(-30,30)), RAD(math.random(-30,30))), 3 / Animation_Speed)
- end
- end
- end
- VALUE1 = false
- FT.Parent = nil
- Humanoid.DisplayName = name
- Static:Pause()
- FRA.Parent = nil
- FLA.Parent = nil
- FRL.Parent = nil
- FLL.Parent = nil
- for _,v in next, Character:GetDescendants() do
- if(v:IsA'DataModelMesh')then
- v.Offset = VT(0,0,0)
- end
- end
- end))
- end
- end
- end))
- local INTRODONE = false
- local INTRO = false
- Health = Character["Health"]
- Health:Destroy()
- --[[
- coroutine.resume(coroutine.create(function()
- while wait() do
- end
- end))
- ]]
- local ATTACK2 = false
- local INTRO3 = false
- coroutine.resume(coroutine.create(function()
- while wait() do
- local Z = math.random(150,255)
- asd.Color = ColorSequence.new(Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)))
- Static.Volume = sick.Volume + 0.6
- end
- end))
- --glitch
- local coolvalue = false
- Static = Instance.new("Sound",Torso)
- Static.Looped = true
- Static.Volume = sick.Volume
- Static.SoundId = "rbxassetid://223103466"
- Static.Name = "Gaming"
- Static:Pause()
- Static.MaxDistance = 80
- BypassGS(Static)
- --[[coroutine.resume(coroutine.create(function()
- while wait() do
- local Z =math.random(0,255)
- if VALUE1 == false and math.random(1,25) == 1 and INTRO3 == true then
- coroutine.resume(coroutine.create(function()
- VALUE1 = true
- WACKYEFFECT({Time = 30, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 30, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 30, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 30, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 30, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 30, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(Z,Z,Z), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- for i=1,5 do
- glitch = true
- Static:Resume()
- wait()
- for _,v in next, Character:GetDescendants() do
- if(v:IsA'DataModelMesh')then
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(math.random(-50,50)), RAD(math.random(-50,50)), RAD(math.random(-50,50))), 2 / Animation_Speed)
- end
- end
- end
- VALUE1 = false
- Static:Pause()
- glitch = false
- for _,v in next, Character:GetDescendants() do
- if(v:IsA'DataModelMesh')then
- v.Offset = VT(0,0,0)
- end
- end
- end))
- end
- end
- end))--]]
- function Warp()
- local HITPLAYERSOUNDS = {"2544621925","2544621925"}
- local Z = math.random(0,255)
- WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-90,90), RotationY = MRANDOM(-90,90), RotationZ = MRANDOM(-90,90), Material = "Neon", Color=Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
- if HITFLOOR then
- HITPOS = HITPOS + VT(0,1,0)
- local POS = RootPart.Position
- Lightning(RootPart.Position,HITPOS+VT(0,25,0),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(HITPOS,HITPOS+VT(0,25,0),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p)
- WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-90,90), RotationY = MRANDOM(-90,90), RotationZ = MRANDOM(-90,90), Material = "Neon", Color=Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], RootPart, sick.Volume + 1, (math.random(8,12)/10))
- CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], RootPart, sick.Volume + 1, (math.random(8,12)/10))
- end
- end
- local BEANED = {"PhoenixRessusection"}
- local BEANED = {"PhoenixRessusection"}
- function BEAN(skid)
- if skid then
- g = game.Players:GetPlayers()
- local kickfolder = IT("Folder",Effects)
- local naeeym2 = Instance.new("BillboardGui",kickfolder)
- naeeym2.AlwaysOnTop = false
- naeeym2.Size = UDim2.new(5,35,2,35)
- naeeym2.StudsOffset = Vector3.new(0,1,0)
- naeeym2.Name = "Mark"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Arcade"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.fromRGB(0,0,0)
- tecks2.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- --CreateSound("395664538", skid, 5, 1, false)
- local Players = game:GetService("Players")
- local die = Players:FindFirstChild(skid.Name)
- --die:Kick()
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- if Players:FindFirstChild(skid.Name) then
- die:Kick("Corrupt Lightning has eradicated your existance.")
- end
- table.insert(BEANED,skid.name)
- --]]
- --CreateSound("527749592", game.Workspace, 700, 1, false)
- --CHARACTER:Remove()
- --[[
- for i,v in pairs(g) do
- --v:remove()
- end ]]--
- --[[
- if CHARACTER.Name ~= "Default Dummy" or CHARACTER.Name ~= "NPC" then
- for i,v in pairs(g) do
- if string.find(string.upper(v.Name),CHARACTER) == 1 then
- v:remove()
- end
- end
- end]]--
- --[[
- for _, p in pairs(game.Players:GetChildren()) do
- if p:FindFirstChild("CHARACTER") then
- end
- end]]--
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- wait()
- for i,v in ipairs(kickfolder:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.Transparency = 1
- end
- naeeym2.Enabled = false
- end
- wait()
- for i,v in ipairs(kickfolder:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.Transparency = 0
- end
- naeeym2.Enabled = true
- end
- end
- kickfolder:remove()
- end))
- --wait(6)
- --skid:Remove()
- end
- end
- local function CheckForBan(player)
- for i = 1, #BEANED do
- if player.Name == BEANED[i] then
- player:Kick() --Ban Reason Change between the '' to change the reason!
- end
- end
- end
- game.Players.PlayerAdded:connect(function()
- for i,v in pairs(game.Players:GetPlayers())do
- CheckForBan(v)
- end
- end)
- local defend = true
- function Defense()
- if defend == true then
- defend = false
- elseif defend == false then
- defend = true
- end
- end
- coroutine.resume(coroutine.create(function()
- while wait() do
- if defend == true then
- ApplyAoE15(RootPart.Position,19,0,0,0,true)
- wait(0.05)
- end
- if defend == true then
- if math.random(1,10) == 1 then
- local aim = math.random(-15,15)
- local aim2 = math.random(-15,15)
- Lightning(RootPart.Position+VT(aim,-3,aim2),RootPart.Position+VT(aim,55,aim2),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(RootPart.Position+VT(aim,-3,aim2),RootPart.Position+VT(aim,55,aim2),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- Lightning(RootPart.Position+VT(aim,-3,aim2),RootPart.Position+VT(aim,55,aim2),5,3.5,Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)),math.random(25,35),0.1,0.5,0,true,55)
- CreateSound(2544621925, RootPart, sick.Volume + 1, (math.random(8,12)/10))
- wait(1)
- end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while wait() do
- if defend == true then
- WACKYEFFECT2({Time = 10, EffectType = "Wave", Size = VT(2,1,2), Size2 = VT(15,1,15), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = math.random(-50,50), RotationZ = 0, Material = "Neon", Color = Color3.FromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- wait(0.1)
- end
- end
- end))
- function template()
- ATTACK = true
- Rooted = true
- for i=0, 0.1, 0.01 / Animation_Speed do
- wait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.35 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 , 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- end
- ATTACK = false
- Rooted = false
- end
- local combo = 1
- local LOOP = false
- local EyeSizes={
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(1,0,0)
- }
- local EyeTrans={
- NumberSequenceKeypoint.new(0,0.8,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- local PE=Instance.new("ParticleEmitter",nil)
- PE.LightEmission=.8
- PE.Color = ColorSequence.new(BrickColor.Random().Color)
- PE.Size=NumberSequence.new(EyeSizes)
- PE.Transparency=NumberSequence.new(EyeTrans)
- PE.Lifetime=NumberRange.new(0.35,1.5)
- PE.Rotation=NumberRange.new(0,360)
- PE.Rate=999
- PE.VelocitySpread = 10000
- PE.Acceleration = Vector3.new(0,0,0)
- PE.Drag = 5
- PE.Speed = NumberRange.new(0,0,0)
- PE.Texture="http://www.roblox.com/asset/?id=1351966707"
- PE.ZOffset = -0
- PE.Name = "PE"
- PE.Enabled = false
- coroutine.resume(coroutine.create(function()
- while wait() do
- end
- end))
- function particles(art)
- local PARTICLES = PE:Clone()
- PARTICLES.Parent = art
- end
- function KillChildren2(v)
- v:BreakJoints()
- for _, c in pairs(v:GetChildren()) do
- if c:IsA("BasePart") then
- if c.Transparency < 1 then
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- particles(c)
- c.PE.Enabled = false
- c.Parent = workspace
- c.CanCollide = false
- c.Color = c.Color
- c.Transparency = 0
- local grav = Instance.new("BodyPosition",c)
- grav.P = 20000
- grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- grav.position = c.Position + VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))
- grav.Name = "GravityForce"
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- grav.position = c.Position + VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))
- c.Color = Color3.fromRGB(MRANDOM(0,255),MRANDOM(0,255),MRANDOM(0,255))
- c.Transparency = c.Transparency + 0.01
- c.Material = (MATTER[MRANDOM(1,#MATTER)])
- end
- c.Color = Color3.fromRGB(MRANDOM(0,255),MRANDOM(0,255),MRANDOM(0,255))
- c.PE.Enabled = false
- Debris:AddItem(c,2)
- end))
- end
- end
- end
- end
- function KillChildren(v)
- v:BreakJoints()
- for _, c in pairs(v:GetChildren()) do
- if c:IsA("BasePart") then
- if c.Transparency < 1 then
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- particles(c)
- c.PE.Enabled = true
- c.Parent = Effects
- c.CanCollide = false
- c.Material = "Neon"
- c.Color = C3(1,0,0)
- c.Transparency = 1
- local grav = Instance.new("BodyPosition",c)
- grav.P = 20000
- grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
- grav.Name = "GravityForce"
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- c.Transparency = c.Transparency + 1/20
- end
- c.PE.Enabled = false
- Debris:AddItem(c,2)
- end))
- end
- end
- end
- end
- function KillChildren3(v)
- v:BreakJoints()
- for _, c in pairs(v:GetChildren()) do
- if c:IsA("BasePart") then
- if c.Transparency < 1 then
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- particles(c)
- c.PE.Enabled = true
- c.Parent = Effects
- c.CanCollide = false
- c.Material = "Neon"
- c.Color = C3(1,0,0)
- c.Transparency = 1
- local grav = Instance.new("BodyPosition",c)
- grav.P = 20000
- grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
- grav.Name = "GravityForce"
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- c.Transparency = c.Transparency + 1/20
- end
- c.PE.Enabled = false
- Debris:AddItem(c,2)
- end))
- end
- end
- end
- end
- local WHITELIST = {"Jack_Hase","Godcat567","Powertommm"}
- function SmiteAoE(POSITION,RANGE)
- local CHILDREN = workspace:GetDescendants()
- for index, CHILD in pairs(CHILDREN) do
- if CHILD.ClassName == "Model" and CHILD ~= Character then
- local LISTED = false
- for LIST = 1, #WHITELIST do
- if WHITELIST[LIST] ~= nil then
- if CHILD.Name == WHITELIST[LIST] then
- LISTED = true
- end
- end
- end
- if LISTED == false then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
- KillChildren(CHILD)
- end
- end
- end
- end
- end
- end
- end
- function ragdollJoint(character, part0, part1, attachmentName, className, properties) -- thanks mustardfat im too lazy
- if character:FindFirstChild("RagdollConstraint"..part1.Name) == nil then
- for i,v in pairs(character:GetChildren()) do
- if v:IsA("MeshPart") and (v.MeshId == 'http://www.roblox.com/asset/?id=553602991' or v.MeshId == 'http://www.roblox.com/asset/?id=553602977' or v.MeshId == 'http://www.roblox.com/asset/?id=553602987') then
- v.Size = Vector3.new(1,1,1)
- end
- end
- if part1:FindFirstChildOfClass('Motor6D') then
- part1:FindFirstChildOfClass('Motor6D'):Remove()
- end
- if attachmentName ~= "NeckAttachment" then
- attachmentName = attachmentName.."RigAttachment"
- end
- local constraint = Instance.new(className.."Constraint")
- constraint.Attachment0 = part0:FindFirstChild(attachmentName)
- constraint.Attachment1 = part1:FindFirstChild(attachmentName)
- constraint.Name = "RagdollConstraint"..part1.Name
- if character:FindFirstChildOfClass('Humanoid').Health > 0 then
- local collidepart = Instance.new('Part',part1)
- collidepart.Size = part1.Size/2
- if string.find(string.lower(part1.Name),"upper") then
- if string.find(string.lower(part1.Name),"leg") then
- collidepart.Size = part1.Size/3
- else
- collidepart.Size = part1.Size/2.5
- end
- end
- collidepart.CanCollide = true
- collidepart.Name = "RagdollJoint"
- collidepart.Anchored = false
- collidepart.Transparency = 1
- collidepart.CFrame = part1.CFrame
- collidepart:BreakJoints()
- local attachment0 = Instance.new('Attachment',part1)
- local attachment1 = Instance.new('Attachment',collidepart)
- if attachment0 and attachment1 then
- local constraint = Instance.new("HingeConstraint")
- constraint.Attachment0 = attachment0
- constraint.Attachment1 = attachment1
- constraint.LimitsEnabled = true
- constraint.UpperAngle = 0
- constraint.LowerAngle = 0
- constraint.Parent = character
- end
- if string.find(string.lower(part1.Name),"upper") then
- if string.find(string.lower(part1.Name),"leg") then
- attachment0.Position = Vector3.new(0,0.01,0)
- else
- attachment0.Position = Vector3.new(0,0.25,0)
- end
- else
- attachment0.Position = Vector3.new(0,-0.1,0)
- end
- end
- for _,propertyData in next,properties or {} do
- constraint[propertyData[1]] = propertyData[2]
- end
- constraint.Parent = character
- return constraint
- end
- end
- local V3 = {N=Vector3.new,FNI=Vector3.FromnormalId,A=Vector3.FromAxis}
- function getAttachment0(character,attachmentName)
- for _,child in next,character:children() do
- local attachment = child:FindFirstChild(attachmentName)
- if attachment then
- return attachment
- end
- end
- end
- function recurse(root,callback,i)
- i= i or 0
- for _,v in pairs(root:GetChildren()) do
- i = i + 1
- callback(i,v)
- if #v:GetChildren() > 0 then
- i = recurse(v,callback,i)
- end
- end
- return i
- end
- local Stunned = {}
- function GetTorso(Character)
- return Character:FindFirstChild'Torso' or Character:FindFirstChild'UpperTorso'
- end
- function FakeWeld(p0,p1)
- local attachment0 = Instance.new('Attachment',p0)
- local attachment1 = Instance.new('Attachment',p1)
- return NewInstance("HingeConstraint",p0,{Attachment0=attachment0,Attachment1=attachment1,LimitsEnabled=true,UpperAngle=0,LowerAngle=0})
- end
- function Ragdoll(who,half,snapped)
- pcall(function()
- who:breakJoints()
- local who = who
- local hhh = who:FindFirstChildOfClass'Humanoid'
- local t = GetTorso(who)
- pcall(function()
- who.HumanoidRootPart:destroy()
- end)
- hhh.Health = 0
- Stunned[who] = true
- if(hhh.RigType == Enum.HumanoidRigType.R6)then
- local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head'
- pcall(function()
- if(hhh.Health > 0)then local CollideRA = NewInstance('Part',who,{Size=RA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RA,CollideRA) end
- local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()})
- local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2})
- end)
- pcall(function()
- local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()})
- local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2})
- if(hhh.Health > 0)then local CollideLA = NewInstance('Part',who,{Size=LA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(LA,CollideLA) end
- end)
- pcall(function()
- if(HD)then
- local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()})
- local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local HC = NewInstance('HingeConstraint',t,{LimitsEnabled=true,UpperAngle=50,LowerAngle=-50,Attachment0=NJ,Attachment1=NJ2})
- if(snapped)then
- NJ.Orientation = V3.N(0,90,0)
- end
- if(hhh.Health > 0)then
- local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(HD,CollideHD)
- end
- end
- end)
- if(not half)then
- local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()})
- local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()})
- local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2})
- local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2})
- if(hhh.Health > 0)then local CollideRL = NewInstance('Part',who,{Size=RL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- local CollideLL = NewInstance('Part',who,{Size=LL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RL,CollideRL)
- FakeWeld(LL,CollideLL) end
- end
- for _,v in next, who:children() do
- if(v:IsA'BasePart')then
- v.CanCollide = true
- end
- end
- else
- local character = who
- if(half)then
- pcall(function()
- character.UpperTorso.WaistRigAttachment:Destroy()
- end)
- end
- local handProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle",0};
- {"LowerAngle",0};
- }
- local footProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 15};
- {"LowerAngle", -45};
- }
- local shinProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 0};
- {"LowerAngle", -75};
- }
- if character:FindFirstChild('RightLowerArm') and character:FindFirstChild('RightHand') then
- ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('RightUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["RightUpperArm"], "RightShoulder", "BallSocket")
- end
- if character:FindFirstChild('RightUpperArm') and character:FindFirstChild('RightLowerArm') then
- ragdollJoint(character, character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
- end
- if character:FindFirstChild('LeftLowerArm') and character:FindFirstChild('LeftHand') then
- ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LeftUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["LeftUpperArm"], "LeftShoulder", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperArm') and character:FindFirstChild('LeftLowerArm') then
- ragdollJoint(character, character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
- end
- if character:FindFirstChild('RightUpperLeg') and character:FindFirstChild('RightLowerLeg') then
- ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('RightLowerLeg') and character:FindFirstChild('RightFoot') then
- ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('RightUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperLeg') and character:FindFirstChild('LeftLowerLeg') then
- ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('LeftLowerLeg') and character:FindFirstChild('LeftFoot') then
- ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('LeftUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LowerTorso') then
- ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
- {"LimitsEnabled",true};
- {"UpperAngle",5};
- {"Radius",5};
- })
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('Head') then
- ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- end
- local NeckA = ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- recurse(character, function(_,v)
- if v:IsA("Attachment") then
- v.Axis = Vector3.new(0, 1, 0)
- v.SecondaryAxis = Vector3.new(0, 0, 1)
- v.Rotation = Vector3.new(0, 0, 0)
- if(v.Parent == character.Head and snapped)then
- v.Orientation = V3.N(0,-90,0)
- end
- end
- end)
- end
- end)
- end
- function Ragdoll3(who,half,snapped)
- pcall(function()
- script:Destroy()
- local who = who
- local hhh = who:FindFirstChildOfClass'Humanoid'
- local t = GetTorso(who)
- pcall(function()
- who.HumanoidRootPart:destroy()
- end)
- hhh.Health = 0
- Stunned[who] = true
- if(hhh.RigType == Enum.HumanoidRigType.R6)then
- local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head'
- pcall(function()
- if(hhh.Health > 0)then local CollideRA = NewInstance('Part',who,{Size=RA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RA,CollideRA) end
- local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()})
- local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2})
- end)
- pcall(function()
- local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()})
- local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2})
- if(hhh.Health > 0)then local CollideLA = NewInstance('Part',who,{Size=LA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(LA,CollideLA) end
- end)
- pcall(function()
- if(HD)then
- local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()})
- local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local HC = NewInstance('HingeConstraint',t,{LimitsEnabled=true,UpperAngle=50,LowerAngle=-50,Attachment0=NJ,Attachment1=NJ2})
- if(snapped)then
- NJ.Orientation = V3.N(0,90,0)
- end
- if(hhh.Health > 0)then
- local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(HD,CollideHD)
- end
- end
- end)
- if(not half)then
- local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()})
- local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()})
- local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2})
- local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2})
- if(hhh.Health > 0)then local CollideRL = NewInstance('Part',who,{Size=RL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- local CollideLL = NewInstance('Part',who,{Size=LL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RL,CollideRL)
- FakeWeld(LL,CollideLL) end
- end
- for _,v in next, who:children() do
- if(v:IsA'BasePart')then
- v.CanCollide = true
- end
- end
- else
- local character = who
- if(half)then
- pcall(function()
- character.UpperTorso.WaistRigAttachment:Destroy()
- end)
- end
- local handProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle",0};
- {"LowerAngle",0};
- }
- local footProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 15};
- {"LowerAngle", -45};
- }
- local shinProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 0};
- {"LowerAngle", -75};
- }
- if character:FindFirstChild('RightLowerArm') and character:FindFirstChild('RightHand') then
- ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('RightUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["RightUpperArm"], "RightShoulder", "BallSocket")
- end
- if character:FindFirstChild('RightUpperArm') and character:FindFirstChild('RightLowerArm') then
- ragdollJoint(character, character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
- end
- if character:FindFirstChild('LeftLowerArm') and character:FindFirstChild('LeftHand') then
- ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LeftUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["LeftUpperArm"], "LeftShoulder", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperArm') and character:FindFirstChild('LeftLowerArm') then
- ragdollJoint(character, character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
- end
- if character:FindFirstChild('RightUpperLeg') and character:FindFirstChild('RightLowerLeg') then
- ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('RightLowerLeg') and character:FindFirstChild('RightFoot') then
- ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('RightUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperLeg') and character:FindFirstChild('LeftLowerLeg') then
- ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('LeftLowerLeg') and character:FindFirstChild('LeftFoot') then
- ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('LeftUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LowerTorso') then
- ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
- {"LimitsEnabled",true};
- {"UpperAngle",5};
- {"Radius",5};
- })
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('Head') then
- ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- end
- local NeckA = ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- recurse(character, function(_,v)
- if v:IsA("Attachment") then
- v.Axis = Vector3.new(0, 1, 0)
- v.SecondaryAxis = Vector3.new(0, 0, 1)
- v.Rotation = Vector3.new(0, 0, 0)
- if(v.Parent == character.Head and snapped)then
- v.Orientation = V3.N(0,-90,0)
- end
- end
- end)
- end
- end)
- end
- function Ragdoll2(who,half,snapped)
- pcall(function()
- who:breakJoints()
- local who = who
- local hhh = who:FindFirstChildOfClass'Humanoid'
- local t = GetTorso(who)
- pcall(function()
- who.HumanoidRootPart:destroy()
- end)
- hhh.Health = 0
- Stunned[who] = true
- if(hhh.RigType == Enum.HumanoidRigType.R6)then
- local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head'
- pcall(function()
- if(hhh.Health > 0)then local CollideRA = NewInstance('Part',who,{Size=RA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RA,CollideRA) end
- local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()})
- local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2})
- end)
- pcall(function()
- local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()})
- local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2})
- if(hhh.Health > 0)then local CollideLA = NewInstance('Part',who,{Size=LA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(LA,CollideLA) end
- end)
- pcall(function()
- if(HD)then
- local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()})
- local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()})
- local HC = NewInstance('HingeConstraint',t,{LimitsEnabled=true,UpperAngle=50,LowerAngle=-50,Attachment0=NJ,Attachment1=NJ2})
- if(snapped)then
- NJ:Destroy()
- end
- if(hhh.Health > 0)then
- local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(HD,CollideHD)
- end
- end
- end)
- if(not half)then
- local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()})
- local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()})
- local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()})
- local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2})
- local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2})
- if(hhh.Health > 0)then local CollideRL = NewInstance('Part',who,{Size=RL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- local CollideLL = NewInstance('Part',who,{Size=LL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
- FakeWeld(RL,CollideRL)
- FakeWeld(LL,CollideLL) end
- end
- for _,v in next, who:children() do
- if(v:IsA'BasePart')then
- v.CanCollide = true
- end
- end
- else
- local character = who
- if(half)then
- pcall(function()
- character.UpperTorso.WaistRigAttachment:Destroy()
- end)
- end
- local handProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle",0};
- {"LowerAngle",0};
- }
- local footProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 15};
- {"LowerAngle", -45};
- }
- local shinProperties = {
- {"LimitsEnabled", true};
- {"UpperAngle", 0};
- {"LowerAngle", -75};
- }
- if character:FindFirstChild('RightLowerArm') and character:FindFirstChild('RightHand') then
- ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('RightUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["RightUpperArm"], "RightShoulder", "BallSocket")
- end
- if character:FindFirstChild('RightUpperArm') and character:FindFirstChild('RightLowerArm') then
- ragdollJoint(character, character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
- end
- if character:FindFirstChild('LeftLowerArm') and character:FindFirstChild('LeftHand') then
- ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LeftUpperArm') then
- ragdollJoint(character, character.UpperTorso, character["LeftUpperArm"], "LeftShoulder", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperArm') and character:FindFirstChild('LeftLowerArm') then
- ragdollJoint(character, character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
- end
- if character:FindFirstChild('RightUpperLeg') and character:FindFirstChild('RightLowerLeg') then
- ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('RightLowerLeg') and character:FindFirstChild('RightFoot') then
- ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('RightUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
- end
- if character:FindFirstChild('LeftUpperLeg') and character:FindFirstChild('LeftLowerLeg') then
- ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
- end
- if character:FindFirstChild('LeftLowerLeg') and character:FindFirstChild('LeftFoot') then
- ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
- end
- if character:FindFirstChild('LowerTorso') and character:FindFirstChild('LeftUpperLeg') then
- ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
- end
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('LowerTorso') then
- ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
- {"LimitsEnabled",true};
- {"UpperAngle",5};
- {"Radius",5};
- })
- end
- if snapped == false then
- if character:FindFirstChild('UpperTorso') and character:FindFirstChild('Head') then
- ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- end
- end
- local NeckA = ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "Hinge", {
- {"LimitsEnabled",true};
- {"UpperAngle",50};
- {"LowerAngle",-50};
- })
- recurse(character, function(_,v)
- if v:IsA("Attachment") then
- v.Axis = Vector3.new(0, 1, 0)
- v.SecondaryAxis = Vector3.new(0, 0, 1)
- v.Rotation = Vector3.new(0, 0, 0)
- if(v.Parent == character.Head and snapped)then
- NeckA:Destroy()
- end
- end
- end)
- end
- end)
- end
- function KillB()
- local TARGET = Mouse.Target
- if TARGET ~= nil then
- local HITFLOOR, HITPOS = Raycast(RightLeg.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2 , Character)
- if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
- local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
- local TORSO = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
- local FOE = Mouse.Target.Parent
- Kill(HUM)
- end
- end
- end
- function DestroyA()
- local TARGET = Mouse.Target
- if TARGET.Name ~= "Baseplate" and TARGET.Name ~= "Base" and TARGET ~= nil and TARGET.Name ~= "BasePlate" then
- Kill4(TARGET)
- end
- end
- function Effect(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or Vector3.new(1,1,1))
- local ENDSIZE = (Table.Size2 or Vector3.new(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 Color3.new(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)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BrickColor.new("Pearl"), "Effect", Vector3.new(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, Vector3.new(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = Instance.new("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, Vector3.new(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", Vector3.new(SIZE.X,SIZE.X,0.1), Vector3.new(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, Vector3.new(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, Vector3.new(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, Vector3.new(0,0,0))
- end
- if MSH ~= nil then
- local BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- if USEBOOMERANGMATH == true then
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.Orientation = ORI
- end
- end
- else
- for LOOP = 1, TIME+1 do
- wait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- function Lightning(Part0, Part1, Times, Offset, Color, Timer, sSize, eSize, Trans, Boomer, sBoomer, slow, stime)
- local magz = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {
- -Offset,
- Offset
- }
- for i = 1, Times do
- local li = Instance.new("Part", Effects)
- li.Name = "Lightning"
- li.TopSurface = 0
- li.Material = "Neon"
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- li.Transparency = 0
- li.Color = Color
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(0.1, 0.1, magz / Times)
- local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
- if Times == i then
- local magz2 = (curpos - Part1).magnitude
- li.Size = Vector3.new(0.1, 0.1, magz2)
- li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
- else
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
- end
- curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
- li:Destroy()
- Effect({Time = Timer, EffectType = "Box", Size = Vector3.new(sSize,sSize,li.Size.Z), Size2 = Vector3.new(eSize,eSize,li.Size.Z), Transparency = Trans, Transparency2 = 1, CFrame = li.CFrame, MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = li.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = Boomer, Boomerang = 0, SizeBoomerang = sBoomer})
- if slow == true then
- wait(stime)
- end
- end
- end
- --[[
- --refit by NopeUsername
- local Regen = {}
- delay(1,function()
- local Descendants = Character:GetDescendants()
- for i = 1,#Descendants do
- local E = Descendants[i]
- if E:IsA("BasePart") and not E:IsDescendantOf(Effects) then
- E.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Wood)
- table.insert(Regen,{E,E.Parent,E.Color,E.Size,E.Material})
- end
- if E:IsA("JointInstance") then
- table.insert(Regen,{E,E.Parent,nil,nil,nil})
- end
- end
- end)
- for e = 1, #Regen do
- if Regen[e] ~= nil then
- local STUFF = Regen[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= Body.RootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- function Refit()
- for i = 1,#Regen do
- local E = Regen[i]
- local PART = E[1]
- local PARENT = E[2]
- local COLOR = E[3]
- local SIZE = E[4]
- local MATERIAL = E[5]
- if PART:IsA("BasePart") and PART.Parent ~= PARENT then
- PART.Color = COLOR
- PART.Size = SIZE
- PART.Material = MATERIAL
- end
- if PART.Parent ~= PARENT then
- Humanoid.Parent = nil
- PART.Parent = PARENT
- Humanoid.Parent = Character
- end
- end
- Humanoid.Parent = Character
- end
- local BODY = {}
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= RootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- function Refit2()
- Character.Parent = workspace
- Effects.Parent = Character
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- --local SIZE = STUFF[6]
- local NAME = STUFF[7]
- if PART.ClassName == "Part" and PART ~= RootPart then
- PART.Material = MATERIAL
- PART.Transparency = TRANSPARENCY
- PART.Name = NAME
- end
- if PART.Parent ~= PARENT then
- if PART.Name == "Head" or PART.Name == "Neck" or PART.Name == "Torso" then
- Humanoid:remove()
- end
- PART.Parent = PARENT
- if PART.Name == "Head" or PART.Name == "Neck" or PART.Name == "Torso" then
- Humanoid = IT("Humanoid",Character)
- end
- end
- end
- end
- end
- Humanoid.Died:Connect(Refit)
- Humanoid.HealthChanged:Connect(function()
- if Humanoid.Health <= 1 then
- Humanoid.Health = math.huge
- Refit()
- end
- end)--]]
- value1 = 4
- value2 = 8
- value3 = 30
- value4 = 30
- value5 = 10
- local value1 = 4
- local value2 = 8
- local value3 = 30
- local value4 = 30
- local value5 = 10
- function MouseDown(Mouse)
- if ATTACK == false then
- HOLD = true
- end
- end
- function MouseUp(Mouse)
- HOLD = false
- end
- function KeyDown(Key)
- if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" and Key ~= " " then
- KEYHOLD = true
- if Key == "z" then
- if Delete == false then
- KillB()
- elseif Delete == true then
- DestroyA()
- end
- end
- if Key == "r" then
- if Delete == false then
- Delete = true
- elseif Delete == true then
- Delete = false
- end
- end
- if Key == "q" then
- Warp()
- end
- if Key == "f" then
- Defense()
- end
- if Key == "t" and ATTACK == false then
- vanguard()
- end
- end
- end
- function KeyUp(Key)
- if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" and Key ~= " " 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)
- if Character:FindFirstChildOfClass("Humanoid") == nil then
- Humanoid = Instance.new("Humanoid",Character)
- end
- while true do
- wait()
- ANIMATE.Parent = nil
- if Character:FindFirstChildOfClass("Humanoid") == nil then
- Humanoid = IT("Humanoid",Character)
- end
- for _,v in next, Humanoid:GetPlayingAnimationTracks() do
- v:Stop();
- end
- SINE = SINE + CHANGE
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
- if ANIM == "Walk" and TORSOVELOCITY > 1 then
- elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
- RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- end
- if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
- ANIM = "Jump"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
- ANIM = "Fall"
- if ATTACK == false then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(10), RAD(0), RAD(20))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
- ANIM = "Idle"
- if ATTACK == false then
- if mde == "LORD" then
- Speed = 25
- Humanoid.JumpPower = 50
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0+0.08*COS(SINE/10)) * ANGLES(RAD(0+5*SIN(SINE/10)), RAD(0), RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0-5*SIN(SINE/10)), RAD(0), RAD(0+5*COS(SINE/10))), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+0.08*SIN(SINE/10), 0) * ANGLES(RAD(0+5*COS(SINE/10)), RAD(0), RAD(5-5*SIN(SINE/10)))* RIGHTSHOULDERC0, 0.35 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.08*SIN(SINE/10), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-0.08*COS(SINE/10), 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(-3), RAD(3)) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-0.08*COS(SINE/10) , 0) * ANGLES(RAD(0+7*SIN(SINE/10)), RAD(3), RAD(-3)) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.35 / Animation_Speed)
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
- ANIM = "Walk"
- if ATTACK == false then
- local Testwalk1 = Humanoid.MoveDirection*Torso.CFrame.LookVector
- local Testwalk2 = Humanoid.MoveDirection*Torso.CFrame.RightVector
- LOOKVEC = Testwalk1.X+Testwalk1.Z
- RIGHTVEC = Testwalk2.X+Testwalk2.Z
- VALUE3 = false
- if mde == "LORD" then
- local Testwalk1 = Humanoid.MoveDirection*Torso.CFrame.LookVector
- local Testwalk2 = Humanoid.MoveDirection*Torso.CFrame.RightVector
- LOOKVEC = Testwalk1.X+Testwalk1.Z
- RIGHTVEC = Testwalk2.X+Testwalk2.Z
- VALUE3 = false
- Speed = 25
- value1 = 2
- value2 = 4
- value3 = 120
- value4 = 50
- value5 = 20
- Humanoid.JumpPower = 50
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 , -0.085 + 0.055 * COS(SINE / value1) + -SIN(SINE / value1) / 8) * ANGLES(RAD((LOOKVEC - LOOKVEC/5 * COS(SINE / value1))*value5), RAD((-RIGHTVEC - -RIGHTVEC/5 * COS(SINE / value1))*value5) , RAD(0)), 0.35 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD((LOOKVEC - LOOKVEC/5 * COS(SINE / value1))*-value5), RAD(0), RAD((RIGHTVEC - -RIGHTVEC/5 * COS(SINE /value1))*-value5)), 0.35 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD((LOOKVEC - LOOKVEC/5 * COS(SINE / value1))*value3* COS(SINE /value2)), RAD(0), RAD((RIGHTVEC - RIGHTVEC/5 * COS(SINE /value2))*value5))* RIGHTSHOULDERC0, 0.35 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5+0.2*COS(SINE/value1), 0.5) * ANGLES(RAD(-40), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1+ 0.4 * SIN(SINE / value2), 0)* ANGLES(RAD((-LOOKVEC + LOOKVEC/5 * COS(SINE / value1))*value3* COS(SINE / value2)),RAD(0),RAD((-RIGHTVEC + RIGHTVEC/5 * COS(SINE / value2))*value4*COS(SINE/value2)))*ANGLES(RAD(0),RAD(90),RAD(0)), 0.35 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.4 * SIN(SINE / value2), 0)* ANGLES(RAD((LOOKVEC - LOOKVEC/5 * COS(SINE / value1))*value3* COS(SINE / value2)),RAD(0),RAD((RIGHTVEC - RIGHTVEC/5 * COS(SINE / value2))*value4*COS(SINE/value2)))*ANGLES(RAD(0),RAD(-90),RAD(0)), 0.35 / Animation_Speed)
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(2.05,1.05,1.05), Size2 = VT(2.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = LeftLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Arm", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({Time = 10, EffectType = "Head", Size = VT(1.05,1.05,1.05), Size2 = VT(1.05,1.05,1.05), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Plastic", Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- end
- Player.Chatted:connect(function(message)
- if message:sub(1,5) == "play/" and ATTACK2 == false then
- sick.SoundId = "rbxassetid://"..message:sub(6)
- elseif message:sub(1,6) == "pitch/" then
- sick.PlaybackSpeed = message:sub(7)
- elseif message:sub(1,4) == "vol/" and Fdead == false then
- sick.Volume = message:sub(5)
- zee = message:sub(5)
- elseif message:sub(1,5) == "skip/" then
- sick.TimePosition = message:sub(6)
- elseif message:sub(1,4) == "t/on" then
- coolvalue = true
- elseif message:sub(1,7) == "t/off" then
- coolvalue = false
- end
- end)
- Humanoid.MaxHealth = 1/0
- Humanoid.Health = 1/0
- if Rooted == false then
- Disable_Jump = false
- Humanoid.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- if Head:FindFirstChild("face") then
- Head.face.Texture = "rbxassetid://"..face
- end
- Humanoid.PlatformStand = false
- if Humanoid.Health == 0 and ragdolled == false then
- ragdolled = true
- Ragdoll(Character)
- end
- end
- -------------------------------------------------
Add Comment
Please, Sign In to add comment