Advertisement
Guest User

Untitled

a guest
Sep 4th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.59 KB | None | 0 0
  1. --Here you go faggots. Genkadda Leaked.
  2.  
  3. --[[User: rughj
  4. Script: Genkadda.txt
  5. Pass: E1IZVizJ]]
  6.  
  7. local p = game.Players.LocalPlayer
  8. local char = p.Character
  9. local mouse = p:GetMouse()
  10. local larm = char["Left Arm"]
  11. local rarm = char["Right Arm"]
  12. local lleg = char["Left Leg"]
  13. local rleg = char["Right Leg"]
  14. local hed = char.Head
  15. local torso = char.Torso
  16. local hum = char.Humanoid
  17. local cam = game.Workspace.CurrentCamera
  18. local root = char.HumanoidRootPart
  19. local deb = false
  20. local shot = 0
  21. local stanceToggle = "Normal"
  22. local l = game:GetService("Lighting")
  23. local rs = game:GetService("RunService").RenderStepped
  24. math.randomseed(os.time())
  25. hum.MaxHealth = 9001
  26. wait(1)
  27. hum.Health = 9001
  28. for i,v in pairs(char:children()) do
  29. if v:IsA("Hat") then
  30. v:Destroy()
  31. end
  32. end
  33. for i,v in pairs (hed:GetChildren()) do
  34. if v:IsA("Sound") then
  35. v:Destroy()
  36. end
  37. end
  38. game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char
  39. char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813"
  40. ----------------------------------------------------
  41. Debounces = {
  42. CanAttack = true;
  43. CanJoke = true;
  44. NoIdl = false;
  45. Slashing = false;
  46. Slashed = false;
  47. Slapping = false;
  48. Slapped = false;
  49. ks = false;
  50. }
  51. ----------------------------------------------------
  52. function weld5(part0, part1, c0, c1)
  53. weeld=Instance.new("Weld", part0)
  54. weeld.Part0=part0
  55. weeld.Part1=part1
  56. weeld.C0=c0
  57. weeld.C1=c1
  58. return weeld
  59. end
  60. ----------------------------------------------------
  61. mod=Instance.new('Model',char)
  62.  
  63. function Burst()
  64. part=Instance.new('Part',mod)
  65. part.Anchored=true
  66. part.CanCollide=false
  67. part.FormFactor='Custom'
  68. part.Size=Vector3.new(.2,.2,.2)
  69. part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0)
  70. part.Transparency=.7
  71. part.BrickColor=BrickColor.new('Really black')
  72. mesh=Instance.new('SpecialMesh',part)
  73. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  74. mesh.Scale=Vector3.new(10,5,10)
  75. part2=part:clone()
  76. part2.Parent=mod
  77. part2.BrickColor=BrickColor.new('Bright red')
  78. mesh2=mesh:clone()
  79. mesh2.Parent=part2
  80. mesh2.Scale=Vector3.new(5,2.5,5)
  81. coroutine.resume(coroutine.create(function()
  82. for i=0,1,0.1 do
  83. wait()
  84. part.CFrame=part.CFrame
  85. part.Transparency=i
  86. mesh.Scale=mesh.Scale+Vector3.new(1,1,1)
  87. part2.CFrame=part2.CFrame
  88. part2.Transparency=i
  89. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  90. end
  91. part.Parent=nil
  92. part2.Parent=nil
  93. end))
  94. end
  95. ----------------------------------------------------
  96. mod4 = Instance.new("Model",char)
  97.  
  98. ptez = {0.7, 0.8, 0.9, 1}
  99.  
  100. function FindNearestTorso(Position,Distance,SinglePlayer)
  101. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  102. local List = {}
  103. for i,v in pairs(workspace:GetChildren())do
  104. if v:IsA("Model")then
  105. if v:findFirstChild("Torso")then
  106. if v ~= char then
  107. if(v.Torso.Position -Position).magnitude <= Distance then
  108. table.insert(List,v)
  109. end
  110. end
  111. end
  112. end
  113. end
  114. return List
  115. end
  116.  
  117. function Slam()
  118. part=Instance.new('Part',mod4)
  119. part.Anchored=true
  120. part.CanCollide=false
  121. part.FormFactor='Custom'
  122. part.Size=Vector3.new(.2,.2,.2)
  123. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  124. part.Transparency=.7
  125. part.BrickColor=BrickColor.new('Really black')
  126. mesh=Instance.new('SpecialMesh',part)
  127. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  128. mesh.Scale=Vector3.new(3,3,3)
  129. part2=Instance.new('Part',mod4)
  130. part2.Anchored=true
  131. part2.CanCollide=false
  132. part2.FormFactor='Custom'
  133. part2.Size=Vector3.new(.2,.2,.2)
  134. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  135. part2.Transparency=.7
  136. part2.BrickColor=BrickColor.new('Really red')
  137. mesh2=Instance.new('SpecialMesh',part2)
  138. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  139. mesh2.Scale=Vector3.new(3,1.5,3)
  140. x = Instance.new("Sound",char)
  141. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  142. x.Pitch = ptez[math.random(1,#ptez)]
  143. x.Volume = 1
  144. wait(.1)
  145. x1 = Instance.new("Sound",char)
  146. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  147. x1.Pitch = ptez[math.random(1,#ptez)]
  148. x1.Volume = 1
  149. wait(.1)
  150. x:Play()
  151. x1:Play()
  152. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  153. if v:FindFirstChild('Humanoid') then
  154. v.Humanoid:TakeDamage(math.random(30,45))
  155. end
  156. end
  157. coroutine.resume(coroutine.create(function()
  158. for i=0,0.62,0.13 do
  159. wait()
  160. part.CFrame=part.CFrame
  161. part.Transparency=i
  162. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  163. part2.CFrame=part2.CFrame
  164. part2.Transparency=i
  165. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  166. end
  167. part.Parent=nil
  168. part2.Parent=nil
  169. x:Destroy()
  170. end))
  171. end
  172. ----------------------------------------------------
  173. GroundWave = function()
  174. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  175. local Colors = {"Really red", "Really black"}
  176. local wave = Instance.new("Part", torso)
  177. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  178. wave.Anchored = true
  179. wave.CanCollide = false
  180. wave.Locked = true
  181. wave.Size = Vector3.new(1, 1, 1)
  182. wave.TopSurface = "Smooth"
  183. wave.BottomSurface = "Smooth"
  184. wave.Transparency = 0.35
  185. wave.CFrame = HandCF
  186. wm = Instance.new("SpecialMesh", wave)
  187. wm.MeshId = "rbxassetid://3270017"
  188. coroutine.wrap(function()
  189. for i = 1, 14, 1 do
  190. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  191. wave.Size = wm.Scale
  192. wave.CFrame = HandCF
  193. wave.Transparency = i/14
  194. wait()
  195. end
  196. wait()
  197. wave:Destroy()
  198. end)()
  199. end
  200. ----------------------------------------------------
  201. Magik = function()
  202. Spawn(function()
  203. local function lerp(a,b,c)
  204. return a+(b-a)*c
  205. end
  206. local function rndRange(rng)
  207. return math.random(-rng*1000,rng*1000)/1000
  208. end
  209. local magik = Instance.new("Part", larm)
  210. local Colors = {"Really red", "Really black"}
  211. magik.Anchored = true
  212. magik.Locked = true
  213. magik.FormFactor = "Custom"
  214. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  215. magik.TopSurface = "Smooth"
  216. magik.BottomSurface = "Smooth"
  217. magik.Transparency = 0
  218. magik.CanCollide = false
  219. magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  220. local mr = math.rad
  221. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  222. local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  223. magik.CFrame = cf
  224. for i = 0, 1, .05 do
  225. local newTrans = lerp(0.5, 1, i)
  226. local ns = lerp(1,1.2,i)
  227. magik.Transparency = newTrans
  228. magik.Size = Vector3.new(ns,ns,ns)
  229. magik.CFrame = cf
  230. rs:wait()
  231. end
  232. magik:Destroy()
  233. wait()
  234. end)
  235. end
  236. ----------------------------------------------------
  237. Magik2 = function()
  238. Spawn(function()
  239. if stanceToggle == "Melee" then
  240. local function lerp(a,b,c)
  241. return a+(b-a)*c
  242. end
  243. local function rndRange(rng)
  244. return math.random(-rng*1000,rng*1000)/1000
  245. end
  246. local magik2 = Instance.new("Part", rarm)
  247. local Colors = {"Really red", "Really black"}
  248. magik2.Anchored = true
  249. magik2.Locked = true
  250. magik2.FormFactor = "Custom"
  251. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  252. magik2.TopSurface = "Smooth"
  253. magik2.BottomSurface = "Smooth"
  254. magik2.Transparency = 0
  255. magik2.CanCollide = false
  256. magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  257. local mr = math.rad
  258. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  259. local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  260. magik2.CFrame = cf
  261. for i = 0, 1, .05 do
  262. local newTrans = lerp(0.5, 1, i)
  263. local ns = lerp(1,1.2,i)
  264. magik2.Transparency = newTrans
  265. magik2.Size = Vector3.new(ns,ns,ns)
  266. magik2.CFrame = cf
  267. rs:wait()
  268. end
  269. magik2:Destroy()
  270. elseif stanceToggle ~= "Melee" then
  271. wait()
  272. end
  273. end)
  274. end
  275. ----------------------------------------------------
  276. function lerp(a, b, t) -- Linear interpolation
  277. return a + (b - a)*t
  278. end
  279.  
  280. function slerp(a, b, t) --Spherical interpolation
  281. dot = a:Dot(b)
  282. if dot > 0.99999 or dot < -0.99999 then
  283. return t <= 0.5 and a or b
  284. else
  285. r = math.acos(dot)
  286. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  287. end
  288. end
  289.  
  290. function matrixInterpolate(a, b, t)
  291. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  292. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  293. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  294. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  295. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  296. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  297. local t = v1:Dot(v2)
  298. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  299. return CFrame.new()
  300. end
  301. return CFrame.new(
  302. v0.x, v0.y, v0.z,
  303. v1.x, v1.y, v1.z,
  304. v2.x, v2.y, v2.z,
  305. v3.x, v3.y, v3.z)
  306. end
  307. ----------------------------------------------------
  308. function genWeld(a,b)
  309. local w = Instance.new("Weld",a)
  310. w.Part0 = a
  311. w.Part1 = b
  312. return w
  313. end
  314. function weld(a, b)
  315. local weld = Instance.new("Weld")
  316. weld.Name = "W"
  317. weld.Part0 = a
  318. weld.Part1 = b
  319. weld.C0 = a.CFrame:inverse() * b.CFrame
  320. weld.Parent = a
  321. return weld;
  322. end
  323. ----------------------------------------------------
  324. function Lerp(c1,c2,al)
  325. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  326. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  327. for i,v in pairs(com1) do
  328. com1[i] = v+(com2[i]-v)*al
  329. end
  330. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  331. end
  332. ----------------------------------------------------
  333. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  334. local wld = Instance.new("Weld", wp1)
  335. wld.Part0 = wp0
  336. wld.Part1 = wp1
  337. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  338. end
  339. ----------------------------------------------------
  340. newWeld(torso, larm, -1.5, 0.5, 0)
  341. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  342. newWeld(torso, rarm, 1.5, 0.5, 0)
  343. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  344. newWeld(torso, hed, 0, 1.5, 0)
  345. newWeld(torso, lleg, -0.5, -1, 0)
  346. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  347. newWeld(torso, rleg, 0.5, -1, 0)
  348. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  349. newWeld(root, torso, 0, -1, 0)
  350. torso.Weld.C1 = CFrame.new(0, -1, 0)
  351. ----------------------------------------------------
  352. --local SIDz = {"167985102","181449739","167161785","148274436","167985102"}
  353. z = Instance.new("Sound",char)
  354. z.SoundId = "rbxassetid://163752916"
  355. z.Looped = true
  356. z.Volume = 1
  357. z.Pitch = .72
  358. wait(1)
  359. z:Play()
  360. hum.WalkSpeed = 9
  361. lite = Instance.new("PointLight",torso)
  362. lite.Brightness = 16
  363. lite.Range = 12
  364. lite.Color = Color3.new(255/255,0,0)
  365. ----------------------------------------------------
  366. l = game.Lighting
  367. rb = Color3.new(0,0,0)
  368. nb = Color3.new(0.1,0.1,0.1)
  369. l.TimeOfDay = 0
  370. ----------------------------------------------------
  371. local m = Instance.new("Model")
  372. m.Name = "Genkadda"
  373. p1 = Instance.new("Part", m)
  374. p1.Material = "Metal"
  375. p1.BrickColor = BrickColor.new("Really black")
  376. p1.Name = "BladePart"
  377. p1.FormFactor = Enum.FormFactor.Symmetric
  378. p1.Size = Vector3.new(1, 1, 1)
  379. p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006)
  380. p1.CanCollide = false
  381. p1.Locked = true
  382. p1.Elasticity = 0
  383. p1.BottomSurface = Enum.SurfaceType.Smooth
  384. p1.TopSurface = Enum.SurfaceType.Smooth
  385. b1 = Instance.new("BlockMesh", p1)
  386. b1.Name = "Mesh"
  387. b1.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  388. p2 = Instance.new("Part", m)
  389. p2.Material = "Metal"
  390. p2.BrickColor = BrickColor.new("Really black")
  391. p2.FormFactor = Enum.FormFactor.Symmetric
  392. p2.Size = Vector3.new(1, 1, 1)
  393. p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094)
  394. p2.CanCollide = false
  395. p2.Locked = true
  396. p2.Elasticity = 0
  397. p2.BottomSurface = Enum.SurfaceType.Smooth
  398. p2.TopSurface = Enum.SurfaceType.Smooth
  399. b2 = Instance.new("BlockMesh", p2)
  400. b2.Name = "Mesh"
  401. b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  402. p3 = Instance.new("Part", m)
  403. p3.Material = "Metal"
  404. p3.BrickColor = BrickColor.new("Really black")
  405. p3.FormFactor = Enum.FormFactor.Symmetric
  406. p3.Size = Vector3.new(1, 2, 1)
  407. p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005)
  408. p3.CanCollide = false
  409. p3.Locked = true
  410. p3.Elasticity = 0
  411. p3.BottomSurface = Enum.SurfaceType.Smooth
  412. p3.TopSurface = Enum.SurfaceType.Smooth
  413. b3 = Instance.new("BlockMesh", p3)
  414. b3.Name = "Mesh"
  415. b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  416. p4 = Instance.new("Part", m)
  417. p4.Material = "Metal"
  418. p4.BrickColor = BrickColor.new("Really black")
  419. p4.Name = "BladePart"
  420. p4.FormFactor = Enum.FormFactor.Symmetric
  421. p4.Size = Vector3.new(1, 1, 1)
  422. p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005)
  423. p4.CanCollide = false
  424. p4.Locked = true
  425. p4.Elasticity = 0
  426. p4.BottomSurface = Enum.SurfaceType.Smooth
  427. p4.TopSurface = Enum.SurfaceType.Smooth
  428. b4 = Instance.new("BlockMesh", p4)
  429. b4.Name = "Mesh"
  430. b4.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  431. p5 = Instance.new("Part", m)
  432. p5.Material = "Metal"
  433. p5.BrickColor = BrickColor.new("Really black")
  434. p5.Name = "Hilt"
  435. p5.FormFactor = Enum.FormFactor.Custom
  436. p5.Size = Vector3.new(1, 0.400000006, 1.60000014)
  437. p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166)
  438. p5.CanCollide = false
  439. p5.Locked = true
  440. p5.BottomSurface = Enum.SurfaceType.Smooth
  441. p5.TopSurface = Enum.SurfaceType.Smooth
  442. b5 = Instance.new("BlockMesh", p5)
  443. b5.Name = "Mesh"
  444. b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952)
  445. p6 = Instance.new("Part", m)
  446. p6.Material = "Metal"
  447. p6.BrickColor = BrickColor.new("Really black")
  448. p6.Name = "Handle"
  449. p6.FormFactor = Enum.FormFactor.Custom
  450. p6.Size = Vector3.new(1.29999995, 1, 1)
  451. p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005)
  452. p6.CanCollide = false
  453. p6.Locked = true
  454. p6.BottomSurface = Enum.SurfaceType.Smooth
  455. p6.TopSurface = Enum.SurfaceType.Smooth
  456. b6 = Instance.new("SpecialMesh", p6)
  457. b6.MeshType = Enum.MeshType.Cylinder
  458. b6.Name = "Mesh"
  459. b6.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  460. p7 = Instance.new("Part", m)
  461. p7.Material = "Metal"
  462. p7.BrickColor = BrickColor.new("Really black")
  463. p7.FormFactor = Enum.FormFactor.Symmetric
  464. p7.Size = Vector3.new(1, 1, 1)
  465. p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156)
  466. p7.CanCollide = false
  467. p7.Locked = true
  468. b7 = Instance.new("SpecialMesh", p7)
  469. b7.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  470. b7.TextureId = ""
  471. b7.MeshType = Enum.MeshType.FileMesh
  472. b7.Name = "Mesh"
  473. b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  474. p8 = Instance.new("Part", m)
  475. p8.Material = "Metal"
  476. p8.BrickColor = BrickColor.new("Really black")
  477. p8.Name = "BladePart"
  478. p8.FormFactor = Enum.FormFactor.Symmetric
  479. p8.Size = Vector3.new(1, 1, 1)
  480. p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005)
  481. p8.CanCollide = false
  482. p8.Locked = true
  483. p8.Elasticity = 0
  484. p8.BottomSurface = Enum.SurfaceType.Smooth
  485. p8.TopSurface = Enum.SurfaceType.Smooth
  486. b8 = Instance.new("BlockMesh", p8)
  487. b8.Name = "Mesh"
  488. b8.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  489. p9 = Instance.new("Part", m)
  490. p9.Material = "Metal"
  491. p9.BrickColor = BrickColor.new("Really black")
  492. p9.Name = "BladePart"
  493. p9.FormFactor = Enum.FormFactor.Symmetric
  494. p9.Size = Vector3.new(1, 1, 1)
  495. p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005)
  496. p9.CanCollide = false
  497. p9.Locked = true
  498. p9.Elasticity = 0
  499. p9.BottomSurface = Enum.SurfaceType.Smooth
  500. p9.TopSurface = Enum.SurfaceType.Smooth
  501. b9 = Instance.new("BlockMesh", p9)
  502. b9.Name = "Mesh"
  503. b9.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  504. p10 = Instance.new("Part", m)
  505. p10.Material = "Metal"
  506. p10.BrickColor = BrickColor.new("Really black")
  507. p10.Name = "BladeTip"
  508. p10.FormFactor = Enum.FormFactor.Symmetric
  509. p10.Size = Vector3.new(1, 1, 2)
  510. p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971)
  511. p10.CanCollide = false
  512. p10.Locked = true
  513. p10.Elasticity = 0
  514. p10.BottomSurface = Enum.SurfaceType.Smooth
  515. p10.TopSurface = Enum.SurfaceType.Smooth
  516. b10 = Instance.new("SpecialMesh", p10)
  517. b10.MeshType = Enum.MeshType.Wedge
  518. b10.Name = "Mesh"
  519. b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928)
  520. p11 = Instance.new("Part", m)
  521. p11.Material = "Metal"
  522. p11.BrickColor = BrickColor.new("Really black")
  523. p11.Name = "BladePart"
  524. p11.FormFactor = Enum.FormFactor.Symmetric
  525. p11.Size = Vector3.new(1, 1, 1)
  526. p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005)
  527. p11.CanCollide = false
  528. p11.Locked = true
  529. p11.Elasticity = 0
  530. p11.BottomSurface = Enum.SurfaceType.Smooth
  531. p11.TopSurface = Enum.SurfaceType.Smooth
  532. b11 = Instance.new("BlockMesh", p11)
  533. b11.Name = "Mesh"
  534. b11.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  535. p12 = Instance.new("Part", m)
  536. p12.Material = "Metal"
  537. p12.BrickColor = BrickColor.new("Really black")
  538. p12.Name = "BladeTip2"
  539. p12.FormFactor = Enum.FormFactor.Custom
  540. p12.Size = Vector3.new(1, 1, 2.4000001)
  541. p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727)
  542. p12.CanCollide = false
  543. p12.Locked = true
  544. p12.Elasticity = 0
  545. p12.BottomSurface = Enum.SurfaceType.Smooth
  546. p12.TopSurface = Enum.SurfaceType.Smooth
  547. b12 = Instance.new("SpecialMesh", p12)
  548. b12.MeshType = Enum.MeshType.Wedge
  549. b12.Name = "Mesh"
  550. b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928)
  551. p13 = Instance.new("Part", m)
  552. p13.Material = "Metal"
  553. p13.BrickColor = BrickColor.new("Medium stone grey")
  554. p13.Transparency = 1
  555. p13.Name = "HitBox"
  556. p13.FormFactor = Enum.FormFactor.Custom
  557. p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999)
  558. p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006)
  559. p13.CanCollide = false
  560. p13.Locked = true
  561. p13.BottomSurface = Enum.SurfaceType.Smooth
  562. p13.TopSurface = Enum.SurfaceType.Smooth
  563. w1 = Instance.new("Weld", p1)
  564. w1.Name = "Part_Weld"
  565. w1.Part0 = p1
  566. w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006)
  567. w1.Part1 = p2
  568. w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
  569. w2 = Instance.new("Weld", p2)
  570. w2.Name = "Part_Weld"
  571. w2.Part0 = p2
  572. w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
  573. w2.Part1 = p3
  574. w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
  575. w3 = Instance.new("Weld", p3)
  576. w3.Name = "BladePart_Weld"
  577. w3.Part0 = p3
  578. w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
  579. w3.Part1 = p4
  580. w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
  581. w4 = Instance.new("Weld", p4)
  582. w4.Name = "Hilt_Weld"
  583. w4.Part0 = p4
  584. w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
  585. w4.Part1 = p5
  586. w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
  587. w5 = Instance.new("Weld", p5)
  588. w5.Name = "Handle_Weld"
  589. w5.Part0 = p5
  590. w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
  591. w5.Part1 = p6
  592. w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
  593. w6 = Instance.new("Weld", p6)
  594. w6.Name = "Part_Weld"
  595. w6.Part0 = p6
  596. w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
  597. w6.Part1 = p7
  598. w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
  599. w7 = Instance.new("Weld", p7)
  600. w7.Name = "BladePart_Weld"
  601. w7.Part0 = p7
  602. w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
  603. w7.Part1 = p8
  604. w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
  605. w8 = Instance.new("Weld", p8)
  606. w8.Name = "BladePart_Weld"
  607. w8.Part0 = p8
  608. w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
  609. w8.Part1 = p9
  610. w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
  611. w9 = Instance.new("Weld", p9)
  612. w9.Name = "BladeTip_Weld"
  613. w9.Part0 = p9
  614. w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
  615. w9.Part1 = p10
  616. w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
  617. w10 = Instance.new("Weld", p10)
  618. w10.Name = "BladePart_Weld"
  619. w10.Part0 = p10
  620. w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
  621. w10.Part1 = p11
  622. w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
  623. w11 = Instance.new("Weld", p11)
  624. w11.Name = "BladeTip2_Weld"
  625. w11.Part0 = p11
  626. w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
  627. w11.Part1 = p12
  628. w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
  629. w12 = Instance.new("Weld", p12)
  630. w12.Name = "HitBox_Weld"
  631. w12.Part0 = p12
  632. w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
  633. w12.Part1 = p13
  634. w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
  635. w13 = Instance.new("Weld", p13)
  636. w13.Name = "Weld"
  637. w13.Part0 = p13
  638. w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
  639. m.Parent = char
  640. m:MakeJoints()
  641. ----------------------------------------------------
  642. local cor = Instance.new("Part", char.Genkadda)
  643. cor.Name = "Thingy"
  644. cor.Locked = true
  645. cor.BottomSurface = 0
  646. cor.CanCollide = false
  647. cor.Size = Vector3.new(1, 9, 1)
  648. cor.Transparency = 1
  649. cor.TopSurface = 0
  650. corw = Instance.new("Weld", cor)
  651. corw.Part0 = rarm
  652. corw.Part1 = cor
  653. corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90))
  654. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  655. weld1 = Instance.new("Weld", char.Genkadda)
  656. weld1.Part0 = cor
  657. weld1.Part1 = p6
  658. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  659. ----------------------------------------------------
  660. function Vanish()
  661. for i = 1, 10 do wait()
  662. for i,v in pairs(char.Genkadda:GetChildren()) do
  663. if v:IsA("Part") or v:IsA("WedgePart") then
  664. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  665. v.Transparency = v.Transparency + 0.1
  666. end
  667. end
  668. end
  669. end
  670. end
  671. ----------------------------------------------------
  672. function Appear()
  673. for i = 1, 10 do wait()
  674. for i,v in pairs(char.Genkadda:GetChildren()) do
  675. if v:IsA("Part") or v:IsA("WedgePart") then
  676. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  677. v.Transparency = v.Transparency - 0.1
  678. end
  679. end
  680. end
  681. end
  682. end
  683. ----------------------------------------------------
  684. local player = game.Players.LocalPlayer
  685. local pchar = player.Character
  686. local mouse = player:GetMouse()
  687. local cam = workspace.CurrentCamera
  688.  
  689. local rad = math.rad
  690.  
  691. local keysDown = {}
  692. local flySpeed = 0
  693. local MAX_FLY_SPEED = 50
  694.  
  695. local canFly = false
  696. local flyToggled = false
  697.  
  698. local forward, side = 0, 0
  699. local lastForward, lastSide = 0, 0
  700.  
  701. local floatBP = Instance.new("BodyPosition")
  702. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  703. local flyBV = Instance.new("BodyVelocity")
  704. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  705. local turnBG = Instance.new("BodyGyro")
  706. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  707.  
  708. mouse.KeyDown:connect(function(key)
  709. keysDown[key] = true
  710.  
  711. if key == "f" then
  712. flyToggled = not flyToggled
  713.  
  714. if not flyToggled then
  715. stanceToggle = "Normal"
  716. floatBP.Parent = nil
  717. flyBV.Parent = nil
  718. turnBG.Parent = nil
  719. root.Velocity = Vector3.new()
  720. pchar.Humanoid.PlatformStand = false
  721. end
  722. end
  723.  
  724. end)
  725. mouse.KeyUp:connect(function(key)
  726. keysDown[key] = nil
  727. end)
  728.  
  729. local function updateFly()
  730.  
  731. if not flyToggled then return end
  732.  
  733. lastForward = forward
  734. lastSide = side
  735.  
  736. forward = 0
  737. side = 0
  738.  
  739. if keysDown.w then
  740. forward = forward + 1
  741. end
  742. if keysDown.s then
  743. forward = forward - 1
  744. end
  745. if keysDown.a then
  746. side = side - 1
  747. end
  748. if keysDown.d then
  749. side = side + 1
  750. end
  751.  
  752. canFly = (forward ~= 0 or side ~= 0)
  753.  
  754. if canFly then
  755. stanceToggle = "Floating"
  756. turnBG.Parent = root
  757. floatBP.Parent = nil
  758. flyBV.Parent = root
  759.  
  760. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  761. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  762. else
  763. floatBP.position = root.Position
  764. floatBP.Parent = root
  765.  
  766. flySpeed = flySpeed - 1
  767. if flySpeed < 0 then flySpeed = 0 end
  768. end
  769.  
  770. local camCF = cam.CoordinateFrame
  771. local in_forward = canFly and forward or lastForward
  772. local in_side = canFly and side or lastSide
  773.  
  774. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  775. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  776.  
  777. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  778. 0)
  779. end
  780.  
  781. game:service'RunService'.RenderStepped:connect(function()
  782. if flyToggled then
  783. pchar.Humanoid.PlatformStand = true
  784. end
  785. updateFly()
  786. end)
  787. ----------------------------------------------------
  788. p13.Touched:connect(function(ht)
  789. hit = ht.Parent
  790. if ht and hit:IsA("Model") then
  791. if hit:FindFirstChild("Humanoid") then
  792. if hit.Name ~= p.Name then
  793. if Debounces.Slashing == true and Debounces.Slashed == false then
  794. Debounces.Slashed = true
  795. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  796. wait(.3)
  797. Debounces.Slashed = false
  798. end
  799. end
  800. end
  801. elseif ht and hit:IsA("Hat") then
  802. if hit.Parent.Name ~= p.Name then
  803. if hit.Parent:FindFirstChild("Humanoid") then
  804. if Debounces.Slashing == true and Debounces.Slashed == false then
  805. Debounces.Slashed = true
  806. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  807. wait(.3)
  808. Debounces.Slashed = false
  809. end
  810. end
  811. end
  812. end
  813. end)
  814. ----------------------------------------------------
  815. ptz = {0.7, 0.8, 0.9, 1}
  816. idz = {"161006212", "161006195"}
  817. mouse.KeyDown:connect(function(key)
  818. if key == "q" then
  819. if Debounces.CanAttack == true then
  820. Debounces.CanAttack = false
  821. Debounces.NoIdl = true
  822. Debounces.on = true
  823. for i = 1, 20 do
  824. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2)
  825. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2)
  826. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2)
  827. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2)
  828. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
  829. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
  830. if Debounces.on == false then break end
  831. rs:wait(2)
  832. end
  833. z = Instance.new("Sound", hed)
  834. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  835. z.Pitch = ptz[math.random(1,#ptz)]
  836. z.Volume = 1
  837. wait(.01)
  838. z:Play()
  839. Debounces.Slashing = true
  840. for i = 1, 20 do
  841. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3)
  842. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3)
  843. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3)
  844. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3)
  845. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
  846. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
  847. if Debounces.on == false then break end
  848. rs:wait(2)
  849. end
  850. z1 = Instance.new("Sound", hed)
  851. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  852. z1.Pitch = ptz[math.random(1,#ptz)]
  853. z1.Volume = 1
  854. wait(.01)
  855. z1:Play()
  856. Debounces.Slashing = true
  857. for i = 1, 26 do
  858. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35)
  859. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35)
  860. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.35)
  861. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35)
  862. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35)
  863. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35)
  864. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35)
  865. if Debounces.on == false then break end
  866. rs:wait(2)
  867. end
  868. Debounces.Slashing = false
  869. z:Destroy()
  870. z1:Destroy()
  871. cor.Weld.C1 = CFrame.Angles(0,0,0)
  872. if Debounces.CanAttack == false then
  873. Debounces.CanAttack = true
  874. Debounces.NoIdl = false
  875. Debounces.on = false
  876. end
  877. end
  878. end
  879. end)
  880. -------------------------------
  881. pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4}
  882. mouse.KeyDown:connect(function(key)
  883. if key == "e" then
  884. if Debounces.CanAttack == true then
  885. Debounces.CanAttack = false
  886. Debounces.NoIdl = true
  887. Debounces.on = true
  888. Debounces.ks = true
  889. larm.Touched:connect(function(ht)
  890. hit = ht.Parent
  891. if ht and hit:IsA("Model") then
  892. if hit:FindFirstChild("Humanoid") then
  893. if hit.Name ~= p.Name then
  894. if Debounces.Slapping == true and Debounces.Slapped == false then
  895. Debounces.Slapped = true
  896. if Debounces.ks==true then
  897. z = Instance.new("Sound",hed)
  898. z.SoundId = "rbxassetid://169380525"
  899. z.Volume = 1
  900. z:Play()
  901. Debounces.ks=false
  902. end
  903. hit:FindFirstChild("Humanoid"):TakeDamage(10)
  904. hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90
  905. wait(.5)
  906. Debounces.Slapped = false
  907. z:Destroy()
  908. end
  909. end
  910. end
  911. elseif ht and hit:IsA("Hat") then
  912. if hit.Parent.Name ~= p.Name then
  913. if hit.Parent:FindFirstChild("Humanoid") then
  914. if Debounces.Slapping == true and Debounces.Slapped == false then
  915. Debounces.Slapped = true
  916. if Debounces.ks==true then
  917. z = Instance.new("Sound",hed)
  918. z.SoundId = "rbxassetid://169380525"
  919. z.Volume = 1
  920. z:Play()
  921. Debounces.ks=false
  922. end
  923. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
  924. wait(.5)
  925. Debounces.Slapped = false
  926. z:Destroy()
  927. end
  928. end
  929. end
  930. end
  931. end)
  932. for i = 1, 14 do
  933. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5)
  934. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5)
  935. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5)
  936. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  937. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  938. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  939. if Debounces.on==false then break end
  940. rs:wait(2)
  941. end
  942. Debounces.Slapping = true
  943. for i = 1, 20 do
  944. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6)
  945. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6)
  946. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6)
  947. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6)
  948. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  949. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  950. if Debounces.on==false then break end
  951. rs:wait(2)
  952. end
  953. Debounces.Slapping = false
  954. if Debounces.CanAttack == false then
  955. Debounces.CanAttack = true
  956. Debounces.NoIdl = false
  957. Debounces.on = false
  958. end
  959. end
  960. end
  961. end)
  962. -------------------------------
  963. mouse.KeyDown:connect(function(key)
  964. if key == "r" then
  965. if Debounces.CanAttack == true then
  966. Debounces.CanAttack = false
  967. Debounces.NoIdl = true
  968. Debounces.on = true
  969. for i = 1, 20 do
  970. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3)
  971. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3)
  972. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
  973. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
  974. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  975. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  976. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35)
  977. if Debounces.on==false then break end
  978. rs:wait(2)
  979. end
  980. Debounces.Slashing = true
  981. z = Instance.new("Sound",hed)
  982. z.SoundId = "rbxassetid://206083107"
  983. z.Pitch = .75
  984. z.Volume = .65
  985. wait(0.1)
  986. z:Play()
  987. z1 = Instance.new("Sound", hed)
  988. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  989. z1.Pitch = ptz[math.random(1,#ptz)]
  990. z1.Volume = 1
  991. wait(.01)
  992. z1:Play()
  993. for i = 1, 20 do
  994. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3)
  995. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3)
  996. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  997. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
  998. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  999. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
  1000. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35)
  1001. if Debounces.on==false then break end
  1002. rs:wait(2)
  1003. end
  1004. Debounces.Slashing = false
  1005. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1006. if Debounces.CanAttack == false then
  1007. Debounces.CanAttack = true
  1008. Debounces.NoIdl = false
  1009. Debounces.on = false
  1010. end
  1011. end
  1012. end
  1013. end)
  1014. -------------------------------
  1015. mouse.KeyDown:connect(function(key)
  1016. if key == "t" then
  1017. if Debounces.CanAttack == true then
  1018. Debounces.CanAttack = false
  1019. Debounces.on = true
  1020. Debounces.NoIdl = true
  1021. for i = 1,20 do
  1022. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
  1023. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
  1024. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2)
  1025. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2)
  1026. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2)
  1027. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2)
  1028. if Debounces.on==false then break end
  1029. rs:wait(2)
  1030. end
  1031. for i = 1,20 do
  1032. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
  1033. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
  1034. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2)
  1035. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
  1036. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2)
  1037. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
  1038. if Debounces.on==false then break end
  1039. rs:wait(2)
  1040. end
  1041. if Debounces.CanAttack == false then
  1042. Debounces.CanAttack = true
  1043. Debounces.on = false
  1044. Debounces.NoIdl = false
  1045. end
  1046. end
  1047. end
  1048. end)
  1049. -------------------------------
  1050. mouse.KeyDown:connect(function(key)
  1051. if key == "g" then
  1052. if Debounces.CanAttack == true then
  1053. Debounces.CanAttack = false
  1054. Debounces.NoIdl = true
  1055. Debounces.on = true
  1056. Debounces.Slashing = true
  1057. for i = 1, 8 do
  1058. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8)
  1059. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8)
  1060. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1061. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1062. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1063. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1064. if Debounces.on==false then break end
  1065. rs:wait(2)
  1066. end
  1067. for i = 1, 1440, 48 do
  1068. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  1069. rs:wait(4)
  1070. end
  1071. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1072. Debounces.Slashing = false
  1073. if Debounces.CanAttack == false then
  1074. Debounces.CanAttack = true
  1075. Debounces.NoIdl = false
  1076. Debounces.on = false
  1077. end
  1078. end
  1079. end
  1080. end)
  1081. ----------------------------------------------------
  1082. Grab = false
  1083. mouse.KeyDown:connect(function(key)
  1084. if key == "z" then
  1085. Debounces.on = true
  1086. Debounces.NoIdl = true
  1087. Debounces.ks = true
  1088. if Grab == false then
  1089. gp = nil
  1090. for i = 1, 20 do
  1091. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  1092. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
  1093. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  1094. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  1095. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  1096. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  1097. if Debounces.on == false then break end
  1098. rs:wait(2)
  1099. end
  1100. con1=larm.Touched:connect(function(hit) -- this is grab
  1101. ht = hit.Parent
  1102. hum1=ht:FindFirstChild('Humanoid')
  1103. if hum1 ~= nil then
  1104. if Debounces.ks==true then
  1105. z = Instance.new("Sound",hed)
  1106. z.SoundId = "rbxassetid://169380525"
  1107. z.Volume = 1
  1108. z:Play()
  1109. Debounces.ks=false
  1110. end
  1111. hum1.PlatformStand=true
  1112. gp = ht
  1113. Grab = true
  1114. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
  1115. asd.Parent = larm
  1116. asd.Name = "asd"
  1117. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  1118. stanceToggle = "Grabbed"
  1119. end
  1120. end)
  1121. for i = 1, 20 do
  1122. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  1123. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  1124. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
  1125. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
  1126. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1127. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  1128. if Debounces.on == false then break end
  1129. rs:wait(2)
  1130. end
  1131. con1:disconnect()
  1132. Debounces.on = false
  1133. Debounces.NoIdl = false
  1134. elseif Grab == true then
  1135. Grab = false
  1136. for i = 1, 16 do
  1137. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
  1138. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3)
  1139. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1140. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
  1141. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  1142. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1143. if Debounces.on == false then end
  1144. rs:wait()
  1145. end
  1146. Slam()
  1147. if gp ~= nil then
  1148. for i,v in pairs(larm:GetChildren()) do
  1149. if v.Name == "asd" and v:IsA("Weld") then
  1150. v:Remove()
  1151. end
  1152. end
  1153. for i = 1, 16 do
  1154. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
  1155. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3)
  1156. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
  1157. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
  1158. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3)
  1159. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3)
  1160. if Debounces.on == false then end
  1161. rs:wait()
  1162. end
  1163. stanceToggle = "Normal"
  1164. ht=nil
  1165. Debounces.on = false
  1166. Debounces.NoIdl = false
  1167. elseif ht == nil then wait()
  1168. Grab = false
  1169. Debounces.on = false
  1170. Debounces.NoIdl = false
  1171. end
  1172. end
  1173. end
  1174. end)
  1175. -------------------------------
  1176. Sit = false
  1177. mouse.KeyDown:connect(function(key)
  1178. if key == "v" then
  1179. if Sit == false then
  1180. Sit = true
  1181. hum.WalkSpeed = 0.1
  1182. stanceToggle = "Sitting"
  1183. elseif Sit == true then
  1184. Sit = false
  1185. hum.WalkSpeed = 7
  1186. stanceToggle = "Normal"
  1187. end
  1188. end
  1189. end)
  1190. -------------------------------
  1191. Melee = false
  1192. mouse.KeyDown:connect(function(key)
  1193. if key == "m" then
  1194. if Melee == false then
  1195. Melee = true
  1196. Vanish()
  1197. stanceToggle = "Melee"
  1198. elseif Melee == true then
  1199. Melee = false
  1200. Appear()
  1201. stanceToggle = "Normal"
  1202. end
  1203. end
  1204. end)
  1205. -------------------------------
  1206. mouse.KeyDown:connect(function(key)
  1207. if string.byte(key) == 52 then
  1208. if Debounces.CanAttack == true then
  1209. if stanceToggle ~= "Floating" then
  1210. char.Humanoid.WalkSpeed = 60
  1211. Burst()
  1212. elseif Debounces.CanAttack == false then
  1213. elseif stanceToggle == "Floating" then
  1214. wait()
  1215. end
  1216. end
  1217. end
  1218. end)
  1219. mouse.KeyUp:connect(function(key)
  1220. if string.byte(key) == 52 then
  1221. char.Humanoid.WalkSpeed = 9
  1222. end
  1223. end)
  1224. -------------------------------
  1225. local animpose = "Idle"
  1226. local lastanimpose = "Idle"
  1227. local grab = false
  1228. local sine = 0
  1229. local change = 1
  1230. local val = 0
  1231. local ffing = false
  1232. -------------------------------
  1233. game:GetService("RunService").RenderStepped:connect(function()
  1234. char.Humanoid.FreeFalling:connect(function(f)
  1235. if f then
  1236. ffing = true
  1237. else
  1238. ffing = false
  1239. end
  1240. end)
  1241. sine = sine + change
  1242. if jumpn == true then
  1243. animpose = "Jumping"
  1244. elseif ffing == true then
  1245. animpose = "Freefalling"
  1246. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1247. animpose = "Idle"
  1248. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1249. animpose = "Walking"
  1250. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1251. animpose = "Running"
  1252. end
  1253. if animpose ~= lastanimpose then
  1254. sine = 0
  1255. if Debounces.NoIdl == false then
  1256. if stanceToggle == "Normal" then
  1257. for i = 1, 2 do
  1258. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2)
  1259. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2)
  1260. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
  1261. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1262. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1263. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1264. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1265. end
  1266. elseif stanceToggle == "Sitting" then
  1267. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2)
  1268. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
  1269. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1270. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3)
  1271. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1272. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1273. elseif stanceToggle == "Floating" then
  1274. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
  1275. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
  1276. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1277. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  1278. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1279. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1280. wait()
  1281. end
  1282. else
  1283. end
  1284. end
  1285. lastanimpose = animpose
  1286. if Debounces.NoIdl == false then
  1287. if animpose == "Idle" then
  1288. if stanceToggle == "Normal" then
  1289. change = 0.5
  1290. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  1291. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
  1292. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2)
  1293. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1294. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1295. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1296. elseif stanceToggle == "Melee" then
  1297. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2)
  1298. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
  1299. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1300. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1301. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1302. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1303. elseif stanceToggle == "Sitting" then
  1304. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2)
  1305. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
  1306. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1307. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3)
  1308. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1309. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1310. elseif stanceToggle == "Floating" then
  1311. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
  1312. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
  1313. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1314. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  1315. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1316. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1317. elseif stanceToggle == "Grabbed" then
  1318. grab = true
  1319. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  1320. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3)
  1321. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  1322. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1323. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  1324. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1325. end
  1326. elseif animpose == "Walking" then
  1327. if stanceToggle == "Normal" then
  1328. change = 1
  1329. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
  1330. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2)
  1331. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1332. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1333. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1334. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1335. elseif stanceToggle == "Melee" then
  1336. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2)
  1337. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2)
  1338. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1339. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1340. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1341. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1342. elseif stanceToggle == "Floating" then
  1343. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  1344. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  1345. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
  1346. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4)
  1347. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4)
  1348. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  1349. elseif stanceToggle == "Grabbed" then
  1350. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
  1351. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3)
  1352. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1353. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1354. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1355. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1356. end
  1357. elseif animpose == "Running" then
  1358. if stanceToggle == "Normal" then
  1359. change = 1
  1360. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15)
  1361. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15)
  1362. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15)
  1363. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15)
  1364. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15)
  1365. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15)
  1366. elseif stanceToggle == "Floating" then
  1367. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  1368. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  1369. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  1370. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4)
  1371. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4)
  1372. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05)
  1373. end
  1374. end
  1375. end
  1376. end)
  1377.  
  1378. Spawn(function()
  1379. while wait() do
  1380. updateFly()
  1381. end
  1382. end)
  1383.  
  1384. Spawn(function()
  1385. while wait(.1) do
  1386. Magik()
  1387. end
  1388. end)
  1389.  
  1390. Spawn(function()
  1391. while wait(.1) do
  1392. Magik2()
  1393. end
  1394. end)
  1395.  
  1396. Spawn(function()
  1397. while wait(4) do
  1398. GroundWave()
  1399. end
  1400. end)
  1401. --c00lkidd/c00lbl0xian
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement