Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.16 KB | None | 0 0
  1. -------------------
  2. --Gureitabi Heima--
  3. ---------------------------------
  4. --By CKbackup (Sugarie Saffron)--
  5. ---------------------------------
  6.  
  7. wait(1/60)
  8. Effects = { }
  9. local Player = game:GetService("Players").shaheed54
  10. local chara = Player.Character
  11. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  12. local LeftArm = chara["Left Arm"]
  13. local RightArm = chara["Right Arm"]
  14. local LeftLeg = chara["Left Leg"]
  15. local RightLeg = chara["Right Leg"]
  16. local Head = chara.Head
  17. local Torso = chara.Torso
  18. local RootPart = chara.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local attack = false
  21. local Anim = 'Idle'
  22. local attacktype = 1
  23. local delays = false
  24. local play = true
  25. local targetted = nil
  26. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  27. local velocity = RootPart.Velocity.y
  28. local sine = 0
  29. local change = 1
  30. local doe = 0
  31. local Create = LoadLibrary("RbxUtility").Create
  32. Humanoid.WalkSpeed = 40
  33.  
  34.  
  35. Humanoid.Animator.Parent = nil
  36. chara.Animate.Parent = nil
  37.  
  38. local pos = Vector3.new(0,0,-50)
  39.  
  40. local newMotor = function(part0, part1, c0, c1)
  41. local w = Create('Motor'){
  42. Parent = part0,
  43. Part0 = part0,
  44. Part1 = part1,
  45. C0 = c0,
  46. C1 = c1,
  47. }
  48. return w
  49. end
  50.  
  51. function clerp(a, b, t)
  52. return a:lerp(b, t)
  53. end
  54.  
  55. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  56. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  57.  
  58. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  59. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  60. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  61. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  62. RootJoint.C1 = CFrame.new(0, 0, 0)
  63. RootJoint.C0 = CFrame.new(0, 0, 0)
  64. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  65. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  66.  
  67.  
  68. local rarmc1 = RW.C1
  69. local larmc1 = LW.C1
  70. local rlegc1 = RH.C1
  71. local llegc1 = LH.C1
  72.  
  73. local resetc1 = false
  74.  
  75. function PlayAnimationFromTable(table, speed, bool)
  76. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  77. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  78. RW.C0 = clerp(RW.C0, table[3], speed)
  79. LW.C0 = clerp(LW.C0, table[4], speed)
  80. RH.C0 = clerp(RH.C0, table[5], speed)
  81. LH.C0 = clerp(LH.C0, table[6], speed)
  82. if bool == true then
  83. if resetc1 == false then
  84. resetc1 = true
  85. RootJoint.C1 = RootJoint.C1
  86. Torso.Neck.C1 = Torso.Neck.C1
  87. RW.C1 = rarmc1
  88. LW.C1 = larmc1
  89. RH.C1 = rlegc1
  90. LH.C1 = llegc1
  91. end
  92. end
  93. end
  94.  
  95.  
  96. ArtificialHB = Instance.new("BindableEvent", script)
  97. ArtificialHB.Name = "Heartbeat"
  98. script:WaitForChild("Heartbeat")
  99. frame = 0.03333333333333
  100. tf = 0
  101. allowframeloss = false
  102. tossremainder = false
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105. game:GetService("RunService").Heartbeat:connect(function(s, p)
  106. tf = tf + s
  107. if tf >= frame then
  108. if allowframeloss then
  109. script.Heartbeat:Fire()
  110. lastframe = tick()
  111. else
  112. for i = 1, math.floor(tf / frame) do
  113. script.Heartbeat:Fire()
  114. end
  115. lastframe = tick()
  116. end
  117. if tossremainder then
  118. tf = 0
  119. else
  120. tf = tf - frame * math.floor(tf / frame)
  121. end
  122. end
  123. end)
  124. function swait(num)
  125. if num == 0 or num == nil then
  126. ArtificialHB.Event:wait()
  127. else
  128. for i = 0, num do
  129. ArtificialHB.Event:wait()
  130. end
  131. end
  132. end
  133.  
  134. function RemoveOutlines(part)
  135. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  136. end
  137.  
  138.  
  139. CFuncs = {
  140. ["Part"] = {
  141. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  142. local Part = Create("Part"){
  143. Parent = Parent,
  144. Reflectance = Reflectance,
  145. Transparency = Transparency,
  146. CanCollide = false,
  147. Locked = true,
  148. BrickColor = BrickColor.new(tostring(BColor)),
  149. Name = Name,
  150. Size = Size,
  151. Material = Material,
  152. }
  153. RemoveOutlines(Part)
  154. return Part
  155. end;
  156. };
  157.  
  158. ["Mesh"] = {
  159. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  160. local Msh = Create(Mesh){
  161. Parent = Part,
  162. Offset = OffSet,
  163. Scale = Scale,
  164. }
  165. if Mesh == "SpecialMesh" then
  166. Msh.MeshType = MeshType
  167. Msh.MeshId = MeshId
  168. end
  169. return Msh
  170. end;
  171. };
  172.  
  173. ["Mesh"] = {
  174. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  175. local Msh = Create(Mesh){
  176. Parent = Part,
  177. Offset = OffSet,
  178. Scale = Scale,
  179. }
  180. if Mesh == "SpecialMesh" then
  181. Msh.MeshType = MeshType
  182. Msh.MeshId = MeshId
  183. end
  184. return Msh
  185. end;
  186. };
  187.  
  188. ["Weld"] = {
  189. Create = function(Parent, Part0, Part1, C0, C1)
  190. local Weld = Create("Weld"){
  191. Parent = Parent,
  192. Part0 = Part0,
  193. Part1 = Part1,
  194. C0 = C0,
  195. C1 = C1,
  196. }
  197. return Weld
  198. end;
  199. };
  200.  
  201. ["ParticleEmitter"] = {
  202. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  203. local fp = Create("ParticleEmitter"){
  204. Parent = Parent,
  205. Color = ColorSequence.new(Color1, Color2),
  206. LightEmission = LightEmission,
  207. Size = Size,
  208. Texture = Texture,
  209. Transparency = Transparency,
  210. ZOffset = ZOffset,
  211. Acceleration = Accel,
  212. Drag = Drag,
  213. LockedToPart = LockedToPart,
  214. VelocityInheritance = VelocityInheritance,
  215. EmissionDirection = EmissionDirection,
  216. Enabled = Enabled,
  217. Lifetime = LifeTime,
  218. Rate = Rate,
  219. Rotation = Rotation,
  220. RotSpeed = RotSpeed,
  221. Speed = Speed,
  222. VelocitySpread = VelocitySpread,
  223. }
  224. return fp
  225. end;
  226. };
  227.  
  228. CreateTemplate = {
  229.  
  230. };
  231. }
  232.  
  233.  
  234. function so(id,par,pit,vol)
  235. local sou = Instance.new("Sound", par or workspace)
  236. if par == chara then
  237. sou.Parent = chara.Torso
  238. end
  239. sou.Volume = vol
  240. sou.Pitch = pit or 1
  241. sou.SoundId = "rbxassetid://" .. id
  242. sou.PlayOnRemove = true
  243. sou:Destroy()
  244. end
  245.  
  246. function CamShake(par,magni,env,dur)
  247. for _, c in pairs(workspace:GetDescendants()) do
  248. local hum = c:FindFirstChildOfClass("Humanoid")
  249. if hum ~= nil and c:FindFirstChild("SHAKE")==nil then
  250. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  251. if head ~= nil then
  252. local targ = head.Position - par.Position
  253. local mag = targ.magnitude
  254. if magni >= mag then
  255. local sheiku = script:FindFirstChild("SHAKE"):Clone()
  256. sheiku.Parent = c
  257. sheiku:FindFirstChild("Env").Value = env
  258. sheiku:FindFirstChild("Dur").Value = dur
  259. sheiku.Disabled = false
  260. end
  261. end
  262. end
  263. end
  264. end
  265.  
  266. local mus = Instance.new("Sound",Head)
  267. mus.Name = "mus"
  268. mus.SoundId = "rbxassetid://151357800"
  269. mus.Looped = true
  270. mus.Volume = 1
  271.  
  272. New = function(Object, Parent, Name, Data)
  273. local Object = Instance.new(Object)
  274. for Index, Value in pairs(Data or {}) do
  275. Object[Index] = Value
  276. end
  277. Object.Parent = Parent
  278. Object.Name = Name
  279. return Object
  280. end
  281.  
  282. local ham = script:FindFirstChild("Heimah"):Clone()
  283. ham.Parent = chara
  284. ham:MoveTo(Torso.Position)
  285. local Handaru = ham:FindFirstChild("Handaru")
  286. local eks = ham:FindFirstChild("Aksuporodo")
  287. local tr = ham:FindFirstChild("Tureiru"):FindFirstChildOfClass("Trail")
  288. HWeld = New("ManualWeld",Handaru,"HWeld",{Part0 = Handaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0.0166480057, 0.54573518, -0.837792277, -0.0512679853, 0.837272108, 0.544377625, 0.998546243, 0.0338891223, 0.0419176593),C1 = CFrame.new(-0.518520355, -0.540316582, -2.48241043, -0.24481903, 0.308874041, 0.919054091, 0.234554961, 0.938611865, -0.252965897, -0.940769732, 0.153637841, -0.302238047),})
  289.  
  290. function rayCast(Position, Direction, Range, Ignore)
  291. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  292. end
  293.  
  294.  
  295.  
  296. function FindNearestTorso(Position, Distance, SinglePlayer)
  297. if SinglePlayer then
  298. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  299. end
  300. local List = {}
  301. for i, v in pairs(workspace:GetDescendants()) do
  302. if v:IsA("Model") then
  303. if v:findFirstChild("Head") then
  304. if v ~= chara then
  305. if (v.Head.Position - Position).magnitude <= Distance then
  306. table.insert(List, v)
  307. end
  308. end
  309. end
  310. end
  311. end
  312. return List
  313. end
  314.  
  315.  
  316. EffectModel = Create("Model"){
  317. Parent = chara,
  318. Name = "Effects",
  319. }
  320.  
  321.  
  322.  
  323. function smek()
  324. attack = true
  325. tr.Enabled = true
  326. for i=0,1,.2 do
  327. swait()
  328. PlayAnimationFromTable({
  329. CFrame.new(-0.0611572266, 0, 0.0733299255, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  330. CFrame.new(0.0733299255, 1.4999876, 0.0611572266, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  331. CFrame.new(1.01986086, 0.818574727, -0.631517649, 0.557959199, -0.249869764, 0.791357517, 0.817175269, -0.000717598246, -0.576389015, 0.14459005, 0.968279183, 0.203786999),
  332. CFrame.new(-1.31499314, 0.736702383, -0.92832005, 0.281261981, -0.265419841, 0.922195315, 0.622862935, -0.680563629, -0.385843247, 0.730022967, 0.682924211, -0.0260964856),
  333. CFrame.new(0.500001073, -1.99999404, 7.15255737e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  334. CFrame.new(-0.5, -1.99999404, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  335. }, .4, false)
  336. end
  337. Humanoid.WalkSpeed = 2
  338. so(1255794,Handaru,1.2,5)
  339. for i=0,1,.25 do
  340. swait()
  341. PlayAnimationFromTable({
  342. CFrame.new(-0.00577482395, -0.10000062, -0.0219224337, 0.342022002, 1.1920929e-07, -0.939694107, 6.73510385e-07, 0.999999881, -1.51299588e-07, 0.939692676, 6.66826963e-07, 0.342018038),
  343. CFrame.new(0.0225770473, 1.49998915, 0.00206720829, 0.342019916, -0.321393639, 0.883022428, 0, 0.939692736, 0.342019886, -0.939692736, -0.11697761, 0.321393609),
  344. CFrame.new(1.1054697, 0.14926374, -0.742685139, 0.195619792, -0.385802895, 0.901603639, 0.28954491, 0.901102543, 0.322766244, -0.936961412, 0.197915286, 0.287980705),
  345. CFrame.new(-0.96297735, -0.593610585, 0.103491321, -0.0833856016, -0.109562129, 0.990476191, 0.800586283, 0.584485948, 0.132052541, -0.593387306, 0.8039729, 0.0389761627),
  346. CFrame.new(1.14691079, -1.91282141, -3.82211965e-06, 0.766044855, -0.642787337, 2.68220901e-07, 0.642787218, 0.766044855, -2.80102472e-06, 1.54972076e-06, 2.35438347e-06, 1.00000012),
  347. CFrame.new(-0.5, -1.7999928, -0.400001526, 1, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1),
  348. }, .4, false)
  349. end
  350. RootPart.Anchored = true
  351. CamShake(eks,30,1,.4)
  352. local exp = Instance.new("Explosion",chara)
  353. exp.BlastPressure = 700000
  354. exp.BlastRadius = 7
  355. exp.Visible = false
  356. exp.Position = eks.Position
  357. exp.Hit:connect(function(hit)
  358. if hit:IsDescendantOf(chara)==false then
  359. hit:BreakJoints()
  360. --local dude = hit.Parent
  361. --local hah = dude:FindFirstChildOfClass("Humanoid")
  362. --if hah then
  363. --dude:BreakJoints()
  364. --if hah.RigType == Enum.HumanoidRigType.R6 then
  365. --local raggy = script.RagdollScript:Clone()
  366. --raggy.Parent = dude
  367. --raggy.Disabled = false
  368. --elseif hah.RigType == Enum.HumanoidRigType.R15 then
  369. --local raggy = script.R15RagdollScript:Clone()
  370. --raggy.Parent = dude
  371. --raggy.Disabled = false
  372. --end
  373. --end
  374. end
  375. end)
  376. local b = Instance.new("Part",EffectModel)
  377. b.Anchored = true
  378. b.CanCollide = true
  379. b.Size = Vector3.new(1,1,1)
  380. b.CFrame = eks.CFrame
  381. b.BrickColor = BrickColor.new("White")
  382. b.Material = "Glass"
  383. b.Reflectance = 1
  384. local l = Instance.new("PointLight",b)
  385. l.Color = b.BrickColor.Color
  386. l.Brightness = 1
  387. l.Range = 0
  388. local bm = Instance.new("SpecialMesh",b)
  389. bm.Scale = Vector3.new(0,0,0)
  390. bm.MeshType = "Sphere"
  391. coroutine.wrap(function()
  392. for i=0,1,.1 do
  393. bm.Scale = Vector3.new(15*i,15*i,15*i)
  394. b.Transparency = i
  395. l.Range = 25*i
  396. l.Brightness = 1-1*i
  397. swait()
  398. end
  399. b:Destroy()
  400. end)()
  401. for a=1,12 do
  402. local b = Instance.new("Part",EffectModel)
  403. b.Anchored = true
  404. b.CanCollide = true
  405. b.Size = Vector3.new(1,1,1)
  406. b.CFrame = eks.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  407. b.BrickColor = BrickColor.new("Bright blue")
  408. b.Material = "Neon"
  409. local bm = Instance.new("SpecialMesh",b)
  410. bm.Scale = Vector3.new(0,0,0)
  411. bm.MeshType = "Sphere"
  412. coroutine.wrap(function()
  413. for i=0,1,.1 do
  414. bm.Scale = Vector3.new(2*i,30*i,2*i)
  415. b.Transparency = i
  416. swait()
  417. end
  418. b:Destroy()
  419. end)()
  420. end
  421. swait(10)
  422. RootPart.Anchored = false
  423. Humanoid.WalkSpeed = 40
  424. tr.Enabled = false
  425. attack = false
  426. end
  427.  
  428. local mousedownevent = script:WaitForChild("MouseDownEvent")
  429. local mouseupevent = script:WaitForChild("MouseUpEvent")
  430. local keydownevent = script:WaitForChild("KeyDownEvent")
  431. local keyupevent = script:WaitForChild("KeyUpEvent")
  432.  
  433. mousedownevent.OnServerEvent:connect(function(ply)
  434. if ply == Player then
  435. if attack == false then
  436. smek()
  437. end
  438. end
  439. end)
  440.  
  441. local sprintt = 0
  442.  
  443.  
  444. keydownevent.OnServerEvent:connect(function(ply,k)
  445. if ply == Player then
  446. k = k:lower()
  447. if k=='m' then
  448. if mus.IsPlaying == true then
  449. mus:Stop()
  450. elseif mus.IsPaused == true then
  451. mus:Play()
  452. end
  453. end
  454. end
  455. end)
  456.  
  457.  
  458.  
  459.  
  460. coroutine.wrap(function()
  461. while 1 do
  462. swait()
  463. if doe <= 360 then
  464. doe = doe + 2
  465. else
  466. doe = 0
  467. end
  468. end
  469. end)()
  470. while true do
  471. swait()
  472. for i, v in pairs(chara:GetChildren()) do
  473. if v:IsA("Part") then
  474. v.Material = "SmoothPlastic"
  475. elseif v:IsA("Accessory") then
  476. v:WaitForChild("Handle").Material = "SmoothPlastic"
  477. end
  478. end
  479. while true do
  480. swait()
  481. if sprintt >= 1 then
  482. sprintt = sprintt - 1
  483. end
  484.  
  485. if Head:FindFirstChild("mus")==nil then
  486. mus = Instance.new("Sound",Head)
  487. mus.Name = "mus"
  488. mus.SoundId = "rbxassetid://151357800"
  489. mus.Looped = true
  490. mus.Volume = 1
  491. mus:Play()
  492. end
  493. if chara:FindFirstChild("FFProt")==nil then
  494. local ff = Instance.new("ForceField",chara)
  495. ff.Name = "FFProt"
  496. ff.Visible = false
  497. end
  498. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  499. velocity = RootPart.Velocity.y
  500. sine = sine + change
  501. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  502. if RootPart.Velocity.y > 1 and hit == nil then
  503. Anim = "Jump"
  504. if attack == false then
  505. PlayAnimationFromTable({
  506. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  507. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  508. CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
  509. CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
  510. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  511. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  512. }, .3, false)
  513. end
  514. elseif RootPart.Velocity.y < -1 and hit == nil then
  515. Anim = "Fall"
  516. if attack == false then
  517. PlayAnimationFromTable({
  518. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  519. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  520. CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
  521. CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
  522. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  523. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  524. }, .3, false)
  525. end
  526. elseif Torsovelocity < 1 and hit ~= nil then
  527. Anim = "Idle"
  528. if attack == false then
  529. change = 1
  530. PlayAnimationFromTable({
  531. CFrame.new(-0.0134558445, -8.28886648e-09, -0.0177793745, 0.642786264, 5.66244125e-07, 0.76604414, 4.07994918e-07, 0.999999702, 4.74639165e-07, -0.766045034, 4.47034836e-08, 0.64278692) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  532. CFrame.new(-0.00497092307, 1.49998438, 0.0217448026, 0.656120956, 0.0193826407, -0.754406869, 0.171009988, 0.969846368, 0.173648238, 0.735024512, -0.242945313, 0.633021891),
  533. CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
  534. CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
  535. CFrame.new(0.499998957, -1.99999499, 1.93715096e-06, 0.766043782, 0, -0.64278847, 0, 1, 0, 0.64278847, 0, 0.766043782) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  536. CFrame.new(-0.500001431, -1.99999297, -1.93715096e-06, 0.766044974, 0, 0.64278698, 0, 1, 0, -0.64278698, 0, 0.766044974) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  537. }, .3, false)
  538. end
  539. elseif Torsovelocity > 2 and hit ~= nil then
  540. Anim = "Walk"
  541. if attack == false then
  542. PlayAnimationFromTable({
  543. CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
  544. CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  545. CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
  546. CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
  547. 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+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
  548. 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- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
  549. }, .3, false)
  550. end
  551. end
  552. if 0 < #Effects then
  553. for e = 1, #Effects do
  554. if Effects[e] ~= nil then
  555. local Thing = Effects[e]
  556. if Thing ~= nil then
  557. local Part = Thing[1]
  558. local Mode = Thing[2]
  559. local Delay = Thing[3]
  560. local IncX = Thing[4]
  561. local IncY = Thing[5]
  562. local IncZ = Thing[6]
  563. if Thing[2] == "Shoot" then
  564. local Look = Thing[1]
  565. local move = 30
  566. if Thing[8] == 3 then
  567. move = 10
  568. end
  569. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  570. if Thing[10] ~= nil then
  571. da = pos
  572. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  573. cfa = CFrame.new(Thing[4], pos)
  574. tehCF = cfa:lerp(cf2, 0.2)
  575. Thing[1] = tehCF.lookVector
  576. end
  577. local mag = (Thing[4] - pos).magnitude
  578. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  579. if Thing[8] == 2 then
  580. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  581. end
  582. Thing[4] = Thing[4] + Look * move
  583. Thing[3] = Thing[3] - 1
  584. if 2 < Thing[5] then
  585. Thing[5] = Thing[5] - 0.3
  586. Thing[6] = Thing[6] - 0.3
  587. end
  588. if hit ~= nil then
  589. Thing[3] = 0
  590. if Thing[8] == 1 or Thing[8] == 3 then
  591. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  592. else
  593. if Thing[8] == 2 then
  594. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  595. if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
  596. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  597. ref.Anchored = true
  598. ref.CFrame = CFrame.new(pos)
  599. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  600. game:GetService("Debris"):AddItem(ref, 0.2)
  601. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  602. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  603. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  604. end
  605. end
  606. end
  607. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  608. ref.Anchored = true
  609. ref.CFrame = CFrame.new(pos)
  610. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  611. game:GetService("Debris"):AddItem(ref, 1)
  612. end
  613. if Thing[3] <= 0 then
  614. table.remove(Effects, e)
  615. end
  616. end
  617. do
  618. do
  619. if Thing[2] == "FireWave" then
  620. if Thing[3] <= Thing[4] then
  621. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  622. Thing[3] = Thing[3] + 1
  623. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  624. else
  625. Part.Parent = nil
  626. table.remove(Effects, e)
  627. end
  628. end
  629. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  630. if Thing[1].Transparency <= 1 then
  631. if Thing[2] == "Block1" then
  632. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  633. Mesh = Thing[7]
  634. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  635. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  636. else
  637. if Thing[2] == "Block2" then
  638. Thing[1].CFrame = Thing[1].CFrame
  639. Mesh = Thing[7]
  640. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  641. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  642. else
  643. if Thing[2] == "Fire" then
  644. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  645. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  646. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  647. else
  648. if Thing[2] == "Cylinder" then
  649. Mesh = Thing[7]
  650. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  651. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  652. else
  653. if Thing[2] == "Blood" then
  654. Mesh = Thing[7]
  655. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  656. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  657. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  658. else
  659. if Thing[2] == "Elec" then
  660. Mesh = Thing[10]
  661. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  662. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  663. else
  664. if Thing[2] == "Disappear" then
  665. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  666. else
  667. if Thing[2] == "Shatter" then
  668. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  669. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  670. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  671. Thing[6] = Thing[6] + Thing[5]
  672. end
  673. end
  674. end
  675. end
  676. end
  677. end
  678. end
  679. end
  680. else
  681. Part.Parent = nil
  682. table.remove(Effects, e)
  683. end
  684. end
  685. end
  686. end
  687. end
  688. end
  689. end
  690. end
  691. end
  692. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement