G_uy

Untitled

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