Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------
- -- /--// SlayKillerX66 //--\ --
- ---------------------------------
- warn'thrill 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 thrill'
- local Player = owner
- local Mouse = Player:GetMouse()
- local WALKSPEED = 32
- 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 = 1524659810
- 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 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 = CFrame.new(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.15 do swait()
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(0.11,-0.4,1) * CFrame.Angles(rad(-5),rad(0),rad(22)+rad(2.5 * math.sin(a/10))),.3)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(-0.16,-0.4,1) * CFrame.Angles(rad(-5),rad(0),rad(-22)+rad(2.5 * math.sin(a/10))),.3)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.81, 0) * CFrame.Angles(rad(14),rad(20),rad(25)+rad(5 * math.sin(a/10))),.3)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(rad(12.3),rad(-20),rad(-25)+rad(5 * math.sin(a/10))),.3)
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 0.1, -0.6) * CFrame.Angles(rad(10), rad(0), rad(5)), .3)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10), rad(0), rad(0)), .3)
- end
- attack = false
- spawn(function()
- wait(0.1)
- H.WalkSpeed = NORMAL
- H.JumpPower = 50
- 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 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").Stepped:Connect(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 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
- H = owner.Character.Humanoid
- C = owner.Character
- H.Animator:remove()
- C.Animate:remove()
- 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 = CFrame.new(0, 0, 0)
- RL.C1 = CFrame.new(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 = CFrame.new(0, 0, 0)
- LL.C1 = CFrame.new(-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 = CFrame.new(1.5, 0.5, 0)
- RA.C1 = CFrame.new(0, 0.5, 0)
- RA.Part1 = RARM
- LA = Instance.new("Weld",Torso)
- LA.Name = "Left Shoulder"
- LA.Part0 = Torso
- LA.C0 = CFrame.new(-1.5, 0.5, 0)
- LA.C1 = CFrame.new(0, 0.5, 0)
- LA.Part1 = LARM
- LL.C0 = LHCF * CFrame.new(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
- RL.C0 = RHCF * CFrame.new(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
- H.WalkSpeed = WALKSPEED
- --------- 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.12
- local tt = 0.12
- --------- 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 = MODECOLOUR
- 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 wait()
- 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 dancing = false
- local djcooldown = 0.5
- local scsf = false
- Mouse.KeyDown:Connect(function(key)
- if key == 'e' and walke == false and attack == false then
- elseif string.byte(string.lower(key)) == 115 and key ~= 's' and touch == nil and scsf == false then
- scsf = true
- spawn(function()
- attack = false
- local swes = 0
- for i=0,1,0.03 do swait() swes = swes + 0.35
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(0.4,-0.4,1) * CFrame.Angles(rad(-5),rad(0),rad(-25)+rad(2.5 * math.sin(a/10))),.3)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(-0.4,-0.4,1) * CFrame.Angles(rad(-5),rad(0),rad(25)+rad(2.5 * math.sin(a/10))),.3)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.81, 0) * CFrame.Angles(rad(30),rad(20),rad(5)+rad(5 * math.sin(a/10))),.3)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(rad(30),rad(-20),rad(-5)+rad(5 * math.sin(a/10))),.3)
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 2, 0.25) * CFrame.Angles(rad(5)+swes, rad(0), rad(5)), .3)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15), rad(0), rad(0)), .3)
- end
- attack = false
- end)
- local v = Instance.new('BodyVelocity',Root)
- v.Velocity = (Root.CFrame.UpVector + Root.CFrame.LookVector) * 50
- v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1/5)
- v:Destroy()
- wait(djcooldown)
- scsf = false
- end
- end)
- ----------------------
- ----------------------
- ------ANIMATIONS------
- ----------------------
- local idle2 = false
- spawn(function()
- while wait(1) do
- local t = math.random(0,9000)
- if t == 6 and speed < 2 and attack == false and walke == false then
- idle2 = true
- H.WalkSpeed = 0
- for i=0,1.4,0.02 do swait()
- if attack == true or walke == true then break end
- end
- H.WalkSpeed = WALKSPEED
- idle2 = false
- end
- end
- end)
- VOLUM = 4
- pliyo = true
- mouse = Player:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "m" then
- if pliyo then
- VOLUM = 0
- else
- VOLUM = 4
- end
- end
- end)
- game:GetService('RunService').Stepped:Connect(function()
- if Torso:FindFirstChild('Neck') then
- 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), C)
- neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
- (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), 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 > 0.5 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 and 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 = VOLUM
- 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 * CFrame.new(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 * CFrame.new(0,-1+rad(2.5 * math.cos(a/25)),1) * CFrame.Angles(rad(0),rad(5),rad(-90)),.1)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(10)),.1)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(-10)),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 0, 0) * CFrame.new(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 and idle2 == false then
- Animation = "Jump"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(0.35,-0.75,1) * CFrame.Angles(rad(-10),rad(0),rad(2)+rad(2.5 * math.sin(a/10))),.1)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(-0.4,-0.1,1) * CFrame.Angles(rad(-10),rad(0),rad(5)+rad(2.5 * math.sin(a/10))),.1)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.5, 0) * CFrame.Angles(rad(50),rad(40),rad(45)+rad(2 * math.sin(a/10))),.1)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(rad(50),rad(-40),rad(-45)+rad(2 * math.sin(a/10))),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(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 and idle2 == 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 * CFrame.new(0.1,-0.8,1) * CFrame.Angles(rad(-10),rad(0),rad(25)+rad(2.5 * math.sin(a/10))),.1)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(-0.12,-0.8,1) * CFrame.Angles(rad(-10),rad(0),rad(-25)+rad(2.5 * math.sin(a/10))),.1)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.81, 0) * CFrame.Angles(rad(30),rad(20),rad(60)+rad(5 * math.sin(a/10))),.1)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(rad(30),rad(-20),rad(-63)+rad(5 * math.sin(a/10))),.1)
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(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 and idle2 == false then
- Animation = "Idle"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5),rad(0),rad(0)),.2)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(0,rad(-2 * math.cos(a/25))-0.95,1)*CFrame.Angles(rad(-5),rad(0),rad(0)),.2)
- RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(15),rad(10)),.2)
- LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.55 - rad(-2.5 * math.cos(a/25)), 0) * CFrame.Angles(rad(0),rad(-15),rad(-10)),.2)
- RootJ.C0 = RootJ.C0:lerp(RootCF *CFrame.new(rad(0),rad(0),-0.05)* CFrame.new(0, 0, rad(2 * math.cos(a/25))) * CFrame.Angles(rad(0), rad(0), rad(-20)), .2)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10)+rad(-2.5 * math.sin(a/25)), rad(0), rad(20)), .2)
- end
- elseif speed > 1 and touch ~= nil and touch.Name ~= 'Effect' and walke == false and idle2 == false then
- Animation = "Walk"
- if attack == false then
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(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 * CFrame.new(-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(CFrame.new(-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(CFrame.new(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 * CFrame.new(0,0,-0.2) * CFrame.new(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
- elseif speed > 1 and touch ~= nil and touch.Name ~= 'Effect' and walke == true and idle2 == false then
- RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0,0,-0.16) * CFrame.new(0, -0.2, rad(5 * math.cos(a/3))) * CFrame.Angles(rad(5), rad(0) + Root.RotVelocity.Y / 50 ,rad(-2*math.sin(a/6))),.24)
- RL.C0 = RL.C0:lerp(RHCF * CFrame.new(0.05 + 0.225*math.cos(a/6),-0.7+0.3 * math.cos(a/6)-rad(3-6*math.sin(a/6))-Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/6)))*CFrame.Angles(rad(-2),rad(0)+Root.RotVelocity.Y / 30,rad(-7)+rad(35*math.sin(a/6))),.16)
- LL.C0 = LL.C0:lerp(LHCF * CFrame.new(-0.05 + 0.225*math.cos(a/6),-0.7-0.3 * math.cos(a/6)-rad(3+6*math.sin(a/6))+Root.RotVelocity.Y / 60,1+rad(1*math.cos(a/6)))*CFrame.Angles(rad(-2),rad(0)+Root.RotVelocity.Y / 30,rad(7)+rad(35*math.sin(a/6))),.16)
- elseif speed > 18 and touch ~= nil and touch.Name ~= 'Effect' and walke == false and idle2 == false then
- Animation = "Run"
- if attack == false then
- end
- end
- end
- end)
- -------- BIG MISC ----------------
- -- Slay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement