Advertisement
Its_YeBoi

Untitled

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