Advertisement
xDDx

Untitled

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