Its_YeBoi

Untitled

Mar 1st, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.46 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2.  
  3. local RbxUtility = LoadLibrary("RbxUtility")
  4. local Create = RbxUtility.Create
  5.  
  6. ArtificialHB = Instance.new("BindableEvent", script)
  7. ArtificialHB.Name = "Heartbeat"
  8.  
  9. script:WaitForChild("Heartbeat")
  10.  
  11. local plr = game.Players.LocalPlayer
  12. local chr = plr.Character
  13. local maus = plr:GetMouse()
  14. local PGui=plr.PlayerGui
  15. local lleg = chr["Left Leg"]
  16. local rleg = chr["Right Leg"]
  17. local larm = chr["Left Arm"]
  18. local rarm = chr["Right Arm"]
  19. local hed = chr.Head
  20. local rutprt = chr.HumanoidRootPart
  21. local torso = chr.Torso
  22. local otheranims=false
  23. local swimming=false
  24. local attacking = false
  25. local modeColor = "White"
  26. local IT = Instance.new
  27. local VT = Vector3.new
  28.  
  29. local tors = torso
  30. local root = rutprt
  31.  
  32. local aura_music = Instance.new("Sound",chr.Head)
  33. aura_music.Volume = 7
  34. aura_music.Looped = true
  35. aura_music.SoundId='rbxassetid://869918352'
  36. aura_music.Name = "Ok"
  37. aura_music:Play()
  38.  
  39. spawn(function()
  40. while wait() do
  41. if chr.Head:FindFirstChild("Ok") then return
  42. else
  43. local aura_music = Instance.new("Sound",chr.Head)
  44. aura_music.Volume = 7
  45. aura_music.Looped = true
  46. aura_music.SoundId='rbxassetid://869918352'
  47. aura_music.Name = "Ok"
  48. aura_music:Play()
  49. end
  50. end
  51. end)
  52.  
  53. Part0 = Instance.new("Part")
  54. SpecialMesh1 = Instance.new("SpecialMesh")
  55. Attachment2 = Instance.new("Attachment")
  56. Attachment3 = Instance.new("Attachment")
  57. Attachment4 = Instance.new("Attachment")
  58. Attachment5 = Instance.new("Attachment")
  59. Part0.Name = "Katana"
  60. Part0.Parent = chr
  61. Part0.BrickColor = BrickColor.new("Dark stone grey")
  62. Part0.Rotation = Vector3.new(-110.909996, -14.0299997, -57.5999985)
  63. Part0.FormFactor = Enum.FormFactor.Custom
  64. Part0.Size = Vector3.new(0.200000003, 0.100000851, 4.6999979)
  65. Part0.CFrame = CFrame.new(5.1301012, 4.3172431, -13.3496962, 0.51984179, 0.819148481, -0.242405802, 0.422617286, 3.61466164e-07, 0.906308353, 0.742401004, -0.573581874, -0.346186072)
  66. Part0.BottomSurface = Enum.SurfaceType.Smooth
  67. Part0.TopSurface = Enum.SurfaceType.Smooth
  68. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  69. Part0.Position = Vector3.new(5.1301012, 4.3172431, -13.3496962)
  70. Part0.Orientation = Vector3.new(-65, -145, 90)
  71. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  72. SpecialMesh1.Parent = Part0
  73. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=11442510"
  74. SpecialMesh1.Scale = Vector3.new(1.70000005, 1.70000005, 1.70000005)
  75. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=11442524"
  76. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  77. SpecialMesh1.Scale = Vector3.new(1.70000005, 1.70000005, 1.70000005)
  78. Attachment5.Name = "Attachment"
  79. Attachment5.Parent = Part0
  80. Attachment5.CFrame = CFrame.new(-5.569309e-07, -1.49011612e-07, 2.49999976, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  81. Attachment5.Position = Vector3.new(-5.569309e-07, -1.49011612e-07, 2.49999976)
  82. Attachment4.Parent = Part0
  83. Attachment4.CFrame = CFrame.new(-3.29315662e-06, 3.53716314e-06, -1.10000086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  84. Attachment4.Position = Vector3.new(-3.29315662e-06, 3.53716314e-06, -1.10000086)
  85. Attachment4.Parent = Part0
  86. Attachment4.CFrame = CFrame.new(-3.29315662e-06, 3.53716314e-06, -1.10000086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  87. Attachment4.Position = Vector3.new(-3.29315662e-06, 3.53716314e-06, -1.10000086)
  88. Attachment5.Name = "Attachment1"
  89. Attachment5.Parent = Part0
  90. Attachment5.CFrame = CFrame.new(-5.569309e-07, -1.49011612e-07, 2.49999976, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  91. Attachment5.Position = Vector3.new(-5.569309e-07, -1.49011612e-07, 2.49999976)
  92.  
  93. local welded = Instance.new("Weld", Part0)
  94. welded.Part0 = Part0
  95. welded.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  96. welded.C0 = CFrame.new(1,0,-1.8)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(90))
  97.  
  98. function debounce(func)
  99. local isRunning = false -- Create a local debounce variable
  100. return function(...) -- Return a new function
  101. if not isRunning then
  102. isRunning = true
  103.  
  104. func(...) -- Call it with the original arguments
  105.  
  106. isRunning = false
  107. end
  108. end
  109. end
  110.  
  111.  
  112. function CreateSound(ID, PARENT, VOLUME, PITCH)
  113. local NEWSOUND = nil
  114. coroutine.resume(coroutine.create(function()
  115. NEWSOUND = Instance.new("Sound", PARENT)
  116. NEWSOUND.Volume = VOLUME
  117. NEWSOUND.Pitch = PITCH
  118. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  119. swait()
  120. NEWSOUND:play()
  121. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  122. end))
  123. return NEWSOUND
  124. end
  125.  
  126. function clerp(a, b, t)
  127. local qa = {
  128. QuaternionFromCFrame(a)
  129. }
  130. local qb = {
  131. QuaternionFromCFrame(b)
  132. }
  133. local ax, ay, az = a.x, a.y, a.z
  134. local bx, by, bz = b.x, b.y, b.z
  135. local _t = 1 - t
  136. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  137. end
  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. Mesh = {
  158. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  159. local Msh = Create(Mesh)({
  160. Parent = Part,
  161. Offset = OffSet,
  162. Scale = Scale
  163. })
  164. if Mesh == "SpecialMesh" then
  165. Msh.MeshType = MeshType
  166. Msh.MeshId = MeshId
  167. end
  168. return Msh
  169. end
  170. },
  171. Mesh = {
  172. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  173. local Msh = Create(Mesh)({
  174. Parent = Part,
  175. Offset = OffSet,
  176. Scale = Scale
  177. })
  178. if Mesh == "SpecialMesh" then
  179. Msh.MeshType = MeshType
  180. Msh.MeshId = MeshId
  181. end
  182. return Msh
  183. end
  184. },
  185. Weld = {
  186. Create = function(Parent, Part0, Part1, C0, C1)
  187. local Weld = Create("Weld")({
  188. Parent = Parent,
  189. Part0 = Part0,
  190. Part1 = Part1,
  191. C0 = C0,
  192. C1 = C1
  193. })
  194. return Weld
  195. end
  196. },
  197. Sound = {
  198. Create = function(id, par, vol, pit)
  199. coroutine.resume(coroutine.create(function()
  200. local S = Create("Sound")({
  201. Volume = vol,
  202. Pitch = pit or 1,
  203. SoundId = id,
  204. Parent = par or workspace
  205. })
  206. wait()
  207. S:play()
  208. game:GetService("Debris"):AddItem(S, 6)
  209. end))
  210. end
  211. },
  212. ParticleEmitter = {
  213. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  214. local fp = Create("ParticleEmitter")({
  215. Parent = Parent,
  216. Color = ColorSequence.new(Color1, Color2),
  217. LightEmission = LightEmission,
  218. Size = Size,
  219. Texture = Texture,
  220. Transparency = Transparency,
  221. ZOffset = ZOffset,
  222. Acceleration = Accel,
  223. Drag = Drag,
  224. LockedToPart = LockedToPart,
  225. VelocityInheritance = VelocityInheritance,
  226. EmissionDirection = EmissionDirection,
  227. Enabled = Enabled,
  228. Lifetime = LifeTime,
  229. Rate = Rate,
  230. Rotation = Rotation,
  231. RotSpeed = RotSpeed,
  232. Speed = Speed,
  233. VelocitySpread = VelocitySpread
  234. })
  235. return fp
  236. end
  237. }
  238. }
  239. function RemoveOutlines(part)
  240. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  241. end
  242. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  243. local Part = Create("Part")({
  244. formFactor = FormFactor,
  245. Parent = Parent,
  246. Reflectance = Reflectance,
  247. Transparency = Transparency,
  248. CanCollide = false,
  249. Locked = true,
  250. BrickColor = BrickColor.new(tostring(BColor)),
  251. Name = Name,
  252. Size = Size,
  253. Material = Material
  254. })
  255. RemoveOutlines(Part)
  256. return Part
  257. end
  258. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  259. local Msh = Create(Mesh)({
  260. Parent = Part,
  261. Offset = OffSet,
  262. Scale = Scale
  263. })
  264. if Mesh == "SpecialMesh" then
  265. Msh.MeshType = MeshType
  266. Msh.MeshId = MeshId
  267. end
  268. return Msh
  269. end
  270. function CreateWeld(Parent, Part0, Part1, C0, C1)
  271. local Weld = Create("Weld")({
  272. Parent = Parent,
  273. Part0 = Part0,
  274. Part1 = Part1,
  275. C0 = C0,
  276. C1 = C1
  277. })
  278. return Weld
  279. end
  280. EffectModel = Instance.new("Model", char)
  281. Effects = {
  282. Block = {
  283. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  284. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  285. prt.Anchored = true
  286. prt.CFrame = cframe
  287. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  288. game:GetService("Debris"):AddItem(prt, 10)
  289. if Type == 1 or Type == nil then
  290. table.insert(Effects, {
  291. prt,
  292. "Block1",
  293. delay,
  294. x3,
  295. y3,
  296. z3,
  297. msh
  298. })
  299. elseif Type == 2 then
  300. table.insert(Effects, {
  301. prt,
  302. "Block2",
  303. delay,
  304. x3,
  305. y3,
  306. z3,
  307. msh
  308. })
  309. else
  310. table.insert(Effects, {
  311. prt,
  312. "Block3",
  313. delay,
  314. x3,
  315. y3,
  316. z3,
  317. msh
  318. })
  319. end
  320. end
  321. },
  322. Sphere = {
  323. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  324. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  325. prt.Anchored = true
  326. prt.CFrame = cframe
  327. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  328. game:GetService("Debris"):AddItem(prt, 10)
  329. table.insert(Effects, {
  330. prt,
  331. "Cylinder",
  332. delay,
  333. x3,
  334. y3,
  335. z3,
  336. msh
  337. })
  338. end
  339. },
  340. Cylinder = {
  341. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  342. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  343. prt.Anchored = true
  344. prt.CFrame = cframe
  345. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  346. game:GetService("Debris"):AddItem(prt, 10)
  347. table.insert(Effects, {
  348. prt,
  349. "Cylinder",
  350. delay,
  351. x3,
  352. y3,
  353. z3,
  354. msh
  355. })
  356. end
  357. },
  358. Wave = {
  359. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  360. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  361. prt.Anchored = true
  362. prt.CFrame = cframe
  363. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  364. game:GetService("Debris"):AddItem(prt, 10)
  365. table.insert(Effects, {
  366. prt,
  367. "Cylinder",
  368. delay,
  369. x3 / 60,
  370. y3 / 60,
  371. z3 / 60,
  372. msh
  373. })
  374. end
  375. },
  376. Ring = {
  377. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  378. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  379. prt.Anchored = true
  380. prt.CFrame = cframe
  381. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  382. game:GetService("Debris"):AddItem(prt, 10)
  383. table.insert(Effects, {
  384. prt,
  385. "Cylinder",
  386. delay,
  387. x3,
  388. y3,
  389. z3,
  390. msh
  391. })
  392. end
  393. },
  394. Break = {
  395. Create = function(brickcolor, cframe, x1, y1, z1)
  396. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  397. prt.Anchored = true
  398. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  399. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  400. local num = math.random(10, 50) / 1000
  401. game:GetService("Debris"):AddItem(prt, 10)
  402. table.insert(Effects, {
  403. prt,
  404. "Shatter",
  405. num,
  406. prt.CFrame,
  407. math.random() - math.random(),
  408. 0,
  409. math.random(50, 100) / 100
  410. })
  411. end
  412. },
  413. Spiral = {
  414. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  415. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  416. prt.Anchored = true
  417. prt.CFrame = cframe
  418. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  419. game:GetService("Debris"):AddItem(prt, 10)
  420. table.insert(Effects, {
  421. prt,
  422. "Cylinder",
  423. delay,
  424. x3,
  425. y3,
  426. z3,
  427. msh
  428. })
  429. end
  430. },
  431. Push = {
  432. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  433. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  434. prt.Anchored = true
  435. prt.CFrame = cframe
  436. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  437. game:GetService("Debris"):AddItem(prt, 10)
  438. table.insert(Effects, {
  439. prt,
  440. "Cylinder",
  441. delay,
  442. x3,
  443. y3,
  444. z3,
  445. msh
  446. })
  447. end
  448. }
  449. }
  450. local Torso = chr.Torso
  451. function CreateSound(ID, PARENT, VOLUME, PITCH)
  452. local NEWSOUND = nil
  453. coroutine.resume(coroutine.create(function()
  454. NEWSOUND = Instance.new("Sound", PARENT)
  455. NEWSOUND.Volume = VOLUME
  456. NEWSOUND.Pitch = PITCH
  457. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  458. swait()
  459. NEWSOUND:play()
  460. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  461. end))
  462. return NEWSOUND
  463. end
  464.  
  465. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  466. local NEWMESH = IT(MESH)
  467. if MESH == "SpecialMesh" then
  468. NEWMESH.MeshType = MESHTYPE
  469. if MESHID ~= "nil" and MESHID ~= "" then
  470. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  471. end
  472. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  473. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  474. end
  475. end
  476. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  477. NEWMESH.Scale = SCALE
  478. NEWMESH.Parent = PARENT
  479. return NEWMESH
  480. end
  481.  
  482. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  483. local NEWPART = IT("Part")
  484. NEWPART.formFactor = FORMFACTOR
  485. NEWPART.Reflectance = REFLECTANCE
  486. NEWPART.Transparency = TRANSPARENCY
  487. NEWPART.CanCollide = false
  488. NEWPART.Anchored = true
  489. NEWPART.Locked = true
  490. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  491. NEWPART.Name = NAME
  492. NEWPART.Size = SIZE
  493. NEWPART.Position = Torso.Position
  494. NEWPART.Material = MATERIAL
  495. NEWPART:BreakJoints()
  496. NEWPART.Parent = PARENT
  497. return NEWPART
  498. end
  499.  
  500. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  501. if hit.Parent == nil then
  502. return
  503. end
  504. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  505. for _, v in pairs(hit.Parent:children()) do
  506. if v:IsA("Humanoid") then
  507. h = v
  508. end
  509. end
  510. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  511. warn'No R15 allowed'
  512. hit.Parent:FindFirstChild("Head"):BreakJoints()
  513. end
  514.  
  515. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  516. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  517. if hit.Parent.DebounceHit.Value == true then
  518. return
  519. end
  520. end
  521. if insta == true then
  522. hit.Parent:FindFirstChild("Head"):BreakJoints()
  523. end
  524. local c = Create("ObjectValue"){
  525. Name = "creator",
  526. Value = game:service("Players").LocalPlayer,
  527. Parent = h,
  528. }
  529. game:GetService("Debris"):AddItem(c, .5)
  530. if HitSound ~= nil and HitPitch ~= nil then
  531. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  532. end
  533. local Damage = math.random(minim, maxim)
  534. local blocked = false
  535. local block = hit.Parent:findFirstChild("Block")
  536. if block ~= nil then
  537. if block.className == "IntValue" then
  538. if block.Value > 0 then
  539. blocked = true
  540. block.Value = block.Value - 1
  541. print(block.Value)
  542. end
  543. end
  544. end
  545. if blocked == false then
  546. h.Health = h.Health - Damage
  547. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  548. else
  549. h.Health = h.Health - (Damage / 2)
  550. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  551. end
  552. if Type == "Knockdown" then
  553. local hum = hit.Parent.Humanoid
  554. hum.PlatformStand = true
  555. coroutine.resume(coroutine.create(function(HHumanoid)
  556. swait(1)
  557. HHumanoid.PlatformStand = false
  558. end), hum)
  559. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  560. local bodvol = Create("BodyVelocity"){
  561. velocity = angle * knockback,
  562. P = 5000,
  563. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  564. Parent = hit,
  565. }
  566. local rl = Create("BodyAngularVelocity"){
  567. P = 3000,
  568. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  569. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  570. Parent = hit,
  571. }
  572. game:GetService("Debris"):AddItem(bodvol, .5)
  573. game:GetService("Debris"):AddItem(rl, .5)
  574. elseif Type == "Normal" then
  575. local vp = Create("BodyVelocity"){
  576. P = 500,
  577. maxForce = Vector3.new(math.huge, 0, math.huge),
  578. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  579. }
  580. if knockback > 0 then
  581. vp.Parent = hit.Parent.Torso
  582. end
  583. game:GetService("Debris"):AddItem(vp, .5)
  584. elseif Type == "Up" then
  585. local bodyVelocity = Create("BodyVelocity"){
  586. velocity = Vector3.new(0, 20, 0),
  587. P = 5000,
  588. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  589. Parent = hit,
  590. }
  591. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  592. elseif Type == "DarkUp" then
  593. coroutine.resume(coroutine.create(function()
  594. for i = 0, 1, 0.1 do
  595. swait()
  596. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  597. end
  598. end))
  599. local bodyVelocity = Create("BodyVelocity"){
  600. velocity = Vector3.new(0, 20, 0),
  601. P = 5000,
  602. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  603. Parent = hit,
  604. }
  605. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  606. elseif Type == "Snare" then
  607. local bp = Create("BodyPosition"){
  608. P = 2000,
  609. D = 100,
  610. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  611. position = hit.Parent.Torso.Position,
  612. Parent = hit.Parent.Torso,
  613. }
  614. game:GetService("Debris"):AddItem(bp, 1)
  615. elseif Type == "Freeze" then
  616. local BodPos = Create("BodyPosition"){
  617. P = 50000,
  618. D = 1000,
  619. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  620. position = hit.Parent.Torso.Position,
  621. Parent = hit.Parent.Torso,
  622. }
  623. local BodGy = Create("BodyGyro") {
  624. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  625. P = 20e+003,
  626. Parent = hit.Parent.Torso,
  627. cframe = hit.Parent.Torso.CFrame,
  628. }
  629. hit.Parent.Torso.Anchored = true
  630. coroutine.resume(coroutine.create(function(Part)
  631. swait(1.5)
  632. Part.Anchored = false
  633. end), hit.Parent.Torso)
  634. game:GetService("Debris"):AddItem(BodPos, 3)
  635. game:GetService("Debris"):AddItem(BodGy, 3)
  636. end
  637. local debounce = Create("BoolValue"){
  638. Name = "DebounceHit",
  639. Parent = hit.Parent,
  640. Value = true,
  641. }
  642. game:GetService("Debris"):AddItem(debounce, Delay)
  643. c = Create("ObjectValue"){
  644. Name = "creator",
  645. Value = Player,
  646. Parent = h,
  647. }
  648. game:GetService("Debris"):AddItem(c, .5)
  649. end
  650. end
  651.  
  652. function ShowDamage(Pos, Text, Time, Color)
  653. local Rate = (1 / 30)
  654. local Pos = (Pos or Vector3.new(0, 0, 0))
  655. local Text = (Text or "")
  656. local Time = (Time or 2)
  657. local Color = (Color or Color3.new(1, 0, 1))
  658. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  659. EffectPart.Anchored = true
  660. local BillboardGui = Create("BillboardGui"){
  661. Size = UDim2.new(3, 0, 3, 0),
  662. Adornee = EffectPart,
  663. Parent = EffectPart,
  664. }
  665. local TextLabel = Create("TextLabel"){
  666. BackgroundTransparency = 1,
  667. Size = UDim2.new(1, 0, 1, 0),
  668. Text = Text,
  669. Font = "Highway",
  670. TextColor3 = Color,
  671. TextScaled = true,
  672. Parent = BillboardGui,
  673. }
  674. game.Debris:AddItem(EffectPart, (Time))
  675. EffectPart.Parent = game:GetService("Workspace")
  676. delay(0, function()
  677. local Frames = (Time / Rate)
  678. for Frame = 1, Frames do
  679. wait(Rate)
  680. local Percent = (Frame / Frames)
  681. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  682. TextLabel.TextTransparency = Percent
  683. end
  684. if EffectPart and EffectPart.Parent then
  685. EffectPart:Destroy()
  686. end
  687. end)
  688. end
  689.  
  690. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  691. for _, c in pairs(workspace:children()) do
  692. local hum = c:findFirstChild("Humanoid")
  693. if hum ~= nil then
  694. local head = c:findFirstChild("Head")
  695. if head ~= nil then
  696. local targ = head.Position - Part.Position
  697. local mag = targ.magnitude
  698. if magni >= mag and c.Name ~= plr.Name then
  699. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  700. end
  701. end
  702. end
  703. end
  704. end
  705.  
  706. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  707. Hitboxpart = Instance.new("Part", EffectModel)
  708. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  709. Hitboxpart.CanCollide = false
  710. Hitboxpart.Transparency = 1
  711. Hitboxpart.Anchored = true
  712. Hitboxpart.CFrame = Pose
  713. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  714. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  715. end
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723. ---//*DEBOUNCES
  724. canChangeFromC = true
  725. canChangeFromA = true
  726. canChangeFromCF = true
  727. canChangeFromSF = true
  728. canChangeFromPT = true
  729. canChangeFromGT = true
  730. canChangeFromUT = true
  731. ----
  732. canChangeFromMT = true
  733. ----*\\
  734.  
  735. --//*Instances
  736. ---*\\
  737. -----*\\
  738.  
  739. function QuaternionFromCFrame(cf)
  740. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  741. local trace = m00 + m11 + m22
  742. if trace > 0 then
  743. local s = math.sqrt(1 + trace)
  744. local recip = 0.5 / s
  745. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  746. else
  747. local i = 0
  748. if m00 < m11 then
  749. i = 1
  750. end
  751. if m22 > (i == 0 and m00 or m11) then
  752. i = 2
  753. end
  754. if i == 0 then
  755. local s = math.sqrt(m00 - m11 - m22 + 1)
  756. local recip = 0.5 / s
  757. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  758. elseif i == 1 then
  759. local s = math.sqrt(m11 - m22 - m00 + 1)
  760. local recip = 0.5 / s
  761. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  762. elseif i == 2 then
  763. local s = math.sqrt(m22 - m00 - m11 + 1)
  764. local recip = 0.5 / s
  765. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  766. end
  767. end
  768. end
  769. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  770. local xs, ys, zs = x + x, y + y, z + z
  771. local wx, wy, wz = w * xs, w * ys, w * zs
  772. local xx = x * xs
  773. local xy = x * ys
  774. local xz = x * zs
  775. local yy = y * ys
  776. local yz = y * zs
  777. local zz = z * zs
  778. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  779. end
  780. function QuaternionSlerp(a, b, t)
  781. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  782. local startInterp, finishInterp
  783. if cosTheta >= 1.0E-4 then
  784. if 1 - cosTheta > 1.0E-4 then
  785. local theta = math.acos(cosTheta)
  786. local invSinTheta = 1 / math.sin(theta)
  787. startInterp = math.sin((1 - t) * theta) * invSinTheta
  788. finishInterp = math.sin(t * theta) * invSinTheta
  789. else
  790. startInterp = 1 - t
  791. finishInterp = t
  792. end
  793. elseif 1 + cosTheta > 1.0E-4 then
  794. local theta = math.acos(-cosTheta)
  795. local invSinTheta = 1 / math.sin(theta)
  796. startInterp = math.sin((t - 1) * theta) * invSinTheta
  797. finishInterp = math.sin(t * theta) * invSinTheta
  798. else
  799. startInterp = t - 1
  800. finishInterp = t
  801. end
  802. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  803. end
  804. function rayCast(Position, Direction, Range, Ignore)
  805. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  806. end
  807.  
  808. canChangeFromC = true
  809. canChangeFromA = true
  810. canChangeFromCF = true
  811. canChangeFromSF = true
  812. canChangeFromPT = true
  813. canChangeFromGT = true
  814. canChangeFromUT = true
  815. IT = Instance.new
  816. CF = CFrame.new
  817. VT = Vector3.new
  818. RAD = math.rad
  819. C3 = Color3.new
  820. UD2 = UDim2.new
  821. BRICKC = BrickColor.new
  822. ANGLES = CFrame.Angles
  823. EULER = CFrame.fromEulerAnglesXYZ
  824. COS = math.cos
  825. ACOS = math.acos
  826. SIN = math.sin
  827. ASIN = math.asin
  828. ABS = math.abs
  829. MRANDOM = math.random
  830. FLOOR = math.floor
  831.  
  832. chr.Animate.Disabled=true
  833. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  834. local RunSpeed=30
  835.  
  836. local WlkSpeed=16
  837. local SwimSpeed=14
  838. local SwimDashSpeed=28
  839. local anim = "Idling"
  840. local lastanim = "Idling"
  841. local val = 0
  842. local syne = 0
  843. local num = 0
  844. local runtime = 0
  845. coroutine.wrap(function()
  846. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  847. function Lerp(a, b, i)
  848. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  849. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  850. local calx = com1[1] + (com2[1] - com1[1]) * i
  851. local caly = com1[2] + (com2[2] - com1[2]) * i
  852. local calz = com1[3] + (com2[3] - com1[3]) * i
  853. local cala = com1[4] + (com2[4] - com1[4]) * i
  854. local calb = com1[5] + (com2[5] - com1[5]) * i
  855. local calc = com1[6] + (com2[6] - com1[6]) * i
  856. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  857. end
  858. function TwnSingleNumber(s,f,m)
  859. local wot=s+(f-s)*m
  860. return wot
  861. end
  862. function TwnVector3(q,w,e)
  863. local begin={q.x,q.y,q.z}
  864. local ending={w.x,w.y,w.z}
  865. local bgx=begin[1]+(ending[1]-begin[1])*e
  866. local bgy=begin[2]+(ending[2]-begin[2])*e
  867. local bgz=begin[3]+(ending[3]-begin[3])*e
  868. return Vector3.new(bgx,bgy,bgz)
  869. end
  870. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  871. wld = Instance.new("Weld", wp1)
  872. wld.Part0 = wp0
  873. wld.Part1 = wp1
  874. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  875. end
  876. local angles = CFrame.Angles
  877. function clerp(a, b, t)
  878. return a:lerp(b, t)
  879. end
  880. newWeld(law, torso, larm, -1.5, 0.5, 0)
  881. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  882. newWeld(llw, torso, lleg, -.5, -2, 0)
  883. newWeld(rlw, torso, rleg, .5, -2, 0)
  884. newWeld(hw, torso, hed, 0, 1.5, 0)
  885. local rutwald=Instance.new('Weld',rutprt)
  886. rutwald.Part0=rutprt
  887. rutwald.Part1=torso
  888. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  889. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  890. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  891. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  892. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  893.  
  894.  
  895. ---//*MOVES
  896.  
  897.  
  898.  
  899. --*\\
  900.  
  901. maus.KeyDown:connect(function(kei)
  902. if string.byte(kei)==48 and not otheranims then
  903. runnin=true
  904. end
  905. if kei=='w' then fldb.w=true end
  906. if kei=='a' then fldb.a=true end
  907. if kei=='s' then fldb.s=true end
  908. if kei=='d' then fldb.d=true end
  909. end)
  910. maus.KeyUp:connect(function(kei)
  911. if string.byte(kei)==48 and not otheranims then
  912. runnin=false
  913. end
  914. if kei=='w' then fldb.w=false end
  915. if kei=='a' then fldb.a=false end
  916. if kei=='s' then fldb.s=false end
  917. if kei=='d' then fldb.d=false end
  918. end)
  919.  
  920.  
  921. ----
  922. canChangeFromMT = true
  923. ----*\\
  924. function Swait(NUMBER)
  925. if NUMBER == 0 or NUMBER == nil then
  926. ArtificialHB.Event:wait()
  927. else
  928. for i = 1, NUMBER do
  929. ArtificialHB.Event:wait()
  930. end
  931. end
  932. end
  933. ---//*Character
  934.  
  935. chr.Head.face:Destroy()
  936.  
  937. ---*\\
  938.  
  939. local hum = chr.Humanoid
  940.  
  941. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,BrickColor)
  942. spawn(function()
  943. local wave = CreatePart(3, workspace, "Neon", 0, 0.5, BrickColor, "Effect", VT(0,0,0))
  944. local mesh = Instance.new("SpecialMesh",wave)
  945. mesh.MeshType = "FileMesh"
  946. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  947. mesh.Scale = Vector3.new(size,size,size)
  948. mesh.Offset = Vector3.new(0,0,-size/8)
  949. wave.CFrame = CFrame.new(part.Position) * CFrame.new(0,offset,0) * CFrame.Angles(RAD(inair),RAD(0),RAD(0))
  950. coroutine.resume(coroutine.create(function(PART)
  951. for i = 1, waitt do
  952. Swait()
  953. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  954. mesh.Offset = Vector3.new(0,0,-(mesh.Scale.X/8))
  955. if doesrotate == true then
  956. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  957. end
  958. wave.Transparency = wave.Transparency + (0.5/waitt)
  959. if wave.Transparency > 0.99 then
  960. wave:remove()
  961. end
  962. end
  963. end))
  964. end)
  965. end
  966.  
  967.  
  968.  
  969. function PT(Part,Time)
  970. end
  971.  
  972. local attack1 = true
  973. local attack2 = false
  974. local attack3 = false
  975.  
  976. maus.Button1Down:Connect(function()
  977. if attack == false then
  978. attack = true
  979. if attack1 == true then
  980. Part0:BreakJoints()
  981. local welded = Instance.new("Weld", Part0)
  982. welded.Part0 = Part0
  983. welded.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  984. welded.C0 = CFrame.new(1,0,-1.8)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(90))
  985. local trail = Instance.new("Trail", Part0)
  986. trail.Attachment0 = Attachment4
  987. trail.Attachment1 = Attachment5
  988. trail.Lifetime = 0.05
  989. for i = 0, 1, 0.1 do
  990. wait()
  991. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,.1,-.2)*CFrame.Angles(math.rad(170),0,math.rad(-60)),1)
  992. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.15,-.5)*CFrame.Angles(math.rad(170),0,math.rad(10)),1)
  993. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  994. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  995. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),1)
  996. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(0),math.rad(70),0),1)
  997. end
  998. HitboxFunction(Part0.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  999. for i = 0, 1, 0.1 do
  1000. wait()
  1001. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.6,-.2)*CFrame.Angles(math.rad(0),0,math.rad(40)),1)
  1002. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-.2,.35,-.2)*CFrame.Angles(math.rad(40),0,math.rad(70)),1)
  1003. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  1004. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  1005. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(0),0),1)
  1006. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(0),0,0),1)
  1007. end
  1008. attack = false
  1009. attack1 = false
  1010. attack2 = true
  1011. trail:Destroy()
  1012. elseif attack2 == true then
  1013. Part0:BreakJoints()
  1014. local welded = Instance.new("Weld", Part0)
  1015. welded.Part0 = Part0
  1016. welded.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  1017. welded.C0 = CFrame.new(1,0,-1.8)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(90))
  1018. local trail = Instance.new("Trail", Part0)
  1019. trail.Attachment0 = Attachment4
  1020. trail.Attachment1 = Attachment5
  1021. trail.Lifetime = 0.05
  1022. for i = 0, 1, 0.1 do
  1023. wait()
  1024. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,0.15,-.5)*CFrame.Angles(math.rad(170),0,math.rad(-10)),1)
  1025. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-.9,.1,-.2)*CFrame.Angles(math.rad(170),0,math.rad(60)),1)
  1026. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  1027. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  1028. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70),0),1)
  1029. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(0),math.rad(-70),0),1)
  1030. end
  1031. HitboxFunction(Part0.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1032. for i = 0, 1, 0.1 do
  1033. wait()
  1034. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(.9,.3,-.2)*CFrame.Angles(math.rad(40),0,math.rad(-70)),1)
  1035. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.6,-.2)*CFrame.Angles(math.rad(0),0,math.rad(-40)),1)
  1036. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  1037. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  1038. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(0),0),1)
  1039. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(0),0,0),1)
  1040. end
  1041. attack = false
  1042. attack2 = false
  1043. attack3 = true
  1044. trail:Destroy()
  1045. Part0:BreakJoints()
  1046. local welded = Instance.new("Weld", Part0)
  1047. welded.Part0 = Part0
  1048. welded.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  1049. welded.C0 = CFrame.new(1,0,-1.8)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(90))
  1050.  
  1051. elseif attack3 == true then
  1052. -----------------------------------------------------
  1053. Part0:BreakJoints()
  1054. local welded = Instance.new("Weld", Part0)
  1055. welded.Part0 = Part0
  1056. welded.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  1057. welded.C0 = CFrame.new(1,0,-1.8)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(90))
  1058. local trail = Instance.new("Trail", Part0)
  1059. trail.Attachment0 = Attachment4
  1060. trail.Attachment1 = Attachment5
  1061. trail.Lifetime = 0.05
  1062. for i = 0, 1, 0.1 do
  1063. wait()
  1064. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,.4,-.2)*CFrame.Angles(math.rad(170),0,math.rad(-50)),1)
  1065. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.4,-.2)*CFrame.Angles(math.rad(170),0,math.rad(50)),1)
  1066. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  1067. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  1068. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),1)
  1069. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(-10),0,0),1)
  1070. end
  1071. HitboxFunction(Part0.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1072. for i = 0, 1, 0.1 do
  1073. wait()
  1074. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,.4,-.2)*CFrame.Angles(math.rad(10),0,math.rad(-50)),1)
  1075. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.4,-.2)*CFrame.Angles(math.rad(10),0,math.rad(50)),1)
  1076. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),1)
  1077. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),1)
  1078. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),1)
  1079. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1,0)*CFrame.Angles(math.rad(-10),0,0),1)
  1080. end
  1081. attack = false
  1082. attack3 = false
  1083. attack1 = true
  1084. trail:Destroy()
  1085. end
  1086. end
  1087. end)
  1088.  
  1089. attack = false
  1090. game:service'RunService'.RenderStepped:connect(function()
  1091. if anim~=lastanim then
  1092. runtime=0
  1093. end
  1094. lastanim=anim
  1095. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1096. syne=syne+.95
  1097. if not otheranims and not swimming then
  1098. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1099. anim="Idling"
  1100. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1101. anim="Walking"
  1102. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1103. anim="Sprinting"
  1104. elseif chr.Humanoid.Jump then
  1105. anim='Jumping'
  1106. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1107. anim='Falling'
  1108. elseif isLaying == true then
  1109. anim='Sit'
  1110. end
  1111. end
  1112.  
  1113.  
  1114. if anim=="Idling" and attack == false then
  1115. idlesineinc=35
  1116. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.1,.35+math.cos(syne/idlesineinc)/25,-.2)*CFrame.Angles(math.rad(40),0,math.rad(-40)),.1)
  1117. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.35+math.cos(syne/idlesineinc)/25,-.2)*CFrame.Angles(math.rad(40),0,math.rad(30)),.1)
  1118. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  1119. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  1120. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,math.rad(-60),0),.1)
  1121. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(60),math.rad(0)),.1)
  1122. end
  1123.  
  1124. if anim=="Walking" and attack == false then
  1125. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(.9,0.15+math.cos(syne/idlesineinc)/25,-.5)*CFrame.Angles(math.rad(40),0,math.rad(-60)),.1)
  1126. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.5+math.cos(syne/idlesineinc)/25,-.2)*CFrame.Angles(math.rad(40),0,math.rad(10)),.1)
  1127. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  1128. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  1129. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  1130. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  1131. end
  1132.  
  1133. if anim=="Sprinting" and attack == false then
  1134. RunSpeed = 50
  1135. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(.9,0.15+math.cos(syne/idlesineinc)/25,-.5)*CFrame.Angles(math.rad(170),0,math.rad(-60)),.1)
  1136. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.1,.1+math.cos(syne/idlesineinc)/25,-.2)*CFrame.Angles(math.rad(170),0,math.rad(10)),.1)
  1137. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.2)
  1138. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.2)
  1139. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  1140. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-10),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  1141. end
  1142.  
  1143. if anim=="Jumping" and attack == false then
  1144. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1145. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1146. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2.3,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  1147. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  1148. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  1149. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  1150. end
  1151.  
  1152. if anim=="Falling" and attack == false then
  1153. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1154. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1155. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1156. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1157. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1158. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  1159. end
  1160.  
  1161. if runnin and not otheranims and not swimming then
  1162. chr.Humanoid.WalkSpeed=RunSpeed
  1163. elseif not runnin and not otheranims and not swimming then
  1164. chr.Humanoid.WalkSpeed=WlkSpeed
  1165. end
  1166. end)
Add Comment
Please, Sign In to add comment