Advertisement
saba1517

red titan

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