Advertisement
Dev_Eagle

Untitled

Sep 5th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.47 KB | None | 0 0
  1. local p = game:GetService("Players").LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local stanceToggle = "Normal"
  16. local l = game:GetService("Lighting")
  17. local rs = game:GetService("RunService").RenderStepped
  18. hum.DisplayDistanceType = "None"
  19. math.randomseed(os.time())
  20. for i,v in pairs(char:children()) do
  21. if v:IsA("Hat") then
  22. v:Destroy()
  23. end
  24. end
  25. for i,v in pairs (hed:GetChildren()) do
  26. if v:IsA("Sound") then
  27. v:Destroy()
  28. end
  29. end
  30. ----------------------------------------------------
  31. Debounces = {
  32. CanAttack = true;
  33. CanJoke = true;
  34. NoIdl = false;
  35. Slashing = false;
  36. Slashed = false;
  37. Slapping = false;
  38. Slapped = false;
  39. ks = false;
  40. }
  41. ----------------------------------------------------
  42. function weld5(part0, part1, c0, c1)
  43. weeld=Instance.new("Weld", part0)
  44. weeld.Part0=part0
  45. weeld.Part1=part1
  46. weeld.C0=c0
  47. weeld.C1=c1
  48. return weeld
  49. end
  50. ----------------------------------------------------
  51. mod4 = Instance.new("Model",char)
  52.  
  53. ptez = {0.7, 0.8, 0.9, 1}
  54.  
  55. function FindNearestTorso(Position,Distance,SinglePlayer)
  56. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  57. local List = {}
  58. for i,v in pairs(workspace:GetChildren())do
  59. if v:IsA("Model")then
  60. if v:findFirstChild("Torso")then
  61. if v ~= char then
  62. if(v.Torso.Position -Position).magnitude <= Distance then
  63. table.insert(List,v)
  64. end
  65. end
  66. end
  67. end
  68. end
  69. return List
  70. end
  71. ----------------------------------------------------
  72. GroundWave3 = function()
  73. local HandCF = CFrame.new(root.Position - Vector3.new(0,0,0)) * CFrame.Angles(0,0,0)
  74. local wave1 = Instance.new("Part", torso)
  75. wave1.BrickColor = BrickColor.new("Really black")
  76. wave1.Anchored = true
  77. wave1.CanCollide = false
  78. wave1.Locked = true
  79. wave1.Material = "Neon"
  80. wave1.Size = Vector3.new(1, 1, 1)
  81. wave1.TopSurface = "Smooth"
  82. wave1.BottomSurface = "Smooth"
  83. wave1.Transparency = 0.35
  84. wave1.CFrame = HandCF
  85. wm = Instance.new("SpecialMesh", wave1)
  86. wm.Scale = Vector3.new(.1,.1,.1)
  87. wm.MeshType = "Sphere"
  88. coroutine.wrap(function()
  89. for i = 1, 20, 1 do
  90. wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2)
  91. --wave1.Size = wm.Scale
  92. wave1.CFrame = HandCF
  93. wave1.Transparency = i/20
  94. wait()
  95. end
  96. wait()
  97. wave1:Destroy()
  98. end)()
  99. end
  100. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  101. local wave = Instance.new("Part", torso)
  102. wave.BrickColor = BrickColor.new("Hot pink")
  103. wave.Anchored = true
  104. wave.CanCollide = false
  105. wave.Locked = true
  106. wave.Size = Vector3.new(1, 1, 1)
  107. wave.TopSurface = "Smooth"
  108. wave.BottomSurface = "Smooth"
  109. wave.Transparency = 0.8
  110. wave.CFrame = HandCF
  111. wm = Instance.new("SpecialMesh", wave)
  112. wm.MeshId = "rbxassetid://3270017"
  113. coroutine.wrap(function()
  114. for i = 1, 14, 1 do
  115. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  116. wave.Size = wm.Scale
  117. wave.CFrame = HandCF
  118. wave.Transparency = i/14
  119. wait()
  120. end
  121. wait()
  122. wave:Destroy()
  123. end)()
  124. ----------------------------------------------------
  125. function lerp(a, b, t) -- Linear interpolation
  126. return a + (b - a)*t
  127. end
  128.  
  129. function slerp(a, b, t) --Spherical interpolation
  130. dot = a:Dot(b)
  131. if dot > 0.99999 or dot < -0.99999 then
  132. return t <= 0.5 and a or b
  133. else
  134. r = math.acos(dot)
  135. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  136. end
  137. end
  138.  
  139. function matrixInterpolate(a, b, t)
  140. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  141. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  142. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  143. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  144. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  145. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  146. local t = v1:Dot(v2)
  147. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  148. return CFrame.new()
  149. end
  150. return CFrame.new(
  151. v0.x, v0.y, v0.z,
  152. v1.x, v1.y, v1.z,
  153. v2.x, v2.y, v2.z,
  154. v3.x, v3.y, v3.z)
  155. end
  156. ----------------------------------------------------
  157. function genWeld(a,b)
  158. local w = Instance.new("Weld",a)
  159. w.Part0 = a
  160. w.Part1 = b
  161. return w
  162. end
  163. function weld(a, b)
  164. local weld = Instance.new("Weld")
  165. weld.Name = "W"
  166. weld.Part0 = a
  167. weld.Part1 = b
  168. weld.C0 = a.CFrame:inverse() * b.CFrame
  169. weld.Parent = a
  170. return weld;
  171. end
  172. ----------------------------------------------------
  173. function Lerp(c1,c2,al)
  174. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  175. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  176. for i,v in pairs(com1) do
  177. com1[i] = v+(com2[i]-v)*al
  178. end
  179. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  180. end
  181. ----------------------------------------------------
  182. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  183. local wld = Instance.new("Weld", wp1)
  184. wld.Part0 = wp0
  185. wld.Part1 = wp1
  186. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  187. end
  188. ----------------------------------------------------
  189. local AddInstance = function(Object, ...)
  190. local Obj = Instance.new(Object)
  191. for i,v in next,(...) do
  192. Obj[i] = v
  193. end
  194. return Obj
  195. end
  196. ----------------------------------------------------
  197. larm.Size = larm.Size * 4.5
  198. rarm.Size = rarm.Size * 4.5
  199. lleg.Size = lleg.Size * 4.5
  200. rleg.Size = rleg.Size * 4.5
  201. torso.Size = torso.Size * 4.5
  202. hed.Size = hed.Size * 4.5
  203. root.Size = root.Size * 4.5
  204. ----------------------------------------------------
  205. newWeld(torso, larm, -1.5, 0.5, 0)
  206. larm.Weld.C1 = CFrame.new(5.2,0.5,0)
  207. newWeld(torso, rarm, 1.5, 0.5, 0)
  208. rarm.Weld.C1 = CFrame.new(-5.2, 0.5, 0)
  209. newWeld(torso, hed, 0, 6.8, 0)
  210. newWeld(torso, lleg, -0.5, -1, 0)
  211. lleg.Weld.C1 = CFrame.new(1.7, 8, 0)
  212. newWeld(torso, rleg, 0.5, -1, 0)
  213. rleg.Weld.C1 = CFrame.new(-1.7, 8, 0)
  214. newWeld(root, torso, 0, 0, 0)
  215. torso.Weld.C1 = CFrame.new(0, 0, 0)
  216. ----------------------------------------------------
  217. --local SIDz = {"389780352"}, 167161785, 148274436
  218. z = Instance.new("Sound",char)
  219. z.SoundId = "rbxassetid://389780352"--..SIDz[math.random(1,#SIDz)]
  220. z.Looped = true
  221. z.Volume = math.huge
  222. z.Pitch = 1
  223. wait(1)
  224. z:Play()
  225. hum.WalkSpeed = 16
  226. ----------------------------------------------------
  227. local Eye1 = AddInstance("Part",{
  228. Name = "Eye1",
  229. Parent = hed,
  230. CFrame = hed.CFrame,
  231. Color = Color3.new(255,0,0),
  232. Material = "Neon",
  233. formFactor = "Symmetric",
  234. Size = Vector3.new(1, 1, 1),
  235. CanCollide = false,
  236. Shape = "Ball",
  237. TopSurface = "Smooth",
  238. BottomSurface = "Smooth",
  239. Locked = true,
  240. })
  241. local Weld = AddInstance("Weld",{
  242. Parent = Eye1,
  243. Part0 = hed,
  244. C0 = CFrame.new(-0.7, 0.6, -3.8)*CFrame.Angles(0, 0, 0),
  245. Part1 = Eye1,
  246. })
  247. local Eye2 = AddInstance("Part",{
  248. Name = "Eye2",
  249. Parent = hed,
  250. CFrame = hed.CFrame,
  251. Color = Color3.new(255,0,0),
  252. Material = "Neon",
  253. formFactor = "Symmetric",
  254. Size = Vector3.new(1, 1, 1),
  255. CanCollide = false,
  256. Shape = "Ball",
  257. TopSurface = "Smooth",
  258. BottomSurface = "Smooth",
  259. Locked = true,
  260. })
  261. local Weld = AddInstance("Weld",{
  262. Parent = Eye2,
  263. Part0 = hed,
  264. C0 = CFrame.new(0.7, 0.6, -3.8)*CFrame.Angles(0, 0, 0),
  265. Part1 = Eye2,
  266. })
  267. local Reaper = AddInstance("Part",{
  268. Parent = hed,
  269. CFrame = hed.CFrame,
  270. formFactor = "Symmetric",
  271. Size = Vector3.new(1, 1, 1),
  272. CanCollide = false,
  273. TopSurface = "Smooth",
  274. BottomSurface = "Smooth",
  275. Locked = true,
  276. })
  277. local Weld = AddInstance("Weld",{
  278. Parent = Reaper,
  279. Part0 = hed,
  280. C0 = CFrame.new(0, 1, 0)*CFrame.Angles(0, 0, 0),
  281. Part1 = Reaper,
  282. })
  283. local Mesh = AddInstance("SpecialMesh",{
  284. Parent = Reaper,
  285. MeshId = "rbxassetid://16150814",
  286. TextureId = "rbxassetid://16150799",
  287. Scale = Vector3.new(5.181, 5.181, 5.181),
  288. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  289. })
  290. ----------------------------------------------------
  291. local o1 = AddInstance("Model",{
  292. Name = "Genkadda",
  293. Parent = char,
  294. })
  295. local o2 = AddInstance("Part",{
  296. Name = "Handle",
  297. Parent = o1,
  298. Material = Enum.Material.Granite,
  299. BrickColor = BrickColor.new("Black"),
  300. CanCollide = false,
  301. Size = Vector3.new(0.54285717, 4.96428585, 1.02857149),
  302. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  303. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  304. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  305. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  306. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  307. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  308. Color = Color3.new(0.105882, 0.164706, 0.207843),
  309. Locked = true,
  310. })
  311. local o3 = AddInstance("Part",{
  312. Parent = o1,
  313. Material = Enum.Material.Granite,
  314. BrickColor = BrickColor.new("Really black"),
  315. CanCollide = false,
  316. Size = Vector3.new(0.521428645, 0.200000003, 4.92857265),
  317. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  318. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  319. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  320. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  321. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  322. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  323. Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
  324. Locked = true,
  325. })
  326. local Weld = AddInstance("Weld",{
  327. Parent = o3,
  328. Part0 = o2,
  329. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  330. Part1 = o3,
  331. C1 = CFrame.new(7.12578583, -2.70594311, -56.9015656, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  332. })
  333. local o6 = AddInstance("Part",{
  334. Name = "8",
  335. Parent = o1,
  336. Material = Enum.Material.Neon,
  337. BrickColor = BrickColor.new("New Yeller"),
  338. CanCollide = false,
  339. Size = Vector3.new(0.864285767, 0.221428677, 5.65714407),
  340. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  341. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  342. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  343. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  344. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  345. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  346. Color = Color3.new(0.972549, 0.972549, 0.972549),
  347. Locked = true,
  348. })
  349. local Weld = AddInstance("Weld",{
  350. Parent = o6,
  351. Part0 = o2,
  352. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  353. Part1 = o6,
  354. C1 = CFrame.new(7.12578583, -2.68451595, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  355. })
  356. local o8 = AddInstance("Part",{
  357. Name = "20",
  358. Parent = o1,
  359. Material = Enum.Material.Neon,
  360. BrickColor = BrickColor.new("New Yeller"),
  361. CanCollide = false,
  362. Size = Vector3.new(0.54285717, 0.657142878, 1.02857149),
  363. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  364. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  365. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  366. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  367. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  368. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  369. Color = Color3.new(0.972549, 0.972549, 0.972549),
  370. Locked = true,
  371. })
  372. local Weld = AddInstance("Weld",{
  373. Parent = o8,
  374. Part0 = o2,
  375. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  376. Part1 = o8,
  377. C1 = CFrame.new(7.12578964, 2.69762135, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  378. })
  379. local o10 = AddInstance("Part",{
  380. Name = "15",
  381. Parent = o1,
  382. Material = Enum.Material.Neon,
  383. BrickColor = BrickColor.new("New Yeller"),
  384. CanCollide = false,
  385. Size = Vector3.new(0.54285717, 0.657142937, 2.02857161),
  386. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  387. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  388. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  389. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  390. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  391. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  392. Color = Color3.new(0.972549, 0.972549, 0.972549),
  393. Locked = true,
  394. })
  395. local Weld = AddInstance("Weld",{
  396. Parent = o10,
  397. Part0 = o2,
  398. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  399. Part1 = o10,
  400. C1 = CFrame.new(7.12578773, 2.69762325, -55.3730087, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  401. })
  402. local o11 = AddInstance("SpecialMesh",{
  403. Parent = o10,
  404. MeshType = Enum.MeshType.Wedge,
  405. })
  406. o12 = AddInstance("Part",{
  407. Name = "10",
  408. Parent = o1,
  409. Material = Enum.Material.Neon,
  410. BrickColor = BrickColor.new("New Yeller"),
  411. CanCollide = false,
  412. Size = Vector3.new(0.54285717, 0.657142878, 2.02857161),
  413. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  414. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  415. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  416. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  417. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  418. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  419. Color = Color3.new(0.972549, 0.972549, 0.972549),
  420. Locked = true,
  421. })
  422. local Weld = AddInstance("Weld",{
  423. Parent = o12,
  424. Part0 = o2,
  425. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  426. Part1 = o12,
  427. C1 = CFrame.new(-7.12579155, 2.69761753, 58.4300995, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494),
  428. })
  429. local o13 = AddInstance("SpecialMesh",{
  430. Parent = o12,
  431. MeshType = Enum.MeshType.Wedge,
  432. })
  433. local o14 = AddInstance("Part",{
  434. Name = "9",
  435. Parent = o1,
  436. Material = Enum.Material.Neon,
  437. BrickColor = BrickColor.new("New Yeller"),
  438. CanCollide = false,
  439. Size = Vector3.new(0.54285717, 1.11428583, 0.371428579),
  440. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  441. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  442. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  443. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  444. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  445. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  446. Color = Color3.new(0.972549, 0.972549, 0.972549),
  447. Locked = true,
  448. })
  449. local Weld = AddInstance("Weld",{
  450. Parent = o14,
  451. Part0 = o2,
  452. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  453. Part1 = o14,
  454. C1 = CFrame.new(7.12578201, 2.12619781, -56.2015648, -0.999990702, 0.00427558692, -0.000560841348, 0.00055476022, -0.00142335275, -0.999998868, -0.00427637994, -0.999989867, 0.00142096763),
  455. })
  456. local o15 = AddInstance("SpecialMesh",{
  457. Parent = o14,
  458. MeshType = Enum.MeshType.Wedge,
  459. })
  460. o16 = AddInstance("Part",{
  461. Name = "6",
  462. Parent = o1,
  463. Material = Enum.Material.Neon,
  464. BrickColor = BrickColor.new("New Yeller"),
  465. CanCollide = false,
  466. Size = Vector3.new(0.54285717, 1.11428583, 0.371428579),
  467. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  468. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  469. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  470. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  471. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  472. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  473. Color = Color3.new(0.972549, 0.972549, 0.972549),
  474. Locked = true,
  475. })
  476. local Weld = AddInstance("Weld",{
  477. Parent = o16,
  478. Part0 = o2,
  479. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  480. Part1 = o16,
  481. C1 = CFrame.new(-7.12579536, 2.12619114, 57.6015701, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237),
  482. })
  483. local o17 = AddInstance("SpecialMesh",{
  484. Parent = o16,
  485. MeshType = Enum.MeshType.Wedge,
  486. })
  487. o18 = AddInstance("Part",{
  488. Name = "21",
  489. Parent = o1,
  490. Material = Enum.Material.Neon,
  491. BrickColor = BrickColor.new("New Yeller"),
  492. CanCollide = false,
  493. Size = Vector3.new(0.564285755, 0.257142901, 0.514285743),
  494. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  495. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  496. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  497. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  498. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  499. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  500. Color = Color3.new(0.972549, 0.972549, 0.972549),
  501. Locked = true,
  502. })
  503. local Weld = AddInstance("Weld",{
  504. Parent = o18,
  505. Part0 = o2,
  506. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  507. Part1 = o18,
  508. C1 = CFrame.new(-7.12578964, 2.24047565, 57.1586876, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237),
  509. })
  510. local o19 = AddInstance("SpecialMesh",{
  511. Parent = o18,
  512. MeshType = Enum.MeshType.Wedge,
  513. })
  514. o20 = AddInstance("Part",{
  515. Name = "13",
  516. Parent = o1,
  517. Material = Enum.Material.Neon,
  518. BrickColor = BrickColor.new("New Yeller"),
  519. CanCollide = false,
  520. Size = Vector3.new(0.564285755, 0.257142901, 0.514285743),
  521. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  522. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  523. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  524. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  525. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  526. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  527. Color = Color3.new(0.972549, 0.972549, 0.972549),
  528. Locked = true,
  529. })
  530. local Weld = AddInstance("Weld",{
  531. Parent = o20,
  532. Part0 = o2,
  533. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  534. Part1 = o20,
  535. C1 = CFrame.new(7.1258049, 2.24045849, -56.6443939, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849),
  536. })
  537. local o21 = AddInstance("SpecialMesh",{
  538. Parent = o20,
  539. MeshType = Enum.MeshType.Wedge,
  540. })
  541. o22 = AddInstance("Part",{
  542. Name = "16",
  543. Parent = o1,
  544. Material = Enum.Material.Neon,
  545. BrickColor = BrickColor.new("New Yeller"),
  546. CanCollide = false,
  547. Size = Vector3.new(0.564285755, 1.73571444, 0.200000003),
  548. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  549. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  550. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  551. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  552. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  553. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  554. Color = Color3.new(0.972549, 0.972549, 0.972549),
  555. Locked = true,
  556. })
  557. local Weld = AddInstance("Weld",{
  558. Parent = o22,
  559. Part0 = o2,
  560. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  561. Part1 = o22,
  562. C1 = CFrame.new(7.1258049, 1.38688946, -56.830143, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849),
  563. })
  564. local o23 = AddInstance("SpecialMesh",{
  565. Parent = o22,
  566. Scale = Vector3.new(1, 1, 0.714285672),
  567. MeshType = Enum.MeshType.Wedge,
  568. })
  569. o24 = AddInstance("Part",{
  570. Name = "14",
  571. Parent = o1,
  572. Material = Enum.Material.Neon,
  573. BrickColor = BrickColor.new("New Yeller"),
  574. CanCollide = false,
  575. Size = Vector3.new(0.564285755, 1.73571444, 0.200000003),
  576. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  577. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  578. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  579. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  580. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  581. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  582. Color = Color3.new(0.972549, 0.972549, 0.972549),
  583. Locked = true,
  584. })
  585. local Weld = AddInstance("Weld",{
  586. Parent = o24,
  587. Part0 = o2,
  588. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  589. Part1 = o24,
  590. C1 = CFrame.new(-7.12580872, 1.38689709, 56.9729919, 0.999990702, -0.0042760619, 0.000560866669, 0.000554783503, -0.00142366707, -0.999998868, 0.00427685538, 0.999989867, -0.00142128149),
  591. })
  592. local o25 = AddInstance("SpecialMesh",{
  593. Parent = o24,
  594. Scale = Vector3.new(1, 1, 0.714285672),
  595. MeshType = Enum.MeshType.Wedge,
  596. })
  597. o26 = AddInstance("Part",{
  598. Name = "4",
  599. Parent = o1,
  600. Material = Enum.Material.Neon,
  601. BrickColor = BrickColor.new("New Yeller"),
  602. CanCollide = false,
  603. Size = Vector3.new(0.54285717, 0.657142878, 1.02857149),
  604. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  605. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  606. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  607. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  608. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  609. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  610. Color = Color3.new(0.972549, 0.972549, 0.972549),
  611. Locked = true,
  612. })
  613. local Weld = AddInstance("Weld",{
  614. Parent = o26,
  615. Part0 = o2,
  616. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  617. Part1 = o26,
  618. C1 = CFrame.new(-7.12579346, 2.69762135, 57.9301262, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494),
  619. })
  620. local o27 = AddInstance("SpecialMesh",{
  621. Parent = o26,
  622. MeshType = Enum.MeshType.Wedge,
  623. })
  624. o28 = AddInstance("Part",{
  625. Name = "11",
  626. Parent = o1,
  627. Material = Enum.Material.Neon,
  628. BrickColor = BrickColor.new("New Yeller"),
  629. CanCollide = false,
  630. Size = Vector3.new(0.864285767, 0.657142937, 1.02857149),
  631. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  632. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  633. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  634. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  635. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  636. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  637. Color = Color3.new(0.972549, 0.972549, 0.972549),
  638. Locked = true,
  639. })
  640. local Weld = AddInstance("Weld",{
  641. Parent = o28,
  642. Part0 = o2,
  643. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  644. Part1 = o28,
  645. C1 = CFrame.new(7.12579346, 59.387291, -2.07380676, -0.999990702, 0.00427573128, -0.000560924469, 0.00427652476, 0.999989867, -0.00142105541, 0.000554842758, -0.00142344099, -0.999998868),
  646. })
  647. local o29 = AddInstance("SpecialMesh",{
  648. Parent = o28,
  649. MeshType = Enum.MeshType.Wedge,
  650. })
  651. o30 = AddInstance("Part",{
  652. Name = "17",
  653. Parent = o1,
  654. Material = Enum.Material.Granite,
  655. BrickColor = BrickColor.new("Really black"),
  656. CanCollide = false,
  657. Size = Vector3.new(0.542999983, 20, 3.02900004),
  658. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  659. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  660. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  661. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  662. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  663. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  664. Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
  665. Locked = true,
  666. })
  667. local Weld = AddInstance("Weld",{
  668. Parent = o30,
  669. Part0 = o2,
  670. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  671. Part1 = o30,
  672. C1 = CFrame.new(7.1257782, -12.6132841, -56.901535, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  673. })
  674. local o32 = AddInstance("Part",{
  675. Name = "3",
  676. Parent = o1,
  677. Material = Enum.Material.Neon,
  678. BrickColor = BrickColor.new("New Yeller"),
  679. CanCollide = false,
  680. Size = Vector3.new(0.864285767, 0.657142937, 1.02857149),
  681. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  682. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  683. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  684. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  685. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  686. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  687. Color = Color3.new(0.972549, 0.972549, 0.972549),
  688. Locked = true,
  689. })
  690. local Weld = AddInstance("Weld",{
  691. Parent = o32,
  692. Part0 = o2,
  693. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  694. Part1 = o32,
  695. C1 = CFrame.new(-7.12579155, -54.4158592, -2.07380486, 0.999990702, -0.00427573407, 0.000560930872, -0.00427652756, -0.999989867, 0.00142105471, 0.000554849161, -0.00142344029, -0.999998868),
  696. })
  697. local o33 = AddInstance("SpecialMesh",{
  698. Parent = o32,
  699. MeshType = Enum.MeshType.Wedge,
  700. })
  701. o34 = AddInstance("Part",{
  702. Name = "18",
  703. Parent = o1,
  704. Material = Enum.Material.Neon,
  705. BrickColor = BrickColor.new("New Yeller"),
  706. CanCollide = false,
  707. Size = Vector3.new(0.400000006, 6.11428595, 5.03142834),
  708. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  709. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  710. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  711. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  712. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  713. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  714. Color = Color3.new(0.972549, 0.972549, 0.972549),
  715. Locked = true,
  716. })
  717. local Weld = AddInstance("Weld",{
  718. Parent = o34,
  719. Part0 = o2,
  720. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  721. Part1 = o34,
  722. C1 = CFrame.new(-7.12446594, -25.670372, 56.9022903, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121),
  723. })
  724. local o35 = AddInstance("SpecialMesh",{
  725. Parent = o34,
  726. MeshType = Enum.MeshType.Wedge,
  727. })
  728. o36 = AddInstance("Part",{
  729. Name = "7",
  730. Parent = o1,
  731. Material = Enum.Material.Granite,
  732. BrickColor = BrickColor.new("Really black"),
  733. CanCollide = false,
  734. Size = Vector3.new(0.542999983, 4.11428595, 3.03142834),
  735. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  736. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  737. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  738. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  739. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  740. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  741. Color = Color3.new(0.0666667, 0.0666667, 0.0666667),
  742. Locked = true,
  743. })
  744. local Weld = AddInstance("Weld",{
  745. Parent = o36,
  746. Part0 = o2,
  747. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  748. Part1 = o36,
  749. C1 = CFrame.new(-7.12448502, -24.6703815, 56.9065475, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121),
  750. })
  751. local o37 = AddInstance("SpecialMesh",{
  752. Parent = o36,
  753. MeshType = Enum.MeshType.Wedge,
  754. })
  755. local o38 = AddInstance("Part",{
  756. Name = "19",
  757. Parent = o1,
  758. Material = Enum.Material.Neon,
  759. BrickColor = BrickColor.new("New Yeller"),
  760. CanCollide = false,
  761. Size = Vector3.new(4.54285717, 5.01428556, 1.02857161),
  762. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  763. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  764. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  765. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  766. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  767. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  768. Color = Color3.new(0.972549, 0.972549, 0.972549),
  769. Locked = true,
  770. })
  771. local Weld = AddInstance("Weld",{
  772. Parent = o38,
  773. Part0 = o2,
  774. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  775. Part1 = o38,
  776. C1 = CFrame.new(2.95587444, -56.843811, -7.12423134, -0.000554800034, 0.00142350839, 0.999998927, -0.00427680276, -0.999989867, 0.0014211227, 0.999990702, -0.00427600928, 0.000560882385),
  777. })
  778. local o39 = AddInstance("SpecialMesh",{
  779. Parent = o38,
  780. MeshId = "http://www.roblox.com/asset?id=156292343",
  781. Scale = Vector3.new(7, 7, 15),
  782. MeshType = Enum.MeshType.FileMesh,
  783. })
  784. local o40 = AddInstance("Part",{
  785. Name = "12",
  786. Parent = o1,
  787. Material = Enum.Material.Neon,
  788. BrickColor = BrickColor.new("New Yeller"),
  789. CanCollide = false,
  790. Size = Vector3.new(4.54285717, 5.01428556, 1.02857161),
  791. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  792. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  793. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  794. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  795. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  796. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  797. Color = Color3.new(0.972549, 0.972549, 0.972549),
  798. Locked = true,
  799. })
  800. local Weld = AddInstance("Weld",{
  801. Parent = o40,
  802. Part0 = o2,
  803. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  804. Part1 = o40,
  805. C1 = CFrame.new(-12.5559368, 56.88451, -7.11906242, 0.000555172679, -0.00142338919, -0.999998868, 0.00427656481, 0.999989867, -0.00142100221, 0.999990702, -0.00427577086, 0.000561254215),
  806. })
  807. local o41 = AddInstance("SpecialMesh",{
  808. Parent = o40,
  809. MeshId = "rbxassetid://430139732",
  810. Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001),
  811. MeshType = Enum.MeshType.FileMesh,
  812. })
  813. local o42 = AddInstance("Part",{
  814. Name = "2",
  815. Parent = o1,
  816. Material = Enum.Material.Neon,
  817. BrickColor = BrickColor.new("New Yeller"),
  818. CanCollide = false,
  819. Size = Vector3.new(0.400000006, 20, 5.02900028),
  820. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  821. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  822. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  823. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  824. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  825. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  826. Color = Color3.new(0.972549, 0.972549, 0.972549),
  827. Locked = true,
  828. })
  829. local Weld = AddInstance("Weld",{
  830. Parent = o42,
  831. Part0 = o2,
  832. C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  833. Part1 = o42,
  834. C1 = CFrame.new(7.1257782, -12.6132774, -56.9015694, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  835. })
  836. ----------------------------------------------------
  837. local cor = AddInstance("Part",{
  838. Parent = char.Genkadda,
  839. Name = "Thingy",
  840. Locked = true,
  841. BottomSurface = 0,
  842. CanCollide = false,
  843. Size = Vector3.new(5.5, 5.5, 5.5),
  844. Transparency = 1,
  845. TopSurface = 0,
  846. })
  847. local corw = AddInstance("Weld",{
  848. Parent = cor,
  849. Part0 = rarm,
  850. Part1 = cor,
  851. C0 = CFrame.new(0, -3, 0) * CFrame.Angles(0,0,0),
  852. C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0),
  853. })
  854. local weld1 = AddInstance("Weld",{
  855. Parent = char.Genkadda,
  856. Part0 = cor,
  857. Part1 = o2,
  858. C0 = CFrame.new(-7, 57, 0),
  859. C1 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494),
  860. })
  861. ----------------------------------------------------
  862. function Vanish()
  863. for i = 1, 10 do wait()
  864. for i,v in pairs(char.Genkadda:GetChildren()) do
  865. if v:IsA("Part") or v:IsA("WedgePart") then
  866. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  867. v.Transparency = v.Transparency + 0.1
  868.  
  869. end
  870. end
  871. end
  872. end
  873. end
  874. ----------------------------------------------------
  875. function Appear()
  876. for i = 1, 10 do wait()
  877. for i,v in pairs(char.Genkadda:GetChildren()) do
  878. if v:IsA("Part") or v:IsA("WedgePart") then
  879. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  880. v.Transparency = v.Transparency - 0.1
  881. end
  882. end
  883. end
  884. end
  885. end
  886. ----------------------------------------------------
  887. local player = game:GetService("Players").LocalPlayer
  888. local pchar = player.Character
  889. local mouse = player:GetMouse()
  890. local cam = workspace.CurrentCamera
  891.  
  892. local keysDown = {}
  893. local flySpeed = 0
  894. local MAX_FLY_SPEED = 80
  895.  
  896. local canFly = false
  897. local flyToggled = false
  898.  
  899. local forward, side = 0, 0
  900. local lastForward, lastSide = 0, 0
  901.  
  902. local floatBP = Instance.new("BodyPosition")
  903. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  904. local flyBV = Instance.new("BodyVelocity")
  905. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  906. local turnBG = Instance.new("BodyGyro")
  907. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  908.  
  909. mouse.KeyDown:connect(function(key)
  910. keysDown[key] = true
  911.  
  912. if key == "f" then
  913. flyToggled = not flyToggled
  914.  
  915. if not flyToggled then
  916. stanceToggle = "Normal"
  917. floatBP.Parent = nil
  918. flyBV.Parent = nil
  919. turnBG.Parent = nil
  920. root.Velocity = Vector3.new()
  921. pchar.Humanoid.PlatformStand = false
  922. end
  923. end
  924.  
  925. end)
  926. mouse.KeyUp:connect(function(key)
  927. keysDown[key] = nil
  928. end)
  929.  
  930. local function updateFly()
  931.  
  932. if not flyToggled then return end
  933.  
  934. lastForward = forward
  935. lastSide = side
  936.  
  937. forward = 0
  938. side = 0
  939.  
  940. if keysDown.w then
  941. forward = forward + 1
  942. end
  943. if keysDown.s then
  944. forward = forward - 1
  945. end
  946. if keysDown.a then
  947. side = side - 1
  948. end
  949. if keysDown.d then
  950. side = side + 1
  951. end
  952.  
  953. canFly = (forward ~= 0 or side ~= 0)
  954.  
  955. if canFly then
  956. stanceToggle = "Floating"
  957. turnBG.Parent = root
  958. floatBP.Parent = nil
  959. flyBV.Parent = root
  960.  
  961. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  962. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  963. else
  964. floatBP.position = root.Position
  965. floatBP.Parent = root
  966.  
  967. flySpeed = flySpeed - 1
  968. if flySpeed < 0 then flySpeed = 0 end
  969. end
  970.  
  971. local camCF = cam.CoordinateFrame
  972. local in_forward = canFly and forward or lastForward
  973. local in_side = canFly and side or lastSide
  974.  
  975. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  976. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  977.  
  978. turnBG.cframe = camCF * CFrame.Angles(-math.rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  979. 0)
  980. end
  981.  
  982. game:service'RunService'.RenderStepped:connect(function()
  983. if flyToggled then
  984. pchar.Humanoid.PlatformStand = true
  985. end
  986. updateFly()
  987. end)
  988. ----------------------------------------------------
  989. o42.Touched:connect(function(ht)
  990. hit = ht.Parent
  991. if ht and hit:IsA("Model") then
  992. if hit:FindFirstChild("Humanoid") then
  993. if hit.Name ~= p.Name then
  994. if Debounces.Slashing == true and Debounces.Slashed == false then
  995. Debounces.Slashed = true
  996. hit:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  997. wait(.3)
  998. Debounces.Slashed = false
  999. end
  1000. end
  1001. end
  1002. elseif ht and hit:IsA("Hat") then
  1003. if hit.Parent.Name ~= p.Name then
  1004. if hit.Parent:FindFirstChild("Humanoid") then
  1005. if Debounces.Slashing == true and Debounces.Slashed == false then
  1006. Debounces.Slashed = true
  1007. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  1008. wait(.3)
  1009. Debounces.Slashed = false
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end)
  1015. ----------------------------------------------------
  1016. ptz = {0.7, 0.8, 0.9, 1}
  1017. idz = {"161006212", "161006195"}
  1018. mouse.KeyDown:connect(function(key)
  1019. if key == "q" then
  1020. if Debounces.CanAttack == true then
  1021. Debounces.CanAttack = false
  1022. Debounces.NoIdl = true
  1023. Debounces.on = true
  1024. for i = 1, 20 do
  1025. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,0.65,-6)*CFrame.Angles(math.rad(60),math.rad(70),math.rad(70)), 0.2)
  1026. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-1,2.2) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2)
  1027. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2)
  1028. 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)
  1029. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
  1030. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
  1031. if Debounces.on == false then break end
  1032. rs:wait(2)
  1033. end
  1034. z = Instance.new("Sound", hed)
  1035. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1036. z.Pitch = ptz[math.random(1,#ptz)]
  1037. z.Volume = math.huge
  1038. wait(.01)
  1039. z:Play()
  1040. Debounces.Slashing = true
  1041. for i = 1, 20 do
  1042. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, -2, 3) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3)
  1043. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3)
  1044. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3)
  1045. 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)
  1046. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
  1047. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
  1048. if Debounces.on == false then break end
  1049. rs:wait(2)
  1050. end
  1051. Debounces.Slashing = false
  1052. z:Destroy()
  1053. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1054. if Debounces.CanAttack == false then
  1055. Debounces.CanAttack = true
  1056. Debounces.NoIdl = false
  1057. Debounces.on = false
  1058. end
  1059. end
  1060. end
  1061. end)
  1062. ----------------------------------------------------
  1063. mouse.KeyDown:connect(function(key)
  1064. if key == "r" then
  1065. if Debounces.CanAttack == true then
  1066. Debounces.CanAttack = false
  1067. Debounces.NoIdl = true
  1068. Debounces.on = true
  1069. for i = 1, 20 do
  1070. 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)
  1071. 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)
  1072. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
  1073. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
  1074. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1075. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1076. 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)
  1077. if Debounces.on==false then break end
  1078. rs:wait(2)
  1079. end
  1080. Debounces.Slashing = true
  1081. z = Instance.new("Sound",hed)
  1082. z.SoundId = "rbxassetid://206083107"
  1083. z.Pitch = .75
  1084. z.Volume = .65
  1085. wait(0.1)
  1086. z:Play()
  1087. z1 = Instance.new("Sound", hed)
  1088. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1089. z1.Pitch = ptz[math.random(1,#ptz)]
  1090. z1.Volume = math.huge
  1091. wait(.01)
  1092. z1:Play()
  1093. for i = 1, 20 do
  1094. 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)
  1095. 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)
  1096. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1097. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
  1098. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  1099. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
  1100. 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)
  1101. if Debounces.on==false then break end
  1102. rs:wait(2)
  1103. end
  1104. Debounces.Slashing = false
  1105. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1106. if Debounces.CanAttack == false then
  1107. Debounces.CanAttack = true
  1108. Debounces.NoIdl = false
  1109. Debounces.on = false
  1110. end
  1111. end
  1112. end
  1113. end)
  1114. -------------------------------
  1115. mouse.KeyDown:connect(function(key)
  1116. if key == "g" then
  1117. if Debounces.CanAttack == true then
  1118. Debounces.CanAttack = false
  1119. Debounces.NoIdl = true
  1120. Debounces.on = true
  1121. Debounces.Slashing = true
  1122. for i = 1, 8 do
  1123. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8.2, -2.9, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8)
  1124. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8.2, -2.9, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8)
  1125. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1126. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1127. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1128. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1129. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 2, 0) * CFrame.Angles (math.rad(80), math.rad(0), math.rad(0)), 0.35)
  1130. if Debounces.on==false then break end
  1131. rs:wait(2)
  1132. end
  1133. for i = 1, 1440, 48 do
  1134. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  1135. rs:wait(4)
  1136. end
  1137. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1138. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1139. Debounces.Slashing = false
  1140. if Debounces.CanAttack == false then
  1141. Debounces.CanAttack = true
  1142. Debounces.NoIdl = false
  1143. Debounces.on = false
  1144. end
  1145. end
  1146. end
  1147. end)
  1148. ----------------------------------------------------
  1149. pt = {6.6, 6.8, 7, 7.2, 7.4}
  1150. mouse.KeyDown:connect(function(key)
  1151. if key == "h" then
  1152. if Debounces.CanJoke == true then
  1153. Debounces.CanJoke = false
  1154. u = Instance.new("Sound",char)
  1155. u.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1156. u.Pitch = pt[math.random(1,#pt)]
  1157. u.Volume = math.huge
  1158. u2 = Instance.new("Sound",char)
  1159. u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1160. u2.Pitch = u.Pitch
  1161. u2.Volume = math.huge
  1162. u3 = Instance.new("Sound",char)
  1163. u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1164. u3.Pitch = u.Pitch
  1165. u3.Volume = math.huge
  1166. wait(.01)
  1167. u:Play()
  1168. u2:Play()
  1169. u3:Play()
  1170. wait(1.5)
  1171. u:Destroy()
  1172. u2:Destroy()
  1173. u3:Destroy()
  1174. if Debounces.CanJoke == false then
  1175. Debounces.CanJoke = true
  1176. end
  1177. end
  1178. end
  1179. end)
  1180. ----------------------------------------------------
  1181. Melee = false
  1182. mouse.KeyDown:connect(function(key)
  1183. if key == "m" then
  1184. if Melee == false then
  1185. Melee = true
  1186. Vanish()
  1187. stanceToggle = "Melee"
  1188. elseif Melee == true then
  1189. Melee = false
  1190. Appear()
  1191. stanceToggle = "Normal"
  1192. end
  1193. end
  1194. end)
  1195. -------------------------------
  1196. mouse.KeyDown:connect(function(key)
  1197. if string.byte(key) == 48 then
  1198. if Debounces.CanAttack == true then
  1199. if stanceToggle ~= "Floating" then
  1200. char.Humanoid.WalkSpeed = 80
  1201. elseif Debounces.CanAttack == false then
  1202. elseif stanceToggle == "Floating" then
  1203. wait()
  1204. end
  1205. end
  1206. end
  1207. end)
  1208. mouse.KeyUp:connect(function(key)
  1209. if string.byte(key) == 48 then
  1210. char.Humanoid.WalkSpeed = 16
  1211. end
  1212. end)
  1213. -------------------------------
  1214. local animpose = "Idle"
  1215. local lastanimpose = "Idle"
  1216. local sine = 0
  1217. local change = 1
  1218. local val = 0
  1219. local ffing = false
  1220. -------------------------------
  1221. --[[if stanceToggle == "Sitting" then
  1222. if wait(math.random(1,2)) == 1 then
  1223. stanceToggle = "Sitting2"
  1224. wait(8)
  1225. stanceToggle = "Sitting"
  1226. end
  1227. end]]--
  1228. -------------------------------
  1229. game:GetService("RunService").RenderStepped:connect(function()
  1230. --[[if char.Humanoid.Jump == true then
  1231. jump = true
  1232. else
  1233. jump = false
  1234. end]]
  1235. char.Humanoid.FreeFalling:connect(function(f)
  1236. if f then
  1237. ffing = true
  1238. else
  1239. ffing = false
  1240. end
  1241. end)
  1242. sine = sine + change
  1243. if jumpn == true then
  1244. animpose = "Jumping"
  1245. elseif ffing == true then
  1246. animpose = "Freefalling"
  1247. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1248. animpose = "Idle"
  1249. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1250. animpose = "Walking"
  1251. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1252. animpose = "Running"
  1253. end
  1254. if animpose ~= lastanimpose then
  1255. sine = 0
  1256. if Debounces.NoIdl == false then
  1257. if stanceToggle == "Normal" then
  1258. for i = 1, 2 do
  1259. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2)
  1260. 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)
  1261. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
  1262. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1263. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1264. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1265. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1266. end
  1267. elseif stanceToggle == "Floating" then
  1268. 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)
  1269. 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)
  1270. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1271. 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)
  1272. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1273. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1274. wait()
  1275. end
  1276. else
  1277. end
  1278. end
  1279. lastanimpose = animpose
  1280. if Debounces.NoIdl == false then
  1281. if animpose == "Idle" then
  1282. if stanceToggle == "Normal" then
  1283. change = 0.5
  1284. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2+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)
  1285. 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)
  1286. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2)
  1287. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1288. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  1289. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1290. elseif stanceToggle == "Melee" then
  1291. 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)
  1292. 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)
  1293. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1294. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1295. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1296. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1297. elseif stanceToggle == "Floating" then
  1298. 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)
  1299. 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)
  1300. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1301. 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)
  1302. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1303. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1304. end
  1305. elseif animpose == "Walking" then
  1306. if stanceToggle == "Normal" then
  1307. change = 1
  1308. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
  1309. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2)
  1310. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1311. 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)
  1312. 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)
  1313. 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)
  1314. elseif stanceToggle == "Melee" then
  1315. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0-.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)
  1316. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0+.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)
  1317. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1318. 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)
  1319. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -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)
  1320. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -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)
  1321. elseif stanceToggle == "Floating" then
  1322. 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)
  1323. 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)
  1324. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
  1325. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4)
  1326. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4)
  1327. 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)
  1328. end
  1329. elseif animpose == "Running" then
  1330. if stanceToggle == "Normal" then
  1331. change = 1
  1332. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15)
  1333. 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)
  1334. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-4, -0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15)
  1335. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(4, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15)
  1336. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15)
  1337. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15)
  1338. elseif stanceToggle == "Floating" then
  1339. 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)
  1340. 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)
  1341. hed.Weld.C0 = CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  1342. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4)
  1343. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4)
  1344. 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)
  1345. end
  1346. end
  1347. end
  1348. end)
  1349.  
  1350. Spawn(function()
  1351. while wait() do
  1352. updateFly()
  1353. end
  1354. end)
  1355.  
  1356. Spawn(function()
  1357. while wait(5) do
  1358. GroundWave3()
  1359. end
  1360. end)
  1361. Spawn(function()
  1362. while wait(0) do
  1363. hum.MaxHealth = 1.79769e+308
  1364. hum.Health = 1.79769e+308
  1365. end
  1366. end)
  1367. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  1368. --[[Part0 = Vector3 (Start pos)
  1369. Part1 = Vector3 (End pos)
  1370. Times = number (Amount of lightning parts)
  1371. Offset = number (Offset)
  1372. Color = color (brickcolor value)
  1373. Thickness = number (thickness)
  1374. Trans = number (transparency)
  1375. ]]--
  1376. local magz = (Part0 - Part1).magnitude
  1377. local curpos = Part0
  1378. local trz = {-Offset,Offset}
  1379. for i=1,Times do
  1380. local li = Instance.new("Part", torso)
  1381. li.Name = "Lightning"
  1382. li.TopSurface =0
  1383. li.Material = "Neon"
  1384. li.BottomSurface = 0
  1385. li.Anchored = true
  1386. li.Locked = true
  1387. li.Transparency = Trans or 0.4
  1388. li.BrickColor = BrickColor.new(Color)
  1389. li.formFactor = "Custom"
  1390. li.CanCollide = false
  1391. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1392. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1393. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1394. if Times == i then
  1395. local magz2 = (curpos - Part1).magnitude
  1396. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1397. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1398. else
  1399. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1400. end
  1401. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1402. game.Debris:AddItem(li,.1)
  1403. end
  1404. end
  1405.  
  1406. BodyParts = {} -- Parts to emit lightning effects from
  1407. for _, v in pairs(char:GetChildren()) do
  1408. if v:IsA("Part") then
  1409. table.insert(BodyParts, v)
  1410. end
  1411. end
  1412.  
  1413. Bounding = {} -- Calculate the bounding boxes
  1414. for _, v in pairs(BodyParts) do
  1415. local temp = {X=nil, Y=nil, Z=nil}
  1416. temp.X = v.Size.X/2 * 35
  1417. temp.Y = v.Size.Y/2 * 35
  1418. temp.Z = v.Size.Z/2 * 35
  1419. Bounding[v.Name] = temp
  1420. --table.insert(Bounding, v.Name, temp)
  1421. end
  1422.  
  1423. while wait(0) do -- Emit the Lightning effects randomly
  1424. local Body1 = BodyParts[math.random(#BodyParts)]
  1425. local Body2 = BodyParts[math.random(#BodyParts)]
  1426. local Pos1 = Vector3.new(
  1427. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/35,
  1428. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/35,
  1429. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/35
  1430. )
  1431. local Pos2 = Vector3.new(
  1432. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/35,
  1433. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/35,
  1434. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/35
  1435. )
  1436. local SPos1 = Body1.Position + Pos1
  1437. local SPos2 = Body2.Position + Pos2
  1438. Lightning(SPos1, SPos2, 4, 3, "Teal", .3, .56)
  1439. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement