Advertisement
Oh_hi

Son of energy not mine

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