Advertisement
HenloMyDude

thrilled

Jan 25th, 2020
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.96 KB | None | 0 0
  1. ---------------------------------
  2. -- /--// SlayKillerX66 //--\ --
  3. ---------------------------------
  4.  
  5. warn'thrill by SlayKillerX66. non require by youngmacka123. skids yall can use this if u want since centurion is leaked on toolbox'
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  8. local RealPlayer = Player
  9. 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'
  10.  
  11. local Player = owner
  12. local Mouse = Player:GetMouse()
  13. local WALKSPEED = 32
  14. local plr = Player
  15. local C = plr.Character
  16. local H = C.Humanoid
  17. local ffc=function(a,b)return a:FindFirstChild(b) end
  18. local DebrisService = game:GetService('Debris')
  19. local LARM = C:WaitForChild("Left Arm")
  20. local RARM = C:WaitForChild("Right Arm")
  21. local LLEG = C:WaitForChild("Left Leg")
  22. local RLEG = C:WaitForChild("Right Leg")
  23. local Head = C.Head
  24. local Torso = C.Torso
  25. local Neck = Torso.Neck
  26. local Root = C.HumanoidRootPart
  27. local RootJ = Root.RootJoint
  28. local speed = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local velocity = Root.Velocity.y
  30. local Animation = "Idle"
  31. local rad = math.rad
  32. local CURRENTMUSIC = 1524659810
  33. local touch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
  34. (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 4), C)
  35. local neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
  36. (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), C)
  37. local a = 0
  38. local turn = true
  39. local sit = false
  40. local cdMODE = false
  41. local attack = false
  42. local MODE = nil
  43. local WHOOSH = nil
  44. local PUNCH = nil
  45. local MODECOLOUR = nil
  46. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  47. local RootCF = CFrame.Angles(-1.57, 0, 3.14)
  48. local RHCF = CFrame.Angles(0, 1.6, 0)
  49. local LHCF = CFrame.Angles(0, -1.6, 0)
  50. local function GetNearbyTorsos(FromPart,range,ignore) -- Detects both r15 and r6
  51. local Torsos = {}
  52. for x=1,#workspace:GetChildren() do
  53. local xj = workspace:GetChildren()
  54. local cc = range
  55. local fromPoint = FromPart
  56. if xj[x]:IsA('Model') and (xj[x].Name ~= (ignore.Name)) then
  57. if xj[x]:FindFirstChild('Torso') then
  58. local perfectTorso = nil
  59. if (fromPoint.Position - xj[x]:FindFirstChild('Torso').Position).magnitude < cc then
  60. local perfectTorso = xj[x]:FindFirstChild('Torso')
  61. table.insert(Torsos, perfectTorso)
  62. end
  63. elseif xj[x]:FindFirstChild('UpperTorso') then
  64. local perfectTorso = nil
  65. if (fromPoint.Position - xj[x]:FindFirstChild('UpperTorso').Position).magnitude < cc then
  66. local perfectTorso = xj[x]:FindFirstChild('UpperTorso')
  67. table.insert(Torsos, perfectTorso)
  68. end
  69. end
  70. end
  71. end
  72. return Torsos
  73. end
  74. local function DamageFromList(list,takedamage,gui,ammount)
  75. local EgibleParts = list
  76. if EgibleParts[1] ~= nil then
  77. for i=1,#EgibleParts do
  78. if EgibleParts[i] and EgibleParts[i].Parent and EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid') then
  79. EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(takedamage)
  80. if gui ~= nil and gui == true then
  81. WhenHit(EgibleParts[i].Parent:FindFirstChild('Torso'),ammount,'')
  82. end
  83. end
  84. end
  85. end
  86. end
  87. local function HealFromList(list,heal)
  88. local EgibleParts = list
  89. if EgibleParts[1] ~= nil then
  90. for i=1,#EgibleParts do
  91. if EgibleParts[i] and EgibleParts[i].Parent and EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid') then
  92. local hum = EgibleParts[i].Parent:FindFirstChildOfClass('Humanoid')
  93. hum.Health = hum.Health + heal
  94. end
  95. end
  96. end
  97. end
  98.  
  99. CI = {
  100. Sound = {
  101. Create = function(id, parent, volume, pitch, play, name, loop, debre, time, position)
  102. spawn(function() pcall(function()
  103. local sound = Instance.new("Sound", parent or workspace)
  104. sound.Volume = volume or 0.5
  105. sound.Pitch = pitch or 1
  106. sound.SoundId = id or 0
  107. sound.TimePosition = position or 0
  108. sound.Looped = loop or false
  109. sound.Name = name or "Sound"
  110. if play == true then sound:play()end
  111. if debre == true then
  112. game:GetService("Debris"):AddItem(sound,time or 5)end
  113. return sound
  114. end)
  115. end)
  116. end}}
  117.  
  118. local swait = function()
  119. game:GetService('RunService').Stepped:wait(0)
  120. end
  121.  
  122. local hh = (C['Right Leg'].Size.Y+C.HumanoidRootPart.Size.Y/2)
  123. local smokepart = Instance.new('Part',Root)
  124. smokepart.Size = Vector3.new(0.5,0,1.5)
  125. smokepart.CanCollide = false
  126. smokepart.Transparency = 1
  127. local skpartweld = Instance.new('Weld',smokepart)
  128. skpartweld.Part0 = smokepart
  129. skpartweld.Part1 = Root
  130. skpartweld.C0 = CFrame.new(0,hh,0)
  131. local rK = false
  132. local DBT = false
  133. local smokt = Instance.new("ParticleEmitter")
  134. smokt.Acceleration = Vector3.new(0, 2.5, 0)
  135. smokt.Speed = NumberRange.new(1)
  136. smokt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 1.5)})
  137. smokt.SpreadAngle = Vector2.new(100, 100)
  138. smokt.Lifetime = NumberRange.new(1)
  139. 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)})
  140. smokt.Drag = 1
  141. smokt.Color = ColorSequence.new(Color3.new(0.737255, 0.737255, 0.737255), Color3.new(1, 1, 1))
  142. smokt.RotSpeed = NumberRange.new(10)
  143. smokt.Texture = "http://www.roblox.com/asset/?id=2263365802"
  144. smokt.Parent = smokepart
  145. smokt.Enabled = false
  146. function Land(spe)
  147. spawn(function()
  148. if DBT == false and attack == true and spe < -30 and rK == false then
  149. DBT = true
  150. local NORMAL = H.WalkSpeed
  151. H.WalkSpeed = H.WalkSpeed / 2
  152. H.JumpPower = 0
  153. CI.Sound.Create('rbxassetid://268933900',Torso,10,1,true,'Landing',false,true,1,0)
  154. smokt.Enabled = true
  155. for i=0,1,0.15 do swait()
  156. 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)
  157. 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)
  158. 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)
  159. 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)
  160. RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 0.1, -0.6) * CFrame.Angles(rad(10), rad(0), rad(5)), .3)
  161. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10), rad(0), rad(0)), .3)
  162. end
  163. attack = false
  164. spawn(function()
  165. wait(0.1)
  166. H.WalkSpeed = NORMAL
  167. H.JumpPower = 50
  168. DBT = false
  169. smokt.Enabled = false
  170. end)
  171. else
  172. attack = false
  173. end
  174. end)
  175. end
  176.  
  177. function CreateShake(RepeatedFor,OffsetDebounce)
  178. spawn(function()
  179. local Camera = workspace.CurrentCamera
  180. Camera.CameraType = 'Scriptable'
  181. for i=1,RepeatedFor do
  182. local backframe = Camera.CFrame
  183. Camera.CFrame = Camera.CFrame * CFrame.new(math.random()*OffsetDebounce,
  184. math.random()*OffsetDebounce,
  185. math.random()*OffsetDebounce)
  186. swait()
  187. Camera.CFrame = backframe
  188. end
  189. Camera.CameraType = 'Custom'
  190. Camera.CameraSubject = plr.Character:FindFirstChildOfClass('Humanoid')
  191. end)
  192. end
  193.  
  194. function ParticleEffects(num, parent,brickcolor)
  195. if num == 1 then
  196. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  197. ParticleEmitter0.Name = "Charge"
  198. ParticleEmitter0.Parent = parent
  199. ParticleEmitter0.Speed = NumberRange.new(50, 50)
  200. ParticleEmitter0.Rotation = NumberRange.new(37, 999)
  201. ParticleEmitter0.SpreadAngle = Vector2.new(-360,360)
  202. ParticleEmitter0.Color = ColorSequence.new((brickcolor).Color,Color3.new(1, 1, 1))
  203. ParticleEmitter0.LightEmission = 1
  204. ParticleEmitter0.Texture = "rbxassetid://1084976679"
  205. ParticleEmitter0.Transparency = NumberSequence.new(1,0,0.5,1)
  206. ParticleEmitter0.Size = NumberSequence.new(6.875,0)
  207. ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
  208. ParticleEmitter0.Rate = 1000
  209. return ParticleEmitter0
  210. elseif num == 2 then
  211. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  212. ParticleEmitter0.Name = "Rays"
  213. ParticleEmitter0.Parent = parent
  214. ParticleEmitter0.Speed = NumberRange.new(0, 0)
  215. ParticleEmitter0.Color = ColorSequence.new((brickcolor).Color,Color3.new(0,0,0))
  216. ParticleEmitter0.Texture = "rbxassetid://459811994"
  217. ParticleEmitter0.Transparency = NumberSequence.new(0,1)
  218. ParticleEmitter0.ZOffset = 1
  219. ParticleEmitter0.Size = NumberSequence.new(0,10)
  220. ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
  221. ParticleEmitter0.LockedToPart = true
  222. ParticleEmitter0.Rate = 2
  223. ParticleEmitter0.RotSpeed = NumberRange.new(-100, -100)
  224. return ParticleEmitter0
  225. elseif num == 3 then
  226. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  227. ParticleEmitter0.Name = "PurpleFire"
  228. ParticleEmitter0.Parent = parent
  229. ParticleEmitter0.Speed = NumberRange.new(6, 10)
  230. ParticleEmitter0.Color = ColorSequence.new(brickcolor.Color,brickcolor.Color)
  231. ParticleEmitter0.LightEmission = 1
  232. ParticleEmitter0.Rate = 1000
  233. ParticleEmitter0.SpreadAngle = Vector2.new(50,50)
  234. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=348467696"
  235. ParticleEmitter0.Transparency = NumberSequence.new(0.86874997615814,0.47499999403954,1)
  236. ParticleEmitter0.Size = NumberSequence.new(2.0764999389648,0)
  237. ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
  238. return ParticleEmitter0
  239. elseif num == 4 then
  240. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  241. ParticleEmitter0.Name = "Poison"
  242. ParticleEmitter0.Parent = parent
  243. ParticleEmitter0.Speed = NumberRange.new(0.5, 0.5)
  244. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  245. ParticleEmitter0.Color = ColorSequence.new(brickcolor.Color,Color3.new(1, 1, 1))
  246. ParticleEmitter0.LightEmission = 0.40000000596046
  247. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=243664672"
  248. ParticleEmitter0.Transparency = NumberSequence.new(1,0.72500002384186,0.85000002384186,1)
  249. ParticleEmitter0.ZOffset = 2
  250. ParticleEmitter0.Size = NumberSequence.new(50,40.625,55.375,75.0625,76.3125)
  251. ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.6)
  252. ParticleEmitter0.Rate = 1000
  253. ParticleEmitter0.RotSpeed = NumberRange.new(-200, 200)
  254. ParticleEmitter0.SpreadAngle = Vector2.new(100, 100)
  255. ParticleEmitter0.VelocitySpread = 100
  256. return ParticleEmitter0
  257. end
  258. end
  259.  
  260. Sphere = function(parent,size,cf,bcol)
  261. local v3 = Vector3.new
  262. local ins = Instance.new
  263. local sp = ins('Part') sp.Size = size
  264. sp.Transparency = 1 sp.Anchored = true
  265. sp.CanCollide = false sp.Name = 'Effect'
  266. sp.Material = Enum.Material.Neon
  267. sp.BrickColor = bcol sp.CFrame = cf
  268. local mesls = ins("SpecialMesh",sp)
  269. mesls.Scale = v3(0.8, 0.8, 0.8)
  270. mesls.MeshType = Enum.MeshType.Sphere
  271. sp.Parent = parent
  272. return sp end
  273. Ring = function(parent,size,cf,bcol)
  274. local v3 = Vector3.new
  275. local ins = Instance.new
  276. local sp = ins('Part')sp.Size = size
  277. sp.Transparency = 1;sp.Anchored = true
  278. sp.CanCollide = false;sp.Name = 'Effect'
  279. sp.Material = Enum.Material.Pebble;sp.BrickColor = bcol
  280. sp.CFrame = cf
  281. local mesls = ins("SpecialMesh",sp)
  282. mesls.Scale = Vector3.new(1,1,1)
  283. mesls.MeshId = 'rbxassetid://3270017'
  284. sp.Parent = parent
  285. return sp end
  286.  
  287. local rootgyro = Instance.new("BodyGyro",C)
  288. rootgyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  289. rootgyro.P = 10000
  290. game:GetService("RunService").Stepped:Connect(function()
  291. if turn == true then rootgyro.Parent = Root
  292. rootgyro.CFrame =CFrame.Angles(0,math.atan2(Root.CFrame.X-Mouse.Hit.X,Root.CFrame.Z-Mouse.Hit.Z),0)
  293. else
  294. rootgyro.Parent = C
  295. end
  296. end) swait()
  297. turn = false
  298.  
  299. function chatFunc(msg, timr, col, size)
  300. spawn(function()
  301. local namebillboard = Instance.new("BillboardGui")
  302. local textt = Instance.new("TextLabel")
  303. namebillboard.Size = UDim2.new(9/1.5, 0, 1, 0)
  304. namebillboard.Name = "NameBillboard"
  305. namebillboard.StudsOffset = Vector3.new(0, 0.75, 2)
  306. namebillboard.Parent = C.Head
  307. textt.TextWrapped = true
  308. textt.BackgroundTransparency = 1
  309. textt.BackgroundColor3 = Color3.new(1, 1, 1)
  310. textt.TextSize = size or 14
  311. textt.TextScaled = true
  312. textt.Font = Enum.Font.SciFi
  313. textt.Text = msg or ''
  314. textt.TextStrokeTransparency = 0
  315. textt.TextStrokeColor3 = Color3.new(1,1,1)
  316. textt.TextColor = col
  317. textt.Size = UDim2.new(1, 0, 1, 0)
  318. textt.Parent = namebillboard
  319. local RM = math.random(1,2)
  320. local DR = 0
  321. for i=1,timr do swait()
  322. if RM == 1 then
  323. DR = DR + 1
  324. namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.math.sin(DR/(timr/2.5)), 2)
  325. textt.TextStrokeTransparency = i/timr
  326. textt.TextTransparency = i/timr
  327. textt.Rotation = 7.5*math.cos(DR/(timr/2))
  328. elseif RM == 2 then
  329. DR = DR + 1
  330. namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.math.sin(DR/(timr/2.5)), 2)
  331. textt.TextStrokeTransparency = i/timr
  332. textt.TextTransparency = i/timr
  333. textt.Rotation = 7.5*-math.cos(DR/(timr/2))
  334. end
  335. end
  336. namebillboard:Destroy()
  337. end)
  338. end
  339.  
  340.  
  341. function newSpellEff(pos)
  342. local effect = Instance.new("Part")
  343. local decal = Instance.new("Decal")
  344. effect.Size = Vector3.new(5, 0.05, 5)
  345. effect.Name = "Effect"
  346. effect.Transparency = 1
  347. effect.TopSurface = Enum.SurfaceType.Smooth
  348. effect.BottomSurface = Enum.SurfaceType.Smooth
  349. effect.Parent = C
  350. effect.CFrame = pos
  351. effect.CanCollide = false
  352. effect.Anchored = true
  353. decal.Texture = "rbxassetid://884834173"
  354. decal.Face = Enum.NormalId.Top
  355. decal.Parent = effect
  356. return effect
  357. end
  358.  
  359. -------------------------------------------------] Joints
  360.  
  361. H = owner.Character.Humanoid
  362. C = owner.Character
  363. H.Animator:remove()
  364. C.Animate:remove()
  365. LL = Torso:WaitForChild("Left Hip")
  366. RL = Torso:WaitForChild("Right Hip")
  367. RA = Torso:WaitForChild("Right Shoulder")
  368. LA = Torso:WaitForChild("Left Shoulder")
  369. RL = Instance.new("Weld",Torso)
  370. RL.Name = "Right Hip"
  371. RL.Part0 = Torso
  372. RL.C0 = CFrame.new(0, 0, 0)
  373. RL.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(0,1.6,0)
  374. RL.Part1 = RLEG
  375. LL = Instance.new("Weld",Torso)
  376. LL.Name = "Left Hip"
  377. LL.Part0 = Torso
  378. LL.C0 = CFrame.new(0, 0, 0)
  379. LL.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(0,-1.6,0)
  380. LL.Part1 = LLEG
  381. RA = Instance.new("Weld",Torso)
  382. RA.Name = "Right Shoulder"
  383. RA.Part0 = Torso
  384. RA.C0 = CFrame.new(1.5, 0.5, 0)
  385. RA.C1 = CFrame.new(0, 0.5, 0)
  386. RA.Part1 = RARM
  387. LA = Instance.new("Weld",Torso)
  388. LA.Name = "Left Shoulder"
  389. LA.Part0 = Torso
  390. LA.C0 = CFrame.new(-1.5, 0.5, 0)
  391. LA.C1 = CFrame.new(0, 0.5, 0)
  392. LA.Part1 = LARM
  393. LL.C0 = LHCF * CFrame.new(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
  394. RL.C0 = RHCF * CFrame.new(0,-1,1)*CFrame.Angles(rad(0),rad(0),rad(0))
  395. H.WalkSpeed = WALKSPEED
  396.  
  397. --------- Misc ---------
  398.  
  399. local sound = Instance.new('Sound')
  400. sound.Parent = Torso
  401. sound.Looped = false
  402. sound.Volume = 5
  403. sound.Name = 'Footstep'
  404. sound.SoundId = 'rbxassetid://379483672' -- 833564121
  405. local kio = 0.12
  406. local tt = 0.12
  407.  
  408. --------- Key --------
  409. local walke = false
  410. local cycle = 1
  411. Mouse.Button1Down:Connect(function()
  412. if attack == false then
  413.  
  414. end
  415. end)
  416. local haltHit = false
  417. function WhenHit(hit,damage,extra)
  418. spawn(function()
  419. local lebel = Instance.new("BillboardGui")
  420. local lebeltext = Instance.new("TextBox")
  421. lebel.Size = UDim2.new(6, 0, 1, 0)
  422. lebel.Name = "Damage"
  423. lebel.StudsOffset = Vector3.new(0, 3, 2)
  424. lebel.Parent = hit
  425. lebeltext.TextWrapped = true
  426. lebeltext.BackgroundTransparency = 1
  427. lebeltext.BackgroundColor3 = Color3.new(1, 1, 1)
  428. lebeltext.TextSize = 14
  429. lebeltext.TextScaled = true
  430. lebeltext.Font = Enum.Font.Fantasy
  431. lebeltext.Text = damage .. extra
  432. lebeltext.TextStrokeTransparency = 0
  433. lebeltext.TextStrokeColor3 = Color3.new(0,0,0)
  434. lebeltext.TextColor = MODECOLOUR
  435. lebeltext.Size = UDim2.new(1, 0, 1, 0)
  436. lebeltext.Parent = lebel
  437. local ran = math.random(1,2)
  438. spawn(function()
  439. for i=0,1,0.05 do wait()
  440. lebeltext.TextTransparency = i
  441. lebeltext.TextStrokeTransparency = i
  442. end
  443. end)
  444. spawn(function()
  445. for i=0,5,0.1 do swait()
  446. if ran == 1 then
  447. lebel.StudsOffset = Vector3.new(0, 3+i, 2+ran/3+i/1.5)
  448. elseif ran == 2 then
  449. lebel.StudsOffset = Vector3.new(0, 3+i, 2+ran/3-i/1.5)
  450. end
  451. end
  452. lebel:Destroy()
  453. end)
  454. wait(0.3)
  455. haltHit = false
  456. end)
  457. end
  458. local dancing = false
  459. local djcooldown = 0.5
  460. local scsf = false
  461. Mouse.KeyDown:Connect(function(key)
  462. if key == 'e' and walke == false and attack == false then
  463.  
  464. elseif string.byte(string.lower(key)) == 115 and key ~= 's' and touch == nil and scsf == false then
  465. scsf = true
  466. spawn(function()
  467. attack = false
  468. local swes = 0
  469. for i=0,1,0.03 do swait() swes = swes + 0.35
  470. 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)
  471. 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)
  472. 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)
  473. 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)
  474. RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 2, 0.25) * CFrame.Angles(rad(5)+swes, rad(0), rad(5)), .3)
  475. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15), rad(0), rad(0)), .3)
  476. end
  477. attack = false
  478. end)
  479. local v = Instance.new('BodyVelocity',Root)
  480. v.Velocity = (Root.CFrame.UpVector + Root.CFrame.LookVector) * 50
  481. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  482. wait(1/5)
  483. v:Destroy()
  484. wait(djcooldown)
  485. scsf = false
  486. end
  487. end)
  488.  
  489. ----------------------
  490.  
  491.  
  492.  
  493. ----------------------
  494. ------ANIMATIONS------
  495. ----------------------
  496.  
  497. local idle2 = false
  498. spawn(function()
  499. while wait(1) do
  500. local t = math.random(0,9000)
  501. if t == 6 and speed < 2 and attack == false and walke == false then
  502. idle2 = true
  503. H.WalkSpeed = 0
  504. for i=0,1.4,0.02 do swait()
  505. if attack == true or walke == true then break end
  506.  
  507. end
  508. H.WalkSpeed = WALKSPEED
  509. idle2 = false
  510. end
  511. end
  512. end)
  513.  
  514. VOLUM = 4
  515. pliyo = true
  516. mouse = Player:GetMouse()
  517. mouse.KeyDown:connect(function(key)
  518. if key == "m" then
  519. if pliyo then
  520. VOLUM = 0
  521. else
  522. VOLUM = 4
  523. end
  524. end
  525. end)
  526. game:GetService('RunService').Stepped:Connect(function()
  527. if Torso:FindFirstChild('Neck') then
  528. speed = (Root.Velocity * Vector3.new(1, 0, 1)).magnitude
  529. velocity = Root.Velocity.y
  530. touch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
  531. (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 4), C)
  532. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(Root.Position,
  533. (CFrame.new(Root.Position, Root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), C)
  534. a = a + 1
  535. local point1 = H.MoveDirection*Root.CFrame.LookVector
  536. local point2 = H.MoveDirection*Root.CFrame.RightVector
  537. local rotation1 = point1.X+point1.Z
  538. local rotation2 = point2.X+point2.Z
  539. if speed > 0.5 and Animation == 'Walk' then
  540. local ray = Ray.new(
  541. Torso.Position,
  542. Vector3.new(0, -4, 0))
  543. local psart, endPoint = workspace:FindPartOnRay(ray, C)
  544. if kio <= 0.01 then
  545. if psart and psart.Material == Enum.Material.Grass or psart and psart.Material == Enum.Material.Sand then
  546. sound.SoundId = 'rbxassetid://267882764'
  547. sound:Play()
  548. else
  549. sound.SoundId = 'rbxassetid://379483672'
  550. sound:Play()
  551. end
  552. kio = tt
  553. end
  554. kio = kio - 0.01
  555. else
  556. if kio <= 0.01 then
  557. kio = tt
  558. end
  559. kio = kio - 0.01
  560. sound:Stop()
  561. end
  562. if not Root:FindFirstChild('MUSIC') then
  563. MUSIC = Instance.new('Sound',Root)
  564. MUSIC.SoundId = 'rbxassetid://'.. CURRENTMUSIC
  565. MUSIC.Name = 'MUSIC'
  566. MUSIC.Volume = VOLUM
  567. MUSIC.EmitterSize = 10
  568. MUSIC.Looped = true
  569. MUSIC:Play()
  570. end
  571. if H.Sit == true then
  572. Animation = "Sit"
  573. if attack == false then
  574. 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)
  575. 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)
  576. RA.C0 = RA.C0:lerp(CFrame.new(1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(10)),.1)
  577. LA.C0 = LA.C0:lerp(CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(rad(0),rad(0),rad(-10)),.1)
  578. 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)
  579. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(3 * math.sin(a/25)), rad(0), rad(0)), .1)
  580. end
  581. elseif Root.Velocity.y > 1 and touch == nil and walke == false and idle2 == false then
  582. Animation = "Jump"
  583. if attack == false then
  584. 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)
  585. 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)
  586. 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)
  587. 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)
  588. RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 0, 0.15) * CFrame.Angles(rad(-15), rad(0), rad(0)), .1)
  589. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(-15), rad(0), rad(0)), .1)
  590. end
  591. elseif Root.Velocity.y < -1 and touch == nil and walke == false and idle2 == false then
  592. Animation = "Fall"
  593. if neartouch ~= nil and attack == false then
  594. attack = true
  595. Land(Root.Velocity.y)
  596. end
  597. if attack == false then
  598. 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)
  599. 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)
  600. 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)
  601. 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)
  602. RootJ.C0 = RootJ.C0:lerp(RootCF * CFrame.new(0, 0, -0.25) * CFrame.Angles(rad(10), rad(0), rad(0)), .1)
  603. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(15), rad(0), rad(0)), .1)
  604. end
  605.  
  606. elseif speed < 1 and touch ~= nil and sit == false and walke == false and idle2 == false then
  607. Animation = "Idle"
  608. if attack == false then
  609. 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)
  610. 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)
  611. 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)
  612. 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)
  613. 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)
  614. Torso.Neck.C0 = Torso.Neck.C0:lerp(NeckCF * CFrame.Angles(rad(10)+rad(-2.5 * math.sin(a/25)), rad(0), rad(20)), .2)
  615. end
  616. elseif speed > 1 and touch ~= nil and touch.Name ~= 'Effect' and walke == false and idle2 == false then
  617. Animation = "Walk"
  618. if attack == false then
  619. 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)
  620. 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)
  621. 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)
  622. 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)
  623. 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)
  624. 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)
  625. end
  626. elseif speed > 1 and touch ~= nil and touch.Name ~= 'Effect' and walke == true and idle2 == false then
  627. 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)
  628. 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)
  629. 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)
  630. elseif speed > 18 and touch ~= nil and touch.Name ~= 'Effect' and walke == false and idle2 == false then
  631. Animation = "Run"
  632. if attack == false then
  633.  
  634. end
  635. end
  636. end
  637. end)
  638.  
  639.  
  640. -------- BIG MISC ----------------
  641.  
  642. -- Slay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement