Advertisement
cat568

test 2

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