Advertisement
Ban43_GodOfEdits

Quicksilver script by bannaboy43

Sep 22nd, 2017
1,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 123.85 KB | None | 0 0
  1. ------------------------------------Quicksilver by bannaboy43---------------------------------------------
  2. --───────────────────────────
  3. --────────────────────░███░
  4. --───────────────────░█░░░█░
  5. --──────────────────░█░░░░░█░
  6. --─────────────────░█░░░░░█░
  7. --──────────░░░───░█░░░░░░█░
  8. --─────────░███░──░█░░░░░█░
  9. --───────░██░░░██░█░░░░░█░
  10. --──────░█░░█░░░░██░░░░░█░
  11. --────░██░░█░░░░░░█░░░░█░
  12. --───░█░░░█░░░░░░░██░░░█░
  13. --──░█░░░░█░░░░░░░░█░░░█░
  14. --──░█░░░░░█░░░░░░░░█░░░█░
  15. --──░█░░█░░░█░░░░░░░░█░░█░
  16. --─░█░░░█░░░░██░░░░░░█░░█░
  17. --─░█░░░░█░░░░░██░░░█░░░█░
  18. --─░█░█░░░█░░░░░░███░░░░█░
  19. --░█░░░█░░░██░░░░░█░░░░░█░
  20. --░█░░░░█░░░░█████░░░░░█░
  21. --░█░░░░░█░░░░░░░█░░░░░█░
  22. --░█░█░░░░██░░░░█░░░░░█░
  23. --─░█░█░░░░░████░░░░██░
  24. --─░█░░█░░░░░░░█░░██░█░
  25. --──░█░░██░░░██░░█░░░█░
  26. --───░██░░███░░██░█░░█░
  27. --────░██░░░███░░░█░░░█░
  28. ----──────░███░░░░░░█░░░█░
  29. --──────░█░░░░░░░░█░░░█░
  30. --──────░█░░░░░░░░░░░░█░
  31. --──────░█░░░░░░░░░░░░░█░
  32. ----──────░█░░░░░░░░░░░░░█░
  33. --████──░█░████░░░░░░░░█░
  34. --█──█──████──████░░░░░█░
  35. --█──█──█──█──█──████████
  36. --█──█──████──█──█──────█
  37. --█──█──█──█────██──██──█
  38. --█──████──█──█──█──────█
  39. --█─────█──█──█──█──█████
  40. --███████──████──█──────█
  41. --──────████──██████████
  42.  
  43. Player=game:GetService("Players").LocalPlayer
  44. Character=Player.Character
  45. PlayerGui=Player.PlayerGui
  46. Backpack=Player.Backpack
  47. Torso=Character.Torso
  48. Head=Character.Head
  49. Humanoid=Character.Humanoid
  50. m=Instance.new('Model',Character)
  51. LeftArm=Character["Left Arm"]
  52. LeftLeg=Character["Left Leg"]
  53. RightArm=Character["Right Arm"]
  54. RightLeg=Character["Right Leg"]
  55. LS=Torso["Left Shoulder"]
  56. LH=Torso["Left Hip"]
  57. RS=Torso["Right Shoulder"]
  58. RH=Torso["Right Hip"]
  59. Face = Head.face
  60. Neck=Torso.Neck
  61. it=Instance.new
  62. attacktype=1
  63. vt=Vector3.new
  64. cf=CFrame.new
  65. euler=CFrame.fromEulerAnglesXYZ
  66. angles=CFrame.Angles
  67. cloaked=false
  68. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  69. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  70. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  71. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  72. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  73. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  74. RootPart=Character.HumanoidRootPart
  75. RootJoint=RootPart.RootJoint
  76. RootCF=euler(-1.57,0,3.14)
  77. attack = false
  78. attackdebounce = false
  79. deb=false
  80. equipped=true
  81. hand=false
  82. MMouse=nil
  83. combo=0
  84. mana=0
  85. trispeed=1
  86. pathtrans=.7
  87. attackmode='none'
  88. local idle=0
  89. local Anim="Idle"
  90. local Effects={}
  91. local gun=false
  92. local shoot=false
  93. player=nil
  94. cloak=false
  95. lightcolor='Bright blue'
  96.  
  97. local Color1=Torso.BrickColor
  98.  
  99.  
  100. mouse=Player:GetMouse()
  101. --save shoulders
  102. RSH, LSH=nil, nil
  103. --welds
  104. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  105. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  106. LH=Torso["Left Hip"]
  107. RH=Torso["Right Hip"]
  108. TorsoColor=Torso.BrickColor
  109. function NoOutline(Part)
  110. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  111. end
  112. --------------------------------------Speed---------------------------
  113. --[[
  114. ______ __ __ ____ __ ______
  115. / _/ _/ / \/ \ / __/___ __ _______/ /_ / / /
  116. / // / / /\/ /\ \ __/ /_/ __ \/ / / / ___/ __ \ / // /
  117. / // / / / /_/ \ \/_ __/ /_/ / /_/ / / / /_/ / / // /
  118. / // / /_/ \_\/_/ \____/\__,_/_/ /_.___/ _/ // /
  119. /__/__/ /__/__/
  120.  
  121. --]]
  122.  
  123. wait()
  124. Player = game.Players.LocalPlayer
  125. Object = Player.Character.HumanoidRootPart
  126. Arm1 = Player.Character["Right Arm"]
  127. PreviousA1 = Arm1.CFrame.p
  128. Arm2 = Player.Character["Left Arm"]
  129. PreviousA2 = Arm2.CFrame.p
  130.  
  131. Leg1 = Player.Character["Right Leg"]
  132. PreviousL1 = Leg1.CFrame.p
  133. Leg2 = Player.Character["Left Leg"]
  134. PreviousL2 = Leg2.CFrame.p
  135.  
  136. Run = game["Run Service"]
  137.  
  138. PreviousP = Object.CFrame.p
  139. Running = false
  140. Phase = false
  141. PhaseActive = false
  142. Morph = false
  143. MorphActive = false
  144. Tornado = false
  145. TornadoRadius = 50
  146. TornadoActive = false
  147. Portal = false
  148. PortalEnd = false
  149. MaxZ = 0
  150. MinZ = 0
  151. LightMaxX =0
  152. LightMinX = 0
  153. LightMaxX2 = 0
  154. LightMinX2 = 0
  155. LightMaxY =0
  156. LightMinY = 0
  157. Rotation = 0
  158. Length = 5
  159. Color = BrickColor.Gray()
  160. PColor = Color3.new(128,128,128)
  161. PrevPoint1 = nil
  162. PrevPoint2 = nil
  163. PrevPoint3 = nil
  164. PrevPoint4 = nil
  165. PrevPoint5 = nil
  166. PrevPoint6 = nil
  167. PrevPoint7 = nil
  168. PrevPoint8 = nil
  169. PrevPoint9 = nil
  170. PrevPoint10 = nil
  171. PrevPoint11 = nil
  172. PrevPoint12 = nil
  173. angle = 0
  174. Mouse = Player:GetMouse()
  175. Player.Character.Humanoid.WalkSpeed = 20
  176.  
  177. Nil = function()
  178. PrevPoint1 = "Empty"
  179. PrevPoint2 = "Empty"
  180. PrevPoint3 = "Empty"
  181. PrevPoint4 = "Empty"
  182. PrevPoint5 = "Empty"
  183. PrevPoint6 = "Empty"
  184. PrevPoint7 = "Empty"
  185. PrevPoint8 = "Empty"
  186. PrevPoint9 = "Empty"
  187. PrevPoint10 = "Empty"
  188. PrevPoint11 = "Empty"
  189. PrevPoint12 = "Empty"
  190. end
  191.  
  192. local Lightning = coroutine.wrap(function()
  193. while wait() do
  194. if Portal == false then
  195. angle = angle + 0.6
  196. local Model = Instance.new("Model",workspace)
  197. Model.Name = "Lightning"
  198. local Point1 = Instance.new("Part",Model)
  199. Point1.Transparency = 1
  200. Point1.Size = Vector3.new(0.2,0.2,0.2)
  201. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  202. Point1.Anchored = true
  203. Point1.CanCollide = false
  204. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  205.  
  206. local Point2 = Instance.new("Part",Model)
  207. Point2.Transparency = 1
  208. Point2.Size = Vector3.new(0.2,0.2,0.2)
  209. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  210. Point2.Anchored = true
  211. Point2.CanCollide = false
  212. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  213.  
  214. local Point3 = Instance.new("Part",Model)
  215. Point3.Transparency = 1
  216. Point3.Size = Vector3.new(0.2,0.2,0.2)
  217. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  218. Point3.Anchored = true
  219. Point3.CanCollide = false
  220. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  221.  
  222. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  223. local Light = Instance.new("Part",Model)
  224. local PointLight = Instance.new("PointLight",Light)
  225. PointLight.Range = 5
  226. PointLight.Color = PColor
  227. Light.Transparency = 0.5
  228. Light.BrickColor = Color
  229. Light.Material = "Neon"
  230. Light.Size = Vector3.new(0.25,0.25,distance)
  231. Light.Anchored = true
  232. Light.CanCollide = false
  233. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  234.  
  235. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  236. local Light = Instance.new("Part",Model)
  237. local PointLight = Instance.new("PointLight",Light)
  238. PointLight.Range = 5
  239. PointLight.Color = PColor
  240. Light.Transparency = 0.5
  241. Light.BrickColor = Color
  242. Light.Material = "Neon"
  243. Light.Size = Vector3.new(0.25,0.25,distance2)
  244. Light.Anchored = true
  245. Light.CanCollide = false
  246. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  247.  
  248. local Point1 = Instance.new("Part",Model)
  249. Point1.Transparency = 1
  250. Point1.Size = Vector3.new(0.2,0.2,0.2)
  251. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  252. Point1.Anchored = true
  253. Point1.CanCollide = false
  254. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  255.  
  256. local Point2 = Instance.new("Part",Model)
  257. Point2.Transparency = 1
  258. Point2.Size = Vector3.new(0.2,0.2,0.2)
  259. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  260. Point2.Anchored = true
  261. Point2.CanCollide = false
  262. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  263.  
  264. local Point3 = Instance.new("Part",Model)
  265. Point3.Transparency = 1
  266. Point3.Size = Vector3.new(0.2,0.2,0.2)
  267. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  268. Point3.Anchored = true
  269. Point3.CanCollide = false
  270. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  271.  
  272. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  273. local Light = Instance.new("Part",Model)
  274. local PointLight = Instance.new("PointLight",Light)
  275. PointLight.Range = 5
  276. PointLight.Color = PColor
  277. Light.Transparency = 0.5
  278. Light.BrickColor = Color
  279. Light.Material = "Neon"
  280. Light.Size = Vector3.new(0.25,0.25,distance)
  281. Light.Anchored = true
  282. Light.CanCollide = false
  283. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  284.  
  285. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  286. local Light = Instance.new("Part",Model)
  287. local PointLight = Instance.new("PointLight",Light)
  288. PointLight.Range = 5
  289. PointLight.Color = PColor
  290. Light.Transparency = 0.5
  291. Light.BrickColor = Color
  292. Light.Material = "Neon"
  293. Light.Size = Vector3.new(0.3,0.3,distance2)
  294. Light.Anchored = true
  295. Light.CanCollide = false
  296. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  297.  
  298. local Point1 = Instance.new("Part",Model)
  299. Point1.Transparency = 1
  300. Point1.Size = Vector3.new(0.2,0.2,0.2)
  301. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  302. Point1.Anchored = true
  303. Point1.CanCollide = false
  304. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  305.  
  306. local Point2 = Instance.new("Part",Model)
  307. Point2.Transparency = 1
  308. Point2.Size = Vector3.new(0.2,0.2,0.2)
  309. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  310. Point2.Anchored = true
  311. Point2.CanCollide = false
  312. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  313.  
  314. local Point3 = Instance.new("Part",Model)
  315. Point3.Transparency = 1
  316. Point3.Size = Vector3.new(0.2,0.2,0.2)
  317. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  318. Point3.Anchored = true
  319. Point3.CanCollide = false
  320. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  321.  
  322. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  323. local Light = Instance.new("Part",Model)
  324. local PointLight = Instance.new("PointLight",Light)
  325. PointLight.Range = 5
  326. PointLight.Color = PColor
  327. Light.Transparency = 0.5
  328. Light.BrickColor = Color
  329. Light.Material = "Neon"
  330. Light.Size = Vector3.new(0.25,0.25,distance)
  331. Light.Anchored = true
  332. Light.CanCollide = false
  333. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  334.  
  335. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  336. local Light = Instance.new("Part",Model)
  337. local PointLight = Instance.new("PointLight",Light)
  338. PointLight.Range = 5
  339. PointLight.Color = PColor
  340. Light.Transparency = 0.5
  341. Light.BrickColor = Color
  342. Light.Material = "Neon"
  343. Light.Size = Vector3.new(0.25,0.25,distance2)
  344. Light.Anchored = true
  345. Light.CanCollide = false
  346. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  347.  
  348. local Point1 = Instance.new("Part",Model)
  349. Point1.Transparency = 1
  350. Point1.Size = Vector3.new(0.2,0.2,0.2)
  351. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  352. Point1.Anchored = true
  353. Point1.CanCollide = false
  354. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  355.  
  356. local Point2 = Instance.new("Part",Model)
  357. Point2.Transparency = 1
  358. Point2.Size = Vector3.new(0.2,0.2,0.2)
  359. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  360. Point2.Anchored = true
  361. Point2.CanCollide = false
  362. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  363.  
  364. local Point3 = Instance.new("Part",Model)
  365. Point3.Transparency = 1
  366. Point3.Size = Vector3.new(0.2,0.2,0.2)
  367. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  368. Point3.Anchored = true
  369. Point3.CanCollide = false
  370. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  371.  
  372. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  373. local Light = Instance.new("Part",Model)
  374. local PointLight = Instance.new("PointLight",Light)
  375. PointLight.Range = 5
  376. PointLight.Color = PColor
  377. Light.Transparency = 0.5
  378. Light.BrickColor = Color
  379. Light.Material = "Neon"
  380. Light.Size = Vector3.new(0.25,0.25,distance)
  381. Light.Anchored = true
  382. Light.CanCollide = false
  383. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  384.  
  385. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  386. local Light = Instance.new("Part",Model)
  387. local PointLight = Instance.new("PointLight",Light)
  388. PointLight.Range = 5
  389. PointLight.Color = PColor
  390. Light.Transparency = 0.5
  391. Light.BrickColor = Color
  392. Light.Material = "Neon"
  393. Light.Size = Vector3.new(0.25,0.25,distance2)
  394. Light.Anchored = true
  395. Light.CanCollide = false
  396. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  397.  
  398. local Children = Model:GetChildren()
  399. wait(0.1)
  400. for i = 1,#Children do
  401. if Children[i]:IsA("Part") then
  402. Children[i].Transparency = 1
  403. end
  404. game.Debris:AddItem(Children[i],0)
  405. end
  406.  
  407. end
  408. end
  409. end)
  410. Lightning()
  411.  
  412. TornadoFunction = function()
  413. local TornadoModel = Instance.new("Model",workspace)
  414. local Center = Instance.new("Part",TornadoModel)
  415. Center.Anchored = true
  416. Center.CanCollide = false
  417. Center.Transparency = 1
  418. Center.Size = Vector3.new(2,2,2)
  419. Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
  420. local Death = Instance.new("Part",TornadoModel)
  421. Death.Anchored = true
  422. Death.CanCollide = false
  423. Death.Transparency = 1
  424. Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
  425. Death.CFrame = Center.CFrame
  426. Death.Touched:connect(function(Touch)
  427. if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
  428. Touch.Parent.Humanoid.Health = 0
  429. end
  430. end)
  431. local TornadoFunc = function()
  432. local Tornanimation = coroutine.wrap(function()
  433. while Run.Stepped:wait() do
  434. if Tornado == false then Death:Destroy() break end
  435. angle = angle + 0.1
  436. Object.Anchored = false
  437. Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
  438. Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
  439. end
  440. end)
  441. Tornanimation()
  442. end
  443. TornadoFunc()
  444. end
  445.  
  446. PhaseFunction = function()
  447. local Phase = coroutine.wrap(function()
  448. while wait() do
  449. if Phase == false then break end
  450. if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
  451. Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
  452. end
  453. end
  454. end)
  455. Phase()
  456. end
  457.  
  458.  
  459. PortalFunction = function()
  460. local PortalBlock = Instance.new("Part",workspace)
  461. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
  462. PortalBlock.Transparency = 1
  463. PortalBlock.Anchored = true
  464. PortalBlock.CanCollide = false
  465. PortalBlock.Size = Vector3.new(20,20,0.2)
  466. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  467. local Gui = Instance.new("SurfaceGui",PortalBlock)
  468. local Img = Instance.new("ImageLabel",Gui)
  469. Img.Size = UDim2.new(2,0,2,0)
  470. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  471. Img.Transparency = 1
  472. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  473. local Gui = Instance.new("SurfaceGui",PortalBlock)
  474. Gui.Face = "Back"
  475. local Img = Instance.new("ImageLabel",Gui)
  476. Img.Size = UDim2.new(2,0,2,0)
  477. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  478. Img.Transparency = 1
  479. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  480. Object.CFrame = PortalBlock.CFrame
  481. local Face = Object.Parent.Head.face.Texture
  482. local ObjectC = Object.Parent:GetChildren()
  483. for i = 1,#ObjectC do
  484. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  485. ObjectC[i].Transparency = 1
  486. elseif ObjectC[i]:IsA("Hat") then
  487. ObjectC[i].Handle.Transparency = 1
  488. end
  489. if ObjectC[i].Name == "Head" then
  490. ObjectC[i].face.Texture = ""
  491. end
  492. end
  493.  
  494. local PortalR = coroutine.wrap(function()
  495. wait(0.1)
  496. Portal = true
  497. PortalEnd = true
  498. while wait(0.001) do
  499. if Portal == false then
  500. break
  501. end
  502. Nil()
  503. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
  504. wait(0.01)
  505. end
  506. PortalBlock:Destroy()
  507. for i = 1,#ObjectC do
  508. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  509. ObjectC[i].Transparency = 0
  510. elseif ObjectC[i]:IsA("Hat") then
  511. ObjectC[i].Handle.Transparency = 0
  512. end
  513. if ObjectC[i].Name == "Head" then
  514. ObjectC[i].face.Texture = Face
  515. end
  516. end
  517. game.Players.LocalPlayer.Character.Part.Transparency = 1
  518. local PortalBlock = Instance.new("Part",workspace)
  519. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
  520. PortalBlock.Transparency = 1
  521. PortalBlock.Anchored = true
  522. PortalBlock.CanCollide = false
  523. PortalBlock.Size = Vector3.new(20,20,0.2)
  524. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  525. local Gui = Instance.new("SurfaceGui",PortalBlock)
  526. local Img = Instance.new("ImageLabel",Gui)
  527. Img.Size = UDim2.new(2,0,2,0)
  528. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  529. Img.Transparency = 1
  530. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  531. local Gui = Instance.new("SurfaceGui",PortalBlock)
  532. Gui.Face = "Back"
  533. local Img = Instance.new("ImageLabel",Gui)
  534. Img.Size = UDim2.new(2,0,2,0)
  535. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  536. Img.Transparency = 1
  537. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  538. Object.CFrame = PortalBlock.CFrame
  539. PreviousA1 = Arm1.CFrame.p
  540. PreviousA2 = Arm2.CFrame.p
  541. PreviousL1 = Leg1.CFrame.p
  542. PreviousL2 = Leg2.CFrame.p
  543. PreviousP = Object.CFrame.p
  544. PortalEnd = false
  545. wait(2)
  546. PortalBlock:Destroy()
  547. end)
  548. PortalR()
  549. end
  550.  
  551. MorphFunction = function()
  552. local MaxX = 100
  553. local MinX = -100
  554. local MaxY = 100
  555. local MinY = -100
  556. local MaxZ = 100
  557. local MinZ = -100
  558. local Morph = coroutine.wrap(function()
  559. while Run.Stepped:wait(0.1) do
  560. if Morph == false then break end
  561. local Model = Instance.new("Model",workspace)
  562. if Player.Character:FindFirstChild("Shirt") then
  563. local Shirt = Player.Character.Shirt:Clone()
  564. Shirt.Parent = Model
  565. end
  566. if Player.Character:FindFirstChild("Pants") then
  567. local Pants = Player.Character.Pants:Clone()
  568. Pants.Parent = Model
  569. end
  570. local Humanoid = Instance.new("Humanoid",Model)
  571. local LeftArm = Player.Character["Left Arm"]:Clone()
  572. LeftArm.Parent = Model
  573. LeftArm.Transparency = 0.4
  574. LeftArm.Anchored = true
  575. LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  576. local RightArm = Player.Character["Right Arm"]:Clone()
  577. RightArm.Parent = Model
  578. RightArm.Transparency = 0.4
  579. RightArm.Anchored = true
  580. RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  581. local LeftLeg = Player.Character["Left Leg"]:Clone()
  582. LeftLeg.Parent = Model
  583. LeftLeg.Transparency = 0.4
  584. LeftLeg.Anchored = true
  585. LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  586. local RightLeg = Player.Character["Right Leg"]:Clone()
  587. RightLeg.Parent = Model
  588. RightLeg.Transparency = 0.4
  589. RightLeg.Anchored = true
  590. RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  591. local Children = Model:GetChildren()
  592. wait(0.01)
  593. for i = 1,#Children do
  594. if Children[i]:IsA("Part") then
  595. Children[i].Transparency = 1
  596. end
  597. game.Debris:AddItem(Children[i],0)
  598. end
  599. end
  600. end)
  601. Morph()
  602. end
  603.  
  604. local Guis = coroutine.wrap(function()
  605. local Gui = Instance.new("ScreenGui",Player.PlayerGui)
  606.  
  607. local Radius = Instance.new("TextBox",Gui)
  608. Radius.Text = "Tornado Radius"
  609. Radius.BackgroundColor3 = Color3.new(119, 136, 153)
  610. Radius.BorderColor3 = Color3.new(128, 128, 128)
  611. Radius.Size = UDim2.new(.2,1,0.08,1)
  612. Radius.Position = UDim2.new(0, 0,0.5, 0)
  613. Radius.FocusLost:connect(function(EnterPressed)
  614. if EnterPressed then
  615. TornadoRadius = Radius.Text
  616. end
  617. end)
  618. Mouse.KeyDown:connect(function(Key)
  619. if Key == "f" then
  620. if Portal == false then
  621. PortalFunction()
  622. Nil()
  623. else
  624. Portal = false
  625. end
  626. end
  627.  
  628. if Key == "t" then
  629. if Tornado == false then
  630. Tornado = true
  631. TornadoFunction()
  632. else
  633. Tornado = false
  634. end
  635. end
  636. if Key == "y" then
  637. if Morph == false then
  638. Morph = true
  639. MorphFunction()
  640. else
  641. Morph = false
  642. end
  643. end
  644. end)
  645. end)
  646. Guis()
  647.  
  648. Run.RenderStepped:connect(function()
  649. if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
  650. local Model = Instance.new("Model",workspace)
  651. Model.Name = "Ray"
  652. local Humanoid = Instance.new("Humanoid",Model)
  653. if Player.Character:FindFirstChild("Shirt") ~= nil then
  654. Player.Character.Shirt:Clone().Parent = Model
  655. end
  656. if Player.Character:FindFirstChild("Pants") ~= nil then
  657. Player.Character.Pants:Clone().Parent = Model
  658. end
  659. local distance = (Object.CFrame.p - PreviousP).magnitude
  660. local Light = Instance.new("Part",Model)
  661. Light.Anchored = true
  662. Light.CanCollide = false
  663. Light.TopSurface = "SmoothNoOutlines"
  664. Light.BottomSurface = "SmoothNoOutlines"
  665. Light.BackSurface = "SmoothNoOutlines"
  666. Light.FrontSurface = "SmoothNoOutlines"
  667. Light.LeftSurface = "SmoothNoOutlines"
  668. Light.RightSurface = "SmoothNoOutlines"
  669. Light.Transparency = 1
  670. Light.BrickColor = BrickColor.Black()
  671. Light.Size = Vector3.new(2,2,distance)
  672. Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
  673.  
  674. local PointLight = Instance.new("PointLight",Light)
  675. PointLight.Range = 15
  676. PointLight.Brightness = 100
  677. PointLight.Color = PColor
  678.  
  679. local distance = (Arm1.CFrame.p - PreviousA1).magnitude
  680.  
  681. local Arm1Light = Instance.new("Part",Model)
  682. Arm1Light.Name = "Right Arm"
  683. Arm1Light.Anchored = true
  684. Arm1Light.CanCollide = false
  685. Arm1Light.TopSurface = "SmoothNoOutlines"
  686. Arm1Light.BottomSurface = "SmoothNoOutlines"
  687. Arm1Light.BackSurface = "SmoothNoOutlines"
  688. Arm1Light.FrontSurface = "SmoothNoOutlines"
  689. Arm1Light.LeftSurface = "SmoothNoOutlines"
  690. Arm1Light.RightSurface = "SmoothNoOutlines"
  691. Arm1Light.Transparency = 0.7
  692. Arm1Light.BrickColor = BrickColor.Black()
  693. Arm1Light.Size = Vector3.new(1,2,distance)
  694. Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  695.  
  696. local distance = (Arm2.CFrame.p - PreviousA2).magnitude
  697.  
  698. local Arm2Light = Instance.new("Part",Model)
  699. Arm2Light.Name = "Left Arm"
  700. Arm2Light.Anchored = true
  701. Arm2Light.CanCollide = false
  702. Arm2Light.TopSurface = "SmoothNoOutlines"
  703. Arm2Light.BottomSurface = "SmoothNoOutlines"
  704. Arm2Light.BackSurface = "SmoothNoOutlines"
  705. Arm2Light.FrontSurface = "SmoothNoOutlines"
  706. Arm2Light.LeftSurface = "SmoothNoOutlines"
  707. Arm2Light.RightSurface = "SmoothNoOutlines"
  708. Arm2Light.Transparency = 0.7
  709. Arm2Light.BrickColor = BrickColor.Black()
  710. Arm2Light.Size = Vector3.new(1,2,distance)
  711. Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  712.  
  713. local distance = (Leg1.CFrame.p - PreviousL1).magnitude
  714.  
  715. local Leg1Light = Instance.new("Part",Model)
  716. Leg1Light.Name = "Right Leg"
  717. Leg1Light.Anchored = true
  718. Leg1Light.CanCollide = false
  719. Leg1Light.TopSurface = "SmoothNoOutlines"
  720. Leg1Light.BottomSurface = "SmoothNoOutlines"
  721. Leg1Light.BackSurface = "SmoothNoOutlines"
  722. Leg1Light.FrontSurface = "SmoothNoOutlines"
  723. Leg1Light.LeftSurface = "SmoothNoOutlines"
  724. Leg1Light.RightSurface = "SmoothNoOutlines"
  725. Leg1Light.Transparency = 0.5
  726. Leg1Light.BrickColor = BrickColor.Black()
  727. Leg1Light.Size = Vector3.new(1,2,distance)
  728. Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  729.  
  730. local distance = (Leg2.CFrame.p - PreviousL2).magnitude
  731.  
  732. local Leg1Light = Instance.new("Part",Model)
  733. Leg1Light.Name = "Left Leg"
  734. Leg1Light.Anchored = true
  735. Leg1Light.CanCollide = false
  736. Leg1Light.TopSurface = "SmoothNoOutlines"
  737. Leg1Light.BottomSurface = "SmoothNoOutlines"
  738. Leg1Light.BackSurface = "SmoothNoOutlines"
  739. Leg1Light.FrontSurface = "SmoothNoOutlines"
  740. Leg1Light.LeftSurface = "SmoothNoOutlines"
  741. Leg1Light.RightSurface = "SmoothNoOutlines"
  742. Leg1Light.Transparency = 0.5
  743. Leg1Light.BrickColor = BrickColor.Black()
  744. Leg1Light.Size = Vector3.new(1,2,distance)
  745. Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  746.  
  747. local Point1 = Instance.new("Part",Model)
  748. Point1.Transparency = 1
  749. Point1.Anchored = true
  750. Point1.CanCollide = false
  751. Point1.Size = Vector3.new(0.2,0.2,0.2)
  752. Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  753. * CFrame.new(Light.Size.X/2 ,0 ,0)
  754. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  755. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  756.  
  757. local Point2 = Instance.new("Part",Model)
  758. Point2.Transparency = 1
  759. Point2.Anchored = true
  760. Point2.CanCollide = false
  761. Point2.Size = Vector3.new(0.2,0.2,0.2)
  762. Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  763. * CFrame.new(Light.Size.X/2 ,0 ,0)
  764. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  765. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  766.  
  767. local Point5 = Instance.new("Part",Model)
  768. Point5.Transparency = 1
  769. Point5.Anchored = true
  770. Point5.CanCollide = false
  771. Point5.Size = Vector3.new(0.2,0.2,0.2)
  772. Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  773. * CFrame.new(Light.Size.X/2 ,0 ,0)
  774. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  775. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  776.  
  777. local Point6 = Instance.new("Part",Model)
  778. Point6.Transparency = 1
  779. Point6.Anchored = true
  780. Point6.CanCollide = false
  781. Point6.Size = Vector3.new(0.2,0.2,0.2)
  782. Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  783. * CFrame.new(Light.Size.X/2 ,0 ,0)
  784. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  785. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  786.  
  787. local Point3 = Instance.new("Part",Model)
  788. Point3.Transparency = 1
  789. Point3.Anchored = true
  790. Point3.CanCollide = false
  791. Point3.Size = Vector3.new(0.2,0.2,0.2)
  792. Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  793. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  794. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  795. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  796.  
  797. local Point4 = Instance.new("Part",Model)
  798. Point4.Transparency = 1
  799. Point4.Anchored = true
  800. Point4.CanCollide = false
  801. Point4.Size = Vector3.new(0.2,0.2,0.2)
  802. Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  803. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  804. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  805. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  806.  
  807. local Point7 = Instance.new("Part",Model)
  808. Point7.Transparency = 1
  809. Point7.Anchored = true
  810. Point7.CanCollide = false
  811. Point7.Size = Vector3.new(0.2,0.2,0.2)
  812. Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  813. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  814. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  815. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  816.  
  817. local Point8 = Instance.new("Part",Model)
  818. Point8.Transparency = 1
  819. Point8.Anchored = true
  820. Point8.CanCollide = false
  821. Point8.Size = Vector3.new(0.2,0.2,0.2)
  822. Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  823. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  824. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  825. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  826.  
  827. local Point9 = Instance.new("Part",Model)
  828. Point9.Transparency = 1
  829. Point9.Anchored = true
  830. Point9.CanCollide = false
  831. Point9.Size = Vector3.new(0.2,0.2,0.2)
  832. Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  833. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  834. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  835. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  836.  
  837. local Point10 = Instance.new("Part",Model)
  838. Point10.Transparency = 1
  839. Point10.Anchored = true
  840. Point10.CanCollide = false
  841. Point10.Size = Vector3.new(0.2,0.2,0.2)
  842. Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  843. * CFrame.new(Light.Size.X/2 ,0 ,0)
  844. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  845. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  846.  
  847. local Point11 = Instance.new("Part",Model)
  848. Point11.Transparency = 1
  849. Point11.Anchored = true
  850. Point11.CanCollide = false
  851. Point11.Size = Vector3.new(0.2,0.2,0.2)
  852. Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  853. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  854. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  855. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  856.  
  857. local Point12 = Instance.new("Part",Model)
  858. Point12.Transparency = 1
  859. Point12.Anchored = true
  860. Point12.CanCollide = false
  861. Point12.Size = Vector3.new(0.2,0.2,0.2)
  862. Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  863. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  864. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  865. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  866.  
  867. if PrevPoint2 == nil or PrevPoint2 == "Empty" then
  868. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  869. local Light = Instance.new("Part",Model)
  870. Light.Anchored = true
  871. Light.CanCollide = false
  872. Light.TopSurface = "SmoothNoOutlines"
  873. Light.BottomSurface = "SmoothNoOutlines"
  874. Light.BackSurface = "SmoothNoOutlines"
  875. Light.FrontSurface = "SmoothNoOutlines"
  876. Light.LeftSurface = "SmoothNoOutlines"
  877. Light.RightSurface = "SmoothNoOutlines"
  878. Light.Transparency = 0
  879. Light.Size = Vector3.new(0.4,0.4,distance)
  880. Light.Material = "Neon"
  881. Light.BrickColor = Color
  882. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  883. elseif PrevPoint2 ~= nil then
  884. local distance = (Point2.CFrame.p - PrevPoint2).magnitude
  885. local Light = Instance.new("Part",Model)
  886. Light.Anchored = true
  887. Light.CanCollide = false
  888. Light.TopSurface = "SmoothNoOutlines"
  889. Light.BottomSurface = "SmoothNoOutlines"
  890. Light.BackSurface = "SmoothNoOutlines"
  891. Light.FrontSurface = "SmoothNoOutlines"
  892. Light.LeftSurface = "SmoothNoOutlines"
  893. Light.RightSurface = "SmoothNoOutlines"
  894. Light.Transparency = 0
  895. Light.Size = Vector3.new(0.4,0.4,distance)
  896. Light.Material = "Neon"
  897. Light.BrickColor = Color
  898. Light.CFrame = CFrame.new(Point2.CFrame.p , PrevPoint2) * CFrame.new(0,0,-distance/2)
  899. end
  900.  
  901. if PrevPoint4 == nil or PrevPoint4 == "Empty" then
  902. local distance = (Point4.CFrame.p - Point3.CFrame.p).magnitude
  903. local Light = Instance.new("Part",Model)
  904. Light.Anchored = true
  905. Light.CanCollide = false
  906. Light.TopSurface = "SmoothNoOutlines"
  907. Light.BottomSurface = "SmoothNoOutlines"
  908. Light.BackSurface = "SmoothNoOutlines"
  909. Light.FrontSurface = "SmoothNoOutlines"
  910. Light.LeftSurface = "SmoothNoOutlines"
  911. Light.RightSurface = "SmoothNoOutlines"
  912. Light.Transparency = 0
  913. Light.Size = Vector3.new(0.4,0.4,distance)
  914. Light.Material = "Neon"
  915. Light.BrickColor = Color
  916. Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance/2)
  917. elseif PrevPoint4 ~= nil then
  918. local distance = (Point4.CFrame.p - PrevPoint4).magnitude
  919. local Light = Instance.new("Part",Model)
  920. Light.Anchored = true
  921. Light.CanCollide = false
  922. Light.TopSurface = "SmoothNoOutlines"
  923. Light.BottomSurface = "SmoothNoOutlines"
  924. Light.BackSurface = "SmoothNoOutlines"
  925. Light.FrontSurface = "SmoothNoOutlines"
  926. Light.LeftSurface = "SmoothNoOutlines"
  927. Light.RightSurface = "SmoothNoOutlines"
  928. Light.Transparency = 0
  929. Light.Size = Vector3.new(0.4,0.4,distance)
  930. Light.Material = "Neon"
  931. Light.BrickColor = Color
  932. Light.CFrame = CFrame.new(Point4.CFrame.p , PrevPoint4) * CFrame.new(0,0,-distance/2)
  933. end
  934.  
  935.  
  936. if PrevPoint6 == nil or PrevPoint6 == "Empty" then
  937. local distance = (Point6.CFrame.p - Point5.CFrame.p).magnitude
  938. local Light = Instance.new("Part",Model)
  939. Light.Anchored = true
  940. Light.CanCollide = false
  941. Light.TopSurface = "SmoothNoOutlines"
  942. Light.BottomSurface = "SmoothNoOutlines"
  943. Light.BackSurface = "SmoothNoOutlines"
  944. Light.FrontSurface = "SmoothNoOutlines"
  945. Light.LeftSurface = "SmoothNoOutlines"
  946. Light.RightSurface = "SmoothNoOutlines"
  947. Light.Transparency = 0
  948. Light.Size = Vector3.new(0.4,0.4,distance)
  949. Light.Material = "Neon"
  950. Light.BrickColor = Color
  951. Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance/2)
  952. elseif PrevPoint6 ~= nil then
  953. local distance = (Point6.CFrame.p - PrevPoint6).magnitude
  954. local Light = Instance.new("Part",Model)
  955. Light.Anchored = true
  956. Light.CanCollide = false
  957. Light.TopSurface = "SmoothNoOutlines"
  958. Light.BottomSurface = "SmoothNoOutlines"
  959. Light.BackSurface = "SmoothNoOutlines"
  960. Light.FrontSurface = "SmoothNoOutlines"
  961. Light.LeftSurface = "SmoothNoOutlines"
  962. Light.RightSurface = "SmoothNoOutlines"
  963. Light.Transparency = 0
  964. Light.Size = Vector3.new(0.4,0.4,distance)
  965. Light.Material = "Neon"
  966. Light.BrickColor = Color
  967. Light.CFrame = CFrame.new(Point6.CFrame.p , PrevPoint6) * CFrame.new(0,0,-distance/2)
  968. end
  969.  
  970. if PrevPoint8 == nil or PrevPoint8 == "Empty" then
  971. local distance = (Point8.CFrame.p - Point7.CFrame.p).magnitude
  972. local Light = Instance.new("Part",Model)
  973. Light.Anchored = true
  974. Light.CanCollide = false
  975. Light.TopSurface = "SmoothNoOutlines"
  976. Light.BottomSurface = "SmoothNoOutlines"
  977. Light.BackSurface = "SmoothNoOutlines"
  978. Light.FrontSurface = "SmoothNoOutlines"
  979. Light.LeftSurface = "SmoothNoOutlines"
  980. Light.RightSurface = "SmoothNoOutlines"
  981. Light.Transparency = 0
  982. Light.Size = Vector3.new(0.4,0.4,distance)
  983. Light.Material = "Neon"
  984. Light.BrickColor = Color
  985. Light.CFrame = CFrame.new(Point8.CFrame.p , Point7.CFrame.p) * CFrame.new(0,0,-distance/2)
  986. elseif PrevPoint8 ~= nil then
  987. local distance = (Point8.CFrame.p - PrevPoint8).magnitude
  988. local Light = Instance.new("Part",Model)
  989. Light.Anchored = true
  990. Light.CanCollide = false
  991. Light.TopSurface = "SmoothNoOutlines"
  992. Light.BottomSurface = "SmoothNoOutlines"
  993. Light.BackSurface = "SmoothNoOutlines"
  994. Light.FrontSurface = "SmoothNoOutlines"
  995. Light.LeftSurface = "SmoothNoOutlines"
  996. Light.RightSurface = "SmoothNoOutlines"
  997. Light.Transparency = 0
  998. Light.Size = Vector3.new(0.4,0.4,distance)
  999. Light.Material = "Neon"
  1000. Light.BrickColor = Color
  1001. Light.CFrame = CFrame.new(Point8.CFrame.p , PrevPoint8) * CFrame.new(0,0,-distance/2)
  1002. end
  1003.  
  1004. if PrevPoint10 == nil or PrevPoint10 == "Empty" then
  1005. local distance = (Point10.CFrame.p - Point9.CFrame.p).magnitude
  1006. local Light = Instance.new("Part",Model)
  1007. Light.Anchored = true
  1008. Light.CanCollide = false
  1009. Light.TopSurface = "SmoothNoOutlines"
  1010. Light.BottomSurface = "SmoothNoOutlines"
  1011. Light.BackSurface = "SmoothNoOutlines"
  1012. Light.FrontSurface = "SmoothNoOutlines"
  1013. Light.LeftSurface = "SmoothNoOutlines"
  1014. Light.RightSurface = "SmoothNoOutlines"
  1015. Light.Transparency = 0
  1016. Light.Size = Vector3.new(0.4,0.4,distance)
  1017. Light.Material = "Neon"
  1018. Light.BrickColor = Color
  1019. Light.CFrame = CFrame.new(Point10.CFrame.p , Point9.CFrame.p) * CFrame.new(0,0,-distance/2)
  1020. elseif PrevPoint10 ~= nil then
  1021. local distance = (Point10.CFrame.p - PrevPoint10).magnitude
  1022. local Light = Instance.new("Part",Model)
  1023. Light.Anchored = true
  1024. Light.CanCollide = false
  1025. Light.TopSurface = "SmoothNoOutlines"
  1026. Light.BottomSurface = "SmoothNoOutlines"
  1027. Light.BackSurface = "SmoothNoOutlines"
  1028. Light.FrontSurface = "SmoothNoOutlines"
  1029. Light.LeftSurface = "SmoothNoOutlines"
  1030. Light.RightSurface = "SmoothNoOutlines"
  1031. Light.Transparency = 0
  1032. Light.Size = Vector3.new(0.4,0.4,distance)
  1033. Light.Material = "Neon"
  1034. Light.BrickColor = Color
  1035. Light.CFrame = CFrame.new(Point10.CFrame.p , PrevPoint10) * CFrame.new(0,0,-distance/2)
  1036. end
  1037.  
  1038.  
  1039. if PrevPoint12 == nil or PrevPoint12 == "Empty" then
  1040. local distance = (Point12.CFrame.p - Point11.CFrame.p).magnitude
  1041. local Light = Instance.new("Part",Model)
  1042. Light.Anchored = true
  1043. Light.CanCollide = false
  1044. Light.TopSurface = "SmoothNoOutlines"
  1045. Light.BottomSurface = "SmoothNoOutlines"
  1046. Light.BackSurface = "SmoothNoOutlines"
  1047. Light.FrontSurface = "SmoothNoOutlines"
  1048. Light.LeftSurface = "SmoothNoOutlines"
  1049. Light.RightSurface = "SmoothNoOutlines"
  1050. Light.Transparency = 0
  1051. Light.Size = Vector3.new(0.4,0.4,distance)
  1052. Light.Material = "Neon"
  1053. Light.BrickColor = Color
  1054. Light.CFrame = CFrame.new(Point12.CFrame.p , Point11.CFrame.p) * CFrame.new(0,0,-distance/2)
  1055. elseif PrevPoint12 ~= nil then
  1056. local distance = (Point12.CFrame.p - PrevPoint12).magnitude
  1057. local Light = Instance.new("Part",Model)
  1058. Light.Anchored = true
  1059. Light.CanCollide = false
  1060. Light.TopSurface = "SmoothNoOutlines"
  1061. Light.BottomSurface = "SmoothNoOutlines"
  1062. Light.BackSurface = "SmoothNoOutlines"
  1063. Light.FrontSurface = "SmoothNoOutlines"
  1064. Light.LeftSurface = "SmoothNoOutlines"
  1065. Light.RightSurface = "SmoothNoOutlines"
  1066. Light.Transparency = 0
  1067. Light.Size = Vector3.new(0.4,0.4,distance)
  1068. Light.Material = "Neon"
  1069. Light.BrickColor = Color
  1070. Light.CFrame = CFrame.new(Point12.CFrame.p , PrevPoint12) * CFrame.new(0,0,-distance/2)
  1071. end
  1072. PreviousP = Object.CFrame.p
  1073. PreviousA1 = Arm1.CFrame.p
  1074. PreviousA2 = Arm2.CFrame.p
  1075. PreviousL1 = Leg1.CFrame.p
  1076. PreviousL2 = Leg2.CFrame.p
  1077. PrevPoint1 = Point1.CFrame.p
  1078. PrevPoint2 = Point2.CFrame.p
  1079. PrevPoint3 = Point3.CFrame.p
  1080. PrevPoint4 = Point4.CFrame.p
  1081. PrevPoint5 = Point5.CFrame.p
  1082. PrevPoint6 = Point6.CFrame.p
  1083. PrevPoint7 = Point7.CFrame.p
  1084. PrevPoint8 = Point8.CFrame.p
  1085. PrevPoint9 = Point9.CFrame.p
  1086. PrevPoint10 = Point10.CFrame.p
  1087. PrevPoint11 = Point11.CFrame.p
  1088. PrevPoint12 = Point12.CFrame.p
  1089. local Children = Model:GetChildren()
  1090. wait(0.05)
  1091. for i = 1,10 do
  1092. local Remove = coroutine.wrap(function()
  1093. for i = 1,#Children do
  1094. if Children[i]:IsA("Part") then
  1095. Children[i].Transparency = Children[i].Transparency + 0.1
  1096. if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
  1097. and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
  1098. and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
  1099. game.Debris:AddItem(Children[i],0)
  1100. end
  1101. end
  1102. if Children[i].ClassName ~= "Part" then
  1103. game.Debris:AddItem(Children[i],0)
  1104. end
  1105. end
  1106. end)
  1107. Remove()
  1108. wait(0.01)
  1109. end
  1110. game.Debris:AddItem(Light,0)
  1111. game.Debris:AddItem(Point1,0)
  1112. game.Debris:AddItem(Point2,0)
  1113. game.Debris:AddItem(Point3,0)
  1114. game.Debris:AddItem(Point4,0)
  1115. game.Debris:AddItem(Point5,0)
  1116. game.Debris:AddItem(Point6,0)
  1117. game.Debris:AddItem(Point7,0)
  1118. game.Debris:AddItem(Point8,0)
  1119. game.Debris:AddItem(Point9,0)
  1120. game.Debris:AddItem(Point10,0)
  1121. game.Debris:AddItem(Point11,0)
  1122. game.Debris:AddItem(Point12,0)
  1123. end
  1124. end)
  1125. ----------------------------------sprint------------------------------------------
  1126. local mouse = game.Players.LocalPlayer:GetMouse()
  1127. local running = false
  1128.  
  1129. function getTool()
  1130. for _, kid in ipairs(script.Parent:GetChildren()) do
  1131. if kid.className == "Tool" then return kid end
  1132. end
  1133. return nil
  1134. end
  1135.  
  1136.  
  1137. mouse.KeyDown:connect(function (key) -- Run function
  1138. key = string.lower(key)
  1139. if string.byte(key) == 48 then
  1140. running = true
  1141. local keyConnection = mouse.KeyUp:connect(function (key)
  1142. if string.byte(key) == 48 then
  1143. running = false
  1144. end
  1145. end)
  1146. for i = 1,5 do
  1147. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  1148. wait()
  1149. end
  1150. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 170
  1151. repeat wait () until running == false
  1152. keyConnection:disconnect()
  1153. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
  1154. for i = 1,5 do
  1155. game.Workspace.CurrentCamera.FieldOfView = (90-(i*2))
  1156. wait()
  1157. end
  1158. end
  1159. end)
  1160.  
  1161. -------------------------------------Morph----------------------------------------
  1162. --[AOU Quicksilver edit by Bannaboy43 (only make edits cant stcipt ihml if this gets leaked tell people to send me scripts to make edits)
  1163. wait(1 / 60)
  1164. p = game.Players.LocalPlayer
  1165. char = p.Character
  1166. torso = char.Torso
  1167. neck = char.Torso.Neck
  1168. hum = char.Humanoid
  1169. hum.MaxHealth = 75000
  1170. wait()
  1171. hum.Health =hum.MaxHealth
  1172. char.Head.face.Texture = "rbxassetid://220843127"
  1173.  
  1174. function startup()
  1175. coroutine.resume(coroutine.create(function()
  1176. local m = Instance.new("Model", char)
  1177. m.Name = "* C"
  1178. local chat = Instance.new("Part", m)
  1179. chat.TopSurface = "Smooth"
  1180. chat.BottomSurface = "Smooth"
  1181. chat.Name = "Head"
  1182. chat.FormFactor = "Custom"
  1183. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  1184. chat.Transparency = 0.9
  1185. chat.CanCollide = false
  1186. local Weld7 = Instance.new("Weld", char)
  1187. Weld7.Part0 = char.Head
  1188. Weld7.Part1 = chat
  1189. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1190. local cy7 = Instance.new("BlockMesh", chat)
  1191. local h = Instance.new("Humanoid", m)
  1192. h.MaxHealth = 0
  1193. m.Name = "Quicksilver"
  1194. end))
  1195. end
  1196.  
  1197. z = Instance.new("Sound", torso)
  1198. z.SoundId = "rbxassetid://184110105" -- Put Music ID Here.
  1199. z.Looped = true
  1200. z.Volume = 3
  1201. wait(.1)
  1202. z:Play()
  1203.  
  1204. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  1205. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  1206. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  1207. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  1208. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  1209. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  1210.  
  1211. shirt = Instance.new("Shirt", char)
  1212. shirt.Name = "Shirt"
  1213. pants = Instance.new("Pants", char)
  1214. pants.Name = "Pants"
  1215. char.Shirt.ShirtTemplate = "rbxassetid://185052466"
  1216. char.Pants.PantsTemplate = "rbxassetid://185052575"
  1217.  
  1218. Hat = Instance.new("Model")
  1219. Hat.Parent = char
  1220. Hat.Name = "Hat"
  1221. rh = Instance.new("Part")
  1222. rh.Parent = Hat
  1223. rh.BrickColor = BrickColor.new("Grey")
  1224. rh.Locked = true
  1225. rh.CanCollide = false
  1226. mesh = Instance.new("SpecialMesh")
  1227. rh.formFactor = "Symmetric"
  1228. mesh.MeshType = "FileMesh"
  1229. mesh.MeshId = "rbxassetid://167549828"
  1230. mesh.Parent = rh
  1231. local weld = Instance.new("Weld")
  1232. weld.Parent = rh
  1233. weld.Part0 = rh
  1234. weld.Part1 =char.Head
  1235. weld.C0 = CFrame.new(0,-.25,0)*CFrame.Angles(0, 0, 0)
  1236. mesh.Scale = Vector3.new(1,1,1)
  1237. -----------------------------------------------------------------------------
  1238.  
  1239.  
  1240.  
  1241. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1242. local fp=it("Part")
  1243. fp.formFactor=formfactor
  1244. fp.Parent=parent
  1245. fp.Reflectance=reflectance
  1246. fp.Transparency=transparency
  1247. fp.CanCollide=false
  1248. fp.Locked=true
  1249. fp.BrickColor=brickcolor
  1250. fp.Name=name
  1251. fp.Size=size
  1252. fp.Position=Torso.Position
  1253. NoOutline(fp)
  1254. fp.Material="SmoothPlastic"
  1255. fp:BreakJoints()
  1256. return fp
  1257. end
  1258.  
  1259.  
  1260.  
  1261. function weld(parent,part0,part1,c0)
  1262. local weld=it("Weld")
  1263. weld.Parent=parent
  1264. weld.Part0=part0
  1265. weld.Part1=part1
  1266. weld.C0=c0
  1267. return weld
  1268. end
  1269.  
  1270. local Color1=Torso.BrickColor
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276. Player=game:GetService('Players').LocalPlayer
  1277. Character=Player.Character
  1278. Mouse=Player:GetMouse()
  1279. m=Instance.new('Model',Character)
  1280.  
  1281.  
  1282. local function weldBetween(a, b)
  1283. local weldd = Instance.new("ManualWeld")
  1284. weldd.Part0 = a
  1285. weldd.Part1 = b
  1286. weldd.C0 = CFrame.new()
  1287. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1288. weldd.Parent = a
  1289. return weldd
  1290. end
  1291.  
  1292. it=Instance.new
  1293.  
  1294. function nooutline(part)
  1295. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1296. end
  1297.  
  1298. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1299. local fp=it("Part")
  1300. fp.formFactor=formfactor
  1301. fp.Parent=parent
  1302. fp.Reflectance=reflectance
  1303. fp.Transparency=transparency
  1304. fp.CanCollide=false
  1305. fp.Locked=true
  1306. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1307. fp.Name=name
  1308. fp.Size=size
  1309. fp.Position=Character.Torso.Position
  1310. nooutline(fp)
  1311. fp.Material=material
  1312. fp:BreakJoints()
  1313. return fp
  1314. end
  1315.  
  1316. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1317. local mesh=it(Mesh)
  1318. mesh.Parent=part
  1319. if Mesh=="SpecialMesh" then
  1320. mesh.MeshType=meshtype
  1321. mesh.MeshId=meshid
  1322. end
  1323. mesh.Offset=offset
  1324. mesh.Scale=scale
  1325. return mesh
  1326. end
  1327.  
  1328. function weld(parent,part0,part1,c0,c1)
  1329. local weld=it("Weld")
  1330. weld.Parent=parent
  1331. weld.Part0=part0
  1332. weld.Part1=part1
  1333. weld.C0=c0
  1334. weld.C1=c1
  1335. return weld
  1336. end
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. --------------------------------
  1347. local p = game.Players.LocalPlayer
  1348. local char = p.Character
  1349. local mouse = p:GetMouse()
  1350. local larm = char["Left Arm"]
  1351. local rarm = char["Right Arm"]
  1352. local lleg = char["Left Leg"]
  1353. local rleg = char["Right Leg"]
  1354. local hed = char.Head
  1355. local torso = char.Torso
  1356. local hum = char.Humanoid
  1357. local cam = game.Workspace.CurrentCamera
  1358. local root = char.HumanoidRootPart
  1359. local deb = false
  1360. local shot = 0
  1361. local debris=game:service"Debris"
  1362. local l = game:GetService("Lighting")
  1363. local rs = game:GetService("RunService").RenderStepped
  1364. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  1365. math.randomseed(os.time())
  1366. for i,v in pairs(char:children()) do
  1367. if v:IsA("Hat") then
  1368. v:Destroy()
  1369. end
  1370. end
  1371. for i,v in pairs (hed:GetChildren()) do
  1372. if v:IsA("Sound") then
  1373. v:Destroy()
  1374. end
  1375. end
  1376. ----------------------------------------------------
  1377. z = Instance.new("Sound", torso)
  1378. z.SoundId = "rbxassetid://506033751" -- Put Music ID Here.
  1379. z.Looped = true
  1380. z.Volume = 1
  1381. wait(.1)
  1382. z:Play()
  1383. -----------------------------------------------------
  1384. Debounces = {
  1385. CanAttack = true;
  1386. NoIdl = false;
  1387. Slashing = false;
  1388. Slashed = false;
  1389. RPunch = false;
  1390. RPunched = false;
  1391. LPunch = false;
  1392. LPunched = false;
  1393. }
  1394. local Touche = {char.Name, }
  1395. ----------------------------------------------------h
  1396. ----------------------------------------------------
  1397. local LocalPlayer = game:GetService("Players").LocalPlayer
  1398. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  1399.  
  1400.  
  1401. ---------------------
  1402. local LocalPlayer = game:GetService("Players").LocalPlayer
  1403. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  1404.  
  1405.  
  1406. ----------------------------------------
  1407. local p = game.Players.LocalPlayer
  1408. local char = p.Character
  1409. local mouse = p:GetMouse()
  1410. local larm = char["Left Arm"]
  1411. local rarm = char["Right Arm"]
  1412. local lleg = char["Left Leg"]
  1413. local rleg = char["Right Leg"]
  1414. local hed = char.Head
  1415. local torso = char.Torso
  1416. local hum = char.Humanoid
  1417. local cam = game.Workspace.CurrentCamera
  1418. local root = char.HumanoidRootPart
  1419. local rj = root.RootJoint
  1420. local deb = false
  1421. local shot = 0
  1422. local stanceToggle = "Idle1"
  1423. local l = game:GetService("Lighting")
  1424. local rs = game:GetService("RunService").RenderStepped
  1425. local hb = game:GetService("RunService").Heartbeat
  1426. local Stepped = game:GetService("RunService").Stepped
  1427. math.randomseed(os.time())
  1428. hum.JumpPower = 50
  1429.  
  1430. ----------------------------------------------------
  1431. fat = Instance.new("BindableEvent",script)
  1432. fat.Name = "Heartbeat"
  1433.  
  1434. script:WaitForChild("Heartbeat")
  1435.  
  1436. frame = 1/30
  1437. tf = 0
  1438. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  1439. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  1440. lastframe = tick()
  1441. script.Heartbeat:Fire() --ayy lmao
  1442.  
  1443. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  1444. tf = tf + s
  1445. if tf >= frame then
  1446. if allowframeloss then
  1447. script.Heartbeat:Fire()
  1448. lastframe=tick()
  1449. else
  1450. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  1451. for i=1, math.floor(tf/frame) do
  1452. script.Heartbeat:Fire()
  1453. end
  1454. lastframe=tick()
  1455. end
  1456. if tossremainder then
  1457. tf = 0
  1458. else
  1459. tf = tf - frame * math.floor(tf/frame)
  1460. end
  1461. end
  1462. end)
  1463. ----------------------------------------------------
  1464. for i,v in pairs(char:children()) do
  1465. if v:IsA("Hat") then
  1466. v:Destroy()
  1467. end
  1468. end
  1469. for i,v in pairs (hed:GetChildren()) do
  1470. if v:IsA("Sound") then
  1471. v:Destroy()
  1472. end
  1473. end
  1474. ----------------------------------------------------
  1475. Debounces = {
  1476. CanAttack = true;
  1477. CanJoke = true;
  1478. NoIdl = false;
  1479. Slashing = false;
  1480. Slashed = false;
  1481. ks = false;
  1482. }
  1483. ----------------------------------------------------
  1484. function weld5(part0, part1, c0, c1)
  1485. weeld=Instance.new("Weld", part0)
  1486. weeld.Part0=part0
  1487. weeld.Part1=part1
  1488. weeld.C0=c0
  1489. weeld.C1=c1
  1490. return weeld
  1491. end
  1492. ----------------------------------------------------
  1493. function NewPart(prnt,siz,cf,trans,anc,mat,col)
  1494. local prt=Instance.new("Part")
  1495. prt.Parent=prnt
  1496. prt.Name="Part"
  1497. prt.Size=siz
  1498. prt.CanCollide=false
  1499. prt.Anchored=anc
  1500. prt.Locked=true
  1501. prt.Transparency = trans
  1502. prt.TopSurface=10
  1503. prt.BottomSurface=10
  1504. prt.FrontSurface=10
  1505. prt.BackSurface=10
  1506. prt.LeftSurface=10
  1507. prt.RightSurface=10
  1508. prt:BreakJoints()
  1509. prt.CFrame=cf or CFrame.new(30,10,30)
  1510. prt.Material=mat
  1511. prt.BrickColor=BrickColor.new(col)
  1512. m=Instance.new("SpecialMesh",prt)
  1513. m.MeshType=6
  1514. return prt
  1515. end
  1516. ----------------------------------------------------
  1517. function lerp(a, b, t) -- Linear interpolation
  1518. return a + (b - a)*t
  1519. end
  1520.  
  1521. function slerp(a, b, t) --Spherical interpolation
  1522. dot = a:Dot(b)
  1523. if dot > 0.99999 or dot < -0.99999 then
  1524. return t <= 0.5 and a or b
  1525. else
  1526. r = math.acos(dot)
  1527. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  1528. end
  1529. end
  1530.  
  1531. function matrixInterpolate(a, b, t)
  1532. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  1533. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  1534. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  1535. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  1536. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  1537. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  1538. local t = v1:Dot(v2)
  1539. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  1540. return CFrame.new()
  1541. end
  1542. return CFrame.new(
  1543. v0.x, v0.y, v0.z,
  1544. v1.x, v1.y, v1.z,
  1545. v2.x, v2.y, v2.z,
  1546. v3.x, v3.y, v3.z)
  1547. end
  1548. ----------------------------------------------------
  1549. function genWeld(a,b)
  1550. local w = Instance.new("Weld",a)
  1551. w.Part0 = a
  1552. w.Part1 = b
  1553. return w
  1554. end
  1555. function weld(a, b)
  1556. local weld = Instance.new("Weld")
  1557. weld.Name = "W"
  1558. weld.Part0 = a
  1559. weld.Part1 = b
  1560. weld.C0 = a.CFrame:inverse() * b.CFrame
  1561. weld.Parent = a
  1562. return weld;
  1563. end
  1564. ----------------------------------------------------
  1565. function Lerp(c1,c2,al)
  1566. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1567. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1568. for i,v in pairs(com1) do
  1569. com1[i] = v+(com2[i]-v)*al
  1570. end
  1571. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1572. end
  1573. ----------------------------------------------------
  1574. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1575. local wld = Instance.new("Weld", wp1)
  1576. wld.Part0 = wp0
  1577. wld.Part1 = wp1
  1578. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1579. end
  1580. ----------------------------------------------------
  1581. newWeld(torso, larm, -1.5, 0.5, 0)
  1582. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1583. newWeld(torso, rarm, 1.5, 0.5, 0)
  1584. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1585. newWeld(torso, hed, 0, 1.5, 0)
  1586. newWeld(torso, lleg, -0.5, -1, 0)
  1587. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1588. newWeld(torso, rleg, 0.5, -1, 0)
  1589. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1590. newWeld(root, torso, 0, -1, 0)
  1591. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1592. ----------------------------------------------------
  1593. z = Instance.new("Sound",char) --Smile: print("�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?¢â�??¬ �?�?�?¢�?¢â�?�š�?¬�?¢â�?�ž�?¢�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?¢?�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?�??�?¢�?�?�?¢�?¢â�??¬�?¡�?�??�?¬�?�?â�?�¦�?�??�?¡�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?º")
  1594. z.SoundId = "rbxassetid://0"--410761150, 411368002
  1595. z.Looped = true
  1596. z.Pitch = 1
  1597. z.Volume = 1
  1598. wait(0.1)
  1599. z:Play()
  1600. ----------------------------------------------------
  1601. New = function(Object, Parent, Name, Data)
  1602. local Object = Instance.new(Object)
  1603. for Index, Value in pairs(Data or {}) do
  1604. Object[Index] = Value
  1605. end
  1606. Object.Parent = Parent
  1607. Object.Name = Name
  1608. return Object
  1609. end
  1610. ----------------------------------------------------
  1611. --Left Arm
  1612. m = Instance.new("Model")
  1613. m.Name = "LeftArm"
  1614.  
  1615. p4 = Instance.new("Part", m)
  1616. p4.BrickColor = BrickColor.new("Really black")
  1617. p4.Material = Enum.Material.SmoothPlastic
  1618. p4.Name = "LeftArmPlate"
  1619. p4.Size = Vector3.new(1, 2, 1)
  1620. p4.Transparency = 1
  1621. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1622. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1623. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1624. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1625. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1626. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1627. b4 = Instance.new("SpecialMesh", p4)
  1628. b4.MeshType = Enum.MeshType.Brick
  1629. b4.Name = "Mesh"
  1630. b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636. w1 = Instance.new("Weld", p1)
  1637. w1.Name = "Part_Weld"
  1638. w1.Part0 = p1
  1639. w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1640. w1.Part1 = p2
  1641. w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1642. w2 = Instance.new("Weld", p2)
  1643. w2.Name = "Part_Weld"
  1644. w2.Part0 = p2
  1645. w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1646. w2.Part1 = p3
  1647. w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1648. w3 = Instance.new("Weld", p3)
  1649. w3.Name = "LeftArmPlate_Weld"
  1650. w3.Part0 = p3
  1651. w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1652. w3.Part1 = p4
  1653. w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1654. w4 = Instance.new("Weld", p4)
  1655. w4.Name = "Part_Weld"
  1656. w4.Part0 = p4
  1657. w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1658. w4.Part1 = p5
  1659. w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1660. w5 = Instance.new("Weld", p5)
  1661. w5.Name = "Part_Weld"
  1662. w5.Part0 = p5
  1663. w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1664. w5.Part1 = p6
  1665. w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1666. w6 = Instance.new("Weld", p6)
  1667. w6.Name = "Part_Weld"
  1668. w6.Part0 = p6
  1669. w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1670. w6.Part1 = p7
  1671. w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1672. w7 = Instance.new("Weld", p7)
  1673. w7.Name = "Part_Weld"
  1674. w7.Part0 = p7
  1675. w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1676. w7.Part1 = p8
  1677. w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1678. w8 = Instance.new("Weld", p8)
  1679. w8.Name = "Part_Weld"
  1680. w8.Part0 = p8
  1681. w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1682. w8.Part1 = p9
  1683. w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1684. w9 = Instance.new("Weld", p9)
  1685. w9.Name = "Part_Weld"
  1686. w9.Part0 = p9
  1687. w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1688. w9.Part1 = p10
  1689. w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1690. w10 = Instance.new("Weld", p10)
  1691. w10.Name = "Part_Weld"
  1692. w10.Part0 = p10
  1693. w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1694. w10.Part1 = p11
  1695. w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1696. w11 = Instance.new("Weld", p11)
  1697. w11.Name = "Part_Weld"
  1698. w11.Part0 = p11
  1699. w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1700. w11.Part1 = p12
  1701. w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1702. w12 = Instance.new("Weld", p12)
  1703. w12.Name = "Part_Weld"
  1704. w12.Part0 = p12
  1705. w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1706. w12.Part1 = p13
  1707. w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1708. w13 = Instance.new("Weld", p13)
  1709. w13.Name = "Part_Weld"
  1710. w13.Part0 = p13
  1711. w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1712. w13.Part1 = p14
  1713. w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1714. w14 = Instance.new("Weld", p14)
  1715. w14.Name = "Part_Weld"
  1716. w14.Part0 = p14
  1717. w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1718. w14.Part1 = p15
  1719. w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1720. w15 = Instance.new("Weld", p15)
  1721. w15.Name = "Part_Weld"
  1722. w15.Part0 = p15
  1723. w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1724. w15.Part1 = p16
  1725. w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
  1726.  
  1727. m.Parent = larm
  1728. m:MakeJoints()
  1729. ----------------------------------------------------
  1730. local cor = Instance.new("Part", larm.LeftArm)
  1731. cor.Name = "Thingy"
  1732. cor.Locked = true
  1733. cor.BottomSurface = 0
  1734. cor.CanCollide = false
  1735. cor.Size = Vector3.new(1, 1, 1)
  1736. cor.Transparency = 1
  1737. cor.TopSurface = 0
  1738. corw = Instance.new("Weld", cor)
  1739. corw.Part0 = larm
  1740. corw.Part1 = cor
  1741. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1742. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1743. weld1 = Instance.new("Weld", larm.LeftArm)
  1744. weld1.Part0 = cor
  1745. weld1.Part1 = larm.LeftArm.LeftArmPlate
  1746. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1747. --Right Arm
  1748. m2 = Instance.new("Model")
  1749. m2.Name = "RightArm"
  1750.  
  1751. p7 = Instance.new("Part", m2)
  1752. p7.BrickColor = BrickColor.new("Institutional white")
  1753. p7.Material = Enum.Material.SmoothPlastic
  1754. p7.Transparency = 1
  1755. p7.Name = "RightArmPlate"
  1756. p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1757. p7.FormFactor = Enum.FormFactor.Symmetric
  1758. p7.Size = Vector3.new(1, 2, 1)
  1759. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1760. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1761. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1762. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1763. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1764. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1765. b7 = Instance.new("SpecialMesh", p7)
  1766. b7.MeshType = Enum.MeshType.Brick
  1767. b7.Name = "Mesh"
  1768. b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
  1769.  
  1770.  
  1771. w1 = Instance.new("Weld", p1)
  1772. w1.Name = "Part_Weld"
  1773. w1.Part0 = p1
  1774. w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1775. w1.Part1 = p2
  1776. w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1777. w2 = Instance.new("Weld", p2)
  1778. w2.Name = "Part_Weld"
  1779. w2.Part0 = p2
  1780. w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1781. w2.Part1 = p3
  1782. w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1783. w3 = Instance.new("Weld", p3)
  1784. w3.Name = "Part_Weld"
  1785. w3.Part0 = p3
  1786. w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1787. w3.Part1 = p4
  1788. w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1789. w4 = Instance.new("Weld", p4)
  1790. w4.Name = "Part_Weld"
  1791. w4.Part0 = p4
  1792. w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1793. w4.Part1 = p5
  1794. w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1795. w5 = Instance.new("Weld", p5)
  1796. w5.Name = "Part_Weld"
  1797. w5.Part0 = p5
  1798. w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1799. w5.Part1 = p6
  1800. w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1801. w6 = Instance.new("Weld", p6)
  1802. w6.Name = "RightArmPlate_Weld"
  1803. w6.Part0 = p6
  1804. w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1805. w6.Part1 = p7
  1806. w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1807. w7 = Instance.new("Weld", p7)
  1808. w7.Name = "Part_Weld"
  1809. w7.Part0 = p7
  1810. w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1811. w7.Part1 = p8
  1812. w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1813. w8 = Instance.new("Weld", p8)
  1814. w8.Name = "Part_Weld"
  1815. w8.Part0 = p8
  1816. w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1817. w8.Part1 = p9
  1818. w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1819. w9 = Instance.new("Weld", p9)
  1820. w9.Name = "Part_Weld"
  1821. w9.Part0 = p9
  1822. w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1823. w9.Part1 = p10
  1824. w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1825. w10 = Instance.new("Weld", p10)
  1826. w10.Name = "Part_Weld"
  1827. w10.Part0 = p10
  1828. w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1829. w10.Part1 = p11
  1830. w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1831. w11 = Instance.new("Weld", p11)
  1832. w11.Name = "Part_Weld"
  1833. w11.Part0 = p11
  1834. w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1835. w11.Part1 = p12
  1836. w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1837. w12 = Instance.new("Weld", p12)
  1838. w12.Name = "Part_Weld"
  1839. w12.Part0 = p12
  1840. w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1841. w12.Part1 = p13
  1842. w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1843. w13 = Instance.new("Weld", p13)
  1844. w13.Name = "Part_Weld"
  1845. w13.Part0 = p13
  1846. w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1847. w13.Part1 = p14
  1848. w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1849. w14 = Instance.new("Weld", p14)
  1850. w14.Name = "Part_Weld"
  1851. w14.Part0 = p14
  1852. w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1853. w14.Part1 = p15
  1854. w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1855. w15 = Instance.new("Weld", p15)
  1856. w15.Name = "Part_Weld"
  1857. w15.Part0 = p15
  1858. w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1859. w15.Part1 = p16
  1860. w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1861. w16 = Instance.new("Weld", p16)
  1862. w16.Name = "Part_Weld"
  1863. w16.Part0 = p16
  1864. w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1865. w16.Part1 = p17
  1866. w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1867. w17 = Instance.new("Weld", p17)
  1868. w17.Name = "Part_Weld"
  1869. w17.Part0 = p17
  1870. w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1871. w17.Part1 = p18
  1872. w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1873. w18 = Instance.new("Weld", p18)
  1874. w18.Name = "Part_Weld"
  1875. w18.Part0 = p18
  1876. w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1877. w18.Part1 = p19
  1878. w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1879. m2.Parent = rarm
  1880. m2:MakeJoints()
  1881. ----------------------------------------------------
  1882. local cor2 = Instance.new("Part", rarm.RightArm)
  1883. cor2.Name = "Thingy"
  1884. cor2.Locked = true
  1885. cor2.BottomSurface = 0
  1886. cor2.CanCollide = false
  1887. cor2.Size = Vector3.new(1, 1, 1)
  1888. cor2.Transparency = 1
  1889. cor2.TopSurface = 0
  1890. corw2 = Instance.new("Weld", cor2)
  1891. corw2.Part0 = rarm
  1892. corw2.Part1 = cor2
  1893. corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1894. corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1895. weld2 = Instance.new("Weld", rarm.RightArm)
  1896. weld2.Part0 = cor2
  1897. weld2.Part1 = rarm.RightArm.RightArmPlate
  1898. weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1899.  
  1900.  
  1901. --Zyrodoxa
  1902. m8 = Instance.new("Model")
  1903. m8.Name = "Zyrodoxa"
  1904.  
  1905. p16 = Instance.new("Part", m8)
  1906. p16.BrickColor = BrickColor.new("Instutional white")
  1907. p16.Material = Enum.Material.Metal
  1908. p16.Name = "Handle"
  1909. p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
  1910. p16.CanCollide = false
  1911. p16.Locked = true
  1912. p16.FormFactor = Enum.FormFactor.Custom
  1913. p16.Size = Vector3.new(0, 0, 0)
  1914. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1915. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1916. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1917. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1918. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1919. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1920. b16 = Instance.new("BlockMesh", p16)
  1921. b16.Name = "Mesh"
  1922. b16.Scale = Vector3.new(0, 0, 0)
  1923.  
  1924. w16 = Instance.new("Weld", p16)
  1925. w16.Name = "Block_Weld"
  1926. w16.Part0 = p16
  1927. w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
  1928. w16.Part1 = p17
  1929. w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
  1930.  
  1931. m8.Parent = rarm
  1932. m8:MakeJoints()
  1933. ----------------------------------------------------
  1934. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  1935. cor8.Name = "Thingy"
  1936. cor8.Locked = true
  1937. cor8.BottomSurface = 0
  1938. cor8.CanCollide = false
  1939. cor8.Size = Vector3.new(1, 1, 1)
  1940. cor8.Transparency = 1
  1941. cor8.TopSurface = 0
  1942. corw8 = Instance.new("Weld", cor8)
  1943. corw8.Part0 = rarm
  1944. corw8.Part1 = cor8
  1945. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  1946. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1947. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  1948. weld8.Part0 = cor8
  1949. weld8.Part1 = rarm.Zyrodoxa.Handle
  1950. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1951. ----------------------------------------------------
  1952. models = {m,m2,m3,m4,m5,m6,m7,m8}
  1953. parts = {}
  1954. Stepped:connect(function()
  1955. for i,v in pairs(models) do
  1956. for _, a in pairs(v:GetChildren()) do
  1957. if v:IsA("Part") and v.Name ~= "Thingy" then
  1958. table.insert(parts, a)
  1959. for i,v in pairs(parts) do
  1960. v.CanCollide = false
  1961. end
  1962. end
  1963. end
  1964. end
  1965. end)
  1966. ----------------------------------------------------
  1967. local animpose = "Idle1"
  1968. local lastanimpose = "Idle1"
  1969. local grab = false
  1970. local Smooth = 1
  1971. local sine = 0
  1972. local change = 1
  1973. local val = 0
  1974. local ffing = false
  1975. ----------------------------------------------------
  1976. --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
  1977.  
  1978. function FindHumanoids()
  1979. local function c_region(Position, Size)
  1980. local SizeOffset = Size/2
  1981. local Point1 = Position - SizeOffset
  1982. local Point2 = Position + SizeOffset
  1983. local a = Instance.new("Part", workspace)
  1984. a.Anchored = true
  1985. a.Size = Size
  1986. a.Position = Position
  1987. print("Hey!, I'm making a part!")
  1988. return Region3.new(Point1, Point2)
  1989. end
  1990.  
  1991. local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1992. local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1993. local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1994. local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
  1995.  
  1996. local regions = {a, b, c, d}
  1997.  
  1998. local found_humanoids = {}
  1999. local already_found = {char.Name}
  2000.  
  2001. for _, region in pairs(regions) do
  2002. for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
  2003. print(part, part.Parent, part.Name) ---nope
  2004. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  2005. local humanoid = part.Parent:FindFirstChild("Humanoid")
  2006. local name = humanoid.Parent.Name
  2007. local exists = false
  2008. for _, n in pairs(already_found) do
  2009. if n == name then
  2010. exists = true
  2011. end
  2012. end
  2013. if not exists then
  2014. table.insert(already_found, name)
  2015. table.insert(found_humanoids, humanoid)
  2016. end
  2017. elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
  2018. local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  2019. local name = humanoid.Parent.Parent.Name
  2020. local exists = false
  2021. for _, n in pairs(already_found) do
  2022. if n == name then
  2023. exists = true
  2024. end
  2025. end
  2026. if not exists then
  2027. table.insert(already_found, name)
  2028. table.insert(found_humanoids, humanoid)
  2029. end
  2030. end
  2031. end
  2032. end
  2033. return found_humanoids
  2034. end
  2035.  
  2036. local humanoids = FindHumanoids()
  2037. if #humanoids == 0 then
  2038. for i, v in pairs(humanoids) do
  2039. print(v.Parent.Name)
  2040. if Debounces.Slashing == true then
  2041. v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
  2042. elseif Debounces.Slashing == false then
  2043. wait()
  2044. end
  2045. end
  2046. wait(0.3)
  2047. end]]--
  2048. ----------------------------------------------------
  2049. --[[mouse.KeyDown:connect(function(key)
  2050. if key == "f" then
  2051. if Debounces.CanAttack == true then
  2052. Debounces.CanAttack = false
  2053. Debounces.NoIdl = true
  2054. Debounces.on = true
  2055. for i = 1, 20 do
  2056. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2057. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2058. CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
  2059. CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2060. CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2061. CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2062. CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
  2063. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
  2064. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2065. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
  2066. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2067. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
  2068. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
  2069. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
  2070. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
  2071. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  2072. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
  2073. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  2074. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
  2075. if Debounces.on == false then
  2076. break
  2077. end
  2078. fat.Event:wait()
  2079. end
  2080. end
  2081. end
  2082. end)]]--
  2083. ----------------------------------------------------
  2084. mod4 = Instance.new("Model",char)
  2085.  
  2086. ptez = {0.7, 0.8, 0.9, 1}
  2087.  
  2088. function FindNearestTorso(Position,Distance,SinglePlayer)
  2089. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  2090. local List = {}
  2091. for i,v in pairs(workspace:GetChildren())do
  2092. if v:IsA("Model")then
  2093. if v:findFirstChild("Torso")then
  2094. if v ~= char then
  2095. if(v.Torso.Position -Position).magnitude <= Distance then
  2096. table.insert(List,v)
  2097. end
  2098. end
  2099. end
  2100. end
  2101. end
  2102. return List
  2103. end
  2104.  
  2105. function Slam()
  2106. local part=Instance.new('Part',mod4)
  2107. part.Anchored=true
  2108. part.CanCollide=false
  2109. part.FormFactor='Custom'
  2110. part.Size=Vector3.new(.2,.2,.2)
  2111. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  2112. part.Transparency=.7
  2113. part.BrickColor=BrickColor.new('Really black')
  2114. mesh=Instance.new('SpecialMesh',part)
  2115. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  2116. mesh.Scale=Vector3.new(3,3,3)
  2117. local part2=Instance.new('Part',mod4)
  2118. part2.Anchored=true
  2119. part2.CanCollide=false
  2120. part2.FormFactor='Custom'
  2121. part2.Size=Vector3.new(.2,.2,.2)
  2122. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  2123. part2.Transparency=.7
  2124. part2.BrickColor=BrickColor.new('Institutional white')
  2125. mesh2=Instance.new('SpecialMesh',part2)
  2126. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  2127. mesh2.Scale=Vector3.new(3,1.5,3)
  2128. x = Instance.new("Sound",larm)
  2129. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  2130. x.Pitch = ptez[math.random(1,#ptez)]
  2131. x.Volume = 1
  2132. wait(.1)
  2133. x1 = Instance.new("Sound",larm)
  2134. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  2135. x1.Pitch = ptez[math.random(1,#ptez)]
  2136. x1.Volume = 1
  2137. wait(.1)
  2138. x:Play()
  2139. x1:Play()
  2140. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  2141. if v:FindFirstChild('Humanoid') then
  2142. v.Humanoid:TakeDamage(math.random(300,450))
  2143. end
  2144. end
  2145. coroutine.resume(coroutine.create(function()
  2146. for i=0,0.62,0.13 do
  2147. wait()
  2148. part.CFrame=part.CFrame
  2149. part.Transparency=i
  2150. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  2151. part2.CFrame=part2.CFrame
  2152. part2.Transparency=i
  2153. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  2154. end
  2155. part.Parent=nil
  2156. part2.Parent=nil
  2157. x:Destroy()
  2158. end))
  2159. end
  2160. ----------------------------------------------------
  2161. wPart = function(x,y,z,color,tr,cc,an,parent)
  2162. local wp = Instance.new('WedgePart',parent or Weapon)
  2163. wp.formFactor = 'Custom'
  2164. wp.Size = Vector3.new(x,y,z)
  2165. wp.BrickColor = BrickColor.new(color)
  2166. wp.CanCollide = cc
  2167. wp.Transparency = tr
  2168. wp.Anchored = an
  2169. wp.TopSurface,wp.BottomSurface = 0,0
  2170. return wp
  2171. end
  2172.  
  2173. Mesh = function(par,num,x,y,z)
  2174. local msh = _
  2175. if num == 1 then
  2176. msh = Instance.new("CylinderMesh",par)
  2177. elseif num == 2 then
  2178. msh = Instance.new("SpecialMesh",par)
  2179. msh.MeshType = 3
  2180. elseif num == 3 then
  2181. msh = Instance.new("BlockMesh",par)
  2182. elseif num == 4 then
  2183. msh = Instance.new("SpecialMesh",par)
  2184. msh.MeshType = "Torso"
  2185. elseif type(num) == 'string' then
  2186. msh = Instance.new("SpecialMesh",par)
  2187. msh.MeshId = num
  2188. end
  2189. msh.Scale = Vector3.new(x,y,z)
  2190. return msh
  2191. end
  2192.  
  2193. local function CFrameFromTopBack(at, top, back)
  2194. local right = top:Cross(back)
  2195. return CFrame.new(at.x, at.y, at.z,
  2196. right.x, top.x, back.x,
  2197. right.y, top.y, back.y,
  2198. right.z, top.z, back.z)
  2199. end
  2200.  
  2201. function Triangle(a, b, c)
  2202. local edg1 = (c-a):Dot((b-a).unit)
  2203. local edg2 = (a-b):Dot((c-b).unit)
  2204. local edg3 = (b-c):Dot((a-c).unit)
  2205. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2206. a, b, c = a, b, c
  2207. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2208. a, b, c = b, c, a
  2209. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2210. a, b, c = c, a, b
  2211. else
  2212. print("unreachable")
  2213. end
  2214. local len1 = (c-a):Dot((b-a).unit)
  2215. local len2 = (b-a).magnitude - len1
  2216. local width = (a + (b-a).unit*len1 - c).magnitude
  2217. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2218. local list = {}
  2219. if len1 > 0.01 then
  2220. local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  2221. local sz = Vector3.new(0.2, width, len1)
  2222. w1.Size = sz
  2223. local sp = Mesh(w1,2,0,0,0)
  2224. sp.MeshType='Wedge'
  2225. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  2226. w1:BreakJoints()
  2227. w1.Anchored = true
  2228. w1.Transparency = 0.7
  2229. Spawn(function()
  2230. for i=0,1,0.1 do
  2231. fat.Event:wait()
  2232. w1.Transparency=w1.Transparency+0.03
  2233. end
  2234. end)
  2235. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2236. table.insert(list,w1)
  2237. end
  2238. if len2 > 0.01 then
  2239. local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
  2240. local sz = Vector3.new(0.2, width, len2)
  2241. w2.Size = sz
  2242. local sp = Mesh(w2,2,0,0,0)
  2243. sp.MeshType='Wedge'
  2244. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  2245. w2:BreakJoints()
  2246. w2.Anchored = true
  2247. w2.Transparency = 0.7
  2248. Spawn(function()
  2249. for i=0,1,0.1 do
  2250. fat.Event:wait()
  2251. w2.Transparency=w2.Transparency+0.03
  2252. end
  2253. end)
  2254. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2255. table.insert(list,w2)
  2256. end
  2257. return unpack(list)
  2258. end
  2259.  
  2260. function trail(p,t,h)
  2261. Spawn(function()
  2262. local blcf = p.CFrame
  2263. local scfr = blcf
  2264. for i=1,t do
  2265. local blcf = p.CFrame
  2266. if scfr and (p.Position-scfr.p).magnitude > .1 then
  2267. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2268. if a then game.Debris:AddItem(a,1) end
  2269. if b then game.Debris:AddItem(b,1) end
  2270. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2271. if a then game.Debris:AddItem(a,1) end
  2272. if b then game.Debris:AddItem(b,1) end
  2273. scfr = blcf
  2274. elseif not scfr then
  2275. scfr = blcf
  2276. end
  2277. fat.Event:wait()
  2278. end
  2279. scfr=nil
  2280. end)
  2281. end
  2282. --trail(char.Sword.Blade,1e1000,5)
  2283. ----------------------------------------------------
  2284. function Dmg()
  2285. local partofdeath = rarm.Zyrodoxa.Hitbox
  2286. local function CreateRegion3FromLocAndSize(Position, Size)
  2287. local SizeOffset = Size/2
  2288. local Point1 = Position - SizeOffset
  2289. local Point2 = Position + SizeOffset
  2290. return Region3.new(Point1, Point2)
  2291. end
  2292. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  2293. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  2294. Spawn(function()
  2295. if Debounces.Slashing == true and Debounces.Slashed == false then
  2296. Debounces.Slashed = true
  2297. ypcall(function()
  2298. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  2299. humanoid:TakeDamage(math.random(10,50))
  2300. end)
  2301. wait(.4)
  2302. Debounces.Slashed = false
  2303. end
  2304. end)
  2305. end
  2306. end
  2307. ----------------------------------------------------
  2308. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  2309. ptz = {0.7, 0.8, 0.9, 1}
  2310. idz = {"161006212", "161006195"}
  2311. function attackone()
  2312. for i = 1, 13 do
  2313. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  2314. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
  2315. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
  2316. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  2317. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
  2318. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
  2319. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
  2320. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
  2321. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
  2322. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
  2323. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  2324. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
  2325. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  2326. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  2327. if Debounces.on == false then
  2328. break
  2329. end
  2330. fat.Event:wait()
  2331. end
  2332. trail(rarm.Zyrodoxa.Hitbox,20,2)
  2333. Debounces.Slashing = true
  2334. wait(0.2)
  2335. --[[z = Instance.new("Sound", hed)
  2336. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  2337. z.Pitch = ptz[math.random(1,#ptz)]
  2338. z.Volume = 1
  2339. wait(.01)
  2340. z:Play()]]--
  2341. for i = 1, 14 do
  2342. Dmg()
  2343. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
  2344. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
  2345. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
  2346. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
  2347. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
  2348. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
  2349. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
  2350. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  2351. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
  2352. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2353. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
  2354. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
  2355. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
  2356. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
  2357. if Debounces.on == false then break end
  2358. rs:wait()
  2359. end
  2360. Debounces.Slashing = false
  2361. end
  2362. function attacktwo()
  2363. Debounces.Slashing = true
  2364. for i = 1, 14 do
  2365. Dmg()
  2366. corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2367. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
  2368. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
  2369. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2370. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
  2371. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  2372. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
  2373. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  2374. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  2375. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2376. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
  2377. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2378. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
  2379. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2380. if Debounces.on == false then
  2381. break
  2382. end
  2383. rs:wait()
  2384. end
  2385. end
  2386. ----------------------------------------------------
  2387.  
  2388. ----------------------------------------------------
  2389. definition = 5
  2390. bc = {}
  2391. bezierparts = {}
  2392. function NoOutline(Part)
  2393. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2394. end
  2395. function draw(p,d)
  2396. for i=1,d do
  2397. local t = i/d
  2398. bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
  2399. end
  2400.  
  2401. Spawn(function() fat.Event:wait()
  2402. for i,v in pairs(bezierparts) do
  2403. v.Transparency = 1
  2404. end
  2405. end)
  2406. end
  2407. --local points = {larm.Position,rarn.Position,invisipart.Position}
  2408. --draw(points,definition)
  2409.  
  2410. fat.Event:wait()
  2411.  
  2412. rpart = Instance.new("Part",rarm)
  2413. NoOutline(rpart)
  2414. rpart.Anchored = false
  2415. rpart.Size = Vector3.new(1,1,1)
  2416. rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
  2417. rpart.Transparency = 1
  2418. newWeld(rarm, rpart, 0, 0, 0)
  2419. rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  2420. lpart = Instance.new("Part",larm)
  2421. NoOutline(lpart)
  2422. lpart.Anchored = false
  2423. lpart.Size = Vector3.new(1,1,1)
  2424. lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
  2425. lpart.Transparency = 1
  2426. newWeld(larm, lpart, 0, 0, 0)
  2427. lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
  2428. invisipart = Instance.new("Part",torso)
  2429. NoOutline(invisipart)
  2430. invisipart.Anchored = false
  2431. invisipart.Size = Vector3.new(1,1,1)
  2432. invisipart.Transparency = 1
  2433. invisipart.CFrame = torso.CFrame
  2434. newWeld(torso, invisipart, 0, 0, 0)
  2435. invisipart.Weld.C1 = CFrame.new(0, 0, 6)
  2436. table.insert(bezierparts, rpart)
  2437. table.insert(bezierparts, lpart)
  2438. table.insert(bezierparts, invisipart)
  2439. for i = 1, 40 do
  2440. local points = {lpart.Position,invisipart.Position,rpart.Position}
  2441. draw(points,definition)
  2442. --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
  2443. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
  2444. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2445. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
  2446. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2447. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
  2448. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
  2449. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2450. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2451. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
  2452. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2453. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
  2454. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  2455. if Debounces.on == false then
  2456. break
  2457. end
  2458. fat.Event:wait()
  2459. end
  2460. for i,v in pairs(bezierparts) do
  2461. v:Destroy()
  2462. end
  2463. --draw(points,definition)
  2464. if Debounces.CanAttack == false then
  2465. Debounces.CanAttack = true
  2466. Debounces.NoIdl = false
  2467. Debounces.on = false
  2468. end
  2469.  
  2470. ----------------------------------------------------
  2471. ----------------------------------------------------
  2472.  
  2473. ----------------------------------------------------
  2474. ----------------------------------------------------
  2475. mouse.KeyDown:connect(function(key)
  2476. if key == "j" then
  2477. if Debounces.CanJoke == true then
  2478. Debounces.CanJoke = false
  2479. z = Instance.new("Sound",hed)
  2480. z.SoundId = "rbxassetid://415859013"
  2481. z.Pitch = pitches[math.random(1,#pitches)]
  2482. z.Volume = 1
  2483. wait()
  2484. z:Play()
  2485. wait(2)
  2486. z:Destroy()
  2487. if Debounces.CanJoke == false then
  2488. Debounces.CanJoke = true
  2489. end
  2490. end
  2491. end
  2492. end)
  2493.  
  2494. ----------------------------------------------------
  2495. Grab = false
  2496. mouse.KeyDown:connect(function(key)
  2497. if key == "r" then
  2498. Debounces.on = true
  2499. Debounces.NoIdl = true
  2500. Debounces.ks = true
  2501. if Grab == false then
  2502. gp = nil
  2503. for i = 1, 20 do
  2504. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  2505. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2506. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
  2507. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2508. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  2509. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2510. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  2511. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2512. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
  2513. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2514. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
  2515. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2516. if Debounces.on == false then break end
  2517. fat.Event:wait()
  2518. end
  2519. con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
  2520. ht = hit.Parent
  2521. for i,v in pairs(ht:GetChildren()) do
  2522. if v:IsA("Part") then
  2523. v.CanCollide = false
  2524. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  2525. end
  2526. end
  2527. hum1=ht:FindFirstChild('Humanoid')
  2528. if hum1 ~= nil then
  2529. if Debounces.ks==true then
  2530. z = Instance.new("Sound",hed)
  2531. z.SoundId = "rbxassetid://169380525"
  2532. z.Volume = 1
  2533. z:Play()
  2534. Debounces.ks=false
  2535. end
  2536. hum1.PlatformStand=true
  2537. hum1:ChangeState'Physics'
  2538. gp = ht
  2539. Grab = true
  2540. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
  2541. asd.Parent = larm
  2542. asd.Name = "asd"
  2543. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  2544. stanceToggle = "Grabbed"
  2545. --[[elseif hum1 == nil then
  2546. con1:disconnect()
  2547. wait() return]]--
  2548. end
  2549. end)
  2550. for i = 1, 20 do
  2551. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  2552. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2553. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  2554. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2555. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
  2556. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2557. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  2558. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2559. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
  2560. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2561. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
  2562. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2563. if Debounces.on == false then break end
  2564. fat.Event:wait()
  2565. end
  2566. con1:disconnect()
  2567. Debounces.on = false
  2568. Debounces.NoIdl = false
  2569. elseif Grab == true then
  2570. Grab = false
  2571. --[[for i = 1, 16 do
  2572. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
  2573. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
  2574. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  2575. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  2576. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  2577. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2578. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  2579. if Debounces.on == false then end
  2580. rs:wait()
  2581. end]]--
  2582. for i = 1, 16 do
  2583. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
  2584. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
  2585. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
  2586. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
  2587. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  2588. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2589. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
  2590. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2591. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  2592. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  2593. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2594. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2595. if Debounces.on == false then end
  2596. rs:wait()
  2597. end
  2598. for i = 1, 12 do
  2599. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
  2600. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2601. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
  2602. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2603. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
  2604. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2605. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
  2606. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
  2607. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
  2608. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
  2609. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
  2610. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  2611. if Debounces.on == false then end
  2612. rs:wait()
  2613. end
  2614. Slam()
  2615. if gp ~= nil then
  2616. for i,v in pairs(larm:GetChildren()) do
  2617. if v.Name == "asd" and v:IsA("Weld") then
  2618. v:Remove()
  2619. end
  2620. if v:IsA("Part") then
  2621. v.CanCollide = true
  2622. v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
  2623. end
  2624. end
  2625. end
  2626. stanceToggle = "Idle1"
  2627. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  2628. bv.maxForce = Vector3.new(400000, 400000, 400000)
  2629. bv.P = 125000
  2630. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  2631. ht=nil
  2632. Debounces.on = false
  2633. Debounces.NoIdl = false
  2634. elseif ht == nil then wait()
  2635. Grab = false
  2636. Debounces.on = false
  2637. Debounces.NoIdl = false
  2638. end
  2639. end
  2640. end)
  2641. ----------------------------------------------------
  2642. Change = false
  2643. mouse.KeyDown:connect(function(key)
  2644. if key == "n" then
  2645. if Change == false then
  2646. Change = true
  2647. stanceToggle = "Idle2"
  2648. elseif Change == true then
  2649. Change = false
  2650. stanceToggle = "Idle1"
  2651. end
  2652. end
  2653. end)
  2654. ----------------------------------------------------
  2655. mouse.KeyDown:connect(function(key)
  2656. if string.byte(key) == 52 then
  2657. Swing = 2
  2658. char.Humanoid.WalkSpeed = 28
  2659. end
  2660. end)
  2661. mouse.KeyUp:connect(function(key)
  2662. if string.byte(key) == 52 then
  2663. Swing = 1
  2664. char.Humanoid.WalkSpeed = 20
  2665. end
  2666. end)
  2667. ----------------------------------------------------
  2668.  
  2669. jump = false
  2670. rs:connect(function()
  2671. if char.Humanoid.Jump == true then
  2672. jump = true
  2673. else
  2674. jump = false
  2675. end
  2676. char.Humanoid.FreeFalling:connect(function(f)
  2677. if f then
  2678. ffing = true
  2679. else
  2680. ffing = false
  2681. end
  2682. end)
  2683. sine = sine + change
  2684. if jump == true then
  2685. animpose = "Jumping"
  2686. elseif ffing == true then
  2687. animpose = "Freefalling"
  2688. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  2689. animpose = "Idle"
  2690. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  2691. animpose = "Walking"
  2692. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  2693. animpose = "Running"
  2694. end
  2695. RightLeg = CFrame.new(0.5,-1,0)
  2696. LeftLeg = CFrame.new(-0.5,-1,0)
  2697.  
  2698. lefth = (torso.CFrame*LeftLeg)
  2699. righth = (torso.CFrame*RightLeg)
  2700.  
  2701. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  2702.  
  2703. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  2704.  
  2705. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  2706. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  2707. if animpose ~= lastanimpose then
  2708. sine = 0
  2709. if Debounces.NoIdl == false then
  2710. if stanceToggle == "Idle1" then
  2711. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  2712. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  2713. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  2714. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  2715. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  2716. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  2717. elseif stanceToggle == "Idle2" then
  2718. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
  2719. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
  2720. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
  2721. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
  2722. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
  2723. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
  2724. end
  2725. fat.Event:wait()
  2726. end
  2727. else
  2728. end
  2729. lastanimpose = animpose
  2730. if Debounces.NoIdl == false then
  2731. if animpose == "Idle" then
  2732. change = 0.5
  2733. if stanceToggle == "Idle1" then
  2734. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2735. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
  2736.  
  2737. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  2738. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2739. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  2740. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2741. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
  2742. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
  2743. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  2744. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  2745. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  2746. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
  2747. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  2748. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
  2749. elseif stanceToggle == "Idle2" then
  2750.  
  2751. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2752. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
  2753. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2754. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
  2755. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2756. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  2757. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  2758. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  2759. --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
  2760. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2761. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
  2762. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
  2763. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
  2764. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
  2765. elseif stanceToggle == "Grabbed" then
  2766. grab = true
  2767. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2768. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2769. 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(40+2*math.cos(sine/14))), 0.2)
  2770. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2771. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
  2772. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2773. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  2774. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2775. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  2776. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  2777. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  2778. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2779. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  2780. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2781. end
  2782. elseif animpose == "Walking" then
  2783. if stanceToggle == "Grabbed" then
  2784. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2785. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2786. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2787. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2788. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
  2789. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  2790. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  2791. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  2792. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  2793. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  2794. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  2795. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  2796. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2797. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  2798. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2799. elseif stanceToggle ~= "Grabbed" then
  2800. change = 1
  2801. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2802. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2803.  
  2804. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2805. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2806. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  2807. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  2808. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  2809. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  2810. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  2811. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  2812. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  2813. --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  2814. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  2815. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2816. --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  2817. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  2818. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2819. end
  2820. elseif animpose == "Running" then
  2821. change = 1
  2822. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2823. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2824.  
  2825. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  2826. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2827. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
  2828. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2829. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
  2830. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  2831. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
  2832. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2833. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  2834. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2835. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  2836. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2837. elseif animpose == "Jumping" then
  2838.  
  2839. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2840. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2841. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
  2842. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2843. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  2844. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2845. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  2846. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  2847. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2848. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2849. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2850. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2851. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2852. elseif animpose == "Freefalling" then
  2853.  
  2854. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  2855. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2856. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
  2857. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  2858. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
  2859. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  2860. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  2861. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  2862. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  2863. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  2864. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2865. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
  2866. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2867. end
  2868. end
  2869. end)
  2870. hum.MaxHealth = math.huge
  2871. wait(3)
  2872. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement