Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------
- -- /--// SlayKillerX66 //--\ --
- ---------------------------------
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- warn'gdv2 by SlayKillerX66. non require by youngmacka123. skids yall can use this if u want since centurion is leaked on toolbox'
- 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
- local RealPlayer = Player
- local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer warn'youngmacka123s non require of gdv2'
- local Player = owner
- local Mouse = Player:GetMouse()
- local WALKSPEED = 17
- local plr = Player
- local C = plr.Character
- local H = C.Humanoid
- local ffc=function(a,b)return a:FindFirstChild(b)end
- local DebrisService = game:GetService('Debris')
- local LARM = C:WaitForChild("Left Arm")
- local RARM = C:WaitForChild("Right Arm")
- local LLEG = C:WaitForChild("Left Leg")
- local RLEG = C:WaitForChild("Right Leg")
- local Head = C.Head
- local Torso = C.Torso
- local Neck = Torso.Neck
- local Root = C.HumanoidRootPart
- local RootJ = Root.RootJoint
- local speed = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = Root.Velocity.y
- local Animation = "Idle"
- local rad = math.rad
- local CURRENTMUSIC = 1142975563
- local CURRENTVOL = 4
- local touch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
- (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 4), C)
- local neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
- (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), C)
- local a = 0
- local turn = true
- local sit = false
- local cdMODE = false
- local attack = false
- local MODE = nil
- local WHOOSH = nil
- local PUNCH = nil
- local MODECOLOUR = nil
- local PlayerScale = 1
- function cfScaled(x,y,z)
- return CFrame.new(x*PlayerScale,y*PlayerScale,z*PlayerScale)
- end
- local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RootCF = CFrame.Angles(-1.57, 0, 3.14)
- local RHCF = CFrame.Angles(0, 1.6, 0)
- local LHCF = CFrame.Angles(0, -1.6, 0)
- local function GetNearbyTorsos(FromPart,range,ignore) -- Detects both r15 and r6
- local Torsos = {}
- for x=1,#workspace:GetChildren() do
- local xj = workspace:GetChildren()
- local cc = range
- local fromPoint = FromPart
- if xj[x]:IsA('Model') and (xj[x].Name ~= (ignore.Name)) then
- if xj[x]:FindFirstChild('Torso') then
- local perfectTorso = nil
- if (fromPoint.Position - xj[x]:FindFirstChild('Torso').Position).magnitude < cc then
- local perfectTorso = xj[x]:FindFirstChild('Torso')
- table.insert(Torsos, perfectTorso)
- end
- elseif xj[x]:FindFirstChild('UpperTorso') then
- local perfectTorso = nil
- if (fromPoint.Position - xj[x]:FindFirstChild('UpperTorso').Position).magnitude < cc then
- local perfectTorso = xj[x]:FindFirstChild('UpperTorso')
- table.insert(Torsos, perfectTorso)
- end
- end
- end
- end
- return Torsos
- end
- local function DamageFromList(list,takedamage,gui,ammount)
- local EgibleParts = list
- if EgibleParts[1] ~= nil then
- for i=1,#EgibleParts do
- if EgibleParts[i] and EgibleParts[i].Parent and EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid') then
- EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(takedamage)
- if gui ~= nil and gui == true then
- WhenHit(EgibleParts[i].Parent:FindFirstChild('Torso'),ammount,'')
- end
- end
- end
- end
- end
- local function HealFromList(list,heal)
- local EgibleParts = list
- if EgibleParts[1] ~= nil then
- for i=1,#EgibleParts do
- if EgibleParts[i] and EgibleParts[i].Parent and EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid') then
- local hum = EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid')
- hum.Health = hum.Health + heal
- end
- end
- end
- end
- CI = {
- Sound = {
- Create = function(id, parent, volume, pitch, play, name, loop, debre, time, position)
- spawn(function() pcall(function()
- local sound = Instance.new("Sound", parent or workspace)
- sound.Volume = volume or 0.5
- sound.Pitch = pitch or 1
- sound.SoundId = id or 0
- sound.TimePosition = position or 0
- sound.Looped = loop or false
- sound.Name = name or "Sound"
- if play == true then sound:play()end
- if debre == true then
- game:GetService("Debris"):AddItem(sound,time or 5)end
- return sound
- end)
- end)
- end}}
- local swait = function()
- game:GetService('RunService').Stepped:wait(0)
- end
- local hh = (C['Right Leg'].Size.Y+C.HumanoidRootPart.Size.Y/2)
- local smokepart = Instance.new('Part',Root)
- smokepart.Size = Vector3.new(0.5,0,1.5)
- smokepart.CanCollide = false
- smokepart.Transparency = 1
- local skpartweld = Instance.new('Weld',smokepart)
- skpartweld.Part0 = smokepart
- skpartweld.Part1 = Root
- skpartweld.C0 = cfScaled(0,hh,0)
- local rK = false
- local DBT = false
- local smokt = Instance.new("ParticleEmitter")
- smokt.Acceleration = Vector3.new(0, 2.5, 0)
- smokt.Speed = NumberRange.new(1)
- smokt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 1.5)})
- smokt.SpreadAngle = Vector2.new(100, 100)
- smokt.Lifetime = NumberRange.new(1)
- smokt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.55), NumberSequenceKeypoint.new(0.429, 0.319), NumberSequenceKeypoint.new(0.749, 0.856), NumberSequenceKeypoint.new(1, 1)})
- smokt.Drag = 1
- smokt.Color = ColorSequence.new(Color3.new(0.737255, 0.737255, 0.737255), Color3.new(1, 1, 1))
- smokt.RotSpeed = NumberRange.new(10)
- smokt.Texture = "http://www.roblox.com/asset/?id=2263365802"
- smokt.Parent = smokepart
- smokt.Enabled = false
- function Land(spe)
- spawn(function()
- if DBT == false and attack == true and spe < -30 and rK == false then
- DBT = true
- local NORMAL = H.WalkSpeed
- H.WalkSpeed = H.WalkSpeed / 2
- H.JumpPower = 0
- CI.Sound.Create('rbxassetid://268933900',Torso,10,1,true,'Landing',false,true,1,0)
- smokt.Enabled = true
- for i=0,1,0.1 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.11,-0.4,1) * CFrame.Angles(rad(-1),rad(0),rad(10)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.16,-0.4,1) * CFrame.Angles(rad(-1),rad(0),rad(-10)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.81, 0) * CFrame.Angles(rad(15),rad(33),rad(15)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5, 0) * CFrame.Angles(rad(15),rad(-33),rad(-15)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0, 0.1, -0.6) * CFrame.Angles(rad(10), rad(0), rad(5)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10), rad(0), rad(0)), .2)
- end
- attack = false
- spawn(function()
- wait(0.1)
- H.WalkSpeed = NORMAL
- H.JumpPower = 80
- DBT = false
- smokt.Enabled = false
- end)
- else
- attack = false
- end
- end)
- end
- function CreateShake(RepeatedFor,OffsetDebounce)
- spawn(function()
- local Camera = workspace.CurrentCamera
- Camera.CameraType = 'Scriptable'
- for i=1,RepeatedFor do
- local backframe = Camera.CFrame
- Camera.CFrame = Camera.CFrame * CFrame.new(math.random()*OffsetDebounce,
- math.random()*OffsetDebounce,
- math.random()*OffsetDebounce)
- swait()
- Camera.CFrame = backframe
- end
- Camera.CameraType = 'Custom'
- Camera.CameraSubject = plr.Character:FindFirstChildOfClass('Humanoid')
- end)
- end
- function Blast(w,size,rot, opposite)
- local blast = Instance.new("Part")
- local blastmesh = Instance.new("SpecialMesh")
- blast.CFrame = w
- blast.Anchored = true
- blast.CanCollide = false
- blast.Size = Vector3.new(0, 0, 0)
- blast.Name = "Blast"
- blast.TopParamA = -0.1
- blast.Color = Color3.new(0.458824, 0, 0)
- blast.Material = Enum.Material.Neon
- blast.TopParamB = 0.1
- blast.TopSurface = Enum.SurfaceType.Smooth
- blast.BottomSurface = Enum.SurfaceType.Smooth
- blast.TopSurfaceInput = Enum.InputType.Constant
- blast.BrickColor = BrickColor.new("White")
- blast.Parent = workspace
- blastmesh.Name = "BlastMesh"
- blastmesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- blastmesh.MeshType = Enum.MeshType.FileMesh
- blastmesh.Parent = blast
- spawn(function()
- if opposite == (false or nil) then
- blastmesh.Scale = Vector3.new(0.2, 0.2, 0.2)
- else
- blastmesh.Scale = Vector3.new(10*size, 0.2, 10*size)
- end
- for i=1,25 do
- if opposite == (false or nil) then
- blastmesh.Scale = blastmesh.Scale:lerp(Vector3.new(i/size,i/size/1.5,i/size),.1)
- else
- blastmesh.Scale = blastmesh.Scale:lerp(Vector3.new(-i/(size/5),i/size,-i/(size/5)),.1)
- blast.Rotation = Vector3.new(0,i*rot,0)
- end
- blast.Transparency = i/25
- swait()
- end
- blast:Destroy()
- end)
- end
- function ParticleEffects(num, parent,brickcolor)
- if num == 1 then
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Charge"
- ParticleEmitter0.Parent = parent
- ParticleEmitter0.Speed = NumberRange.new(50, 50)
- ParticleEmitter0.Rotation = NumberRange.new(37, 999)
- ParticleEmitter0.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter0.Color = ColorSequence.new((brickcolor).Color,Color3.new(1, 1, 1))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "rbxassetid://1084976679"
- ParticleEmitter0.Transparency = NumberSequence.new(1,0,0.5,1)
- ParticleEmitter0.Size = NumberSequence.new(6.875,0)
- ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter0.Rate = 1000
- return ParticleEmitter0
- elseif num == 2 then
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Rays"
- ParticleEmitter0.Parent = parent
- ParticleEmitter0.Speed = NumberRange.new(0, 0)
- ParticleEmitter0.Color = ColorSequence.new((brickcolor).Color,Color3.new(0,0,0))
- ParticleEmitter0.Texture = "rbxassetid://459811994"
- ParticleEmitter0.Transparency = NumberSequence.new(0,1)
- ParticleEmitter0.ZOffset = 1
- ParticleEmitter0.Size = NumberSequence.new(0,10)
- ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter0.LockedToPart = true
- ParticleEmitter0.Rate = 2
- ParticleEmitter0.RotSpeed = NumberRange.new(-100, -100)
- return ParticleEmitter0
- elseif num == 3 then
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "PurpleFire"
- ParticleEmitter0.Parent = parent
- ParticleEmitter0.Speed = NumberRange.new(6, 10)
- ParticleEmitter0.Color = ColorSequence.new(brickcolor.Color,brickcolor.Color)
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Rate = 1000
- ParticleEmitter0.SpreadAngle = Vector2.new(50,50)
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=348467696"
- ParticleEmitter0.Transparency = NumberSequence.new(0.86874997615814,0.47499999403954,1)
- ParticleEmitter0.Size = NumberSequence.new(2.0764999389648,0)
- ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
- return ParticleEmitter0
- elseif num == 4 then
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Poison"
- ParticleEmitter0.Parent = parent
- ParticleEmitter0.Speed = NumberRange.new(0.5, 0.5)
- ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter0.Color = ColorSequence.new(brickcolor.Color,Color3.new(1, 1, 1))
- ParticleEmitter0.LightEmission = 0.40000000596046
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=243664672"
- ParticleEmitter0.Transparency = NumberSequence.new(1,0.72500002384186,0.85000002384186,1)
- ParticleEmitter0.ZOffset = 2
- ParticleEmitter0.Size = NumberSequence.new(50,40.625,55.375,75.0625,76.3125)
- ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.6)
- ParticleEmitter0.Rate = 1000
- ParticleEmitter0.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter0.SpreadAngle = Vector2.new(100, 100)
- ParticleEmitter0.VelocitySpread = 100
- return ParticleEmitter0
- end
- end
- Sphere = function(parent,size,cf,bcol)
- local v3 = Vector3.new
- local ins = Instance.new
- local sp = ins('Part') sp.Size = size
- sp.Transparency = 1 sp.Anchored = true
- sp.CanCollide = false sp.Name = 'Effect'
- sp.Material = Enum.Material.Neon
- sp.BrickColor = bcol sp.CFrame = cf
- local mesls = ins("SpecialMesh",sp)
- mesls.Scale = v3(0.8, 0.8, 0.8)
- mesls.MeshType = Enum.MeshType.Sphere
- sp.Parent = parent
- return sp end
- Ring = function(parent,size,cf,bcol)
- local v3 = Vector3.new
- local ins = Instance.new
- local sp = ins('Part')sp.Size = size
- sp.Transparency = 1;sp.Anchored = true
- sp.CanCollide = false;sp.Name = 'Effect'
- sp.Material = Enum.Material.Pebble;sp.BrickColor = bcol
- sp.CFrame = cf
- local mesls = ins("SpecialMesh",sp)
- mesls.Scale = Vector3.new(1,1,1)
- mesls.MeshId = 'rbxassetid://3270017'
- sp.Parent = parent
- return sp end
- local rootgyro = Instance.new("BodyGyro",C)
- rootgyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- rootgyro.P = 10000
- game:GetService("RunService"):BindToRenderStep("UpdateRootGyro",Enum.RenderPriority.Character.Value,function()
- if turn == true then rootgyro.Parent = Root
- rootgyro.CFrame =CFrame.Angles(0,math.atan2(Root.CFrame.X-Mouse.Hit.X,Root.CFrame.Z-Mouse.Hit.Z),0)
- else
- rootgyro.Parent = C
- end
- end) swait()
- turn = false
- function Ragdoll(Character) humanoid = Character:FindFirstChildOfClass("Humanoid")
- coroutine.resume(coroutine.create(function() local pres = false
- local ifrag = Character.Torso:GetChildren()
- for i=1,#ifrag do
- if ifrag[i]:IsA("Glue") then
- pres = true
- end
- end
- if pres == false then
- humanoid.JumpPower = 0
- humanoid.PlatformStand = true
- humanoid.WalkSpeed = 0
- local findlefthip = Character.Torso:findFirstChild("Left Hip")
- if findlefthip then
- findlefthip:Remove()
- end
- local glue = Instance.new("Glue", Character.Torso)
- glue.Part0 = Character.Torso
- glue.Part1 = Character["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- --
- local findrighthip = Character.Torso:findFirstChild("Right Hip")
- if findrighthip then
- findrighthip:Remove()
- end
- local glue = Instance.new("Glue", Character.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- --
- local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
- if findrightshoulder then
- findrightshoulder:Remove()
- end
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- --
- local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
- if findleftshoulder then
- findleftshoulder:Remove()
- end
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- local findhead = humanoid.Parent:findFirstChild("Head")
- if findhead then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- end
- end
- end))
- end
- function chatFunc(msg, timr, col, size)
- spawn(function()
- local namebillboard = Instance.new("BillboardGui")
- local textt = Instance.new("TextLabel")
- namebillboard.Size = UDim2.new(9/1.5, 0, 1, 0)
- namebillboard.Name = "NameBillboard"
- namebillboard.StudsOffset = Vector3.new(0, 0.75, 2)
- namebillboard.Parent = C.Head
- textt.TextWrapped = true
- textt.BackgroundTransparency = 1
- textt.BackgroundColor3 = Color3.new(1, 1, 1)
- textt.TextSize = size or 14
- textt.TextScaled = true
- textt.Font = Enum.Font.SciFi
- textt.Text = msg or ''
- textt.TextStrokeTransparency = 0
- textt.TextStrokeColor3 = Color3.new(1,1,1)
- textt.TextColor = col
- textt.Size = UDim2.new(1, 0, 1, 0)
- textt.Parent = namebillboard
- local RM = math.random(1,2)
- local DR = 0
- for i=1,timr do swait()
- if RM == 1 then
- DR = DR + 1
- namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.math.sin(DR/(timr/2.5)), 2)
- textt.TextStrokeTransparency = i/timr
- textt.TextTransparency = i/timr
- textt.Rotation = 7.5*math.cos(DR/(timr/2))
- elseif RM == 2 then
- DR = DR + 1
- namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.math.sin(DR/(timr/2.5)), 2)
- textt.TextStrokeTransparency = i/timr
- textt.TextTransparency = i/timr
- textt.Rotation = 7.5*-math.cos(DR/(timr/2))
- end
- end
- namebillboard:Destroy()
- end)
- end
- function newSpellEff(pos)
- local effect = Instance.new("Part")
- local decal = Instance.new("Decal")
- effect.Size = Vector3.new(5, 0.05, 5)
- effect.Name = "Effect"
- effect.Transparency = 1
- effect.TopSurface = Enum.SurfaceType.Smooth
- effect.BottomSurface = Enum.SurfaceType.Smooth
- effect.Parent = C
- effect.CFrame = pos
- effect.CanCollide = false
- effect.Anchored = true
- decal.Texture = "rbxassetid://884834173"
- decal.Face = Enum.NormalId.Top
- decal.Parent = effect
- return effect
- end
- -------------------------------------------------] Joints
- wait(0.5)
- for i,track in pairs(H:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- if ffc(H, 'Animator') then ffc(H, 'Animator'):Destroy() end
- if ffc(C, 'Animate') then ffc(C, 'Animate'):Destroy() end
- H.WalkSpeed = 0 wait(1/30)
- LL = Torso:WaitForChild("Left Hip")
- RL = Torso:WaitForChild("Right Hip")
- RA = Torso:WaitForChild("Right Shoulder")
- LA = Torso:WaitForChild("Left Shoulder")
- RA.C0 = cfScaled(1.5, 0.5, 0)
- RA.C1 = cfScaled(0, 0.5, 0)
- LA.C0 = cfScaled(-1.5, 0.5, 0)
- LA.C1 = cfScaled(0, 0.5, 0)
- CI.Sound.Create('rbxassetid://1908928936',Head,10,1,true,'Scream',false,true,4,0)
- --shakef:FireClient(plr, 50, 0.25)
- for i=0,1,0.0175 do swait() a = a + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.3,rad(-2 * math.cos(a/25))-0,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(20)),i)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(78)),i)
- RA.C0 = RA.C0:lerp(cfScaled(1.2, 0.5 - rad(-2.5 * math.cos(a/25)), -0.5) * CFrame.Angles(rad(150)+rad(2 * math.sin(a)),rad(-10),rad(-60)+rad(3 * math.cos(a/1.1))),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.2, 0.5 - rad(-2.5 * math.cos(a/25)), -0.5) * CFrame.Angles(rad(150)+rad(2 * math.sin(a)),rad(-10),rad(60)+rad(3 * math.cos(a/1.1))),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-1.35)* cfScaled(0, -0.6, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(5), rad(math.sin(a/25)), rad(0)),i)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(25)+rad(5 * math.sin(a)), rad(0), rad(5 * math.sin(a/1.12))),.2)
- end
- --shakef:FireClient(plr, 15, 1.5)
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- CFrame.new(Root.CFrame.p)*CFrame.new(0,0,0),BrickColor.new('White'))
- s.Transparency = 0
- for i=1,100 do swait()
- s.Transparency = i/100
- s.Size = s.Size:lerp(Vector3.new(15,70,15),.4)
- end
- s:Destroy()
- end)
- wait(0.5)
- PlayerScale = 2
- NeckCF = CFrame.new(0, 1*PlayerScale*1.25, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LL = Torso:WaitForChild("Left Hip")
- RL = Torso:WaitForChild("Right Hip")
- RA = Torso:WaitForChild("Right Shoulder")
- LA = Torso:WaitForChild("Left Shoulder")
- RL = Instance.new("Weld",Torso)
- RL.Name = "Right Hip"
- RL.Part0 = Torso
- RL.C0 = cfScaled(0, 0, 0)
- RL.C1 = cfScaled(0.5, 1, 0) * CFrame.Angles(0,1.6,0)
- RL.Part1 = RLEG
- LL = Instance.new("Weld",Torso)
- LL.Name = "Left Hip"
- LL.Part0 = Torso
- LL.C0 = cfScaled(0, 0, 0)
- LL.C1 = cfScaled(-0.5, 1, 0) * CFrame.Angles(0,-1.6,0)
- LL.Part1 = LLEG
- RA = Instance.new("Weld",Torso)
- RA.Name = "Right Shoulder"
- RA.Part0 = Torso
- RA.C0 = cfScaled(1.5, 0.5, 0)
- RA.C1 = cfScaled(0, 0.5, 0)
- RA.Part1 = RARM
- LA = Instance.new("Weld",Torso)
- LA.Name = "Left Shoulder"
- LA.Part0 = Torso
- LA.C0 = cfScaled(-1.5, 0.5, 0)
- LA.C1 = cfScaled(0, 0.5, 0)
- LA.Part1 = LARM
- LL.C0 = LHCF * cfScaled(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
- RL.C0 = RHCF * cfScaled(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
- H.WalkSpeed = WALKSPEED
- H.JumpPower = 80
- H.MaxHealth = math.huge
- H.Health = math.huge
- Root.Size = Root.Size * PlayerScale
- RARM.Size = RARM.Size * PlayerScale
- LARM.Size = LARM.Size * PlayerScale
- LLEG.Size = LLEG.Size * PlayerScale
- RLEG.Size = RLEG.Size * PlayerScale
- Torso.Size = Torso.Size * PlayerScale
- Head.Size = Head.Size * PlayerScale
- RootJ.Parent = Root
- Root.Parent = C
- LARM.Parent = C
- RARM.Parent = C
- RLEG.Parent = C
- LLEG.Parent = C
- Head.Parent = C
- Torso.Parent = C
- Neck.Parent = Torso
- RA.Parent = Torso
- LA.Parent = Torso
- RL.Parent = Torso
- LL.Parent = Torso
- wait(1/10)
- --------- Misc ---------
- local sound = Instance.new('Sound')
- sound.Parent = Torso
- sound.Looped = false
- sound.Volume = 5
- sound.Name = 'Footstep'
- sound.SoundId = 'rbxassetid://379483672' -- 833564121
- local kio = 0.4
- local tt = 0.4
- --------- Key --------
- local walke = false
- local cycle = 1
- Mouse.Button1Down:Connect(function()
- if attack == false then
- end
- end)
- local haltHit = false
- function WhenHit(hit,damage,extra)
- spawn(function()
- local lebel = Instance.new("BillboardGui")
- local lebeltext = Instance.new("TextBox")
- lebel.Size = UDim2.new(6, 0, 1, 0)
- lebel.Name = "Damage"
- lebel.StudsOffset = Vector3.new(0, 3, 2)
- lebel.Parent = hit
- lebeltext.TextWrapped = true
- lebeltext.BackgroundTransparency = 1
- lebeltext.BackgroundColor3 = Color3.new(1, 1, 1)
- lebeltext.TextSize = 14
- lebeltext.TextScaled = true
- lebeltext.Font = Enum.Font.Fantasy
- lebeltext.Text = damage .. extra
- lebeltext.TextStrokeTransparency = 0
- lebeltext.TextStrokeColor3 = Color3.new(0,0,0)
- lebeltext.TextColor = BrickColor.new('White')
- lebeltext.Size = UDim2.new(1, 0, 1, 0)
- lebeltext.Parent = lebel
- local ran = math.random(1,2)
- spawn(function()
- for i=0,1,0.05 do swait()
- lebeltext.TextTransparency = i
- lebeltext.TextStrokeTransparency = i
- end
- end)
- spawn(function()
- for i=0,5,0.1 do swait()
- if ran == 1 then
- lebel.StudsOffset = Vector3.new(0, 3+i, 2+ran/3+i/1.5)
- elseif ran == 2 then
- lebel.StudsOffset = Vector3.new(0, 3+i, 2+ran/3-i/1.5)
- end
- end
- lebel:Destroy()
- end)
- wait(0.3)
- haltHit = false
- end)
- end
- local CurrentS = 1
- Mouse.KeyDown:Connect(function(key)
- if key == 'e' and walke == false and attack == false then
- attack = true
- H.WalkSpeed = 0
- local ticker = 0
- for i=0,1,0.02 do swait()
- ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.3,rad(-2 * math.cos(a/25))-0.6,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(15)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(25)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0.2) * CFrame.Angles(rad(-30),rad(-35),rad(5)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.4 - rad(-2.5 * math.cos(a/25)), -0.1) * CFrame.Angles(rad(20),rad(-10),rad(10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.5)* cfScaled(0, 0.1, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(5), rad(math.sin(a/25)), rad(-20)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(25)+rad(5 * math.sin(a/25)), rad(0), rad(15)), .2)
- if ticker > 1 then ticker = 0
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- RARM.CFrame*CFrame.new(0,-2,0),BrickColor.new('White'))
- s.CFrame = s.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- s.Mesh:Destroy()
- s.Transparency = 0
- for i=1,25 do swait()
- s.Transparency = i/25
- s.Size = s.Size:lerp(Vector3.new(2+i/25,2+i/25,2+i/25),.1)
- end
- s:Destroy()
- end)
- end
- end
- H.WalkSpeed = 11
- for i=0,.3,0.045 do swait()
- ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.05,rad(-2 * math.cos(a/25))-0.85,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(-20)),i)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1,rad(-2 * math.cos(a/25))-0.9,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(5)),i)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.5 - rad(-2.5 * math.cos(a/25)), -0.3) * CFrame.Angles(rad(110),rad(10),rad(-5)),i)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.4 - rad(-2.5 * math.cos(a/25)), -0.1) * CFrame.Angles(rad(0),rad(-5),rad(-10)),i)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),0.2)* cfScaled(0, -0.7, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-5), rad(math.sin(a/25)), rad(5)), i)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-5)+rad(5 * math.sin(a/25)), rad(0), rad(-5)), i)
- if ticker > 1 then ticker = 0
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- RARM.CFrame*CFrame.new(0,-2,0),BrickColor.new('White'))
- s.CFrame = s.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- s.Mesh:Destroy()
- s.Transparency = 0
- for i=1,25 do swait()
- s.Transparency = i/25
- s.Size = s.Size:lerp(Vector3.new(2+i/25,2+i/25,2+i/25),.1)
- end
- s:Destroy()
- end)
- end
- end
- local list = GetNearbyTorsos(RARM, 15, C)
- CI.Sound.Create('rbxassetid://231917961',RARM,10,1.4,true,'Whoosh',false,true,1,0)
- if list[1] then
- CI.Sound.Create('rbxassetid://155363126',Torso,6,1,true,'Scream',false,true,2.5,0)
- --shakef:FireClient(plr, 10, 1)
- end
- for i,v in pairs(list) do
- if v.Parent and v.Parent:FindFirstChildOfClass('Humanoid') then
- spawn(function()
- for i=1,10 do wait(.05)
- local s = Sphere(Root,Vector3.new(0,0,0),
- v.CFrame,BrickColor.new('White'))
- s.CFrame = s.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- s.CFrame = s.CFrame * CFrame.new(0,0,-1)
- spawn(function()
- s.Transparency = 0
- for i=1,25 do swait()
- s.CFrame = s.CFrame:Lerp(s.CFrame * CFrame.new(0,0,-i/4),.1)
- s.Transparency = i/25
- s.Size = s.Size:lerp(Vector3.new(1,1,1),.1)
- end
- s:Destroy()
- end)
- end
- end)
- local h = v.Parent:FindFirstChildOfClass('Humanoid')
- local vw = Instance.new('BodyVelocity',v)
- vw.Velocity = (Root.CFrame.UpVector+Root.CFrame.LookVector/2) * 80
- vw.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- game:GetService('Debris'):AddItem(vw, 0.25)
- h.Health = 0.1
- WhenHit(v, h.MaxHealth, '')
- Ragdoll(v.Parent)
- spawn(function()
- game:GetService('Debris'):AddItem(v.Parent, 5)
- if game:GetService('Players'):GetPlayerFromCharacter(v.Parent) then
- local cli = game:GetService('Players'):GetPlayerFromCharacter(v.Parent)
- end
- end)
- end
- end
- for i=0,1,0.25 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.05,rad(-2 * math.cos(a/25))-1,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(-25)),.35)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.4,rad(-2 * math.cos(a/25))-0.5,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(35)),.35)
- RA.C0 = RA.C0:lerp(cfScaled(1.15, 0.6 - rad(-2.5 * math.cos(a/25)), -0.7) * CFrame.Angles(rad(150),rad(25),rad(-10)),.35)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.4 - rad(-2.5 * math.cos(a/25)), -0.1) * CFrame.Angles(rad(-40),rad(-5),rad(-10)),.35)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),3)* cfScaled(0, -1.4, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-20), rad(math.sin(a/25)), rad(25)), .35)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-2)+rad(5 * math.sin(a/25)), rad(0), rad(-15)), .35)
- end
- Blast(RARM.CFrame * CFrame.Angles(math.rad(0),0,0), 4, 1)
- for i=0,1,0.1 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.05,rad(-2 * math.cos(a/25))-1,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(-25)),.35)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.4,rad(-2 * math.cos(a/25))-0.5,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(35)),.35)
- RA.C0 = RA.C0:lerp(cfScaled(1.15, 0.6 - rad(-2.5 * math.cos(a/25)), -0.7) * CFrame.Angles(rad(150),rad(25),rad(-10)),.35)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.4 - rad(-2.5 * math.cos(a/25)), -0.1) * CFrame.Angles(rad(-40),rad(-5),rad(-10)),.35)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),3)* cfScaled(0, -1.4, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-20), rad(math.sin(a/25)), rad(25)), .35)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-2)+rad(5 * math.sin(a/25)), rad(0), rad(-15)), .35)
- end
- H.WalkSpeed = WALKSPEED
- wait(1/30)
- Land(-65)
- elseif key == 'm' then
- if MUSIC then
- if MUSIC.Volume == 0 then
- CURRENTVOL = 4
- MUSIC.Volume = CURRENTVOL
- else
- CURRENTVOL = 0
- MUSIC.Volume = CURRENTVOL
- end
- end
- elseif key == 'n' then
- local musiclist = {1142975563,468448329,1257689487,1175569393}
- if MUSIC then
- if CurrentS >= #musiclist then
- CurrentS = 0
- end
- CurrentS = CurrentS + 1
- CURRENTMUSIC = musiclist[CurrentS]
- MUSIC:Destroy()
- end
- elseif key == 'c' and walke == false and attack == false then
- local oldp = Root.CFrame
- local s = Sphere(Root,Vector3.new(0,0,0),
- Root.CFrame,BrickColor.new('White'))
- spawn(function()
- s.Transparency = 0
- for i=1,25 do swait()
- s.Transparency = i/25
- s.Size = s.Size:lerp(Vector3.new(20,20,20),.1)
- end
- s:Destroy()
- end)
- Root.CFrame = Mouse.Hit * cfScaled(0,hh,0)
- local dist = (oldp.p-Root.CFrame.p).magnitude
- for i=1,5 do
- local m1 = -math.random()*3+math.random()*3
- local m2 = -math.random()*3+math.random()*3
- local s = Sphere(Root,Vector3.new(0,0,0),
- CFrame.new(Root.CFrame.p,oldp.Position)*CFrame.new(m1,m2,-dist/2),BrickColor.new('White'))
- spawn(function()
- s.Transparency = 0
- for i=1,35 do swait()
- s.Transparency = i/35
- s.Size = s.Size:lerp(Vector3.new(1,1,dist*1.314),.35)
- end
- s:Destroy()
- end)
- end
- CI.Sound.Create('rbxassetid://233856079',Root,10,1,true,'Teleport',false,true,2.5,0)
- local s = Sphere(Root,Vector3.new(0,0,0),
- Root.CFrame,BrickColor.new('White'))
- spawn(function()
- s.Transparency = 0
- for i=1,25 do swait()
- s.Transparency = i/25
- s.Size = s.Size:lerp(Vector3.new(20,20,20),.1)
- end
- s:Destroy()
- end)
- elseif key == 'x' and walke == false and attack == false then
- attack = true
- H.WalkSpeed = 0
- local ticker = 0
- CI.Sound.Create('rbxassetid://907332670',Head,10,1.2,true,'AssuredDeath',false,true,3,0)
- for i=0,1,0.015 do swait() ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.3,rad(-2 * math.cos(a/25))-0.45,1)*CFrame.Angles(rad(-12)+rad(1.5*math.sin(a/25)),rad(0),rad(5)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(25)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.45, 0.3 - rad(-2.5 * math.cos(a/25)), -0.25) * CFrame.Angles(rad(140),rad(15),rad(2)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-10),rad(-25),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.55)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-5), rad(-5+math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(-10)), .2)
- end
- for i=0,3,0.015 do swait() ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-1.01,1)*CFrame.Angles(rad(-4)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-15)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.65 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(175),rad(5),rad(2)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-10),rad(15),rad(-15)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, -0.9, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(5), rad(5+math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(-10)), .2)
- if ticker > 1 then ticker = 0
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- RARM.CFrame*CFrame.new(0,-2,0),BrickColor.new('White'))
- s.Mesh:Destroy()
- s.Transparency = 0
- s.CFrame = s.CFrame * CFrame.new(0,-i*3,0)
- s.CFrame = s.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- for c=1,25 do swait()
- s.Transparency = c/25
- s.Size = s.Size:lerp(Vector3.new(2+i*4,2+i*4,2+i*4),.1)
- end
- s:Destroy()
- end)
- end
- end
- CI.Sound.Create('rbxassetid://207155717',workspace,10,1,true,'Die',false,true,2.5,0)
- for i=0,1,0.05 do swait() ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.3,rad(-2 * math.cos(a/25))-0.45,1)*CFrame.Angles(rad(-12)+rad(1.5*math.sin(a/25)),rad(0),rad(5)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(25)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.45, 0.3 - rad(-2.5 * math.cos(a/25)), -0.25) * CFrame.Angles(rad(140),rad(15),rad(2)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1, 0.7 - rad(-2.5 * math.cos(a/25)), -0.7) * CFrame.Angles(rad(140),rad(-25),rad(70)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.55)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-5), rad(-5+math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(-10)), .2)
- end
- spawn(function()
- for i=0,1,0.01 do swait() ticker = ticker + 1
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-1.1,1)*CFrame.Angles(rad(-4)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-15)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.65 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(175),rad(5),rad(2)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1, 0.7 - rad(-2.5 * math.cos(a/25)), -0.7) * CFrame.Angles(rad(140),rad(-5),rad(50)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),0.1)* cfScaled(0, -0.9, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(5), rad(5+math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(20)+rad(math.sin(a/25)), rad(0), rad(-10)), .2)
- end
- H.WalkSpeed = WALKSPEED
- attack = false
- end)
- local MODECOLOUR = BrickColor.new('White')
- local cfs = RARM.CFrame * CFrame.new(0,-20,0)
- CI.Sound.Create('rbxassetid://231917970',workspace,10,0.75,true,'Exposive',false,true,2.5,0)
- local list = GetNearbyTorsos(RARM,120,C,true)
- DamageFromList(list,math.huge,true,'INF')
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- CFrame.new(cfs.p)*CFrame.new(0,0,0),MODECOLOUR)
- s.Transparency = 0
- for i=1,35 do swait()
- s.Transparency = i/35
- s.Size = s.Size:lerp(Vector3.new(100,100,100),.2)
- end
- s:Destroy()
- end)
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- CFrame.new(cfs.p)*CFrame.new(0,0,0),MODECOLOUR)
- s.Transparency = 0
- for i=1,15 do swait()
- s.Transparency = i/15
- s.Size = s.Size:lerp(Vector3.new(500,500,500),.2)
- end
- s:Destroy()
- end)
- spawn(function()
- local s = Sphere(Root,Vector3.new(0,0,0),
- CFrame.new(cfs.p)*CFrame.new(0,0,0),MODECOLOUR)
- s.Transparency = 0
- local p = ParticleEffects(4,s,MODECOLOUR)
- for i=1,35 do swait()
- s.Transparency = i/35
- s.Size = s.Size:lerp(Vector3.new(85,85,85),.2)
- end
- p.Enabled = false wait(2)
- s:Destroy()
- end)
- spawn(function()
- for i=1,10 do swait()
- local s = Ring(Root,Vector3.new(0,0,0),
- CFrame.new(cfs.p)*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),BrickColor.new('Black'))
- s.Transparency = 0
- spawn(function()
- local ran = math.random(30,40) local ran1 = math.random(100,200)
- for i=1,ran do swait()
- s.Transparency = i/ran
- s.Mesh.Scale = s.Mesh.Scale:lerp(Vector3.new(ran1,ran1,5),.2)
- end
- s:Destroy()
- end)
- end
- end)
- elseif key == 'r' and walke == false and attack == false then
- attack = true
- H.WalkSpeed = 0
- for i=0,1,0.07 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.6, rad(-2 * math.cos(a/25))-0.3,1)*CFrame.Angles(rad(-2)+rad(1.5*math.sin(a/25)),rad(0),rad(-15)),.15)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-1,1)*CFrame.Angles(rad(-2)+rad(-1.5*math.sin(a/25)),rad(0),rad(20)),.15)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(60),rad(0),rad(50)),.15)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(60),rad(0),rad(-50)),.15)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),0)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-15), rad(math.sin(a/25)), rad(0)), .15)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-5)+rad(5 * math.sin(a/25)), rad(0), rad(0)), .15)
- end
- Blast(Root.CFrame * cfScaled(0.5,-hh,-0.25), 1, 6)
- --shakef:FireClient(plr, 10, 1)
- local list = GetNearbyTorsos(RLEG, 30, C)
- CI.Sound.Create('rbxassetid://144699494',RLEG,10,1.1,true,'Hit',false,true,1,0)
- for i,v in pairs(list) do
- if v.Parent and v.Parent:FindFirstChildOfClass('Humanoid') then
- local h = v.Parent:FindFirstChildOfClass('Humanoid')
- h.PlatformStand = true
- h.Health = h.Health - 14
- WhenHit(v, 14, '')
- spawn(function()
- wait(1)
- if h then
- h.PlatformStand = false
- end
- end)
- end
- end
- spawn(function()
- for i=1,15 do
- local s = Sphere(Root,Vector3.new(0,0,0),
- Root.CFrame * cfScaled(0.5,-hh,0),BrickColor.new('White'))
- s.CFrame = s.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- s.CFrame = s.CFrame * CFrame.new(0,0,0)
- spawn(function()
- s.Transparency = 0
- for i=1,45 do swait()
- s.CFrame = s.CFrame:Lerp(s.CFrame * CFrame.new(0,0,-i/3),.1)
- s.Transparency = i/45
- s.Size = s.Size:lerp(Vector3.new(1.5,1.5,1.5),.1)
- end
- s:Destroy()
- end)
- end
- end)
- for i=0,1,0.09 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.4, rad(-2 * math.cos(a/25))-1,1)*CFrame.Angles(rad(-2)+rad(1.5*math.sin(a/25)),rad(0),rad(30)),.25)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-1,1)*CFrame.Angles(rad(-2)+rad(-1.5*math.sin(a/25)),rad(0),rad(-20)),.25)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(40),rad(0),rad(35)),.25)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(40),rad(0),rad(-35)),.25)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),0)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(15), rad(math.sin(a/25)), rad(0)), .25)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(5)+rad(5 * math.sin(a/25)), rad(0), rad(0)), .25)
- end
- H.WalkSpeed = WALKSPEED
- attack = false
- elseif key == 'f' and walke == false and attack == false then
- attack = true
- H.WalkSpeed = 0
- for i=0,1,0.065 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.6, rad(-2 * math.cos(a/25))-0.5,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(-10),rad(-35)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.75,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-20),rad(5),rad(10)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(5),rad(0),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.5)* cfScaled(0, 0.3, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(5), rad(math.sin(a/25)), rad(-45)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(25)+rad(5 * math.sin(a/25)), rad(0), rad(40)), .2)
- end
- local list = GetNearbyTorsos(RLEG, 15, C)
- CI.Sound.Create('rbxassetid://231917961',RLEG,10,1.4,true,'Whoosh',false,true,1,0)
- if list[1] then
- CI.Sound.Create('rbxassetid://278049089',RLEG,10,1,true,'Smack',false,true,1,0)
- --shakef:FireClient(plr, 10, 1)
- end
- for i,v in pairs(list) do
- if v.Parent and v.Parent:FindFirstChildOfClass('Humanoid') then
- CI.Sound.Create('rbxassetid://160718677',v,10,1,true,'Scream',false,true,2.5,0)
- local h = v.Parent:FindFirstChildOfClass('Humanoid')
- local vw = Instance.new('BodyVelocity',v)
- vw.Velocity = (Root.CFrame.UpVector/2+Root.CFrame.LookVector) * 140
- vw.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- game:GetService('Debris'):AddItem(vw, 0.25)
- h.Health = 0.1
- Ragdoll(v.Parent)
- WhenHit(v, h.MaxHealth, '')
- spawn(function()
- game:GetService('Debris'):AddItem(v.Parent, 5)
- if game:GetService('Players'):GetPlayerFromCharacter(v.Parent) then
- local cli = game:GetService('Players'):GetPlayerFromCharacter(v.Parent)
- end
- end)
- end
- end
- for i=0,1,0.09 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.5,rad(-2 * math.cos(a/25))-0.8,1)*CFrame.Angles(rad(-2)+rad(1.5*math.sin(a/25)),rad(25),rad(60)),.3)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.9,1)*CFrame.Angles(rad(-15)+rad(-1.5*math.sin(a/25)),rad(0),rad(45)),.3)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-20),rad(15),rad(10)),.3)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-50),rad(0),rad(-10)),.3)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.1)* cfScaled(0, -0.4, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(-50), rad(math.sin(a/25)), rad(45)), .3)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(35)+rad(5 * math.sin(a/25)), rad(0), rad(-35)), .3)
- end
- H.WalkSpeed = WALKSPEED
- attack = false
- elseif key == 'q' and attack == false and walke == false then
- H.WalkSpeed = 10
- walke = true
- for i=0,1,0.05 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(-5),rad(15),rad(-10)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(-10),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(25)+rad(5 * math.sin(a/25)), rad(0), rad(20)), .2)
- end
- CI.Sound.Create('rbxassetid://212678112',Head,10,1,true,'Tell no one.',false,true,3,0)
- local cs = Create("Part") {
- Anchored = false;
- CanCollide = false;
- Massless = true;
- Shape = Enum.PartType.Ball;
- Size = Vector3.new(2, 2, 2);
- Orientation = Vector3.new(0, -90, 0);
- Color = Color3.new(0.960784, 0.803922, 0.188235);
- BrickColor = BrickColor.new("Bright yellow");
- Reflectance = 0.2;
- Name = "Cs";
- Parent = workspace;
- }
- local csm = Create("SpecialMesh") {
- MeshType = Enum.MeshType.FileMesh;
- MeshId = "rbxasset://fonts/timebomb.mesh";
- Name = "CsMesh";
- TextureId = "http://www.roblox.com/asset/?id=1135264309";
- Scale = Vector3.new(0+PlayerScale/2, 0+PlayerScale/2, 0+PlayerScale/2); -- 1, 1, 1 for size of 2
- Parent = cs;
- }
- local csw = Create("Weld") {
- Part0 = cs;
- Part1 = RARM;
- Parent = cs;
- C0 = CFrame.new(0,-2.5,0) * CFrame.Angles(math.rad(180),0,0);
- }
- game:GetService('Debris'):AddItem(cs, 40)
- if CURRENTVOL == 0 then
- spawn(function()
- wait(2)
- local debounce = false
- cs.Touched:Connect(function(p)
- if p.Parent and p.Parent:FindFirstChildOfClass('Humanoid') and debounce == false then
- debounce = true
- CI.Sound.Create('rbxassetid://539294959',workspace,10,1,true,'Explosion',false,true,3,0)
- local h = p.Parent:FindFirstChildOfClass('Humanoid')
- local e = Instance.new('Explosion',workspace)
- e.DestroyJointRadiusPercent = 0
- e.Position = cs.Position
- cs:Destroy()
- h.Health = 0
- end
- end)
- end)
- end
- for i=0,1,0.03 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(90),rad(10),rad(5)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(-10),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(30)), .2)
- end
- spawn(function() wait(1/10)
- csw:Destroy()
- cs.CanCollide = true
- end)
- for i=0,1,0.055 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(90),rad(3),rad(60)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(-10),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(30)), .2)
- end
- for i=1,3 do
- for i=0,1,0.1 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1, 0.45 - rad(-2.5 * math.cos(a/25)), -0.37) * CFrame.Angles(rad(90),rad(2),rad(-85)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1, 0.45 - rad(-2.5 * math.cos(a/25)), -0.4) * CFrame.Angles(rad(90),rad(-2),rad(85)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(-20)), .2)
- end
- for i=0,1,0.1 do swait()
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1, 0.45 - rad(-2.5 * math.cos(a/25)), -0.371) * CFrame.Angles(rad(90),rad(2),rad(-85)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1, 0.45 - rad(-2.5 * math.cos(a/25)), -0.399) * CFrame.Angles(rad(90),rad(-2),rad(85)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15)+rad(5 * math.sin(a/25)), rad(0), rad(20)), .2)
- end
- end
- H.WalkSpeed = WALKSPEED
- walke = false
- end
- end)
- ----------------------
- ----------------------
- ------ANIMATIONS------
- ----------------------
- local ss2 = Instance.new('Part',Root)
- ss2.Size = Vector3.new(1,1,1)
- ss2.CanCollide = false
- ss2.Transparency = 1
- ss2.Massless = true
- local ss2weld = Instance.new('Weld',ss2)
- ss2weld.Part0 = ss2
- ss2weld.Part1 = Torso
- ss2weld.C0 = cfScaled(0,0,0)
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "BParticle"
- ParticleEmitter0.Parent = ss2
- ParticleEmitter0.Speed = NumberRange.new(10, 10)
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "rbxassetid://286708119"
- ParticleEmitter0.Transparency = NumberSequence.new(0,1)
- ParticleEmitter0.Size = NumberSequence.new(0,0.8,0)
- ParticleEmitter0.Acceleration = Vector3.new(-10, -3, -15)
- ParticleEmitter0.SpreadAngle = Vector2.new(5,5)
- ParticleEmitter0.EmissionDirection = Enum.NormalId.Back
- ParticleEmitter0.LockedToPart = true
- ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter0.Rate = 1000
- ParticleEmitter1.Name = "BParticle"
- ParticleEmitter1.Parent = ss2
- ParticleEmitter1.Speed = NumberRange.new(10, 10)
- ParticleEmitter1.SpreadAngle = Vector2.new(5,5)
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.LightEmission = 1
- ParticleEmitter1.LockedToPart = true
- ParticleEmitter1.Texture = "rbxassetid://286708119"
- ParticleEmitter1.Transparency = NumberSequence.new(0,1)
- ParticleEmitter1.Size = NumberSequence.new(0,0.8,0)
- ParticleEmitter1.Acceleration = Vector3.new(10, -3, -15)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Back
- ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter1.Rate = 1000
- game:GetService('RunService').Stepped:Connect(function()
- if Torso:FindFirstChild('Neck') then
- ParticleEmitter0.Acceleration = Vector3.new(-10, math.cos(a/50)*10, -15)
- ParticleEmitter1.Acceleration = Vector3.new(10, math.cos(a/50)*10, -15)
- speed = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = Root.Velocity.y
- touch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
- (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 4 * PlayerScale), C)
- neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
- (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6 * PlayerScale), C)
- a = a + 1
- local point1 = H.MoveDirection*Root.CFrame.LookVector
- local point2 = H.MoveDirection*Root.CFrame.RightVector
- local rotation1 = point1.X+point1.Z
- local rotation2 = point2.X+point2.Z
- if speed > 1 and Animation == 'Walk' then
- local ray = Ray.new(
- Torso.Position,
- Vector3.new(0, -4, 0))
- local psart, endPoint = workspace:FindPartOnRay(ray, C)
- if kio <= 0.01 then
- if psart and (psart.Material == Enum.Material.Grass or psart.Material == Enum.Material.Sand) then
- sound.SoundId = 'rbxassetid://267882764'
- sound:Play()
- else
- sound.SoundId = 'rbxassetid://379483672'
- sound:Play()
- end
- kio = tt
- end
- kio = kio - 0.01
- else
- if kio <= 0.01 then
- kio = tt
- end
- kio = kio - 0.01
- sound:Stop()
- end
- if not Root:FindFirstChild('MUSIC') then
- MUSIC = Instance.new('Sound',Root)
- MUSIC.SoundId = 'rbxassetid://'.. CURRENTMUSIC
- MUSIC.Name = 'MUSIC'
- MUSIC.Volume = CURRENTVOL
- MUSIC.EmitterSize = 10
- MUSIC.Looped = true
- MUSIC:Play()
- end
- if H.Sit == true then
- Animation = "Sit"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,-1+rad(2.5 * math.cos(a/25)),1) * CFrame.Angles(rad(0),rad(-5),rad(90)),.1)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,-1+rad(2.5 * math.cos(a/25)),1) * CFrame.Angles(rad(0),rad(5),rad(-90)),.1)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(10)),.1)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(-10)),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0, 0, 0) * cfScaled(0, 0,rad(-2.5 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(0), rad(0)), .1)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(3 * math.sin(a/25)), rad(0), rad(0)), .1)
- end
- elseif Root.Velocity.y > 1 and touch == nil and walke == false then
- Animation = "Jump"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.4,-0.95,1) * CFrame.Angles(rad(-1),rad(0),rad(2)),.1)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.4,-0.1,1) * CFrame.Angles(rad(-1),rad(0),rad(5)),.1)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.5, 0) * CFrame.Angles(rad(50),rad(25),rad(45)),.1)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.5, 0) * CFrame.Angles(rad(50),rad(-25),rad(-45)),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0, 0, 0.15) * CFrame.Angles(rad(-15), rad(0), rad(0)), .1)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-15), rad(0), rad(0)), .1)
- end
- elseif Root.Velocity.y < -1 and touch == nil and walke == false then
- Animation = "Fall"
- if neartouch ~= nil and attack == false then
- attack = true
- Land(Root.Velocity.y)
- end
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.25,-0.35, 1) * CFrame.Angles(rad(-1),rad(0),rad(10)),.1)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1,-0.85,1) * CFrame.Angles(rad(-1),rad(0),rad(-10)),.1)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.81, 0) * CFrame.Angles(rad(70),rad(20),rad(45)),.1)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.6, 0) * CFrame.Angles(rad(70),rad(-20),rad(-45)),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0, 0, -0.25) * CFrame.Angles(rad(10), rad(0), rad(0)), .1)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15), rad(0), rad(0)), .1)
- end
- elseif speed < 1 and touch ~= nil and sit == false and walke == false then
- Animation = "Idle"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5)+rad(-1.5*math.sin(a/25)),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(10),rad(10)),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(-10),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *cfScaled(rad(0),rad(0),-0.05)* cfScaled(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(math.sin(a/25)), rad(-2)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10)+rad(5 * math.sin(a/25)), rad(0), rad(2)), .2)
- end
- elseif speed > 1 and speed < 18 and touch ~= nil and walke == false then
- Animation = "Walk"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.1 + 0.2*math.cos(a/10),-0.7+0.15 * math.cos(a/10)-rad(3-7*math.sin(a/10))-Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/10)))*CFrame.Angles(rad(-3),rad(5*math.sin(a/10))+Root.RotVelocity.Y / 30,rad(-8)+rad(40*math.sin(a/10))),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1 + 0.2*math.cos(a/10),-0.7-0.15 * math.cos(a/10)-rad(3+7*math.sin(a/10))+Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/10)))*CFrame.Angles(rad(-3),rad(5*math.sin(a/10))+Root.RotVelocity.Y / 30,rad(8)+rad(40*math.sin(a/10))),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.48, 0.5 + rad(-0.5*math.sin(a/10)), rad(-5*math.sin(a/10))) * CFrame.Angles(rad(35*math.sin(a/10)),rad(3*math.cos(a/5)),rad(-15)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.48, 0.5 + rad(0.5*math.sin(a/10)), rad(5*math.sin(a/10))) * CFrame.Angles(rad(-35*math.sin(a/10)),rad(3*math.cos(a/5)),rad(15)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0,0,-0.2) * cfScaled(0, math.rad(3*math.cos(a/5)), rad(7.5 * math.sin(a/5))) * CFrame.Angles(rad(2.5+-rotation1*5*math.sin(a/5))+rotation1/15, -rotation2/8 + Root.RotVelocity.Y / 60 ,rad(-1*math.sin(a/10))),.25)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(2)+rad(5 * math.cos(a/5)), rad(0), rad(0) + Root.RotVelocity.Y / 20), .2)
- end
- elseif speed > 1 and speed < 18 and touch ~= nil and walke == true then
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0,0,-0.2) * cfScaled(0, math.rad(3*math.cos(a/5)), rad(7.5 * math.sin(a/5))) * CFrame.Angles(rad(2.5+-rotation1*5*math.sin(a/5))+rotation1/15, -rotation2/8 + Root.RotVelocity.Y / 60 ,rad(-1*math.sin(a/10))),.25)
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.1 + 0.2*math.cos(a/10),-0.7+0.15 * math.cos(a/10)-rad(3-7*math.sin(a/10))-Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/10)))*CFrame.Angles(rad(-3),rad(5*math.sin(a/10))+Root.RotVelocity.Y / 30,rad(-8)+rad(40*math.sin(a/10))),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1 + 0.2*math.cos(a/10),-0.7-0.15 * math.cos(a/10)-rad(3+7*math.sin(a/10))+Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/10)))*CFrame.Angles(rad(-3),rad(5*math.sin(a/10))+Root.RotVelocity.Y / 30,rad(8)+rad(40*math.sin(a/10))),.2)
- elseif speed > 18 and touch ~= nil and walke == false then
- Animation = "Run"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * cfScaled(0.1 + 0.4*math.cos(a/4),-0.8+0.45 * math.cos(a/4)-rad(3-7*math.sin(a/4))-Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/4)))*CFrame.Angles(rad(-2),rad(0)+Root.RotVelocity.Y / 30,rad(-1)+rad(105*math.sin(a/4))),.2)
- LL.C0 = LL.C0:lerp(LHCF * cfScaled(-0.1 + 0.4*math.cos(a/4),-0.8-0.45 * math.cos(a/4)-rad(3+7*math.sin(a/4))+Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/4)))*CFrame.Angles(rad(-2),rad(0)+Root.RotVelocity.Y / 30,rad(1)+rad(105*math.sin(a/4))),.2)
- LA.C0 = LA.C0:lerp(cfScaled(-1.48, 0.5 + rad(-0.5*math.sin(a/4)), rad(-20*math.sin(a/4))) * CFrame.Angles(rad(80*math.sin(a/4)),rad(-35*math.sin(a/4)),rad(-10)),.2)
- RA.C0 = RA.C0:lerp(cfScaled(1.48, 0.5 + rad(0.5*math.sin(a/4)), rad(20*math.sin(a/4))) * CFrame.Angles(rad(-80*math.sin(a/4)),rad(-35*math.sin(a/4)),rad(10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF * cfScaled(0,0,-0.2) * cfScaled(0, 0.2, 0.1+rad(12 * math.cos(a/2))) * CFrame.Angles(rad(15+-rotation1*6*math.sin(a/2))+rotation1/15, -rotation2/8 + Root.RotVelocity.Y / 60 ,rad(-1*math.sin(a/4))),.25)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-10)+rad(5 * math.cos(a/2)), rad(0), rad(0) + Root.RotVelocity.Y / 20), .2)
- end
- end
- end
- end)
- spawn(function()
- RARM.BrickColor = BrickColor.new('Really black')
- LARM.BrickColor = BrickColor.new('Really black')
- local s = C:FindFirstChildOfClass('Shirt')
- if s then s:Destroy() end
- local p = C:FindFirstChildOfClass('Pants')
- if p then p:Destroy() end
- local s=Instance.new("Shirt")
- s.Parent=C
- s.ShirtTemplate="http://www.roblox.com/asset/?id=1646772867"
- local t=Instance.new("Pants")
- t.Parent=C
- t.PantsTemplate="http://www.roblox.com/asset/?id=376964062"
- end)
- local pumkin = Create("Part") {
- Anchored = false;
- CanCollide = false;
- Size = Vector3.new(2, 1.2, 1);
- Orientation = Vector3.new(0, -90, 0);
- Color = Color3.new(0.960784, 0.803922, 0.188235);
- BrickColor = BrickColor.new("Bright yellow");
- Reflectance = 0.2;
- Name = "Pumkin";
- Parent = C;
- }
- local pumkinmesh = Create("SpecialMesh") {
- MeshType = Enum.MeshType.FileMesh;
- MeshId = "http://www.roblox.com/asset/?id=1474596";
- Name = "PumkinMesh";
- TextureId = "http://www.roblox.com/asset/?id=178262783";
- Scale = Vector3.new(0+PlayerScale/2, 0+PlayerScale/2, 0+PlayerScale/2); -- 1, 1, 1 for size of 2
- Parent = pumkin;
- }
- local pumkinweld = Create("Weld") {
- Part0 = pumkin;
- Part1 = Head;
- Parent = pumkin;
- C0 = CFrame.new(0,-0.5,0);
- }
- local cover = Create("Part") {
- Anchored = false;
- CanCollide = false;
- Size = Vector3.new(PlayerScale*2.125, PlayerScale*1.85, PlayerScale*2.125);
- Orientation = Vector3.new(0, -90, 0);
- BrickColor = BrickColor.new('Really black');
- Material = Enum.Material.SmoothPlastic;
- Name = "Cover";
- Parent = C;
- }
- local covermesh = Create("SpecialMesh") {
- MeshType = Enum.MeshType.FileMesh;
- Name = "Mesh";
- MeshType = Enum.MeshType.Sphere;
- Scale = Vector3.new(1, 1, 1);
- Parent = cover;
- }
- local coverweld = Create("Weld") {
- Part0 = cover;
- Part1 = Head;
- C0 = CFrame.new(0,-0.4,0);
- Parent = cover;
- }
- H.Died:Connect(function()
- FixCharacter(true)
- end)
- FixCharacter = function(includeHats)
- H.Parent = nil
- H.MaxHealth = 500
- H.Health = H.MaxHealth
- H.Parent = C
- RootJ.Parent = Root
- Root.Parent = C
- LARM.Parent = C
- RARM.Parent = C
- RLEG.Parent = C
- LLEG.Parent = C
- Head.Parent = C
- Torso.Parent = C
- Neck.Parent = Torso
- RA.Parent = Torso
- LA.Parent = Torso
- RL.Parent = Torso
- LL.Parent = Torso
- if includeHats == true then
- cover.Parent = C
- coverweld.Parent = cover
- pumkin.Parent = C
- pumkinweld.Parent = pumkin
- end
- end
- -------- BIG MISC ----------------
- -- Slay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement