Advertisement
zEE1222

Untitled

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