Advertisement
saba1517

sheriff titan

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