Advertisement
AgentVK

Untitled

Jul 6th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.69 KB | None | 0 0
  1. --------------------------This is an Official script from Duelist--------------------------
  2. ---{-------------------- -------------------}---
  3. ---{-------------------- / \ -------------------}---
  4. ---{-------------------- II -------------------}---
  5. ---{-------------------- II -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- A========A -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- W -------------------}---
  11. -------------------------------------------------------------------------------------------------------------
  12. local p = game.Players.LocalPlayer
  13. --300899323
  14. local char = p.Character
  15. local mouse = p:GetMouse()
  16. local larm = char["Left Arm"]
  17. local rarm = char["Right Arm"]
  18. local lleg = char["Left Leg"]
  19. local rleg = char["Right Leg"]
  20. local hed = char.Head
  21. local torso = char.Torso
  22. local hum = char.Humanoid
  23. local cam = game.Workspace.CurrentCamera
  24. local root = char.HumanoidRootPart
  25. local RootPart = char.HumanoidRootPart
  26. local rj = root.RootJoint
  27. local deb = false
  28. local shot = 0
  29. local stanceToggle = "Idle1"
  30. local l = game:GetService("Lighting")
  31. local rs = game:GetService("RunService").RenderStepped
  32. local hb = game:GetService("RunService").Heartbeat
  33. local Stepped = game:GetService("RunService").Stepped
  34. math.randomseed(os.time())
  35. hum.JumpPower = 70
  36. hed.face:Remove()
  37. local euler = CFrame.fromEulerAnglesXYZ
  38. ----------------------------------------------------
  39. local Character = char
  40. ---------------------------------------------------
  41. local Effects = {}
  42. wait(0.016666666666667)
  43. equipc0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  44. unequipc0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  45. local player = game.Players.localPlayer
  46. local humanoid = char.Humanoid
  47. local mouse = player:GetMouse()
  48. local weldBetween = function(a, b)
  49. local weldd = Instance.new("ManualWeld")
  50. weldd.Part0 = a
  51. weldd.Part1 = b
  52. weldd.C0 = CFrame.new()
  53. weldd.C1 = b.CFrame:inverse() * a.CFrame
  54. weldd.Parent = a
  55. return weldd
  56. end
  57.  
  58. vt = Vector3.new
  59. local m = Instance.new("Model", char)
  60. local larm = char["Left Arm"]
  61. local rarm = char["Right Arm"]
  62. local lleg = char["Left Leg"]
  63. local rleg = char["Right Leg"]
  64. local hed = char.Head
  65. local torso = char.Torso
  66. local cam = game.Workspace.CurrentCamera
  67. local RootPart = char.HumanoidRootPart
  68. local equipped = false
  69. local attack = false
  70. local Anim = "Idle"
  71. local idle = 0
  72. local sprint = false
  73. local battlestance = false
  74. local attacktype = 1
  75. local state = "none"
  76. local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  77. local velocity = RootPart.Velocity.y
  78. local sine = 0
  79. local change = 1
  80.  
  81. it = Instance.new
  82. local on = false
  83. local grabbed = false
  84. local skill1 = false
  85. local skill2 = false
  86. local skill3 = false
  87. local skill4 = false
  88. local cooldown1 = 0
  89. local cooldown2 = 0
  90. local cooldown3 = 0
  91. local cooldown4 = 0
  92. local co1 = 10
  93. local co2 = 15
  94. local co3 = 20
  95. local co4 = 35
  96. local inputserv = game:GetService("UserInputService")
  97. local typing = false
  98. local crit = false
  99. local critchance = 2
  100. local critdamageaddmin = 3
  101. local critdamageaddmax = 7
  102. local maxstamina = 100
  103. local stamina = 0
  104. local skill1stam = 10
  105. local skill2stam = 20
  106. local skill3stam = 35
  107. local skill4stam = 50
  108. local recovermana = 5
  109. local defensevalue = 1
  110. local speedvalue = 1
  111. local mindamage = 5
  112. local maxdamage = 7
  113. local damagevalue = 1
  114. local maramistcutterchance = 25
  115. local cn = CFrame.new
  116. local mr = math.rad
  117. local angles = CFrame.Angles
  118. local ud = UDim2.new
  119. local c3 = Color3.new
  120. F1 = Instance.new("Folder", char)
  121. F1.Name = "Effects Folder"
  122. F2 = Instance.new("Folder", F1)
  123. F2.Name = "Effects"
  124. ----------------------------------------------------
  125. fat = Instance.new("BindableEvent",script)
  126. fat.Name = "Heartbeat"
  127.  
  128. script:WaitForChild("Heartbeat")
  129.  
  130. frame = 1/30
  131. tf = 0
  132. 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.
  133. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  134. lastframe = tick()
  135. script.Heartbeat:Fire() --ayy lmao
  136.  
  137. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  138. tf = tf + s
  139. if tf >= frame then
  140. if allowframeloss then
  141. script.Heartbeat:Fire()
  142. lastframe=tick()
  143. else
  144. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  145. for i=1, math.floor(tf/frame) do
  146. script.Heartbeat:Fire()
  147. end
  148. lastframe=tick()
  149. end
  150. if tossremainder then
  151. tf = 0
  152. else
  153. tf = tf - frame * math.floor(tf/frame)
  154. end
  155. end
  156. end)
  157. swait = function(num)
  158. if num == 0 or num == nil then
  159. game:service("RunService").Heartbeat:wait(0)
  160. else
  161. for i = 0, num do
  162. game:service("RunService").Heartbeat:wait(0)
  163. end
  164. end
  165. end
  166. ----------------------------------------------------
  167. function lerp(a, b, t) -- Linear interpolation
  168. return a + (b - a)*t
  169. end
  170.  
  171. function slerp(a, b, t) --Spherical interpolation
  172. dot = a:Dot(b)
  173. if dot > 0.99999 or dot < -0.99999 then
  174. return t <= 0.5 and a or b
  175. else
  176. r = math.acos(dot)
  177. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  178. end
  179. end
  180.  
  181. function matrixInterpolate(a, b, t)
  182. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  183. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  184. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  185. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  186. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  187. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  188. local t = v1:Dot(v2)
  189. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  190. return CFrame.new()
  191. end
  192. return CFrame.new(
  193. v0.x, v0.y, v0.z,
  194. v1.x, v1.y, v1.z,
  195. v2.x, v2.y, v2.z,
  196. v3.x, v3.y, v3.z)
  197. end
  198. ----------------------------------------------------
  199. function genWeld(a,b)
  200. local w = Instance.new("Weld",a)
  201. w.Part0 = a
  202. w.Part1 = b
  203. return w
  204. end
  205. function weld(a, b)
  206. local weld = Instance.new("Weld")
  207. weld.Name = "W"
  208. weld.Part0 = a
  209. weld.Part1 = b
  210. weld.C0 = a.CFrame:inverse() * b.CFrame
  211. weld.Parent = a
  212. return weld;
  213. end
  214. ----------------------------------------------------
  215. function Lerp(c1,c2,al)
  216. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  217. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  218. for i,v in pairs(com1) do
  219. com1[i] = v+(com2[i]-v)*al
  220. end
  221. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  222. end
  223. ----------------------------------------------------
  224. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  225. local wld = Instance.new("Weld", wp1)
  226. wld.Part0 = wp0
  227. wld.Part1 = wp1
  228. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  229. end
  230. function weld5(part0, part1, c0, c1)
  231. weeld=Instance.new("Weld", part0)
  232. weeld.Part0=part0
  233. weeld.Part1=part1
  234. weeld.C0=c0
  235. weeld.C1=c1
  236. return weeld
  237. end
  238. ----------------------------------------------------
  239. newWeld(torso, larm, -1.5, 0.5, 0)
  240. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  241. newWeld(torso, rarm, 1.5, 0.5, 0)
  242. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  243. newWeld(torso, hed, 0, 1.5, 0)
  244. newWeld(torso, lleg, -0.5, -1, 0)
  245. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  246. newWeld(torso, rleg, 0.5, -1, 0)
  247. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  248. newWeld(root, torso, 0, -1, 0)
  249. torso.Weld.C1 = CFrame.new(0, -1, 0)
  250.  
  251. ----------------------------------------------------
  252. Debounces = {
  253. Doe = false;
  254. CanAttack = true;
  255. CanJoke = true;
  256. NoIdl = false;
  257. Slashing = false;
  258. Slashed = false;
  259. ks = false;
  260. }
  261. local myVars = {
  262. false, -- Unsheathed 1
  263. nil, -- Grabbed Entity 2
  264. 0, -- Attack number 3
  265. false, -- Running 4
  266. false, --Powers Mode 5
  267. false, -- 6
  268. }
  269. ----------------------------------------------------
  270.  
  271. function GetParts(obj)
  272. for i, v in pairs(obj:GetChildren())do
  273. if ( v:IsA'BasePart' ) then
  274. if v.Name ~= "Trail" then
  275. Instance.new("ForceField", v);
  276. end
  277. end
  278. GetParts(v);
  279. end
  280. end
  281. --GetParts(char)
  282.  
  283. function NoOutline(Part)
  284. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  285. end
  286. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  287. local fp=it("Part")
  288. fp.formFactor=formfactor
  289. fp.Parent=parent
  290. fp.Reflectance=reflectance
  291. fp.Transparency=transparency
  292. fp.CanCollide=false
  293. fp.Locked=true
  294. fp.BrickColor=brickcolor
  295. fp.Name=name
  296. fp.Size=size
  297. fp.Position=torso.Position
  298. NoOutline(fp)
  299. fp.Material="Neon"
  300. fp:BreakJoints()
  301. return fp
  302. end
  303. --------------------------------------
  304. Character.Archivable = true
  305. local yellow = Character:Clone()
  306. yellow.Name = ""
  307. for _,c in pairs(yellow:children()) do
  308. if c.className == "Model" or c.className == "Script" or c.className == "BodyColors" or c.className == "Hat" or c.Name == "Stats" then
  309. c.Parent = nil
  310. end
  311. if c.className == "Part" then
  312. NoOutline(c)
  313. c.CanCollide = false
  314. c.Transparency = 1
  315. if c.Name == "HumanoidRootPart" then
  316. c.Transparency = 1
  317. end
  318. c.BrickColor = BrickColor.new("New Yeller")
  319. for _,d in pairs(c:children()) do
  320. if d.className == "Weld" or d.className == "Motor" or d.className == "Motor6D" or d.className == "Decal" then
  321. d.Parent = nil
  322. end
  323. end
  324. end
  325. do
  326. do
  327. if c.className == "Humanoid" then
  328. c.Parent = nil
  329. end
  330. end
  331. end
  332. end
  333. yellow.Parent = Character
  334. if yellow:findFirstChild("HumanoidRootPart") ~= nil then
  335. yellow.HumanoidRootPart.Anchored = true
  336. end
  337. shed = yellow.Head
  338. storso = yellow.Torso
  339. sroot = yellow.HumanoidRootPart
  340. slarm = yellow["Left Arm"]
  341. srarm = yellow["Right Arm"]
  342. slleg = yellow["Left Leg"]
  343. srleg = yellow["Right Leg"]
  344. storso.Size = storso.Size + Vector3.new(.2,.1,.2)
  345. slarm.Size = slarm.Size + Vector3.new(.2,.1,.2)
  346. srarm.Size = srarm.Size + Vector3.new(.2,.1,.2)
  347. slleg.Size = slleg.Size + Vector3.new(.2,.1,.2)
  348. srleg.Size = srleg.Size + Vector3.new(.2,.1,.2)
  349. shed.Size = shed.Size + Vector3.new(.2,.1,.2)
  350. newWeld(storso, slarm, -1.5, 0.5, 0)
  351. slarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  352. newWeld(storso, srarm, 1.5, 0.5, 0)
  353. srarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  354. newWeld(storso, shed, 0, 1.5, 0)
  355. newWeld(storso, slleg, -0.5, -1, 0)
  356. slleg.Weld.C1 = CFrame.new(0, 1, 0)
  357. newWeld(storso, srleg, 0.5, -1, 0)
  358. srleg.Weld.C1 = CFrame.new(0, 1, 0)
  359. newWeld(sroot, storso, 0, -1, 0)
  360. storso.Weld.C1 = CFrame.new(0, -1, 0)
  361. Character.Archivable = false
  362. local forms = {
  363. yellow
  364. }
  365. ---------------------------------------------
  366. function parto(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  367. local fp=it("Part")
  368. fp.formFactor=formfactor
  369. fp.Parent=parent
  370. fp.Reflectance=reflectance
  371. fp.Transparency=transparency
  372. fp.CanCollide=false
  373. fp.Locked=true
  374. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  375. fp.Name=name
  376. fp.Size=size
  377. fp.Position=char.Torso.Position
  378. NoOutline(fp)
  379. fp.Material="Neon"
  380. fp:BreakJoints()
  381. return fp
  382. end
  383.  
  384. local PowerBrickColor = BrickColor.new("Really red")
  385. function Showdamage(Pos, Text, Time, Color)
  386. local Rate = (1 / 30)
  387. local Pos = (Pos or Vector3.new(0, 0, 0))
  388. local Text = (Text or "")
  389. local Time = (Time or 2)
  390. local Color = (Color or Color3.new(1, 0, 0))
  391. local EffectPart = parto("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  392. EffectPart.Anchored = true
  393. local BillboardGui = Instance.new("BillboardGui")
  394. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  395. BillboardGui.Adornee = EffectPart
  396. BillboardGui.Parent = EffectPart
  397.  
  398. local TextLabel = Instance.new("TextLabel")
  399. TextLabel.BackgroundTransparency = 1
  400. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  401. TextLabel.Text = Text
  402. TextLabel.TextColor3 = Color
  403. TextLabel.TextScaled = true
  404. TextLabel.Font = Enum.Font.SourceSansBold
  405. TextLabel.Parent = BillboardGui
  406. TextLabel.TextStrokeTransparency = 0
  407. TextLabel.TextTransparency = 0.2
  408.  
  409.  
  410. game.Debris:AddItem(EffectPart, (Time + 0.1))
  411. EffectPart.Parent = game:GetService("Workspace")
  412. delay(0, function()
  413. local Frames = (Time / Rate)
  414. for Frame = 1, Frames do
  415. wait(Rate)
  416. local Percent = (Frame / Frames)
  417. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  418. TextLabel.TextTransparency = Percent
  419. end
  420. if EffectPart and EffectPart.Parent then
  421. EffectPart:Destroy()
  422. end
  423. end)
  424. end
  425.  
  426. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  427. if hit.Parent == nil then
  428. return
  429. end
  430. local h = hit.Parent:FindFirstChild("Humanoid")
  431. for _, v in pairs(hit.Parent:children()) do
  432. if v:IsA("Humanoid") then
  433. h = v
  434. end
  435. end
  436. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  437. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  438. if hit.Parent.DebounceHit.Value == true then
  439. return
  440. end
  441. end
  442. if h.MaxHealth >= math.huge then
  443. hit:BreakJoints()
  444. end
  445. local c = Instance.new("ObjectValue")
  446. c.Name = "creator"
  447. c.Value = game:service("Players").LocalPlayer
  448. c.Parent = h
  449.  
  450. game:GetService("Debris"):AddItem(c, .5)
  451. if HitSound ~= nil and HitPitch ~= nil then
  452. --so(HitSound, hit, 1, HitPitch)
  453. end
  454. local Damage = math.random(minim, maxim)
  455. -- h:TakeDamage(Damage)
  456. local blocked = false
  457. local block = hit.Parent:findFirstChild("Block")
  458. if block ~= nil then
  459. if block.className == "IntValue" then
  460. if block.Value > 0 then
  461. blocked = true
  462. block.Value = block.Value - 1
  463. print(block.Value)
  464. end
  465. end
  466. end
  467. if blocked == false then
  468. -- h:TakeDamage(Damage)
  469. h.Health = h.Health - Damage
  470. if Damage ~= 0 then
  471. Showdamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1, PowerBrickColor.Color)
  472. end
  473. else
  474. h.Health = h.Health - (Damage / 2)
  475. if Damage ~=0 then
  476. Showdamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1, PowerBrickColor.Color)
  477. end
  478. end
  479. if Type == "Knockdown" then
  480. local hum = hit.Parent.Humanoid
  481. hum.PlatformStand = true
  482. coroutine.resume(coroutine.create(function(HHumanoid)
  483. swait(1)
  484. HHumanoid.PlatformStand = false
  485. end), hum)
  486. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  487. local bodvol = Instance.new("BodyVelocity")
  488. bodvol.velocity = angle * knockback
  489. bodvol.P = 5000
  490. bodvol.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  491. bodvol.Parent = hit
  492.  
  493. local rl = Instance.new("BodyAngularVelocity")
  494. rl.P = 3000
  495. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  496. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  497. rl.Parent = hit
  498.  
  499. game:GetService("Debris"):AddItem(bodvol, .5)
  500. game:GetService("Debris"):AddItem(rl, .5)
  501. elseif Type == "Plat" then
  502. local hum = hit.Parent.Humanoid
  503. hum.PlatformStand = true
  504. coroutine.resume(coroutine.create(function(HHumanoid)
  505. wait(0.8)
  506. HHumanoid.PlatformStand = false
  507. end), hum)
  508.  
  509. local rl = Instance.new("BodyAngularVelocity")
  510. rl.P = 3000
  511. rl.maxTorque = Vector3.new(100, 100, 100) * 500
  512. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  513. rl.Parent = hit
  514.  
  515. game:GetService("Debris"):AddItem(rl, .5)
  516.  
  517. local vp = Instance.new("BodyVelocity")
  518. vp.P = 500
  519. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  520. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  521.  
  522. if knockback > 0 then
  523. vp.Parent = hit.Parent.Torso
  524. end
  525. game:GetService("Debris"):AddItem(vp, .5)
  526.  
  527. elseif Type == "Normal" then
  528. local vp = Instance.new("BodyVelocity")
  529. vp.P = 500
  530. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  531. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  532.  
  533. if knockback > 0 then
  534. vp.Parent = hit.Parent.Torso
  535. end
  536. game:GetService("Debris"):AddItem(vp, .5)
  537. elseif Type == "Gravitate" then
  538. local tor = hit.Parent.Torso
  539. local bp = Instance.new("BodyPosition",tor)
  540. bp.P = 500
  541. bp.maxForce = Vector3.new(4000, 1000, 4000)
  542. bp.Position = char.Torso.Position
  543. game:GetService("Debris"):AddItem(bp, Delay)
  544. elseif Type == "Up" then
  545. local bodyVelocity = Instance.new("BodyVelocity")
  546. bodyVelocity.velocity = vt(0, 20, 0)
  547. bodyVelocity.P = 5000
  548. bodyVelocity.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  549. bodyVelocity.Parent = hit
  550.  
  551. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  552. elseif Type == "Snare" then
  553. local bp = Instance.new("BodyPosition")
  554. bp.P = 2000
  555. bp.D = 100
  556. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  557. bp.position = hit.Parent.Torso.Position
  558. bp.Parent = hit.Parent.Torso
  559. game:GetService("Debris"):AddItem(bp, 1)
  560.  
  561. elseif Type == "Freeze" then
  562. local BodPos = Instance.new("BodyPosition")
  563. BodPos.P = 50000
  564. BodPos.D = 1000
  565. BodPos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  566. BodPos.position = hit.Parent.Torso.Position
  567. BodPos.Parent = hit.Parent.Torso
  568.  
  569. local BodGy = Instance.new("BodyGyro")
  570. BodGy.maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge
  571. BodGy.P = 20e+003
  572. BodGy.Parent = hit.Parent.Torso
  573. BodGy.cframe = hit.Parent.Torso.CFrame
  574.  
  575. hit.Parent.Torso.Anchored = true
  576. coroutine.resume(coroutine.create(function(Part)
  577. swait(1.5)
  578. Part.Anchored = false
  579. end), hit.Parent.Torso)
  580. game:GetService("Debris"):AddItem(BodPos, 3)
  581. game:GetService("Debris"):AddItem(BodGy, 3)
  582.  
  583.  
  584. elseif Type=="Target" then
  585. if Targetting==false then
  586. ZTarget=hit.Parent.Torso
  587. coroutine.resume(coroutine.create(function(Part)
  588. --so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  589. swait(5)
  590. --so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  591. end),ZTarget)
  592. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  593. targetgui=Instance.new("BillboardGui")
  594. targetgui.Parent=ZTarget
  595. targetgui.Size=UDim2.new(10,100,10,100)
  596. targ=Instance.new("ImageLabel")
  597. targ.Parent=targetgui
  598. targ.BackgroundTransparency=1
  599. targ.Image="rbxassetid://4834067"
  600. targ.Size=UDim2.new(1,0,1,0)
  601. cam.CameraType="Scriptable"
  602. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  603. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  604. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  605. Targetting=true
  606. RocketTarget=ZTarget
  607. for i=1,Property do
  608. if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  609. swait()
  610. end
  611. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  612. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  613. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  614. end
  615. Targetting=false
  616. RocketTarget=nil
  617. targetgui.Parent=nil
  618. cam.CameraType="Custom"
  619. end
  620. end
  621.  
  622. local debounce = Instance.new("BoolValue")
  623. debounce.Name = "DebounceHit"
  624. debounce.Parent = hit.Parent
  625. debounce.Value = true
  626. game:GetService("Debris"):AddItem(debounce, Delay)
  627. c = Instance.new("ObjectValue")
  628. c.Name = "creator"
  629. c.Value = Player
  630. c.Parent = h
  631. game:GetService("Debris"):AddItem(c, .5)
  632. end
  633. end
  634. MousePlane = function()
  635. local mouse = game.Players.LocalPlayer:GetMouse()
  636. local buttspoop = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - mouse.Hit.p).unit
  637. return -Vector3.new(buttspoop.x,0,buttspoop.z).unit
  638. end
  639.  
  640. NewPart = function(size, cframe, color, meshtype, meshscale)
  641. local par = Instance.new("Part")
  642. par.formFactor = "Custom"
  643. par.TopSurface = 0
  644. par.BottomSurface = 0
  645. par.Size = size
  646. par.CFrame = cframe
  647. par.Material = "Neon"
  648. par.BrickColor = BrickColor.new(color)
  649. do
  650. if meshtype then
  651. local m = Instance.new(meshtype, par)
  652. m.Scale = meshscale
  653. end
  654. return par
  655. end
  656. end
  657. MousePlane = function()
  658. local mouse = game.Players.LocalPlayer:GetMouse()
  659. local buttspoop = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - mouse.Hit.p).unit
  660. return -Vector3.new(buttspoop.x,0,buttspoop.z).unit
  661. end
  662.  
  663. function giant(p, size)
  664. local pchar = p.Character
  665. if pchar then
  666. local function scale(chr,scl)
  667.  
  668. for _,v in pairs(pchar:GetChildren()) do
  669. if v:IsA("Accessory") then
  670. v:Clone()
  671. v.Parent = game.Lighting
  672. end
  673. end
  674.  
  675. local Head = chr['Head']
  676. local Torso = chr['Torso']
  677. local LA = chr['Left Arm']
  678. local RA = chr['Right Arm']
  679. local LL = chr['Left Leg']
  680. local RL = chr['Right Leg']
  681. local HRP = chr['HumanoidRootPart']
  682.  
  683. wait(0.1)
  684.  
  685. Head.formFactor = 3
  686. Torso.formFactor = 3
  687. LA.formFactor = 3
  688. RA.formFactor = 3
  689. LL.formFactor = 3
  690. RL.formFactor = 3
  691. HRP.formFactor = 3
  692. Head.Mesh.Scale = Vector3.new(scl + .25, scl + .25, scl + .25)
  693. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  694. LA.Size = Vector3.new(scl, scl * 2, scl)
  695. RA.Size = Vector3.new(scl, scl * 2, scl)
  696. LL.Size = Vector3.new(scl, scl * 2, scl)
  697. RL.Size = Vector3.new(scl, scl * 2, scl)
  698. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  699. for i,v in pairs(pchar:GetChildren()) do
  700. if v:IsA("Hat") then
  701. print("FOUND ACCESSORY")
  702. for ii,vi in pairs(v:GetChildren()) do
  703. if vi:IsA("Mesh") then
  704. vi.Scale = Vector3.new(scl, scl, scl)
  705. elseif vi:IsA("Part") then
  706. print("FOUND PART")
  707. for iii,vii in pairs(vi:GetChildren()) do
  708. if vii:IsA("Mesh") then
  709. vii.Scale = Vector3.new(scl, scl, scl)
  710. end
  711. end
  712. end
  713. end
  714. end
  715. end
  716. local Motor1 = Instance.new('Motor6D', Torso)
  717. Motor1.Part0 = Torso
  718. Motor1.Part1 = Head
  719. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  720. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  721. Motor1.Name = "Neck"
  722.  
  723. local Motor2 = Instance.new('Motor6D', Torso)
  724. Motor2.Part0 = Torso
  725. Motor2.Part1 = LA
  726. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  727. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  728. Motor2.Name = "Left Shoulder"
  729.  
  730. local Motor3 = Instance.new('Motor6D', Torso)
  731. Motor3.Part0 = Torso
  732. Motor3.Part1 = RA
  733. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  734. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  735. Motor3.Name = "Right Shoulder"
  736.  
  737. local Motor4 = Instance.new('Motor6D', Torso)
  738. Motor4.Part0 = Torso
  739. Motor4.Part1 = LL
  740. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  741. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  742. Motor4.Name = "Left Hip"
  743.  
  744. local Motor5 = Instance.new('Motor6D', Torso)
  745. Motor5.Part0 = Torso
  746. Motor5.Part1 = RL
  747. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  748. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  749. Motor5.Name = "Right Hip"
  750.  
  751. local Motor6 = Instance.new('Motor6D', HRP)
  752. Motor6.Part0 = HRP
  753. Motor6.Part1 = Torso
  754. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  755. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  756.  
  757. end
  758.  
  759. scale(pchar, size)
  760. pchar.Humanoid.WalkSpeed = 15 * size
  761.  
  762. for _,v in pairs(game.Lighting:GetChildren()) do
  763. if v:IsA("Accessory") then
  764. for ii,vi in pairs(v:GetChildren()) do
  765. if vi:IsA("Part") then
  766. print("FOUND PART")
  767. for iii,vii in pairs(vi:GetChildren()) do
  768. if vii:IsA("SpecialMesh") then
  769. print(vii)
  770. vii.Scale = Vector3.new(size, size, size)
  771. end
  772. end
  773. end
  774. end
  775. v.Parent = pchar
  776. end
  777. end
  778. end
  779. end
  780.  
  781. rayCast = function(pos, dir, maxl, ignore)
  782. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  783. end
  784.  
  785. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  786. local mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  787. local mesh = it(Mesh)
  788. mesh.Parent = part
  789. if Mesh == "SpecialMesh" then
  790. mesh.MeshType = meshtype
  791. if meshid ~= "nil" then
  792. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  793. end
  794. end
  795. mesh.Offset = offset
  796. mesh.Scale = scale
  797. return mesh
  798. end
  799. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  800. prt.Anchored = true
  801. prt.CFrame = cframe
  802. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  803. game:GetService("Debris"):AddItem(prt, 10)
  804. table.insert(Effects, {prt, "Cylinder1", delay, x3, y3, z3, msh})
  805. end
  806. function FindNearestTorso(Position,Distance,SinglePlayer)
  807. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  808. local List = {}
  809. for i,v in pairs(workspace:GetChildren())do
  810. if v:IsA("Model")then
  811. if v:findFirstChild("Torso")then
  812. if v ~= char then
  813. if(v.Torso.Position -Position).magnitude <= Distance then
  814. table.insert(List,v)
  815. end
  816. end
  817. end
  818. end
  819. end
  820. return List
  821. end
  822.  
  823. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  824.  
  825. local mesh = function(Mesh,part,meshtype,meshid,offset,scale)
  826. local mesh=it(Mesh)
  827. mesh.Parent=part
  828. if Mesh=="SpecialMesh" then
  829. mesh.MeshType=meshtype
  830. mesh.MeshId=meshid
  831. end
  832. mesh.Offset=offset
  833. mesh.Scale=scale
  834. return mesh
  835. end
  836. local prt=part(3,F2,0,0,brickcolor,"Effect",vt())
  837. prt.Anchored=true
  838. prt.CFrame=cframe
  839. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  840. game:GetService("Debris"):AddItem(prt,5)
  841. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  842. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  843. for i=0,1,delay do
  844. wait()
  845. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  846. Part.Transparency=i
  847. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  848. end
  849. Part.Parent=nil
  850. end),prt,msh)]]
  851. end
  852. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  853. --[[Part0 = Vector3 (Start pos)
  854. Part1 = Vector3 (End pos)
  855. Times = number (Amount of lightning parts)
  856. Offset = number (Offset)
  857. Color = color (brickcolor value)
  858. Thickness = number (thickness)
  859. Trans = number (transparency)
  860. ]]--
  861. local magz = (Part0 - Part1).magnitude
  862. local curpos = Part0
  863. local trz = {-Offset,Offset}
  864. for i=1,Times do
  865. local li = Instance.new("Part", torso)
  866. li.Name = "Lightning"
  867. li.TopSurface =0
  868. li.Material = "Neon"
  869. li.BottomSurface = 0
  870. li.Anchored = true
  871. li.Locked = true
  872. li.Transparency = Trans or 0.4
  873. li.BrickColor = BrickColor.new(Color)
  874. li.formFactor = "Custom"
  875. li.CanCollide = false
  876. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  877. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  878. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  879. if Times == i then
  880. local magz2 = (curpos - Part1).magnitude
  881. li.Size = Vector3.new(Thickness,Thickness,magz2)
  882. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  883. else
  884. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  885. end
  886. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  887. game.Debris:AddItem(li,.1)
  888. end
  889. end
  890. local Neons = {BrickColor.new("Bright red"), BrickColor.new("Bright orange"), BrickColor.new("Bright yellow"), BrickColor.new("Bright green"), BrickColor.new("Bright blue"), BrickColor.new("Royal purple"), BrickColor.new("Bright violet")}
  891. local neonazi = "Bright red", "Bright orange", "Bright yellow", "Bright green", "Bright blue", "Bright violet", "Royal purple"
  892. local effects = Instance.new("Model", char)
  893. effects.Name = "Effects"
  894. do2 = function(brickcolor)
  895.  
  896.  
  897. local mesh = function(Mesh,part,meshtype,meshid,offset,scale)
  898. local mesh=it(Mesh)
  899. mesh.Parent=part
  900. if Mesh=="SpecialMesh" then
  901. mesh.MeshType=meshtype
  902. mesh.MeshId=meshid
  903. end
  904. mesh.Offset=offset
  905. mesh.Scale=scale
  906. return mesh
  907. end
  908. local rara1 = Instance.new("NumberValue", Decrease)
  909. rara1.Name = "DecreaseMvmt"
  910. rara1.Value = -0.05
  911. local rara2 = Instance.new("NumberValue", Decrease)
  912. rara2.Name = "DecreaseDef"
  913. rara2.Value = 0.1
  914. --so("341336144", larm, 1, 1)
  915. --so("341336144", rarm, 1, 1)
  916. sbreaker = true
  917. local sbref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  918. local sbrwld1 = weld(sbref1, sbref1, larm, cf(0, 1, 0))
  919. local sbref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  920. local sbrwld2 = weld(sbref2, sbref2, rarm, cf(0, 1, 0))
  921. local sref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  922. sref.Anchored = true
  923. TehM = nil
  924. TehM = torso.Position
  925. MouseLook = cf(RootPart.Position)
  926. local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, char)
  927. rand = cf(math.random(0, 0) / 100, 10, math.random(0, 0) / 100)
  928. sref.CFrame = cf(RootPart.Position)*rand
  929. local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, char)
  930. local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
  931. d1.Anchored = true
  932. d1.CFrame = cf(RootPart.Position)
  933. d1.Material = "Neon"
  934. msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(50, 5, 50))
  935. d2 = d1:Clone()
  936. d2.Transparency = 1
  937. d2.Parent = d1
  938. d2.CFrame = cf(d1.Position)
  939. d2.BrickColor = brickcolor
  940. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  941. refda.Anchored = true
  942. refda.CFrame = cf(d1.Position) * cf(0, 500, 0)
  943. game:GetService("Debris"):AddItem(refda, 1)
  944. local mag = (refda.Position - d1.Position).magnitude
  945. --MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + d1.Position) / 2, d1.Position) * angles(1.57, 0, 0), 40, mag * 5, 40, 0, 0, 0, 0.3)
  946. Lightning(refda.Position, d1.Position, 15, 5, brickcolor.Color, 3.5, 0.2, 0.05)
  947. MagicBlock(brickcolor, cf(d1.Position), 40, 40, 40, -1, -1, -1, 0.08, 1)
  948. refda.CFrame = cf(d1.Position)
  949. --MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
  950. refda.CFrame = cf(d1.Position) * cf(0, 3, 0)
  951. --MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
  952. refda.CFrame = cf(d1.Position)
  953. --so("341336446", refda, 1, math.random(100, 120) / 100)
  954. --so("341336459", refda, 1, math.random(100, 120) / 100)
  955. rara1.Parent = nil
  956. rara2.Parent = nil
  957. sbrwld1.Parent = nil
  958. sbrwld2.Parent = nil
  959. sbref1.Anchored = true
  960. sbref2.Anchored = true
  961. game:GetService("Debris"):AddItem(d1, 0)
  962. game:GetService("Debris"):AddItem(d2, 0)
  963. game:GetService("Debris"):AddItem(sbref1, 0)
  964. game:GetService("Debris"):AddItem(sbref2, 0)
  965. end
  966. function fly(hite, knockback)
  967. if hite:FindFirstChild('Humanoid') ~= nil then
  968. local hum = hite.Humanoid
  969. hum.PlatformStand = true
  970. coroutine.resume(coroutine.create(function(HHumanoid)
  971. wait(0.8)
  972. HHumanoid.PlatformStand = false
  973. end), hum)
  974. local rl = Instance.new("BodyAngularVelocity")
  975. rl.P = 3000
  976. rl.maxTorque = Vector3.new(100, 100, 100) * 500
  977. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-20, 20), math.random(-10, 10))
  978. rl.Parent = hite.Torso
  979. game:GetService("Debris"):AddItem(rl, .5)
  980.  
  981. local vp = Instance.new("BodyVelocity")
  982. vp.P = 500
  983. vp.maxForce = Vector3.new(math.huge, 100, math.huge)
  984. vp.velocity = RootPart.CFrame.lookVector * knockback + RootPart.Velocity / 1.05
  985. if knockback > 0 then
  986. vp.Parent = hite.Torso
  987. end
  988. game:GetService("Debris"):AddItem(vp, .5)
  989. elseif hite.className == 'Part' then
  990. local rl = Instance.new("BodyAngularVelocity")
  991. rl.P = 3000
  992. rl.maxTorque = Vector3.new(100, 100, 100) * 500
  993. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-20, 20), math.random(-10, 10))
  994. rl.Parent = hite
  995. game:GetService("Debris"):AddItem(rl, .5)
  996.  
  997. local vp = Instance.new("BodyVelocity")
  998. vp.P = 500
  999. vp.maxForce = Vector3.new(math.huge, 100, math.huge)
  1000. vp.velocity = RootPart.CFrame.lookVector * knockback + RootPart.Velocity / 1.05
  1001. if knockback > 0 then
  1002. vp.Parent = hite
  1003. end
  1004. game:GetService("Debris"):AddItem(vp, .5)
  1005. end
  1006. end
  1007. function ap(arg1)
  1008. if arg1 == 1 then
  1009. for i,v in pairs(yellow:children()) do
  1010. if v:IsA'Part' then
  1011. storso.CFrame = torso.CFrame
  1012. Debounces.Doe = true
  1013. v.Transparency = 0.7
  1014. yellow.HumanoidRootPart.Transparency = 1
  1015. end
  1016. end
  1017. end
  1018. end
  1019. function dap(arg1)
  1020. if arg1 == 1 then
  1021. for i,v in pairs(yellow:children()) do
  1022. if v:IsA'Part' then
  1023. Debounces.Doe = false
  1024. v.Transparency = 1
  1025. end
  1026. end
  1027. end
  1028. end
  1029. ---------------------------------------------------
  1030. local modes = {
  1031. ['cannon'] = true,
  1032. ['lightning'] = false,
  1033. ['beam'] = false
  1034. }
  1035. --Attacks
  1036. function attack1(brickcolor)
  1037. Debounces.CanAttack = false
  1038. Debounces.NoIdl = true
  1039. Debounces.on = true
  1040. sroot.Anchored = false
  1041. coroutine.resume(coroutine.create(function()
  1042. for i=1,10 do
  1043. --wait(0.01)
  1044. srarm.Weld.C0 = Lerp(srarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(120)), 0.2)
  1045. slarm.Weld.C0 = Lerp(slarm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-20)), 0.2)
  1046. shed.Weld.C0 = Lerp(shed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-80),0), 0.2)
  1047. storso.Weld.C0 = Lerp(storso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-25), 0), 0.2)
  1048. slleg.Weld.C0 = Lerp(slleg.Weld.C0, CFrame.new(-0.8, -1, 0.3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1049. srleg.Weld.C0 = Lerp(srleg.Weld.C0, CFrame.new(0.7, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(0)), 0.2)
  1050. rs:wait(0)
  1051. sroot.CFrame = torso.CFrame
  1052. end
  1053. for i=1,10 do
  1054. --wait(0.01)
  1055. srarm.Weld.C0 = Lerp(srarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-90),math.rad(-60),math.rad(120)), 0.7)
  1056. slarm.Weld.C0 = Lerp(slarm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-30)), 0.7)
  1057. shed.Weld.C0 = Lerp(shed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-80),0), 0.7)
  1058. storso.Weld.C0 = Lerp(storso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20), 0), 0.7)
  1059. slleg.Weld.C0 = Lerp(slleg.Weld.C0, CFrame.new(-0.8, -1, 0.3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7)
  1060. srleg.Weld.C0 = Lerp(srleg.Weld.C0, CFrame.new(0.7, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(0)), 0.7)
  1061. rs:wait(0)
  1062. sroot.CFrame = torso.CFrame
  1063. end
  1064. sroot.Anchored = true
  1065. end))
  1066. for i=1,10 do
  1067. --wait(0.01)
  1068. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(120)), 0.2)
  1069. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-20)), 0.2)
  1070. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-80),0), 0.2)
  1071. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(65), 0), 0.2)
  1072. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0.3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1073. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(0)), 0.2)
  1074. rs:wait(0)
  1075. end
  1076. for i=1,10 do
  1077. --wait(0.01)
  1078. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-90),math.rad(-60),math.rad(120)), 0.7)
  1079. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-30)), 0.7)
  1080. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-80),0), 0.7)
  1081. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(55), 0), 0.7)
  1082. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0.3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7)
  1083. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(0)), 0.7)
  1084. rs:wait(0)
  1085. end
  1086. MagicBlock(brickcolor, cf(rarm.CFrame.p), 10, 10, 10, -1, -1, -1, 0.08, 1)
  1087. for i,v in pairs(modes) do
  1088. if v == true and i == 'cannon' then
  1089. print(i)
  1090. Lightning(rarm.Position, mouse.Hit.p, 1, 5, "Bright yellow", 2, 0.1, 0.03)
  1091. end
  1092. if v == true and i == 'lightning' then
  1093. print(i)
  1094. Lightning(rarm.Position, mouse.Hit.p, 5, 5, "Bright yellow", 0.4, 0.1, 0.03)
  1095. MagicBlock(brickcolor, cf(mouse.Hit.p), 40, 40, 40, -1, -1, -1, 0.08, 1)
  1096. if mouse.Target.className ~= 'Terrain' then
  1097. mouse.Target:BreakJoints()
  1098. fly(mouse.Target, 100)
  1099. end
  1100. end
  1101. if v == true and i == 'beam' then
  1102. print(i)
  1103. Lightning(rarm.Position, mouse.Hit.p, 1, 5, "Bright yellow", 0.5, 0.1, 0.03)
  1104. end
  1105. end
  1106. Debounces.CanAttack = true
  1107. Debounces.NoIdl = false
  1108. Debounces.on = false
  1109. end
  1110. function handcannon(brickcolor)
  1111. Debounces.CanAttack = false
  1112. Debounces.NoIdl = true
  1113. Debounces.on = true
  1114. sroot.Anchored = false
  1115. coroutine.resume(coroutine.create(function()
  1116. for i = 1, 10 do
  1117. srarm.Weld.C0 = Lerp(srarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(-20)), 0.4)
  1118. slarm.Weld.C0 = Lerp(slarm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  1119. shed.Weld.C0 = Lerp(shed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  1120. storso.Weld.C0 = Lerp(storso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.4)
  1121. slleg.Weld.C0 = Lerp(slleg.Weld.C0, CFrame.new(-0.5, -1, -.3) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  1122. srleg.Weld.C0 = Lerp(srleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(8)), 0.4)
  1123. if Debounces.on == false then break end
  1124. rs:wait()
  1125. sroot.CFrame = torso.CFrame
  1126. end
  1127. for i = 1, 10 do
  1128. srarm.Weld.C0 = Lerp(srarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(-20)), 0.4)
  1129. slarm.Weld.C0 = Lerp(slarm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-10)), 0.4)
  1130. shed.Weld.C0 = Lerp(shed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  1131. storso.Weld.C0 = Lerp(storso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.4)
  1132. slleg.Weld.C0 = Lerp(slleg.Weld.C0, CFrame.new(-0.5, -1, -.3) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  1133. srleg.Weld.C0 = Lerp(srleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(8)), 0.4)
  1134. if Debounces.on == false then break end
  1135. rs:wait()
  1136. sroot.CFrame = torso.CFrame
  1137. end
  1138. sroot.Anchored = true
  1139. end))
  1140. for i = 1, 10 do
  1141. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(-20)), 0.4)
  1142. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4)
  1143. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  1144. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4)
  1145. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -.3) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  1146. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(8)), 0.4)
  1147. if Debounces.on == false then break end
  1148. rs:wait()
  1149. end
  1150. --(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1151. for i = 1, 10 do
  1152. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(-20)), 0.4)
  1153. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-10)), 0.4)
  1154. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4)
  1155. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), math.rad(0)), 0.4)
  1156. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -.3) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  1157. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(8)), 0.4)
  1158. if Debounces.on == false then break end
  1159. rs:wait()
  1160. end
  1161. for i,v in pairs(modes) do
  1162. if v == true and i == 'cannon' then
  1163. print(i)
  1164. Lightning(larm.Position, mouse.Hit.p, 1, 5, "Bright yellow", 2, 0.1, 0.03)
  1165. end
  1166. if v == true and i == 'lightning' then
  1167. print(i)
  1168. Lightning(larm.Position, mouse.Hit.p, 5, 5, "Bright yellow", 0.4, 0.1, 0.03)
  1169. MagicBlock(brickcolor, cf(mouse.Hit.p), 40, 40, 40, -1, -1, -1, 0.08, 1)
  1170. if mouse.Target.className ~= 'Terrain' then
  1171. mouse.Target:BreakJoints()
  1172. fly(mouse.Target, 100)
  1173. end
  1174. end
  1175. if v == true and i == 'beam' then
  1176. print(i)
  1177. Lightning(larm.Position, mouse.Hit.p, 1, 5, "Bright yellow", 0.5, 0.1, 0.03)
  1178. end
  1179. end
  1180. Debounces.CanAttack = true
  1181. Debounces.NoIdl = false
  1182. Debounces.on = false
  1183. end
  1184. function transform()
  1185. if not Debounces.Doe then
  1186. Debounces.CanAttack = false
  1187. Debounces.NoIdl = true
  1188. Debounces.on = true
  1189. --charge up
  1190. for i = 1, 10 do
  1191. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-40)), 0.4)
  1192. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,-.2)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(40)), 0.4)
  1193. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(50),0), 0.4)
  1194. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.1)
  1195. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1196. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -.3) * CFrame.Angles(math.rad(40), 0, math.rad(-4)), 0.4)
  1197. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4)
  1198. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(4)), 0.4)
  1199. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4)
  1200. if Debounces.on == false then break end
  1201. rs:wait()
  1202. end
  1203. wait(0.05)
  1204. --transform
  1205. for i = 1, 10 do
  1206. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(40)), 0.4)
  1207. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,-.2)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-40)), 0.4)
  1208. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(50),0), 0.4)
  1209. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.1)
  1210. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1211. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.3, -.3) * CFrame.Angles(math.rad(-50), 0, math.rad(-4)), 0.4)
  1212. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4)
  1213. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.3, 0) * CFrame.Angles(math.rad(-50), 0, math.rad(4)), 0.4)
  1214. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4)
  1215. if Debounces.on == false then break end
  1216. rs:wait()
  1217. end
  1218. Debounces.CanAttack = true
  1219. Debounces.NoIdl = false
  1220. Debounces.on = false
  1221. do2(BrickColor.new("Bright yellow"))
  1222. for i=0,#forms do
  1223. ap(i)
  1224. end
  1225. else
  1226. for i=0,#forms do
  1227. dap(i)
  1228. end
  1229. do2(BrickColor.new("Institutional white"))
  1230. end
  1231. end
  1232. ----------------------------------------------------
  1233. mouse.KeyDown:connect(function(key)
  1234. if key == "0" then
  1235. if myVars[4] ~= true then
  1236. myVars[4] = true
  1237. char.Humanoid.WalkSpeed = 50
  1238. end
  1239. end
  1240. end)
  1241. mouse.KeyUp:connect(function(key)
  1242. if key == "0" then
  1243. if myVars[4] ~= true then
  1244. return
  1245. else
  1246. myVars[4] = false
  1247. char.Humanoid.WalkSpeed = 25
  1248. end
  1249. end
  1250. end)
  1251.  
  1252. mouse.KeyDown:connect(function(key)
  1253. if key == "k" then
  1254. transform()
  1255. end
  1256. end)
  1257. mouse.KeyDown:connect(function(key)
  1258. if key == "p" then
  1259. for i,v in pairs(modes) do
  1260. if v == true and i == 'cannon' then
  1261. print(i)
  1262. modes['cannon'] = false
  1263. modes['lightning'] = true
  1264. return
  1265. end
  1266. if v == true and i == 'lightning' then
  1267. print(i)
  1268. modes['lightning'] = false
  1269. modes['beam'] = true
  1270. return
  1271. end
  1272. if v == true and i == 'beam' then
  1273. print(i)
  1274. modes['beam'] = false
  1275. modes['cannon'] = true
  1276. return
  1277. end
  1278. end
  1279. end
  1280. end)
  1281. mouse.Button1Down:connect(function(key)
  1282. if Debounces.Doe then
  1283. if not myVars[5] then
  1284. myVars[5] = true
  1285. attack1(BrickColor.new("Bright yellow"))
  1286. end
  1287. end
  1288. end)
  1289.  
  1290. mouse.Button1Up:connect(function(key)
  1291. if Debounces.Doe then
  1292. if myVars[5] then
  1293. myVars[5] = false
  1294. end
  1295. end
  1296. end)
  1297. ----------------------------------------------------
  1298. local jump = false
  1299. cf = CFrame.new
  1300. char.Humanoid.MaxHealth = math.huge
  1301. char.Humanoid.Health = math.huge
  1302. local rara = 0
  1303. local ffing = false
  1304. game:GetService("RunService"):BindToRenderStep("anims", Enum.RenderPriority.Camera.Value+1, function()
  1305. if myVars[5] then
  1306. --handcannon(BrickColor.new("Bright yellow"))
  1307. end
  1308. if char.Humanoid.Jump == true then
  1309. if not jump then
  1310. jump = true
  1311. end
  1312. else
  1313. jump = false
  1314. end
  1315. char.Humanoid.FreeFalling:connect(function(f)
  1316. if f then
  1317. ffing = true
  1318. else
  1319. if ffing then
  1320. ffing = false
  1321. animpose = "Walking"
  1322. end
  1323. end
  1324. end)
  1325. sine = sine + change
  1326. if jump == true then
  1327. animpose = "Jumping"
  1328. elseif ffing == true then
  1329. animpose = "Freefalling"
  1330. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1331. animpose = "Idle"
  1332. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 40 then
  1333. animpose = "Walking"
  1334. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 60 then
  1335. animpose = "Running"
  1336. end
  1337. RightLeg = CFrame.new(0.5,-1,0)
  1338. LeftLeg = CFrame.new(-0.5,-1,0)
  1339.  
  1340. lefth = (torso.CFrame*LeftLeg)
  1341. righth = (torso.CFrame*RightLeg)
  1342.  
  1343. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1344.  
  1345. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1346.  
  1347. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1348. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1349. if animpose ~= lastanimpose then
  1350. sine = 0
  1351. if Debounces.NoIdl == false then
  1352. if stanceToggle == "Idle1" then
  1353. 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)
  1354. 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)
  1355. 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)
  1356. 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)
  1357. 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)
  1358. 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)
  1359. elseif stanceToggle == "Idle2" then
  1360. 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)
  1361. 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)
  1362. 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)
  1363. 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)
  1364. 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)
  1365. 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)
  1366. end
  1367. --fat.Event:wait()
  1368. end
  1369. else
  1370. end
  1371. lastanimpose = animpose
  1372. if Debounces.NoIdl == false then
  1373. if animpose == "Idle" then
  1374. change = 0.5
  1375. if stanceToggle == "Idle1" then
  1376. if not myVars[6] then
  1377. 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)
  1378. 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)
  1379. 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)
  1380. 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)
  1381. 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)
  1382. 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.1)
  1383. 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)
  1384. 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)
  1385. 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)
  1386. 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)
  1387. 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)
  1388. 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)
  1389. if Debounces.Doe then
  1390. --yellow:MoveTo(torso.CFrame.p)
  1391. storso.CFrame = torso.CFrame
  1392. srarm.Weld.C0 = Lerp(srarm.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)
  1393. srarm.Weld.C1 = Lerp(srarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1394. slarm.Weld.C0 = Lerp(slarm.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)
  1395. slarm.Weld.C1 = Lerp(slarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1396. shed.Weld.C0 = Lerp(shed.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)
  1397. shed.Weld.C1 = Lerp(shed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.1)
  1398. storso.Weld.C0 = Lerp(storso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  1399. storso.Weld.C1 = Lerp(storso.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)
  1400. slleg.Weld.C0 = Lerp(slleg.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)
  1401. slleg.Weld.C1 = Lerp(slleg.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)
  1402. srleg.Weld.C0 = Lerp(srleg.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)
  1403. srleg.Weld.C1 = Lerp(srleg.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)
  1404. end
  1405. else --if giant
  1406. 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(12+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  1407. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-.6, 0.5, -.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1408. 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(-12-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  1409. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.6, 0.5, .2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1410. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,2.3,-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)
  1411. 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.1)
  1412. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.4, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  1413. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  1414. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -2.2, -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)
  1415. 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)
  1416. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -2.2, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  1417. 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)
  1418. end
  1419. elseif stanceToggle == "Idle2" then
  1420. 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)
  1421. 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)
  1422. 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)
  1423. 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)
  1424. 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)
  1425. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1426. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1427. --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)
  1428. 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)
  1429. 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)
  1430. 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)
  1431. 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)
  1432. 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)
  1433. elseif stanceToggle == "Grabbed" then
  1434. grab = true
  1435. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(175),math.rad(0),math.rad(15-2*math.cos(sine/3))), 0.1)
  1436. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, 0) * CFrame.Angles(math.rad(175), 0, math.rad(-15+2*math.cos(sine/3))), 0.1)
  1437. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-1, 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  1438. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1439. 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)
  1440. 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.1)
  1441. 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)
  1442. 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)
  1443. 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)
  1444. 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)
  1445. 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)
  1446. 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)
  1447. end
  1448. elseif animpose == "Walking" then
  1449. if stanceToggle == "Grabbed" then
  1450. 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)
  1451. 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)
  1452. 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)
  1453. 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)
  1454. 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)
  1455. 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)
  1456. 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)
  1457. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1458. 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)
  1459. 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)
  1460. 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)
  1461. 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)
  1462.  
  1463. elseif stanceToggle ~= "Grabbed" then
  1464. if myVars[4] then --if running
  1465. if Debounces.Doe then
  1466. --yellow:MoveTo(torso.CFrame.p)
  1467. storso.CFrame = torso.CFrame
  1468. srarm.Weld.C0 = Lerp(srarm.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)
  1469. srarm.Weld.C1 = Lerp(srarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1470. slarm.Weld.C0 = Lerp(slarm.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)
  1471. slarm.Weld.C1 = Lerp(slarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1472. shed.Weld.C0 = Lerp(shed.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)
  1473. shed.Weld.C1 = Lerp(shed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  1474. storso.Weld.C0 = Lerp(storso.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)
  1475. storso.Weld.C1 = Lerp(storso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1476. slleg.Weld.C0 = Lerp(slleg.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)
  1477. slleg.Weld.C1 = Lerp(slleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1478. srleg.Weld.C0 = Lerp(srleg.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)
  1479. srleg.Weld.C1 = Lerp(srleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1480. end
  1481. change = 1
  1482. 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)
  1483. 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)
  1484. 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)
  1485. 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)
  1486. 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)
  1487. 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)
  1488. 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)
  1489. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1490. 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)
  1491. 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)
  1492. 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)
  1493. 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)
  1494.  
  1495. else --if not running
  1496. if Debounces.Doe then
  1497. --yellow:MoveTo(torso.CFrame.p)
  1498. storso.CFrame = torso.CFrame
  1499. srarm.Weld.C0 = Lerp(srarm.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)
  1500. srarm.Weld.C1 = Lerp(srarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1501. slarm.Weld.C0 = Lerp(slarm.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)
  1502. slarm.Weld.C1 = Lerp(slarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1503. shed.Weld.C0 = Lerp(shed.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)
  1504. shed.Weld.C1 = Lerp(shed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  1505. storso.Weld.C0 = Lerp(storso.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)
  1506. storso.Weld.C1 = Lerp(storso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1507. slleg.Weld.C0 = slleg.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)
  1508. slleg.Weld.C1 = Lerp(srleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1509. srleg.Weld.C0 = srleg.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)
  1510. srleg.Weld.C1 = Lerp(srleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1511. end
  1512. 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)
  1513. 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)
  1514. 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)
  1515. 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)
  1516. 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)
  1517. 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)
  1518. 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)
  1519. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1520. 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)
  1521. 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)
  1522. 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)
  1523. 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)
  1524. end
  1525. end
  1526. elseif animpose == "Running" then
  1527. change = 1
  1528. 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)
  1529. 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)
  1530. 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)
  1531. 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)
  1532. 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)
  1533. 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)
  1534. 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)
  1535. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1536. 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)
  1537. 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)
  1538. 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)
  1539. 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)
  1540. elseif animpose == "Jumping" then
  1541. 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)
  1542. 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)
  1543. 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)
  1544. 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)
  1545. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  1546. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1547. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1548. 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)
  1549. 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)
  1550. 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)
  1551. 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)
  1552. elseif animpose == "Freefalling" then
  1553. if myVars[6] then
  1554. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.7+0.05*math.cos(sine/10),1.3+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(120+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(30+2*math.cos(sine/10))), 0.8)
  1555. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-.6, 0.5, -.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1556. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.7-0.05*math.cos(sine/10),1.3+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(120-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-26-3*math.cos(sine/10))), 0.8)
  1557. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.6, 0.5, .2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1558. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,2.3,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-30+1*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.2)
  1559. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.4, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1560. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
  1561. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.6, -1.8, -.6) * CFrame.Angles(math.rad(60), 0, math.rad(-5)), 0.3)
  1562. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.6, -2.2, 0) * CFrame.Angles(math.rad(10), 0, math.rad(5)), 0.3)
  1563. end
  1564. end
  1565. if #Effects>0 then
  1566. --table.insert(Effects,{prt,"Block1",delay})
  1567. for e=1,#Effects do
  1568. if Effects[e]~=nil then
  1569. --for j=1,#Effects[e] do
  1570. local Thing=Effects[e]
  1571. if Thing~=nil then
  1572. local Part=Thing[1]
  1573. local Mode=Thing[2]
  1574. local Delay=Thing[3]
  1575. local IncX=Thing[4]
  1576. local IncY=Thing[5]
  1577. local IncZ=Thing[6]
  1578. if Thing[1].Transparency<=1 then
  1579.  
  1580. if Thing[2] == "Block1" then
  1581. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1582. Mesh = Thing[1].Mesh
  1583. print('RAN!')
  1584. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1585. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1586. elseif Thing[2] == "Block2" then
  1587. Thing[1].CFrame = Thing[1].CFrame
  1588. Mesh = Thing[7]
  1589. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1590. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1591. elseif Thing[2] == "SatelliteStrike2" then
  1592. if Thing[5] < 100 then
  1593. Thing[5] = Thing[5] + 2
  1594. Thing[6] = Thing[6] + 1
  1595. if 2 < Thing[6] then
  1596. Thing[6] = 0
  1597. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  1598. Thing[3].Transparency = 0.8
  1599. Thing[3].BrickColor = BrickColor.new("Really red")
  1600. else
  1601. Thing[3].Transparency = 0.8
  1602. Thing[3].BrickColor = BrickColor.new("New Yeller")
  1603. end
  1604. end
  1605. else
  1606. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1607. refda.Anchored = true
  1608. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  1609. game:GetService("Debris"):AddItem(refda, 1)
  1610. local mag = (refda.Position - Thing[1].Position).magnitude
  1611. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 60, mag * 5, 60, 0, 0, 0, 0.1)
  1612. Lightning(refda.Position, Thing[1].Position, 25, 5, "Bright yellow", 5, 0.2, 0.03)
  1613. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 80, 80, 80, -1, -1, -1, 0.06, 1)
  1614. refda.CFrame = cf(Thing[1].Position)
  1615. --MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
  1616. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  1617. --MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
  1618. refda.CFrame = cf(Thing[1].Position)
  1619. so("341336446", refda, 1, math.random(70, 90) / 100)
  1620. so("341336459", refda, 1, math.random(50, 80) / 100)
  1621. Thing[1].Parent = nil
  1622. table.remove(Effects, e)
  1623. end
  1624. elseif Thing[2]=="Block1" then
  1625. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1626. Mesh=Thing[1]:FindFirstChild("Mesh")
  1627. if not Mesh then
  1628. Mesh = Instance.new("BlockMesh")
  1629. end
  1630. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1631. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1632. elseif Thing[2]=="Block2" then
  1633. Thing[1].CFrame = Thing[1].CFrame
  1634. Mesh = Thing[7]
  1635. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1636. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1637. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1638. elseif Thing[2]=="Cylinder" then
  1639. Mesh=Thing[1]:FindFirstChild("Mesh")
  1640. if not Mesh then
  1641. Mesh = Instance.new("BlockMesh")
  1642. end
  1643. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1644. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1645. elseif Thing[2] == "Cylinder1" then
  1646. Mesh = Thing[7]
  1647. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1648. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1649. elseif Thing[2]=="Blood" then
  1650. Mesh=Thing[1]:FindFirstChild("Mesh")
  1651. if not Mesh then
  1652. Mesh = Instance.new("BlockMesh")
  1653. end
  1654. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1655. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1656. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1657. elseif Thing[2]=="Elec" then
  1658. Mesh=Thing[1]:FindFirstChild("Mesh")
  1659. if not Mesh then
  1660. Mesh = Instance.new("BlockMesh")
  1661. end
  1662. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1663. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1664. elseif Thing[2]=="Disappear" then
  1665. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1666. end
  1667. else
  1668. Part.Parent=nil
  1669. game:GetService("Debris"):AddItem(Part, 0)
  1670. table.remove(Effects,e)
  1671. end
  1672. end
  1673. end
  1674. end
  1675. end
  1676. end
  1677. end)
  1678. char:FindFirstChild("Humanoid").Died:connect(function()
  1679. game:GetService("RunService"):UnbindFromRenderStep("anims")
  1680. print("John Doe died!!!")
  1681. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement