Advertisement
MrSlakyx

roblox

May 12th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.10 KB | None | 0 0
  1. warn("Made by Subaru112.")
  2. print("Enjoy!")
  3.  
  4. script:ClearAllChildren()
  5.  
  6. -------------------------------------------------------------------------------------------------------------------
  7. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  8. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  9. do
  10. print("FE Compatibility code by Mokiros")
  11. script.Parent = Player.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent and t.Function then
  37. t.Function(...)
  38. end
  39. end
  40. m.TrigEvent = te
  41. UIS.TrigEvent = te
  42.  
  43. Event.OnServerEvent:Connect(function(plr,io)
  44. if plr~=Player then return end
  45. if io.isMouse then
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. else
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76.  
  77. local Mouse = Player:GetMouse()
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  88. end
  89. -------------------------------------------------------------------------------------------------------------------
  90.  
  91. local mus = Instance.new("Sound",owner.Character)
  92. game.Debris:AddItem(mus,0.05)
  93.  
  94. ArtificialHB = Instance.new("BindableEvent", script)
  95. ArtificialHB.Name = "Heartbeat"
  96. script:WaitForChild("Heartbeat")
  97. frame = 0.03333333333333
  98. tf = 0
  99. allowframeloss = false
  100. tossremainder = false
  101. lastframe = tick()
  102. script.Heartbeat:Fire()
  103. game:GetService("RunService").Heartbeat:connect(function(s, p)
  104. tf = tf + s
  105. if tf >= frame then
  106. if allowframeloss then
  107. script.Heartbeat:Fire()
  108. lastframe = tick()
  109. else
  110. for i = 1, math.floor(tf / frame) do
  111. script.Heartbeat:Fire()
  112. end
  113. lastframe = tick()
  114. end
  115. if tossremainder then
  116. tf = 0
  117. else
  118. tf = tf - frame * math.floor(tf / frame)
  119. end
  120. end
  121. end)
  122.  
  123. function clerp(a, b, t)
  124. return a:lerp(b, t)
  125. end
  126.  
  127. function swait(num)
  128. if num == 0 or num == nil then
  129. ArtificialHB.Event:wait()
  130. else
  131. for i = 0, num do
  132. ArtificialHB.Event:wait()
  133. end
  134. end
  135. end
  136.  
  137. function rayCast(Position, Direction, Range, Ignore)
  138. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  139. end
  140.  
  141. local sine = 0
  142. local change = 1
  143.  
  144. local plr = owner
  145. local char = plr.Character
  146. local chara = char
  147. angles = CFrame.Angles
  148. Rad = math.rad
  149. local RootPart = chara.HumanoidRootPart
  150. local RootJoint = RootPart.RootJoint
  151. local Create = LoadLibrary("RbxUtility").Create
  152. local debby = game:GetService("Debris")
  153. local Humanoid = char:FindFirstChildOfClass("Humanoid")
  154. Humanoid.WalkSpeed = 16
  155. Humanoid.Animator.Parent = nil
  156. chara.Animate.Parent = nil
  157. local mode = 'Insane'
  158. local SongID = 1470848774
  159. local attack = false
  160. local Anim = 'Idle'
  161. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  162. local velocity = RootPart.Velocity.y
  163. local found = false
  164. Humanoid.MaxHealth = 100000000000000000000000000
  165. local Torso,Head,LeftArm,RightArm,LeftLeg,RightLeg,Root = char.Torso,char.Head,char["Left Arm"],char["Right Arm"],char["Left Leg"],char["Right Leg"],char.HumanoidRootPart
  166. local ff = Instance.new("ForceField",char)
  167. ff.Visible = false
  168.  
  169. Humanoid.BreakJointsOnDeath = false
  170.  
  171. EffectModel = Create("Model"){
  172. Parent = chara,
  173. Name = "Effects",
  174. }
  175.  
  176. Effects = {
  177.  
  178. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  179. local p = Instance.new("Part",EffectModel)
  180. p.BrickColor = BrickColor.new(colour)
  181. p.Size = partsize
  182. p.Anchored = true
  183. p.CanCollide = false
  184. p.Material = matr
  185. p.CFrame = cf
  186. if inverse == true then
  187. p.Transparency = 1
  188. else
  189. p.Transparency = 0
  190. end
  191. local m = Instance.new("BlockMesh",p)
  192. m.Scale = meshstart
  193. coroutine.wrap(function()
  194. for i=0,1,factor do
  195. swait()
  196. if inverse == true then
  197. p.Transparency = 1-i
  198. else
  199. p.Transparency = i
  200. end
  201. m.Scale = m.Scale + meshadd
  202. if spin == true then
  203. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  204. end
  205. end
  206. p:Destroy()
  207. end)()
  208. return p
  209. end,
  210.  
  211. }
  212.  
  213. Head:FindFirstChildOfClass("Decal"):Destroy()
  214.  
  215. local newMotor = function(part0, part1, c0, c1)
  216. local w = Create('Motor'){
  217. Parent = part0,
  218. Part0 = part0,
  219. Part1 = part1,
  220. C0 = c0,
  221. C1 = c1,
  222. }
  223. return w
  224. end
  225.  
  226. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  227. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  228. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  229. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  230. RootJoint.C1 = CFrame.new(0, 0, 0)
  231. RootJoint.C0 = CFrame.new(0, 0, 0)
  232. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  233. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  234.  
  235. local rarmc1 = RW.C1
  236. local larmc1 = LW.C1
  237. local rlegc1 = RH.C1
  238. local llegc1 = LH.C1
  239.  
  240. local resetc1 = false
  241.  
  242. function PlayAnimationFromTable(table, speed, bool)
  243. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  244. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  245. RW.C0 = clerp(RW.C0, table[3], speed)
  246. LW.C0 = clerp(LW.C0, table[4], speed)
  247. RH.C0 = clerp(RH.C0, table[5], speed)
  248. LH.C0 = clerp(LH.C0, table[6], speed)
  249. if bool == true then
  250. if resetc1 == false then
  251. resetc1 = true
  252. RootJoint.C1 = RootJoint.C1
  253. Torso.Neck.C1 = Torso.Neck.C1
  254. RW.C1 = rarmc1
  255. LW.C1 = larmc1
  256. RH.C1 = rlegc1
  257. LH.C1 = llegc1
  258. end
  259. end
  260. end
  261.  
  262. local gun = Instance.new("Part",char)
  263. gun.Size = Vector3.new(0.409, 1.641, 4.462)
  264. gun.Name = "Kill"
  265. gun.CanCollide = false
  266. gun.BrickColor = BrickColor.new("Really black")
  267. gun.Transparency = 0
  268. local m = Instance.new("SpecialMesh",gun)
  269. m.MeshType = "FileMesh"
  270. m.Scale = Vector3.new(0.012, 0.012, 0.012)
  271. m.MeshId = "rbxassetid://623102664"
  272. local w1 = Instance.new("Weld",char)
  273. w1.Part0 = RightArm
  274. w1.Part1 = gun
  275. w1.C0 = CFrame.new(12.3645887, 0, -1.1920929e-06, 0.939692497, 0, 0.342019767, -3.55271368e-15, 1, 0, -0.342020035, 0, 0.939692438)
  276. w1.C1 = CFrame.new(-3.99362731, 0.0831095576, 12.0897989, -0.163175926, -0.98480773, -0.0593911298, 0.342020124, -4.37113883e-08, -0.939692616, 0.92541647, -0.173648193, 0.33682403)
  277.  
  278. local ShotPt = Instance.new("Part",char)
  279. ShotPt.Size = Vector3.new(1, 1, 1)
  280. ShotPt.Name = "PT"
  281. ShotPt.CanCollide = false
  282. ShotPt.Transparency = 1
  283.  
  284. local w2 = Instance.new("Weld",char)
  285. w2.Part0 = gun
  286. w2.Part1 = ShotPt
  287. w2.C0 = CFrame.new(-0.900000095, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  288. w2.C1 = CFrame.new(-1.52383852, 0.265500069, -0.012091063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289.  
  290. -- CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672) --
  291.  
  292. function shoot(banish)
  293. if banish:FindFirstChild("Torso") or banish:FindFirstChild("UpperTorso") then
  294. attack = true
  295. Humanoid.WalkSpeed = 2
  296. local tors = banish:FindFirstChild("Torso") or banish:FindFirstChild("UpperTorso")
  297. for i=0,1,.3 do
  298. swait()
  299. PlayAnimationFromTable({
  300. CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855),
  301. CFrame.new(0, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
  302. CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672),
  303. CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
  304. CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  305. CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  306. }, .5, false)
  307. end
  308. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
  309. Effects.Block(CFrame.new((ShotPt.Position + tors.Position)/2,tors.Position),Vector3.new(1,1,(ShotPt.Position - tors.Position).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Glass","Really blue",false,false,.1)
  310. Effects.Block(tors.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
  311. Banish(banish)
  312. wait(0.5)
  313. Humanoid.WalkSpeed = 16
  314. attack = false
  315.  
  316. elseif banish:FindFirstChild("Torso") == nil or banish:FindFirstChild("UpperTorso") == nil and banish ~= workspace then
  317.  
  318. attack = true
  319. Humanoid.WalkSpeed = 2
  320. for i=0,1,.3 do
  321. swait()
  322. PlayAnimationFromTable({
  323. CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855),
  324. CFrame.new(0, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
  325. CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672),
  326. CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
  327. CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  328. CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  329. }, .5, false)
  330. end
  331. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
  332. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Glass","Really blue",false,false,.1)
  333. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
  334. Banish2(banish)
  335. wait(0.5)
  336. Humanoid.WalkSpeed = 16
  337. attack = false
  338. end
  339. end
  340.  
  341. function GetDudesTorso(c)
  342. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  343. if torsy ~= nil then
  344. return torsy
  345. end
  346. end
  347.  
  348. Mouse.Button1Down:connect(function()
  349. if Mouse.Target and Mouse.Target.Parent then
  350. shoot(Mouse.Target.Parent)
  351. end
  352. end)
  353.  
  354. local TOBANISH = {}
  355.  
  356. function Banish(Banished)
  357. table.insert(TOBANISH,Banished.Name)
  358. goodbye(Banished.Name)
  359. Banished.Archivable = true
  360. local CLONE = Banished:Clone()
  361. Banished:Destroy()
  362. CLONE.Parent = EffectModel
  363. CLONE:BreakJoints()
  364. local MATERIALS = {"Glass","Neon"}
  365. for _, c in pairs(CLONE:GetDescendants()) do
  366. if c:IsA("BasePart") then
  367. c.Anchored = true
  368. c.Transparency = c.Transparency + 0.2
  369. c.Material = MATERIALS[math.random(1,2)]
  370. c.Color = Color3.new(0, 0, 0)
  371. if c.ClassName == "MeshPart" then
  372. c.TextureID = ""
  373. end
  374. if c:FindFirstChildOfClass("SpecialMesh") then
  375. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  376. end
  377. if c:FindFirstChildOfClass("Decal") then
  378. c:FindFirstChildOfClass("Decal"):remove()
  379. end
  380. c.Name = "Banished"
  381. c.CanCollide = false
  382. else
  383. c:remove()
  384. end
  385. end
  386. local A = false
  387. for i = 1, 35 do
  388. if A == false then
  389. A = true
  390. elseif A == true then
  391. A = false
  392. end
  393. for _, c in pairs(CLONE:GetDescendants()) do
  394. if c:IsA("BasePart") then
  395. c.Anchored = true
  396. c.Material = MATERIALS[math.random(1,2)]
  397. c.Transparency = c.Transparency + 0.8/35
  398. if A == false then
  399. c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
  400. elseif A == true then
  401. c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
  402. end
  403. end
  404. end
  405. swait()
  406. end
  407. CLONE:remove()
  408. end
  409. function goodbye(Name)
  410. local MESSAGES = {"Goodbye ","Bye ","We don't need you ","You're banished "}
  411. warn(MESSAGES[math.random(1,#MESSAGES)]..Name..".")
  412. end
  413.  
  414. local TOBANISH2 = {}
  415.  
  416. function Banish2(Banished)
  417. if Banished ~= workspace then
  418. table.insert(TOBANISH2,Banished.Name)
  419. goodbye(Banished.Name)
  420. Banished.Archivable = true
  421. local CLONE = Banished:Clone()
  422. Banished:Destroy()
  423. CLONE.Parent = EffectModel
  424. if CLONE.ClassName ~= "Accessory" and CLONE.ClassName ~= "Hat" and CLONE.ClassName ~= "Tool" then
  425. CLONE:BreakJoints()
  426. end
  427. local MATERIALS = {"Glass","Neon"}
  428. for _, c in pairs(CLONE:GetDescendants()) do
  429. if c:IsA("BasePart") then
  430. c.Anchored = true
  431. c.Transparency = c.Transparency + 0.2
  432. c.Material = MATERIALS[math.random(1,2)]
  433. c.Color = Color3.new(0, 0, 0)
  434. if c.ClassName == "MeshPart" then
  435. c.TextureID = ""
  436. end
  437. if c:FindFirstChildOfClass("SpecialMesh") then
  438. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  439. end
  440. if c:FindFirstChildOfClass("Decal") then
  441. c:FindFirstChildOfClass("Decal"):remove()
  442. end
  443. c.Name = "Banished"
  444. c.CanCollide = false
  445. else
  446. c:remove()
  447. end
  448. end
  449. local A = false
  450. for i = 1, 35 do
  451. if A == false then
  452. A = true
  453. elseif A == true then
  454. A = false
  455. end
  456. for _, c in pairs(CLONE:GetDescendants()) do
  457. if c:IsA("BasePart") then
  458. c.Anchored = true
  459. c.Material = MATERIALS[math.random(1,2)]
  460. c.Transparency = c.Transparency + 0.8/35
  461. if A == false then
  462. c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
  463. elseif A == true then
  464. c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
  465. end
  466. end
  467. end
  468. swait()
  469. end
  470. CLONE:remove()
  471. end
  472. end
  473.  
  474. workspace.ChildAdded:connect(function(instance)
  475. for BANISH = 1, #TOBANISH do
  476. if TOBANISH[BANISH] ~= nil then
  477. if instance.Name == TOBANISH[BANISH] then
  478. coroutine.resume(coroutine.create(function()
  479. goodbye(instance.Name)
  480. instance:ClearAllChildren()
  481. game.Debris:AddItem(instance,0.0010)
  482. end))
  483. end
  484. end
  485. end
  486. end)
  487.  
  488. local song = 1
  489.  
  490. local trail = false
  491.  
  492. Mouse.KeyDown:connect(function(k)
  493. k = k:lower()
  494. if k=='e' then
  495. if song == 1 then
  496. song = 2
  497. SongID = 1600388782
  498. mus.TimePosition = 0
  499. elseif song == 2 then
  500. song = 1
  501. SongID = 1470848774
  502. mus.TimePosition = 0
  503. end
  504. elseif k=='q' then
  505. trail = not trail
  506. end
  507. end)
  508.  
  509. -- Animations
  510. while game:GetService("RunService").Heartbeat:Wait() do
  511. Humanoid.JumpPower = 50
  512. Humanoid.MaxHealth = 1000000000000000000000000000000
  513. Humanoid.Health = Humanoid.MaxHealth
  514. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  515. velocity = RootPart.Velocity.y
  516. sine = sine + change
  517. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  518. if RootPart.Velocity.y > 1 and hit == nil then
  519. Anim = "Jump"
  520. if attack == false then
  521. PlayAnimationFromTable({
  522. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  523. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  524. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  525. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  526. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  527. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  528. }, .3, false)
  529. end
  530. elseif RootPart.Velocity.y < -1 and hit == nil then
  531. Anim = "Fall"
  532. if attack == false then
  533. PlayAnimationFromTable({
  534. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  535. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  536. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  537. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  538. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  539. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  540. }, .3, false)
  541. end
  542. elseif Torsovelocity < 1 and hit ~= nil then
  543. Anim = "Idle"
  544. if attack == false then
  545. change = 1
  546. PlayAnimationFromTable({
  547. CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  548. CFrame.new(0, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
  549. CFrame.new(0.780210495, 0.194723606, 0.390228271, 0.642787576, 0.766044378, 0, -0.492403805, 0.413175821, 0.766044497, 0.586824119, -0.492403895, 0.642787516),
  550. CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
  551. CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  552. CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  553. }, .1, false)
  554.  
  555. local shake = math.random(1,10)
  556. if shake == 5 then
  557. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.4, -0.3, 1, -8.74227766e-08, 0, 0, 0, 1, -8.74227766e-08, -1, 0) * angles(Rad(45), Rad(0), Rad(-20)), 0.3)
  558. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.4, -0.3, 1, -8.74227766e-08, 0, 0, 0, 1, -8.74227766e-08, -1, 0) * CFrame.new(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + math.random(-4,4)), Rad(math.random(-4,4)), Rad(-20 + math.random(-4,4))), 1)
  559. end
  560. end
  561.  
  562. elseif Torsovelocity > 2 and hit ~= nil then
  563. Anim = "Walk"
  564. if attack == false then
  565. Humanoid.WalkSpeed = 16
  566. PlayAnimationFromTable({
  567. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, 0, 0),
  568. CFrame.new(0, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
  569. CFrame.new(0.780210495, 0.194723606, 0.390228271, 0.642787576, 0.766044378, 0, -0.492403805, 0.413175821, 0.766044497, 0.586824119, -0.492403895, 0.642787516),
  570. CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
  571. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  572. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  573. }, .3, false)
  574. end
  575. end
  576.  
  577. if trail == true then
  578. local c = Instance.new("Model",workspace)
  579. c.Name = "Trail"
  580.  
  581. for i,v in pairs(owner.Character:GetChildren()) do
  582. if v.ClassName == "Accessory" and v.Handle then
  583. local vc = Instance.new("Part",c)
  584. vc.Size = v.Handle.Size
  585. vc.CFrame = v.Handle.CFrame
  586. if v.Handle:FindFirstChildOfClass("SpecialMesh") then
  587. local mc = v.Handle:FindFirstChildOfClass("SpecialMesh"):Clone()
  588. mc.Parent = vc
  589. end
  590. vc.BrickColor = BrickColor.new("Really black")
  591. vc.Anchored = true
  592. vc:BreakJoints()
  593. vc.Transparency = 0.5
  594. vc.CanCollide = false
  595. vc.BottomSurface = Enum.SurfaceType.Smooth
  596. vc.TopSurface = Enum.SurfaceType.Smooth
  597. end
  598. if v.ClassName == "Part" and v.Name ~= "PT" and v.Name ~= "HumanoidRootPart" then
  599. local vc = Instance.new("Part",c)
  600. vc.Size = v.Size
  601. vc.CFrame = v.CFrame
  602. if v:FindFirstChildOfClass("SpecialMesh") then
  603. local mc = v:FindFirstChildOfClass("SpecialMesh"):Clone()
  604. mc.Parent = vc
  605. end
  606. vc.BrickColor = BrickColor.new("Really black")
  607. vc.Anchored = true
  608. vc:BreakJoints()
  609. vc.Transparency = 0.5
  610. vc.CanCollide = false
  611. vc.BottomSurface = Enum.SurfaceType.Smooth
  612. vc.TopSurface = Enum.SurfaceType.Smooth
  613. end
  614. end
  615.  
  616. game.Debris:AddItem(c,0.0000000000000000000000000000000000000000000000000000001)
  617. end
  618.  
  619. if mus.Parent == char then
  620. mus.SoundId = "rbxassetid://"..SongID
  621. mus.Volume = 2
  622. mus.Pitch = 1
  623. mus.Playing = true
  624. mus.Looped = true
  625. timepos = mus.TimePosition
  626. else
  627. mus = Instance.new("Sound",char)
  628. mus.TimePosition = timepos
  629. local s = math.random(1,2)
  630.  
  631. end
  632. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement