Advertisement
DarkScriptZEditors

Test Script Talk

Dec 29th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 174.06 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("Script loaded")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168.  
  169. --//Paste script below this line.
  170.  
  171. wait(.2)
  172. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  173. Player = game:GetService("Players").LocalPlayer
  174. PlayerGui = Player.PlayerGui
  175. Cam = workspace.CurrentCamera
  176. Backpack = Player.Backpack
  177. Character = Player.Character
  178. Humanoid = Character.Humanoid
  179. Mouse = Player:GetMouse()
  180. RootPart = Character.HumanoidRootPart
  181. Torso = Character.Torso
  182. Head = Character.Head
  183. RightArm = Character["Right Arm"]
  184. LeftArm = Character["Left Arm"]
  185. RightLeg = Character["Right Leg"]
  186. LeftLeg = Character["Left Leg"]
  187. RootJoint = RootPart.RootJoint
  188. Neck = Torso.Neck
  189. RightShoulder = Torso["Right Shoulder"]
  190. LeftShoulder = Torso["Left Shoulder"]
  191. RightHip = Torso["Right Hip"]
  192. LeftHip = Torso["Left Hip"]
  193. IT = Instance.new
  194. CF = CFrame.new
  195. VT = Vector3.new
  196. RAD = math.rad
  197. C3 = Color3.new
  198. UD2 = UDim2.new
  199. BRICKC = BrickColor.new
  200. ANGLES = CFrame.Angles
  201. EULER = CFrame.fromEulerAnglesXYZ
  202. COS = math.cos
  203. ACOS = math.acos
  204. SIN = math.sin
  205. ASIN = math.asin
  206. ABS = math.abs
  207. MRANDOM = math.random
  208. FLOOR = math.floor
  209. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  210. Frame_Speed = 0.016666666666666666
  211.  
  212. ArtificialHB = Instance.new("BindableEvent", script)
  213. ArtificialHB.Name = "ArtificialHB"
  214. script:WaitForChild("ArtificialHB")
  215. frame = Frame_Speed
  216. tf = 0
  217. allowframeloss = false
  218. tossremainder = false
  219. lastframe = tick()
  220. script.ArtificialHB:Fire()
  221. game:GetService("RunService").Heartbeat:connect(function(s, p)
  222. tf = tf + s
  223. if tf >= frame then
  224. if allowframeloss then
  225. script.ArtificialHB:Fire()
  226. lastframe = tick()
  227. else
  228. for i = 1, math.floor(tf / frame) do
  229. script.ArtificialHB:Fire()
  230. end
  231. lastframe = tick()
  232. end
  233. if tossremainder then
  234. tf = 0
  235. else
  236. tf = tf - frame * math.floor(tf / frame)
  237. end
  238. end
  239. end)
  240. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  241. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  242. end
  243. function PositiveAngle(NUMBER)
  244. if NUMBER >= 0 then
  245. NUMBER = 0
  246. end
  247. return NUMBER
  248. end
  249. function NegativeAngle(NUMBER)
  250. if NUMBER <= 0 then
  251. NUMBER = 0
  252. end
  253. return NUMBER
  254. end
  255. function Swait(NUMBER)
  256. if NUMBER == 0 or NUMBER == nil then
  257. ArtificialHB.Event:wait()
  258. else
  259. for i = 1, NUMBER do
  260. ArtificialHB.Event:wait()
  261. end
  262. end
  263. end
  264. function swait(num)
  265. if num == 0 or num == nil then
  266. ArtificialHB.Event:wait()
  267. else
  268. for i = 0, num do
  269. ArtificialHB.Event:wait()
  270. end
  271. end
  272. end
  273.  
  274. local DownCharacters = {"̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣",}
  275. local UpCharacters = {"̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈́","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚",}
  276. local MidCharacters = {"̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͏","͜","͝","͞","͟","͠","͢","̸","̷","͡","҉",}
  277.  
  278. function IsUnicode(c)
  279. for i = 128, 255 do
  280. if(string.char(i) == string.char(string.byte(c)))then
  281. return true
  282. end
  283. end
  284. return false
  285. end
  286.  
  287. function IsZalgoChar(c)
  288. for i = 1, #UpCharacters do
  289. if(c == UpCharacters[i])then
  290. return true
  291. end
  292. end
  293. for i = 1, #DownCharacters do
  294. if(c == DownCharacters[i])then
  295. return true
  296. end
  297. end
  298. for i = 1, #MidCharacters do
  299. if(c == MidCharacters[i])then
  300. return true
  301. end
  302. end
  303. return false
  304. end
  305.  
  306. function Zalgo(str,up,mid,down,streng)
  307. local function rand(max)
  308. return math.floor(M.RNG() * max);
  309. end
  310. local newTxt = "";
  311. for i = 1, #str do
  312. if(not IsZalgoChar(str:sub(i,i)))then
  313. local upN,midN,downN = rand(8),rand(2),rand(8)
  314. if(streng == 2)then
  315. upN,midN,downN = rand(16)/2+1,rand(6)/2,rand(16)/2+1
  316. elseif(streng == 3)then
  317. upN,midN,downN = rand(64)/4+3,rand(16)/4+1,rand(64)/4+3
  318. end
  319. newTxt = newTxt..str:sub(i,i)
  320. if(up)then
  321. for j = 0, upN do
  322. newTxt = newTxt..UpCharacters[M.RNG(1,#UpCharacters)]
  323. end
  324. end
  325. if(mid)then
  326. for j = 0, midN do
  327. newTxt = newTxt..MidCharacters[M.RNG(1,#MidCharacters)]
  328. end
  329. end
  330. if(down)then
  331. for j = 0, downN do
  332. newTxt = newTxt..DownCharacters[M.RNG(1,#DownCharacters)]
  333. end
  334. end
  335. end
  336. end
  337. return newTxt
  338. end
  339.  
  340. function RandomEnum(enum)
  341. local t = enum:GetEnumItems()
  342. if(#t < 1)then t = 1 end
  343. local choice = M.RNG(1,#t)
  344. return t[choice]
  345. end
  346.  
  347.  
  348. wait(0.2)
  349. local Player, Character, Mouse = game:GetService("Players").LocalPlayer, Player.Character, Player:GetMouse()
  350. local Torso = Character:FindFirstChild("Torso")
  351. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  352. local Humanoid = Character:FindFirstChild("Humanoid")
  353. local Head = Character:FindFirstChild("Head")
  354. local Right_Arm = Character:FindFirstChild("Right Arm")
  355. local Left_Arm = Character:FindFirstChild("Left Arm")
  356. local Right_Leg = Character:FindFirstChild("Right Leg")
  357. local Left_Leg = Character:FindFirstChild("Left Leg")
  358. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  359. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  360. local Right_Hip = Torso:FindFirstChild("Right Hip")
  361. local Left_Hip = Torso:FindFirstChild("Left Hip")
  362. local Neck = Torso:FindFirstChild("Neck")
  363. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  364. local rootJoint = rootPart:FindFirstChild("RootJoint")
  365. local MusicID = 298614721
  366. local CurrentIdle = "Idling1"
  367. local Degree = 0.0175438596491228
  368. local canremove = false
  369. local debounce = false
  370. local UIService = game:GetService("UserInputService")
  371. _G.SongName = math.random(1, 9025232)
  372. sin = math.sin
  373. Right_Leg.FormFactor = "Custom"
  374. Left_Leg.FormFactor = "Custom"
  375. rootPart.Archivable = true
  376. rootJoint.Archivable = true
  377. c_new = CFrame.new
  378. c_angles = CFrame.Angles
  379. i_new = Instance.new
  380. Humanoid:ClearAllChildren()
  381. local isAttacking = false
  382. local isSprinting = false
  383. local Animations = false
  384. local Angle = 0
  385. local Axis = 0
  386. local angleSpeed = 1
  387. local axisSpeed = angleSpeed
  388. local currentAnim
  389. local levetatingheight = 3
  390. local WalkType = "Ground"
  391. local RateP = 20
  392.  
  393.  
  394.  
  395. warn("You can use Malek the Corrupted")
  396. function CreateParticle(parent)
  397. local Particle = Instance.new("ParticleEmitter", parent)
  398. Particle.Enabled = true
  399. Particle.Transparency = NumberSequence.new({
  400. NumberSequenceKeypoint.new(0, 1),
  401. NumberSequenceKeypoint.new(0.3, 0.95),
  402. NumberSequenceKeypoint.new(1, 1)
  403. })
  404. Particle.LightEmission = -3
  405. Particle.Rate = RateP
  406. Particle.ZOffset = 1
  407. Particle.Lifetime = NumberRange.new(0.5)
  408. Particle.Speed = NumberRange.new(1)
  409. Particle.Size = NumberSequence.new({
  410. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  411. NumberSequenceKeypoint.new(1, 1, 0.1)
  412. })
  413. Particle.Rotation = NumberRange.new(-180, 180)
  414. Particle.RotSpeed = NumberRange.new(-180, 180)
  415. Particle.Texture = "http://www.roblox.com/asset/?id=303194966"
  416. Particle.Color = ColorSequence.new(Color3.new(.8, 0, 1), Color3.new(0.3, 0, 1))
  417. Particle.VelocitySpread = 360
  418. Particle.LockedToPart = false
  419. end
  420. CreateParticle(Torso)
  421. CreateParticle(Right_Arm)
  422. CreateParticle(Left_Arm)
  423. CreateParticle(Right_Leg)
  424. CreateParticle(Left_Leg)
  425. function CreateParticle2(parent)
  426. local Particle = Instance.new("ParticleEmitter", parent)
  427. Particle.Enabled = true
  428. Particle.Transparency = NumberSequence.new({
  429. NumberSequenceKeypoint.new(0, 1),
  430. NumberSequenceKeypoint.new(0.3, 0.95),
  431. NumberSequenceKeypoint.new(1, 1)
  432. })
  433. Particle.LightEmission = -3
  434. Particle.Rate = RateP
  435. Particle.ZOffset = 1
  436. Particle.Lifetime = NumberRange.new(0.5)
  437. Particle.Speed = NumberRange.new(1)
  438. Particle.Size = NumberSequence.new({
  439. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  440. NumberSequenceKeypoint.new(1, 1, 0.1)
  441. })
  442. Particle.Rotation = NumberRange.new(-180, 180)
  443. Particle.RotSpeed = NumberRange.new(-180, 180)
  444. Particle.Texture = "http://www.roblox.com/asset/?id=303195022"
  445. Particle.Color = ColorSequence.new(Color3.new(0.8, 0, 1), Color3.new(0.3, 0, 1))
  446. Particle.VelocitySpread = 360
  447. Particle.LockedToPart = false
  448. end
  449. CreateParticle2(Torso)
  450. CreateParticle2(Right_Arm)
  451. CreateParticle2(Left_Arm)
  452. CreateParticle2(Right_Leg)
  453. CreateParticle2(Left_Leg)
  454. function CreateParticle3(parent)
  455. local Particle = Instance.new("ParticleEmitter", parent)
  456. Particle.Enabled = true
  457. Particle.Transparency = NumberSequence.new({
  458. NumberSequenceKeypoint.new(0, 1),
  459. NumberSequenceKeypoint.new(0.3, 0.95),
  460. NumberSequenceKeypoint.new(1, 1)
  461. })
  462. Particle.LightEmission = -3
  463. Particle.Rate = RateP
  464. Particle.ZOffset = 1
  465. Particle.Lifetime = NumberRange.new(0.5)
  466. Particle.Speed = NumberRange.new(1)
  467. Particle.Size = NumberSequence.new({
  468. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  469. NumberSequenceKeypoint.new(1, 1, 0.1)
  470. })
  471. Particle.Rotation = NumberRange.new(-180, 180)
  472. Particle.RotSpeed = NumberRange.new(-180, 180)
  473. Particle.Texture = "http://www.roblox.com/asset/?id=303195000"
  474. Particle.Color = ColorSequence.new(Color3.new(0.8, 0, 1), Color3.new(0.3, 0, 1))
  475. Particle.VelocitySpread = 360
  476. Particle.LockedToPart = false
  477. end
  478. CreateParticle3(Torso)
  479. CreateParticle3(Right_Arm)
  480. CreateParticle3(Left_Arm)
  481. CreateParticle3(Right_Leg)
  482. CreateParticle3(Left_Leg)
  483. function CreateParticle4(parent)
  484. local Particle = Instance.new("ParticleEmitter", parent)
  485. Particle.Enabled = true
  486. Particle.Transparency = NumberSequence.new({
  487. NumberSequenceKeypoint.new(0, 1),
  488. NumberSequenceKeypoint.new(0.3, 0.95),
  489. NumberSequenceKeypoint.new(1, 1)
  490. })
  491. Particle.LightEmission = -3
  492. Particle.Rate = RateP
  493. Particle.ZOffset = 1
  494. Particle.Lifetime = NumberRange.new(0.5)
  495. Particle.Speed = NumberRange.new(1)
  496. Particle.Size = NumberSequence.new({
  497. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  498. NumberSequenceKeypoint.new(1, 1, 0.1)
  499. })
  500. Particle.Rotation = NumberRange.new(-180, 180)
  501. Particle.RotSpeed = NumberRange.new(-180, 180)
  502. Particle.Texture = "http://www.roblox.com/asset/?id=303194917"
  503. Particle.Color = ColorSequence.new(Color3.new(0.8, 0, 1), Color3.new(0.3, 0, 1))
  504. Particle.VelocitySpread = 360
  505. Particle.LockedToPart = false
  506. end
  507. CreateParticle4(Torso)
  508. CreateParticle4(Right_Arm)
  509. CreateParticle4(Left_Arm)
  510. CreateParticle4(Right_Leg)
  511. CreateParticle4(Left_Leg)
  512. function Sound(parent, loop, vol, id)
  513. local s = Instance.new("Sound", parent)
  514. s.Looped = loop
  515. s.Volume = vol
  516. s.MaxDistance = 200
  517. s.EmitterSize = 20
  518. s.SoundId = "rbxassetid://" .. tostring(id)
  519. s:Play()
  520. if loop == false then
  521. wait(s.TimeLength)
  522. s:Destroy()
  523. end
  524. end
  525. Theme = Instance.new("Sound")
  526. Theme.Parent = Character
  527. Theme.SoundId = "rbxassetid://298614721"
  528. Theme.Volume = 5
  529. Theme.Looped = true
  530. Theme.Pitch = 1
  531. Theme:Play()
  532. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  533. wld = Instance.new("Weld", wp1)
  534. wld.Part0 = wp0
  535. wld.Part1 = wp1
  536. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  537. return wld
  538. end
  539. function noOutline(part)
  540. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  541. end
  542. local Part = function(Name, Color, Material, Transparency, Shape, Size, CFrame, CanCollide, Anchored, parent)
  543. local partie = i_new("Part", parent)
  544. partie.Name = Name
  545. partie.BrickColor = BrickColor.new(Color)
  546. partie.Material = Material
  547. partie.Shape = Shape
  548. partie.Transparency = Transparency
  549. partie.Size = Size
  550. partie.CFrame = CFrame
  551. partie.CanCollide = CanCollide
  552. partie.Anchored = Anchored
  553. return partie
  554. end
  555. function swait(num)
  556. if num == 0 or num == nil then
  557. game:GetService("RunService").Stepped:wait(0)
  558. else
  559. for i = 0, num do
  560. game:GetService("RunService").Stepped:wait(0)
  561. end
  562. end
  563. end
  564.  
  565.  
  566.  
  567.  
  568. coroutine.wrap(function()
  569. while true do
  570. Humanoid.MaxHealth = "inf"
  571. Humanoid.Health = "inf"
  572. wait(0.01)
  573. end
  574. end)()
  575. coroutine.wrap(function()
  576. while true do
  577. Humanoid.MaxHealth = "inf"
  578. Humanoid.Health = "inf"
  579. wait()
  580. end
  581. end)()
  582. coroutine.wrap(function()
  583. while true do
  584. Humanoid.MaxHealth = "inf"
  585. Humanoid.Health = "inf"
  586. swait()
  587. end
  588. end)()
  589. coroutine.wrap(function()
  590. while true do
  591. Humanoid.MaxHealth = "inf"
  592. Humanoid.Health = "inf"
  593. swait(1)
  594. end
  595. end)()
  596. Player.Character.Archivable = true
  597. Instance.new("ForceField", Player.Character).Visible = false
  598. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  599. local mesh = i_new(Mesh)
  600. mesh.Parent = part
  601. if Mesh == "SpecialMesh" then
  602. mesh.MeshType = meshtype
  603. mesh.MeshId = meshid
  604. end
  605. mesh.Offset = offset
  606. mesh.Scale = scale
  607. return mesh
  608. end
  609. local Hair = Instance.new("Part", Head)
  610. Hair.Name = "Hair"
  611. Hair.Shape = Enum.PartType.Ball
  612. Hair.CanCollide = false
  613. Hair.BrickColor = BrickColor.new("Medium stone grey")
  614. Hair.Transparency = 0
  615. Hair.Material = "Grass"
  616. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  617. Hair.TopSurface = Enum.SurfaceType.Smooth
  618. Hair.BottomSurface = Enum.SurfaceType.Smooth
  619. local Weld = Instance.new("Weld", Hair)
  620. Weld.Part0 = Head
  621. Weld.Part1 = Hair
  622. Weld.C1 = CFrame.new(0, -0.5, 0)
  623. HoodMesh = Instance.new("FileMesh", Hair)
  624. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  625. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=0"
  626. HoodMesh.Scale = Vector3.new(1.05, 1.1, 1.1)
  627. local Shades = Instance.new("Part", Head)
  628. Shades.Name = "Shades"
  629. Shades.Shape = Enum.PartType.Ball
  630. Shades.CanCollide = false
  631. Shades.BrickColor = BrickColor.new("Medium stone grey")
  632. Shades.Transparency = 0
  633. Shades.Material = "Grass"
  634. Shades.Size = Vector3.new(0.1, 0.1, 0.1)
  635. Shades.TopSurface = Enum.SurfaceType.Smooth
  636. Shades.BottomSurface = Enum.SurfaceType.Smooth
  637. local Weld = Instance.new("Weld", Shades)
  638. Weld.Part0 = Head
  639. Weld.Part1 = Shades
  640. Weld.C1 = CFrame.new(0, -0.2, 0.15)
  641. ShadesMesh = Instance.new("FileMesh", Shades)
  642. ShadesMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  643. ShadesMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  644. ShadesMesh.Scale = Vector3.new(1, 1, 1)
  645. local GunModel = Instance.new("Part", Character)
  646. GunModel.Name = "Pistol"
  647. GunModel.Shape = Enum.PartType.Ball
  648. GunModel.CanCollide = false
  649. GunModel.BrickColor = BrickColor.new("Medium stone grey")
  650. GunModel.Transparency = 1
  651. GunModel.Material = "Grass"
  652. GunModel.Size = Vector3.new(0.01, 0.01, 0.01)
  653. GunModel.TopSurface = Enum.SurfaceType.Smooth
  654. GunModel.BottomSurface = Enum.SurfaceType.Smooth
  655. local Weld = Instance.new("Weld", GunModel)
  656. Weld.Part0 = Right_Arm
  657. Weld.Part1 = GunModel
  658. Weld.C1 = CFrame.new(1.8, -.4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(-90))
  659. GunModelMesh = Instance.new("FileMesh", GunModel)
  660. GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=868997239"
  661. GunModelMesh.TextureId = "http://www.roblox.com/asset/?id=868997248"
  662. GunModelMesh.Scale = Vector3.new(0.005, 0.005, 0.005)
  663. BE = Instance.new("Part", GunModel)
  664. BE.Anchored = false
  665. BE.CanCollide = false
  666. BE.Transparency = 1
  667. BE.Size = Vector3.new(0.1, 0.1, 0.1)
  668. Eweld = Instance.new("Weld", BE)
  669. Eweld.Part0 = BE
  670. Eweld.Part1 = GunModel
  671. Eweld.C0 = CFrame.new(1.8, -0.4, 0)
  672. BEX = Instance.new("Part", GunModel)
  673. BEX.Anchored = false
  674. BEX.CanCollide = false
  675. BEX.Transparency = 1
  676. BEX.Size = Vector3.new(0.1, 0.1, 0.1)
  677. EXweld = Instance.new("Weld", BEX)
  678. EXweld.Part0 = BEX
  679. EXweld.Part1 = GunModel
  680. EXweld.C0 = CFrame.new(0, -0.3, 0.05)
  681. local Effects = Instance.new("Folder", Character)
  682. Effects.Name = "Effects"
  683. Debris = game:GetService("Debris")
  684. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  685. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  686. end
  687. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  688. local DIRECTION = CFrame.new(StartPos, EndPos).lookVector
  689. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  690. end
  691. function MakeForm(PART, TYPE)
  692. if TYPE == "Cyl" then
  693. local MSH = Instance.new("CylinderMesh", PART)
  694. elseif TYPE == "Ball" then
  695. local MSH = Instance.new("SpecialMesh", PART)
  696. MSH.MeshType = "Sphere"
  697. elseif TYPE == "Wedge" then
  698. local MSH = Instance.new("SpecialMesh", PART)
  699. MSH.MeshType = "Wedge"
  700. end
  701. end
  702. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  703. local NEWPART = Instance.new("Part")
  704. NEWPART.formFactor = FORMFACTOR
  705. NEWPART.Reflectance = REFLECTANCE
  706. NEWPART.Transparency = TRANSPARENCY
  707. NEWPART.CanCollide = false
  708. NEWPART.Locked = true
  709. NEWPART.Anchored = true
  710. if ANCHOR == false then
  711. NEWPART.Anchored = false
  712. end
  713. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  714. NEWPART.Name = NAME
  715. NEWPART.Size = SIZE
  716. NEWPART.Position = Torso.Position
  717. NEWPART.Material = MATERIAL
  718. NEWPART:BreakJoints()
  719. NEWPART.Parent = PARENT
  720. return NEWPART
  721. end
  722. Blood = Instance.new("ParticleEmitter")
  723. Blood.Parent = nil
  724. Blood.Rate = 20
  725. Blood.Speed = NumberRange.new(7)
  726. Blood.VelocitySpread = 40
  727. Blood.Lifetime = NumberRange.new(0.1, 1)
  728. Blood.Texture = "rbxassetid://291880914"
  729. Blood.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  730. Blood.Acceleration = Vector3.new(0, -50, 0)
  731. Blood.Size = NumberSequence.new({
  732. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  733. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  734. })
  735. Blood.RotSpeed = NumberRange.new(-180, 180)
  736. Blood.Rotation = NumberRange.new(-360, 360)
  737. Blood.Transparency = NumberSequence.new({
  738. NumberSequenceKeypoint.new(0, 1),
  739. NumberSequenceKeypoint.new(0.2, 0),
  740. NumberSequenceKeypoint.new(0.8, 0),
  741. NumberSequenceKeypoint.new(1, 1)
  742. })
  743. local B = Instance.new("Sound")
  744. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  745. local NEWSOUND
  746. coroutine.resume(coroutine.create(function()
  747. NEWSOUND = B:Clone()
  748. NEWSOUND.Parent = PARENT
  749. NEWSOUND.Volume = VOLUME
  750. NEWSOUND.Pitch = PITCH
  751. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  752. NEWSOUND:play()
  753. if DOESLOOP == true then
  754. NEWSOUND.Looped = true
  755. else
  756. repeat
  757. wait(1)
  758. until NEWSOUND.Playing == false
  759. NEWSOUND:remove()
  760. end
  761. end))
  762. return NEWSOUND
  763. end
  764. function getbloody(victim, amount)
  765. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  766. PART.CFrame = victim.CFrame
  767. local HITPLAYERSOUNDS = {
  768. "883201004",
  769. "883201111",
  770. "883201193",
  771. "883201270"
  772. }
  773. Debris:AddItem(PART, 5)
  774. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  775. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  776. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  777. local prtcl = Blood:Clone()
  778. prtcl.Parent = PART
  779. prtcl:Emit(amount * 10)
  780. end
  781. function SpawnTrail(FROM, TO, BIG)
  782. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Trail", Vector3.new(0, 0, 0))
  783. MakeForm(TRAIL, "Cyl")
  784. local DIST = (FROM - TO).Magnitude
  785. if BIG == true then
  786. TRAIL.Size = Vector3.new(0.5, DIST, 0.5)
  787. else
  788. TRAIL.Size = Vector3.new(0.25, DIST, 0.25)
  789. end
  790. TRAIL.CFrame = CFrame.new(FROM, TO) * CFrame.new(0, 0, -DIST / 2) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(0))
  791. coroutine.resume(coroutine.create(function()
  792. for i = 1, 5 do
  793. swait()
  794. TRAIL.Transparency = TRAIL.Transparency + 0.1
  795. end
  796. TRAIL:remove()
  797. end))
  798. end
  799. function Kill(Char)
  800. local NewCharacter = Instance.new("Model", Effects)
  801. NewCharacter.Name = "Ow im ded ;-;"
  802. for _, c in pairs(Char:GetDescendants()) do
  803. if c:IsA("BasePart") and c.Transparency == 0 then
  804. if c.Parent == Char then
  805. getbloody(c, 5)
  806. end
  807. c:BreakJoints()
  808. c.Material = "Glass"
  809. c.Color = Color3.new(0.5, 0, 0)
  810. c.CanCollide = true
  811. c.Transparency = 0.3
  812. if c:FindFirstChildOfClass("SpecialMesh") then
  813. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  814. end
  815. if c.Name == "Head" then
  816. c:ClearAllChildren()
  817. c.Size = Vector3.new(c.Size.Y, c.Size.Y, c.Size.Y)
  818. end
  819. if c.ClassName == "MeshPart" then
  820. c.TextureID = ""
  821. end
  822. if c:FindFirstChildOfClass("BodyPosition") then
  823. c:FindFirstChildOfClass("BodyPosition"):remove()
  824. end
  825. if c:FindFirstChildOfClass("ParticleEmitter") then
  826. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  827. end
  828. c.Parent = NewCharacter
  829. c.Name = "DeadPart"
  830. c.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)) / 15
  831. c.RotVelocity = Vector3.new(math.random(-45, 45), math.random(-15, 85), math.random(-45, 45))
  832. end
  833. end
  834. Char:remove()
  835. Debris:AddItem(NewCharacter, 5)
  836. end
  837. function BulletDetection(FROM, TO, BRUTAL)
  838. local AIMHIT, AIMPOS, NORMAL = CastProperRay(FROM, TO, 2000, Character)
  839. coroutine.resume(coroutine.create(function()
  840. if AIMHIT ~= nil and AIMHIT.Parent ~= Character and (AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")) then
  841. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  842. if BRUTAL == true then
  843. Kill(AIMHIT.Parent)
  844. else
  845. getbloody(AIMHIT, 15)
  846. AIMHIT.Parent:BreakJoints()
  847. if AIMHIT.Name == "Head" or AIMHIT:IsA("Hat") or AIMHIT.Name == "Torso" or AIMHIT.Name == "HumanoidRootPart" or AIMHIT.Name == "Right Arm" or AIMHIT.Name == "Left Arm" or AIMHIT.Name == "Right Leg" or AIMHIT.Name == "Left Leg" or AIMHIT.Name == "UpperTorso" or AIMHIT.Name == "UpperTorso" or AIMHIT.Name == "LowerTorso" or AIMHIT.Name == "RightUpperArm" or AIMHIT.Name == "RightLowerArm" or AIMHIT.Name == "RightHand" or AIMHIT.Name == "LeftUpperArm" or AIMHIT.Name == "LeftLowerArm" or AIMHIT.Name == "LeftHand" or AIMHIT.Name == "RightUpperLeg" or AIMHIT.Name == "RightLowerLeg" or AIMHIT.Name == "RightFoot" or AIMHIT.Name == "LeftUpperLeg" or AIMHIT.Name == "LeftLowerLeg" or AIMHIT.Name == "LeftFoot" then
  848. AIMHIT.Name = "Dead"
  849. AIMHIT:remove()
  850. end
  851. end
  852. elseif BRUTAL == true then
  853. Kill(AIMHIT.Parent.Parent)
  854. else
  855. AIMHIT.Parent.Parent:BreakJoints()
  856. end
  857. end
  858. end))
  859. SpawnTrail(FROM, AIMPOS)
  860. return AIMHIT, AIMPOS, NORMAL
  861. end
  862. function round(num)
  863. local a, b = math.modf(num)
  864. if num % 1 ~= 0 then
  865. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  866. else
  867. return math.floor(num)
  868. end
  869. end
  870. function basicDamage(vhum, damage, colour)
  871. if not (vhum and vhum.Parent:findFirstChild("Humanoid")) or vhum.Health <= 0 then
  872. return
  873. end
  874. vhum.Health = vhum.Health - damage
  875. local damagepart = Instance.new("Part", Effects)
  876. damagepart.Transparency = 1
  877. damagepart.Anchored = true
  878. damagepart.CanCollide = false
  879. damagepart.Size = Vector3.new(0, 0, 0)
  880. damagepart.Name = "DamagePart"
  881. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  882. local g = Instance.new("BillboardGui", damagepart)
  883. g.Enabled = true
  884. g.Adornee = damagepart
  885. g.Size = UDim2.new(5, 0, 5, 0)
  886. g.ExtentsOffset = Vector3.new(0, 0, 0)
  887. g.StudsOffset = Vector3.new(0, 0, 0)
  888. local t = Instance.new("TextLabel", g)
  889. t.BackgroundTransparency = 1
  890. t.Font = "ArialBold"
  891. t.TextSize = 24
  892. t.Text = "" .. round(damage)
  893. if round(damage) % 1 == 0 then
  894. t.Text = "" .. round(damage) .. ""
  895. end
  896. t.Size = UDim2.new(1, 0, 1, 0)
  897. t.TextStrokeTransparency = 0
  898. t.TextTransparency = 0
  899. t.Font = "Arcade"
  900. t.TextScaled = true
  901. t.TextWrapped = true
  902. t.TextXAlignment = "Center"
  903. t.TextYAlignment = "Center"
  904. t.TextColor3 = colour
  905. coroutine.resume(coroutine.create(function()
  906. for i = 1, 50 do
  907. game:GetService("RunService").Heartbeat:wait()
  908. local sinewave = math.sin(i / 500) * 4
  909. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  910. t.TextTransparency = t.TextTransparency + 0.02
  911. t.TextStrokeTransparency = t.TextTransparency + 0.02
  912. end
  913. damagepart:Destroy()
  914. end), t)
  915. end
  916. function Trace()
  917. local ch = Character:GetChildren()
  918. for i = 1, #ch do
  919. if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
  920. do
  921. local trace = Instance.new("Part", game.Workspace)
  922. trace.Size = ch[i].Size
  923. trace.Material = "Neon"
  924. trace.BrickColor = BrickColor.new("Royal purple")
  925. trace.Transparency = 0.3
  926. trace.CanCollide = false
  927. trace.Anchored = true
  928. trace.CFrame = ch[i].CFrame
  929. if ch[i].Name == "Head" then
  930. mehs = Instance.new("CylinderMesh", trace)
  931. mehs.Scale = Vector3.new(1.25, 1.25, 1.25)
  932. end
  933. tracedisappear = coroutine.wrap(function()
  934. for i = 1, 7 do
  935. wait()
  936. trace.Transparency = trace.Transparency + 0.1
  937. end
  938. trace:Destroy()
  939. end)
  940. tracedisappear()
  941. end
  942. end
  943. end
  944. end
  945. t = Instance.new("Part", Character)
  946. t.Size = Vector3.new(0.01, 0.01, 0.01)
  947. t.Anchored = false
  948. t.CanCollide = false
  949. t.Name = "Attatchment for Trail"
  950. t.Transparency = 1
  951. tweld = Instance.new("Weld", t)
  952. tweld.Part0 = t
  953. tweld.Part1 = Torso
  954. tweld.C0 = CFrame.new(0, 2.5, 0)
  955. attch = Instance.new("Attachment", Head)
  956. attch2 = Instance.new("Attachment", t)
  957. trail = Instance.new("Trail", Character.HumanoidRootPart)
  958. trail.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0), Color3.fromRGB(0, 0, 0))
  959. trail.TextureLength = 4
  960. trail.TextureMode = "Stretch"
  961. trail.Lifetime = 0.2
  962. trail.MaxLength = 0
  963. trail.MinLength = 0
  964. trail.WidthScale = NumberSequence.new({
  965. NumberSequenceKeypoint.new(0, 1, 0),
  966. NumberSequenceKeypoint.new(1, 0, 0)
  967. })
  968. trail.Transparency = NumberSequence.new({
  969. NumberSequenceKeypoint.new(0, 0),
  970. NumberSequenceKeypoint.new(1, 1)
  971. })
  972. trail.Texture = "http://www.robox.com/asset/?id=182554047"
  973. trail.FaceCamera = true
  974. trail.Attachment0 = attch
  975. trail.Attachment1 = attch2
  976. trail.Enabled = false
  977. mouse = Player:GetMouse()
  978. local s = ""
  979. dashing = false
  980. coroutine.wrap(function()
  981. while wait() do
  982. if dashing == true then
  983. Trace()
  984. else
  985. end
  986. end
  987. end)()
  988. local isDashing = true
  989. mouse.KeyDown:connect(function(key)
  990. key = string.lower(key)
  991. if key == "w" or key == "\017" and dashing == false then
  992. s = s .. "w"
  993. delay(0.2, function()
  994. if s ~= "ww" then
  995. s = ""
  996. end
  997. end)
  998. if s == "ww" then
  999. s = ""
  1000. if attack == true then
  1001. return
  1002. end
  1003. dashing = true
  1004. Animations = true
  1005. for i = 1, 10 do
  1006. rootPart.Velocity = rootPart.CFrame.lookVector * 200
  1007. angleSpeed = 1
  1008. axisSpeed = 1
  1009. change = 0.5
  1010. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(0)), 0.15)
  1011. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(0)), 0.15)
  1012. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  1013. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.4) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1014. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-45), math.rad(0), math.rad(0)), 0.15)
  1015. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1016. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  1017. if v:FindFirstChild("HumanoidRootPart") then
  1018. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(5, 10)
  1019. end
  1020. end
  1021. swait()
  1022. end
  1023. dashing = false
  1024. Animations = false
  1025. delay(0, function()
  1026. end)
  1027. end
  1028. end
  1029. end)
  1030. mouse.KeyDown:connect(function(key)
  1031. key = string.lower(key)
  1032. if key == "q" or key == "\017" and dashing == false then
  1033. s = s .. "q"
  1034. delay(0.2, function()
  1035. if s ~= "qq" then
  1036. s = ""
  1037. end
  1038. end)
  1039. if s == "qq" then
  1040. s = ""
  1041. if attack == true then
  1042. return
  1043. end
  1044. if transformed == true then
  1045. return
  1046. end
  1047. dashing = true
  1048. S = Instance.new("Sound")
  1049. S.Parent = rootPart
  1050. S.SoundId = "rbxassetid://2767090"
  1051. S.Volume = 10
  1052. S.Looped = false
  1053. S.Pitch = 0.8
  1054. S:Play()
  1055. for i = 1, 5 do
  1056. rootPart.Velocity = rootPart.CFrame.rightVector * -200
  1057. angleSpeed = 1
  1058. axisSpeed = 1
  1059. change = 0.5
  1060. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(80)), 0.15)
  1061. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, -0.2) * c_angles(math.rad(80), math.rad(0), math.rad(45)), 0.15)
  1062. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(20)), 0.15)
  1063. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, -0.3) * c_angles(math.rad(25), math.rad(0), math.rad(30)), 0.15)
  1064. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.15)
  1065. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(-10)), 0.15)
  1066. swait()
  1067. end
  1068. dashing = false
  1069. Animations = false
  1070. delay(0, function()
  1071. end)
  1072. end
  1073. end
  1074. end)
  1075. mouse.KeyDown:connect(function(key)
  1076. key = string.lower(key)
  1077. if key == "e" or key == "\017" and dashing == false then
  1078. s = s .. "e"
  1079. delay(0.2, function()
  1080. if s ~= "ee" then
  1081. s = ""
  1082. end
  1083. end)
  1084. if s == "ee" then
  1085. s = ""
  1086. if attack == true then
  1087. return
  1088. end
  1089. if transformed == true then
  1090. return
  1091. end
  1092. dashing = true
  1093. S = Instance.new("Sound")
  1094. S.Parent = rootPart
  1095. S.SoundId = "rbxassetid://2767090"
  1096. S.Volume = 10
  1097. S.Looped = false
  1098. S.Pitch = 0.8
  1099. S:Play()
  1100. for i = 1, 5 do
  1101. rootPart.Velocity = rootPart.CFrame.rightVector * 200
  1102. angleSpeed = 1
  1103. axisSpeed = 1
  1104. change = 0.5
  1105. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, -0.2) * c_angles(math.rad(80), math.rad(0), math.rad(-45)), 0.15)
  1106. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-80)), 0.15)
  1107. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(25), math.rad(0), math.rad(-30)), 0.15)
  1108. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, -0.3) * c_angles(math.rad(-25), math.rad(0), math.rad(-20)), 0.15)
  1109. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(20)), 0.15)
  1110. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(10)), 0.15)
  1111. swait()
  1112. end
  1113. dashing = false
  1114. Animations = false
  1115. delay(0, function()
  1116. end)
  1117. end
  1118. end
  1119. end)
  1120. attack = false
  1121. attack2 = false
  1122. Grabbed = false
  1123. g = Instance.new("Part", Character)
  1124. g.Size = Vector3.new(0.01, 0.01, 0.01)
  1125. g.Anchored = false
  1126. g.CanCollide = false
  1127. g.Name = "Grab"
  1128. g.Transparency = 1
  1129. gweld = Instance.new("Weld", g)
  1130. gweld.Part0 = g
  1131. gweld.Part1 = Right_Arm
  1132. gweld.C0 = CFrame.new(0, 1.25, 0)
  1133. function FindNearestTorso(Position, Distance, SinglePlayer)
  1134. if SinglePlayer then
  1135. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1136. end
  1137. local List = {}
  1138. for i, v in pairs(workspace:GetChildren()) do
  1139. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  1140. table.insert(List, v)
  1141. end
  1142. end
  1143. return List
  1144. end
  1145. quote = 1
  1146. function Throw(mouse)
  1147. gweld.C0 = CFrame.new(0, 1.25, 0)
  1148. local hit = mouse.Target
  1149. if hit ~= nil then
  1150. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1151. local torsy
  1152. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1153. torsy = hit.Parent.Torso
  1154. end
  1155. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  1156. return
  1157. end
  1158. for i, v in pairs(hit.Parent:children()) do
  1159. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  1160. return
  1161. end
  1162. end
  1163. attack = true
  1164. attack2 = true
  1165. Animations = true
  1166. Head.face.Texture = "rbxassetid://508723120"
  1167. local GYRO = Instance.new("BodyGyro", rootPart)
  1168. GYRO.D = 100
  1169. GYRO.P = 2000
  1170. S = Instance.new("Sound")
  1171. S.Parent = Character.Torso
  1172. S.SoundId = "rbxassetid://391961525"
  1173. S.Volume = 10
  1174. S.Looped = false
  1175. S.Pitch = 1
  1176. S:Play()
  1177. local LEye = Part("LEye", "Dark indigo", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1178. Mesh = Instance.new("SpecialMesh", LEye)
  1179. Mesh.MeshType = "Sphere"
  1180. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1181. Mesh.Offset = Vector3.new(-0.2, 0.2, -0.6)
  1182. newWeld(Head, LEye, 0, 0, 0)
  1183. local LEGlow = Instance.new("SurfaceLight")
  1184. LEGlow.Color = Color3.fromRGB(255, 0, 0)
  1185. LEGlow.Range = 6
  1186. LEGlow.Brightness = 10
  1187. LEGlow.Parent = LEye
  1188. local REye = Part("REye", "Dark indigo", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1189. Mesh = Instance.new("SpecialMesh", REye)
  1190. Mesh.MeshType = "Sphere"
  1191. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1192. Mesh.Offset = Vector3.new(0.2, 0.2, -0.6)
  1193. newWeld(Head, REye, 0, 0, 0)
  1194. local REGlow = Instance.new("SurfaceLight")
  1195. REGlow.Color = Color3.fromRGB(255, 0, 0)
  1196. REGlow.Range = 6
  1197. REGlow.Brightness = 10
  1198. REGlow.Parent = REye
  1199. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  1200. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  1201. for i = 0, 0.3, 0.01 do
  1202. angleSpeed = 1
  1203. axisSpeed = 1
  1204. change = 0.5
  1205. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.15)
  1206. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1207. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1208. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1209. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  1210. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05 + math.sin(sine / 15) / 10) * c_angles(math.rad(-5) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  1211. swait()
  1212. end
  1213. LEye:Destroy()
  1214. REye:Destroy()
  1215. Shades.Transparency = 1
  1216. local Decoy = Instance.new("Part", Right_Arm)
  1217. Decoy.Name = "Decoy"
  1218. Decoy.Shape = Enum.PartType.Block
  1219. Decoy.CanCollide = false
  1220. Decoy.BrickColor = BrickColor.new("Medium stone grey")
  1221. Decoy.Transparency = 0
  1222. Decoy.Material = "Grass"
  1223. Decoy.Size = Vector3.new(1, 0.35, 1)
  1224. Decoy.TopSurface = Enum.SurfaceType.Smooth
  1225. Decoy.BottomSurface = Enum.SurfaceType.Smooth
  1226. local DecoyWeld = Instance.new("Weld", Decoy)
  1227. DecoyWeld.Part0 = Right_Arm
  1228. DecoyWeld.Part1 = Decoy
  1229. DecoyWeld.C1 = CFrame.new(0, 0, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1230. local DecoyMesh = Instance.new("FileMesh", Decoy)
  1231. DecoyMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  1232. DecoyMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  1233. DecoyMesh.Scale = Vector3.new(1, 1, 1)
  1234. S = Instance.new("Sound")
  1235. S.Parent = Character.Torso
  1236. S.SoundId = "rbxassetid://1146552988"
  1237. S.Volume = 10
  1238. S.Looped = false
  1239. S.Pitch = 1
  1240. S:Play()
  1241. for i = 0, 0.3, 0.01 do
  1242. angleSpeed = 1
  1243. axisSpeed = 5
  1244. change = 0.5
  1245. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(-30)), 0.15)
  1246. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1247. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1248. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1249. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1250. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1251. swait()
  1252. end
  1253. wait(0.25)
  1254. Head.face.Texture = "rbxassetid://508723120"
  1255. DecoyWeld:Destroy()
  1256. local Decoyed = Instance.new("BodyPosition", Decoy)
  1257. Decoyed.D = 100
  1258. Decoyed.P = 2000
  1259. Decoyed.MaxForce = Vector3.new(4000000, 4000000, 4000000)
  1260. Decoyed.Position = hit.Parent:findFirstChild("Head").Position
  1261. for i = 0, 0.1, 0.01 do
  1262. angleSpeed = 1
  1263. axisSpeed = 1
  1264. change = 0.5
  1265. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.4) * c_angles(math.rad(90), math.rad(0), math.rad(0)), 0.15)
  1266. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1267. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1268. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1269. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1270. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1271. swait()
  1272. end
  1273. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1274. local DecoyWeld2 = Instance.new("Weld", Decoy)
  1275. DecoyWeld2.Part0 = hit.Parent:findFirstChild("Head")
  1276. DecoyWeld2.Part1 = Decoy
  1277. DecoyWeld2.C1 = CFrame.new(0, -0.2, 0.15)
  1278. wait(0.5)
  1279. GYRO:Destroy()
  1280. Decoyed:Destroy()
  1281. Decoy.CanCollide = true
  1282. Trace()
  1283. Head.face.Texture = "rbxassetid://508723120"
  1284. rootPart.CFrame = hit.Parent:findFirstChild("HumanoidRootPart").CFrame
  1285. rootPart.CFrame = rootPart.CFrame + hit.Parent:findFirstChild("HumanoidRootPart").CFrame.lookVector * 2
  1286. rootPart.CFrame = rootPart.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1287. local grab
  1288. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  1289. if v:FindFirstChild("HumanoidRootPart") then
  1290. Grabbed = true
  1291. S = Instance.new("Sound")
  1292. S.Parent = Character.Torso
  1293. S.SoundId = "rbxassetid://260430060"
  1294. S.Volume = 10
  1295. S.Looped = false
  1296. S.Pitch = 1
  1297. S:Play()
  1298. grab = v
  1299. end
  1300. end
  1301. for i = 0, 1, 0.05 do
  1302. swait()
  1303. if Grabbed == true then
  1304. grab.Humanoid.PlatformStand = true
  1305. grab.HumanoidRootPart.Anchored = true
  1306. grab.HumanoidRootPart.CFrame = g.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(150))
  1307. end
  1308. angleSpeed = 1
  1309. axisSpeed = 1
  1310. change = 0.5
  1311. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(30)), 0.15)
  1312. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1313. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1314. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1315. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1316. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(-45), math.rad(20)), 0.15)
  1317. end
  1318. S = Instance.new("Sound")
  1319. S.Parent = Character.Torso
  1320. quote = math.random(1, 3)
  1321. if quote == 1 then
  1322. S.SoundId = "rbxassetid://1146553663"
  1323. elseif quote == 2 then
  1324. S.SoundId = "rbxassetid://1278017490"
  1325. elseif quote == 3 then
  1326. S.SoundId = "rbxassetid://0"
  1327. end
  1328. S.Volume = 10
  1329. S.Looped = false
  1330. S.Pitch = 1
  1331. S:Play()
  1332. q = Instance.new("ParticleEmitter", grab.HumanoidRootPart)
  1333. q.Rate = 500
  1334. q.Speed = NumberRange.new(7)
  1335. q.VelocitySpread = 40
  1336. q.Lifetime = NumberRange.new(0.1, 1)
  1337. q.Texture = "rbxassetid://291880914"
  1338. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1339. q.Acceleration = Vector3.new(0, -50, 0)
  1340. q.Size = NumberSequence.new({
  1341. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1342. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1343. })
  1344. q.RotSpeed = NumberRange.new(-180, 180)
  1345. q.Rotation = NumberRange.new(-360, 360)
  1346. q.Transparency = NumberSequence.new({
  1347. NumberSequenceKeypoint.new(0, 1),
  1348. NumberSequenceKeypoint.new(0.2, 0),
  1349. NumberSequenceKeypoint.new(0.8, 0),
  1350. NumberSequenceKeypoint.new(1, 1)
  1351. })
  1352. S = Instance.new("Sound")
  1353. S.Parent = Character.Torso
  1354. S.SoundId = "rbxassetid://206082327"
  1355. S.Volume = 10
  1356. S.Looped = false
  1357. S.Pitch = 0.8
  1358. S:Play()
  1359. grab.HumanoidRootPart.Anchored = false
  1360. wait(0.2)
  1361. local Decoy = Instance.new("Part", Right_Arm)
  1362. Decoy.Name = "Decoy"
  1363. Decoy.Shape = Enum.PartType.Block
  1364. Decoy.CanCollide = false
  1365. Decoy.BrickColor = BrickColor.new("Medium stone grey")
  1366. Decoy.Transparency = 0
  1367. Decoy.Material = "Grass"
  1368. Decoy.Size = Vector3.new(1, 0.35, 1)
  1369. Decoy.TopSurface = Enum.SurfaceType.Smooth
  1370. Decoy.BottomSurface = Enum.SurfaceType.Smooth
  1371. local DecoyWeld = Instance.new("Weld", Decoy)
  1372. DecoyWeld.Part0 = Right_Arm
  1373. DecoyWeld.Part1 = Decoy
  1374. DecoyWeld.C1 = CFrame.new(0, 0, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1375. local DecoyMesh = Instance.new("FileMesh", Decoy)
  1376. DecoyMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  1377. DecoyMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  1378. DecoyMesh.Scale = Vector3.new(1, 1, 1)
  1379. for i = 0, 0.1, 0.01 do
  1380. angleSpeed = 1
  1381. axisSpeed = 5
  1382. change = 0.5
  1383. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(-30)), 0.15)
  1384. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1385. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1386. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1387. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1388. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1389. swait()
  1390. end
  1391. Decoy:Destroy()
  1392. Head.face.Texture = "rbxassetid://508723120"
  1393. wait()
  1394. local LEye = Part("LEye", "Dark indigo", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1395. Mesh = Instance.new("SpecialMesh", LEye)
  1396. Mesh.MeshType = "Sphere"
  1397. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1398. Mesh.Offset = Vector3.new(-0.2, 0.2, -0.6)
  1399. newWeld(Head, LEye, 0, 0, 0)
  1400. local LEGlow = Instance.new("SurfaceLight")
  1401. LEGlow.Color = Color3.fromRGB(255, 0, 0)
  1402. LEGlow.Range = 6
  1403. LEGlow.Brightness = 10
  1404. LEGlow.Parent = LEye
  1405. local REye = Part("REye", "Dark indigo", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1406. Mesh = Instance.new("SpecialMesh", REye)
  1407. Mesh.MeshType = "Sphere"
  1408. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1409. Mesh.Offset = Vector3.new(0.2, 0.2, -0.6)
  1410. newWeld(Head, REye, 0, 0, 0)
  1411. local REGlow = Instance.new("SurfaceLight")
  1412. REGlow.Color = Color3.fromRGB(255, 0, 0)
  1413. REGlow.Range = 6
  1414. REGlow.Brightness = 10
  1415. REGlow.Parent = REye
  1416. Shades.Transparency = 0
  1417. attack2 = false
  1418. Animations = false
  1419. grab.Humanoid.MaxHealth = 0
  1420. grab.Humanoid.Health = 0
  1421. Right_Arm:findFirstChild("Decoy"):Destroy()
  1422. wait(0.5)
  1423. for i = 1, 10 do
  1424. LEye.Transparency = LEye.Transparency + 0.1
  1425. REye.Transparency = REye.Transparency + 0.1
  1426. LEGlow.Brightness = LEGlow.Brightness - 1
  1427. REGlow.Brightness = REGlow.Brightness - 1
  1428. wait()
  1429. end
  1430. Head.face.Texture = "rbxassetid://508723120"
  1431. LEye:Destroy()
  1432. REye:Destroy()
  1433. attack = false
  1434. else
  1435. rootPart.Anchored = false
  1436. attack = false
  1437. Animations = false
  1438. end
  1439. else
  1440. rootPart.Anchored = false
  1441. attack = false
  1442. Animations = false
  1443. return
  1444. end
  1445. end
  1446. function Squeeze()
  1447. gweld.C0 = CFrame.new(0, 3.6, 0)
  1448. local hit = mouse.Target
  1449. if hit ~= nil then
  1450. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1451. local torsy
  1452. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1453. torsy = hit.Parent.Torso
  1454. end
  1455. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  1456. return
  1457. end
  1458. for i, v in pairs(hit.Parent:children()) do
  1459. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  1460. return
  1461. end
  1462. end
  1463. attack = true
  1464. attack2 = true
  1465. Animations = true
  1466. Head.face.Texture = "rbxassetid://508723120"
  1467. local GYRO = Instance.new("BodyGyro", rootPart)
  1468. GYRO.D = 175
  1469. GYRO.P = 20000
  1470. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  1471. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  1472. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1473. GYRO:Destroy()
  1474. Trace()
  1475. Head.face.Texture = "rbxassetid://508723120"
  1476. rootPart.CFrame = hit.Parent:findFirstChild("HumanoidRootPart").CFrame
  1477. rootPart.CFrame = rootPart.CFrame + hit.Parent:findFirstChild("HumanoidRootPart").CFrame.lookVector * 6
  1478. rootPart.CFrame = rootPart.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1479. local grab
  1480. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  1481. if v:FindFirstChild("HumanoidRootPart") then
  1482. Grabbed = true
  1483. S = Instance.new("Sound")
  1484. S.Parent = Character.Torso
  1485. S.SoundId = "rbxassetid://260430060"
  1486. S.Volume = 10
  1487. S.Looped = false
  1488. S.Pitch = 1
  1489. S:Play()
  1490. grab = v
  1491. end
  1492. end
  1493. S = Instance.new("Sound")
  1494. S.Parent = Character.Torso
  1495. quote = math.random(1, 3)
  1496. if quote == 1 then
  1497. S.SoundId = "rbxassetid://626909112"
  1498. elseif quote == 2 then
  1499. S.SoundId = "rbxassetid://179760759"
  1500. elseif quote == 3 then
  1501. S.SoundId = "rbxassetid://573395427"
  1502. end
  1503. S.Volume = 10
  1504. S.Looped = false
  1505. S.Pitch = 0.2
  1506. S:Play()
  1507. for i = 0, 3, 0.05 do
  1508. swait()
  1509. if Grabbed == true then
  1510. grab.Humanoid.PlatformStand = true
  1511. grab.HumanoidRootPart.Anchored = true
  1512. grab.HumanoidRootPart.CFrame = g.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(150))
  1513. end
  1514. angleSpeed = 1
  1515. axisSpeed = 1
  1516. change = 0.5
  1517. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5 + math.sin(sine / 0.1) / 4, 0.5, 0 + math.sin(sine / 0.1) / 4) * c_angles(math.rad(140), math.rad(0), math.rad(30)), 0.15)
  1518. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1519. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  1520. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  1521. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1522. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(-40), math.rad(0)), 0.15)
  1523. end
  1524. grab.Torso:Destroy()
  1525. q = Instance.new("ParticleEmitter", grab.HumanoidRootPart)
  1526. q.Rate = 1000
  1527. q.Speed = NumberRange.new(7)
  1528. q.VelocitySpread = 40
  1529. q.Lifetime = NumberRange.new(0.1, 1)
  1530. q.Texture = "rbxassetid://291880914"
  1531. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1532. q.Acceleration = Vector3.new(0, -50, 0)
  1533. q.Size = NumberSequence.new({
  1534. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1535. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1536. })
  1537. q.RotSpeed = NumberRange.new(-180, 180)
  1538. q.Rotation = NumberRange.new(-360, 360)
  1539. q.Transparency = NumberSequence.new({
  1540. NumberSequenceKeypoint.new(0, 1),
  1541. NumberSequenceKeypoint.new(0.2, 0),
  1542. NumberSequenceKeypoint.new(0.8, 0),
  1543. NumberSequenceKeypoint.new(1, 1)
  1544. })
  1545. S = Instance.new("Sound")
  1546. S.Parent = Character.Torso
  1547. S.SoundId = "rbxassetid://206082327"
  1548. S.Volume = 10
  1549. S.Looped = false
  1550. S.Pitch = 0.8
  1551. S:Play()
  1552. grab.HumanoidRootPart.Anchored = false
  1553. Head.face.Texture = "rbxassetid://508723120"
  1554. attack2 = false
  1555. Animations = false
  1556. grab.Humanoid.MaxHealth = 0
  1557. grab.Humanoid.Health = 0
  1558. wait(0.5)
  1559. attack = false
  1560. else
  1561. rootPart.Anchored = false
  1562. attack = false
  1563. Animations = false
  1564. end
  1565. else
  1566. rootPart.Anchored = false
  1567. attack = false
  1568. Animations = false
  1569. return
  1570. end
  1571. end
  1572. function Rock()
  1573. gweld.C0 = CFrame.new(0, 7, 0)
  1574. local hit = mouse.Target
  1575. if hit ~= nil then
  1576. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1577. do
  1578. local torsy
  1579. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1580. torsy = hit.Parent.Torso
  1581. end
  1582. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  1583. return
  1584. end
  1585. for i, v in pairs(hit.Parent:children()) do
  1586. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  1587. return
  1588. end
  1589. end
  1590. attack = true
  1591. attack2 = true
  1592. Animations = true
  1593. Head.face.Texture = "rbxassetid://508723120"
  1594. local GYRO = Instance.new("BodyGyro", rootPart)
  1595. GYRO.D = 175
  1596. GYRO.P = 20000
  1597. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  1598. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  1599. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1600. local Rock = Instance.new("Part", g)
  1601. Rock.Name = "Rock"
  1602. Rock.Shape = Enum.PartType.Block
  1603. Rock.CanCollide = false
  1604. Rock.BrickColor = BrickColor.new("Medium stone grey")
  1605. Rock.Transparency = 0
  1606. Rock.Material = "Grass"
  1607. Rock.Size = Vector3.new(0.1, 0.1, 0.1)
  1608. Rock.CustomPhysicalProperties = PhysicalProperties.new(2.691, 0.4, 0.2, 1, 1)
  1609. Rock.TopSurface = Enum.SurfaceType.Smooth
  1610. Rock.BottomSurface = Enum.SurfaceType.Smooth
  1611. local RockWeld = Instance.new("Weld", Rock)
  1612. RockWeld.Part0 = g
  1613. RockWeld.Part1 = Rock
  1614. RockWeld.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1615. local RockMesh = Instance.new("FileMesh", Rock)
  1616. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  1617. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  1618. RockMesh.Scale = Vector3.new(3, 3, 3)
  1619. for i = 0, 0.2, 0.01 do
  1620. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  1621. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1622. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1623. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1624. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1625. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1626. end
  1627. for i = 0, 0.2, 0.01 do
  1628. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  1629. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1630. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1631. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1632. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1633. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1634. swait()
  1635. end
  1636. Head.face.Texture = "rbxassetid://508723120"
  1637. S = Instance.new("Sound")
  1638. S.Parent = Character.Torso
  1639. S.SoundId = "rbxassetid://1278006076"
  1640. S.Volume = 10
  1641. S.Looped = false
  1642. S.Pitch = 1
  1643. S:Play()
  1644. for i = 0, 0.05, 0.01 do
  1645. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  1646. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1647. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1648. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1649. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1650. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1651. swait()
  1652. end
  1653. local Rocked = Instance.new("BodyPosition", Rock)
  1654. Rocked.D = 100
  1655. Rocked.P = 2000
  1656. Rocked.MaxForce = Vector3.new(4000000, 4000000, 4000000)
  1657. Rocked.Position = hit.Parent:findFirstChild("HumanoidRootPart").Position
  1658. RockWeld:Destroy()
  1659. for i = 0, 0.01, 0.01 do
  1660. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  1661. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1662. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1663. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1664. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1665. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1666. swait()
  1667. end
  1668. Spawn(function()
  1669. wait(10)
  1670. for i = 1, 10 do
  1671. Rock.Transparency = Rock.Transparency + 0.1
  1672. swait()
  1673. end
  1674. Rock:Destroy()
  1675. end)
  1676. wait(0.1)
  1677. GYRO:Destroy()
  1678. Rocked:Destroy()
  1679. Trace()
  1680. Head.face.Texture = "rbxassetid://508723120"
  1681. local grab
  1682. for i, v in pairs(FindNearestTorso(Rock.CFrame.p, 15)) do
  1683. if v:FindFirstChild("HumanoidRootPart") then
  1684. Grabbed = true
  1685. S = Instance.new("Sound")
  1686. S.Parent = Character.Torso
  1687. S.SoundId = "rbxassetid://260430060"
  1688. S.Volume = 10
  1689. S.Looped = false
  1690. S.Pitch = 1
  1691. S:Play()
  1692. grab = v
  1693. Rock.Size = Vector3.new(3, 3, 3)
  1694. Rock.CanCollide = true
  1695. else
  1696. rootPart.Anchored = false
  1697. attack = false
  1698. Animations = false
  1699. return
  1700. end
  1701. end
  1702. if 0 >= grab:FindFirstChild("Humanoid").Health then
  1703. rootPart.Anchored = false
  1704. attack = false
  1705. Animations = false
  1706. return
  1707. end
  1708. S = Instance.new("Sound")
  1709. S.Parent = Character.Torso
  1710. quote = math.random(1, 3)
  1711. if quote == 1 then
  1712. S.SoundId = "rbxassetid://626909112"
  1713. elseif quote == 2 then
  1714. S.SoundId = "rbxassetid://179760759"
  1715. elseif quote == 3 then
  1716. S.SoundId = "rbxassetid://573395427"
  1717. end
  1718. S.Volume = 10
  1719. S.Looped = false
  1720. S.Pitch = 1
  1721. S:Play()
  1722. grab:FindFirstChild("Head").Size = Vector3.new(2, 1, 0)
  1723. grab:FindFirstChild("Torso").Size = Vector3.new(2, 2, 0)
  1724. grab:FindFirstChild("Right Arm").Size = Vector3.new(1, 2, 0)
  1725. grab:FindFirstChild("Left Arm").Size = Vector3.new(1, 2, 0)
  1726. grab:FindFirstChild("Right Leg").Size = Vector3.new(1, 2, 0)
  1727. grab:FindFirstChild("Left Leg").Size = Vector3.new(1, 2, 0)
  1728. q = Instance.new("ParticleEmitter", grab:FindFirstChild("HumanoidRootPart"))
  1729. q.Rate = 1000
  1730. q.Speed = NumberRange.new(7)
  1731. q.VelocitySpread = 40
  1732. q.Lifetime = NumberRange.new(0.1, 1)
  1733. q.Texture = "rbxassetid://291880914"
  1734. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1735. q.Acceleration = Vector3.new(0, -50, 0)
  1736. q.Size = NumberSequence.new({
  1737. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1738. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1739. })
  1740. q.RotSpeed = NumberRange.new(-180, 180)
  1741. q.Rotation = NumberRange.new(-360, 360)
  1742. q.Transparency = NumberSequence.new({
  1743. NumberSequenceKeypoint.new(0, 1),
  1744. NumberSequenceKeypoint.new(0.2, 0),
  1745. NumberSequenceKeypoint.new(0.8, 0),
  1746. NumberSequenceKeypoint.new(1, 1)
  1747. })
  1748. S = Instance.new("Sound")
  1749. S.Parent = Character.Torso
  1750. S.SoundId = "rbxassetid://206082327"
  1751. S.Volume = 10
  1752. S.Looped = false
  1753. S.Pitch = 0.8
  1754. S:Play()
  1755. grab:FindFirstChild("HumanoidRootPart").Anchored = false
  1756. Head.face.Texture = "rbxassetid://508723120"
  1757. attack2 = false
  1758. Animations = false
  1759. grab:FindFirstChild("Humanoid").MaxHealth = 0
  1760. grab:FindFirstChild("Humanoid").Health = 0
  1761. wait(0.5)
  1762. rootPart.Anchored = false
  1763. attack = false
  1764. end
  1765. else
  1766. rootPart.Anchored = false
  1767. attack = false
  1768. Animations = false
  1769. end
  1770. else
  1771. rootPart.Anchored = false
  1772. attack = false
  1773. Animations = false
  1774. return
  1775. end
  1776. end
  1777. mouse.KeyUp:connect(function(key)
  1778. if key == "r" and attack == false and crouching == false then
  1779. if transformed == false then
  1780. Throw(mouse)
  1781. elseif transformed == true then
  1782. Squeeze(mouse)
  1783. end
  1784. end
  1785. end)
  1786. GunPoint = Instance.new("BodyGyro")
  1787. GunPoint.Parent = nil
  1788. GunPoint.D = 175
  1789. GunPoint.P = 20000
  1790. GunPoint.MaxTorque = Vector3.new(0, 4000000, 0)
  1791. Fire = Instance.new("ParticleEmitter", BE)
  1792. Fire.Name = "Light"
  1793. Fire.VelocitySpread = 0
  1794. Fire.Lifetime = NumberRange.new(0.1)
  1795. Fire.Speed = NumberRange.new(0)
  1796. Fire.Size = NumberSequence.new({
  1797. NumberSequenceKeypoint.new(0, 1, 0),
  1798. NumberSequenceKeypoint.new(1, 0, 0)
  1799. })
  1800. Fire.Transparency = NumberSequence.new({
  1801. NumberSequenceKeypoint.new(0, 0),
  1802. NumberSequenceKeypoint.new(1, 0)
  1803. })
  1804. Fire.LightEmission = 0.8
  1805. Fire.LockedToPart = true
  1806. Fire.Rotation = NumberRange.new(-360, 360)
  1807. Fire.RotSpeed = NumberRange.new(-360, 360)
  1808. Fire.Texture = "http://www.roblox.com/asset/?id=248625108"
  1809. Fire.Color = ColorSequence.new(Color3.fromRGB(255, 105, 19), Color3.fromRGB(255, 255, 127))
  1810. Fire.Rate = 300
  1811. Fire.Enabled = false
  1812. local Scale = game.Players.LocalPlayer.Character.Torso.Size.X / 2 * (game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1) * 0.8
  1813. AnimFSpd = 0.2
  1814. local gun = false
  1815. local shoot = false
  1816. local putback = false
  1817. function Gunfire()
  1818. attack = true
  1819. attack2 = true
  1820. Animations = true
  1821. wait()
  1822. gun = true
  1823. S = Instance.new("Sound")
  1824. S.Parent = BE
  1825. S.SoundId = "rbxassetid://1684717155"
  1826. S.Volume = 6
  1827. S.Looped = false
  1828. S.Pitch = 1
  1829. S:Play()
  1830. GunModel.Transparency = 0
  1831. GunPoint.Parent = rootPart
  1832. while gun == true do
  1833. swait()
  1834. if currentAnim == "Idling" then
  1835. for i = 0, 0.01, 0.01 do
  1836. angleSpeed = 1
  1837. axisSpeed = 1
  1838. change = 0.5
  1839. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1840. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), AnimFSpd)
  1841. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), AnimFSpd)
  1842. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1843. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1844. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80) + math.sin(rootPart.RotVelocity.Y / 30) / 2, math.rad(0)), AnimFSpd)
  1845. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), AnimFSpd)
  1846. end
  1847. elseif currentAnim == "Falling" then
  1848. for i = 0, 0.01, 0.01 do
  1849. angleSpeed = 1
  1850. axisSpeed = 1
  1851. change = 0.5
  1852. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1853. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.15)
  1854. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(100), math.rad(0), math.rad(45)), 0.15)
  1855. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1856. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1857. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1858. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1859. end
  1860. end
  1861. if putback == true then
  1862. S = Instance.new("Sound")
  1863. S.Parent = BE
  1864. S.SoundId = "rbxassetid://294710932"
  1865. S.Volume = 10
  1866. S.Looped = false
  1867. S.Pitch = 1
  1868. S:Play()
  1869. putback = false
  1870. shoot = false
  1871. gun = false
  1872. GunPoint.Parent = nil
  1873. Animations = false
  1874. GunModel.Transparency = 1
  1875. attack2 = false
  1876. attack = false
  1877. end
  1878. if shoot == true then
  1879. S = Instance.new("Sound")
  1880. S.Parent = BE
  1881. S.SoundId = "rbxassetid://1045539607"
  1882. S.Volume = 10
  1883. S.Looped = false
  1884. S.Pitch = 1
  1885. S:Play()
  1886. Fire.Enabled = true
  1887. BulletDetection(BE.Position, Mouse.Hit.Position, false)
  1888. swait(1)
  1889. Fire.Enabled = false
  1890. do
  1891. local Shell = Instance.new("Part", game.Workspace)
  1892. Shell.FormFactor = "Custom"
  1893. Shell.BrickColor = BrickColor.new("Bright yellow")
  1894. Shell.Material = "Metal"
  1895. Shell.CanCollide = true
  1896. Shell.CustomPhysicalProperties = PhysicalProperties.new(0.2, 3, 1, 1, 1)
  1897. Shell.Size = Vector3.new(0.15, 0.3, 0.15) * Scale
  1898. Shell.CFrame = BEX.CFrame * CFrame.new(0.5, 0.5, 0) * CFrame.Angles(math.rad(-90), 0, 0)
  1899. Shell.Velocity = ((BEX.CFrame * CFrame.new(-5, 0, math.random(-2, 2))).p - BEX.CFrame.p) * 5 * Scale
  1900. local Mesh = Instance.new("CylinderMesh", Shell)
  1901. Mesh.Scale = Vector3.new(0.15, 0.3, 0.15) * Scale / Shell.Size
  1902. Spawn(function()
  1903. wait(0.1)
  1904. for i = 1, 10 do
  1905. Shell.Transparency = Shell.Transparency + 0.1
  1906. swait()
  1907. end
  1908. Shell:Destroy()
  1909. end)
  1910. if currentAnim == "Idling" then
  1911. for i = 0, 0.05, 0.01 do
  1912. angleSpeed = 1
  1913. axisSpeed = 1
  1914. change = 0.5
  1915. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1916. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(10), math.rad(85)), AnimFSpd)
  1917. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(35)), AnimFSpd)
  1918. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(-5), math.rad(0)), AnimFSpd)
  1919. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(-5), math.rad(0)), AnimFSpd)
  1920. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(85), math.rad(0)), AnimFSpd)
  1921. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(-85), math.rad(20)), AnimFSpd)
  1922. swait()
  1923. end
  1924. for i = 0, 0.05, 0.01 do
  1925. angleSpeed = 1
  1926. axisSpeed = 1
  1927. change = 0.5
  1928. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1929. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), AnimFSpd)
  1930. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), AnimFSpd)
  1931. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1932. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1933. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80), math.rad(0)), AnimFSpd)
  1934. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), AnimFSpd)
  1935. swait()
  1936. end
  1937. elseif currentAnim == "Falling" then
  1938. for i = 0, 0.05, 0.01 do
  1939. angleSpeed = 1
  1940. axisSpeed = 1
  1941. change = 0.5
  1942. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1943. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(105), math.rad(0), math.rad(0)), AnimFSpd)
  1944. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(105), math.rad(0), math.rad(45)), AnimFSpd)
  1945. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1946. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), AnimFSpd)
  1947. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1948. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(0), math.rad(0)), AnimFSpd)
  1949. end
  1950. for i = 0, 0.05, 0.01 do
  1951. angleSpeed = 1
  1952. axisSpeed = 1
  1953. change = 0.5
  1954. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1955. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), AnimFSpd)
  1956. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(100), math.rad(0), math.rad(45)), AnimFSpd)
  1957. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1958. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), AnimFSpd)
  1959. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1960. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), AnimFSpd)
  1961. swait()
  1962. end
  1963. end
  1964. shoot = false
  1965. end
  1966. end
  1967. end
  1968. GunModel.Transparency = 1
  1969. GunPoint.Parent = nil
  1970. Animations = false
  1971. attack2 = false
  1972. attack = false
  1973. end
  1974. mouse.KeyUp:connect(function(key)
  1975. if key == "f" and attack == false and crouching == false then
  1976. if transformed == false and transformed2 == false then
  1977. Gunfire()
  1978. elseif transformed == true and transformed2 == true then
  1979. Rock(mouse)
  1980. end
  1981. end
  1982. end)
  1983. mouse.KeyUp:connect(function(key)
  1984. if key == "f" and gun == true and crouching == false then
  1985. putback = true
  1986. end
  1987. end)
  1988. function UpperCut()
  1989. attack = true
  1990. attack2 = true
  1991. Animations = true
  1992. crouching = false
  1993. local rng2 = Instance.new("Part", game.Workspace)
  1994. rng2.Anchored = true
  1995. rng2.BrickColor = BrickColor.new("Royal purple")
  1996. rng2.CanCollide = false
  1997. rng2.FormFactor = 3
  1998. rng2.Name = "Ring"
  1999. rng2.Size = Vector3.new(1, 1, 1)
  2000. rng2.Transparency = 0.35
  2001. rng2.TopSurface = 0
  2002. rng2.BottomSurface = 0
  2003. rng2.CFrame = rng2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(180))
  2004. rng2.Position = rootPart.Position - Vector3.new(0, -6, 1)
  2005. local rngm2 = Instance.new("SpecialMesh", rng2)
  2006. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2007. rngm2.Scale = Vector3.new(3, 0, 3)
  2008. Spawn(function()
  2009. for i = 1, 60, 2 do
  2010. rngm2.Scale = Vector3.new(3 + i * 0.3, 10 - i * 0.1, 3 + i * 0.3)
  2011. rng2.Transparency = i / 30
  2012. wait()
  2013. end
  2014. wait()
  2015. rng2:Destroy()
  2016. end)
  2017. S = Instance.new("Sound")
  2018. S.Parent = rootPart
  2019. S.SoundId = "rbxassetid://2767090"
  2020. S.Volume = 10
  2021. S.Looped = false
  2022. S.Pitch = 0.8
  2023. S:Play()
  2024. S = Instance.new("Sound")
  2025. S.Parent = Character.Torso
  2026. S.SoundId = "rbxassetid://1146552988"
  2027. S.Volume = 10
  2028. S.Looped = false
  2029. S.Pitch = 1
  2030. S.TimePosition = 0.4
  2031. S:Play()
  2032. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 14)) do
  2033. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  2034. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(10, 15)
  2035. v:FindFirstChild("Humanoid").PlatformStand = false
  2036. v:FindFirstChild("HumanoidRootPart").Velocity = v:FindFirstChild("HumanoidRootPart").CFrame.upVector * 165
  2037. else
  2038. end
  2039. end
  2040. if transformed == false then
  2041. for i = 0, 0.05, 0.01 do
  2042. angleSpeed = 1
  2043. axisSpeed = 1
  2044. change = 0.5
  2045. Trace()
  2046. rootPart.CFrame = rootPart.CFrame * CFrame.new(0, 2, 0)
  2047. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.4)
  2048. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.4)
  2049. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  2050. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2051. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2052. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  2053. swait()
  2054. end
  2055. for i = 0, 0.2, 0.01 do
  2056. angleSpeed = 1
  2057. axisSpeed = 1
  2058. change = 0.5
  2059. Trace()
  2060. rootPart.Velocity = rootPart.CFrame.upVector * 100
  2061. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.4)
  2062. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.4)
  2063. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  2064. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2065. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2066. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  2067. swait()
  2068. end
  2069. elseif transformed == true then
  2070. for i = 0, 0.05, 0.01 do
  2071. angleSpeed = 1
  2072. axisSpeed = 1
  2073. change = 0.5
  2074. rootPart.CFrame = rootPart.CFrame * CFrame.new(0, 2, 0)
  2075. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2076. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.4)
  2077. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  2078. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2079. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2080. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  2081. swait()
  2082. end
  2083. for i = 0, 0.2, 0.01 do
  2084. angleSpeed = 1
  2085. axisSpeed = 1
  2086. change = 0.5
  2087. rootPart.Velocity = rootPart.CFrame.upVector * 100
  2088. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2089. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.4)
  2090. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  2091. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2092. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2093. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  2094. swait()
  2095. end
  2096. end
  2097. Animations = false
  2098. attack2 = false
  2099. attack = false
  2100. end
  2101. crouching = false
  2102. mouse.KeyDown:connect(function(key)
  2103. if key == "c" and attack == false and crouching == false then
  2104. crouching = true
  2105. Animations = true
  2106. Trace()
  2107. while crouching == true do
  2108. if transformed == false then
  2109. angleSpeed = 1
  2110. axisSpeed = 1
  2111. change = 0.5
  2112. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(45)), 0.9)
  2113. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.2 + -math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  2114. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  2115. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  2116. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  2117. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  2118. swait()
  2119. elseif transformed == true then
  2120. angleSpeed = 1
  2121. axisSpeed = 1
  2122. change = 0.5
  2123. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  2124. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.9)
  2125. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  2126. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  2127. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  2128. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  2129. swait()
  2130. end
  2131. end
  2132. end
  2133. end)
  2134. mouse.KeyUp:connect(function(key)
  2135. if key == "c" and attack == false then
  2136. crouching = false
  2137. Animations = false
  2138. end
  2139. end)
  2140. function Laugh()
  2141. attack = true
  2142. attack2 = true
  2143. Animations = true
  2144. S = Instance.new("Sound")
  2145. S.Parent = rootPart
  2146. S.SoundId = "rbxassetid://1490490375"
  2147. S.Volume = 10
  2148. S.Looped = false
  2149. S.Pitch = 1
  2150. S:Play()
  2151. Head.face.Texture = "rbxassetid://508723120"
  2152. for i = 0, 0.2, 0.01 do
  2153. angleSpeed = 1
  2154. axisSpeed = 1
  2155. change = 0.3
  2156. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  2157. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  2158. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2159. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2160. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  2161. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-20) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  2162. swait()
  2163. end
  2164. Head.face.Texture = "rbxassetid://508723120"
  2165. for i = 0, 0.7, 0.01 do
  2166. angleSpeed = 1
  2167. axisSpeed = 1
  2168. change = 3
  2169. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  2170. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  2171. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2172. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2173. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  2174. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0 + math.sin(sine / 15) / 10) * c_angles(math.rad(15) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  2175. swait()
  2176. end
  2177. for i = 0, 0.7, 0.01 do
  2178. angleSpeed = 1
  2179. axisSpeed = 1
  2180. change = 3
  2181. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  2182. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  2183. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2184. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2185. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  2186. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0 + math.sin(sine / 15) / 10) * c_angles(math.rad(15) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  2187. swait()
  2188. end
  2189. for i = 0, 0.7, 0.01 do
  2190. angleSpeed = 1
  2191. axisSpeed = 1
  2192. change = 3
  2193. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  2194. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  2195. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2196. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  2197. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  2198. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0 + math.sin(sine / 15) / 10) * c_angles(math.rad(15) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  2199. swait()
  2200. end
  2201. Head.face.Texture = "rbxassetid://508723120"
  2202. Animations = false
  2203. attack2 = false
  2204. attack = false
  2205. end
  2206. mouse.KeyDown:connect(function(key)
  2207. if key == "y" and attack == false and transformed == false then
  2208. Laugh()
  2209. end
  2210. end)
  2211. transformed = false
  2212. transformed2 = false
  2213. transforming = false
  2214. function Uroboros()
  2215. attack = true
  2216. attack2 = true
  2217. Animations = true
  2218. transforming = true
  2219. Theme.SoundId = "rbxassetid://891694049"
  2220. local MusicID = 891694049
  2221. Theme.TimePosition = 1
  2222. Theme:Play()
  2223. for i = 0, 0.5, 0.01 do
  2224. angleSpeed = 1
  2225. axisSpeed = 1
  2226. change = 0.5
  2227. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.15)
  2228. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.15)
  2229. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.15)
  2230. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.15)
  2231. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.15)
  2232. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.15)
  2233. swait()
  2234. end
  2235. faceinfect = Instance.new("Decal", Head)
  2236. faceinfect.Name = "Uroboros"
  2237. faceinfect.Face = "Front"
  2238. faceinfect.Texture = "rbxassetid://1920646704"
  2239. local rng2 = Instance.new("Part", Character)
  2240. rng2.Anchored = true
  2241. rng2.BrickColor = BrickColor.new("Royal purple")
  2242. rng2.CanCollide = false
  2243. rng2.FormFactor = 3
  2244. rng2.Name = "Shockwave"
  2245. rng2.Size = Vector3.new(1, 1, 1)
  2246. rng2.Transparency = 0.35
  2247. rng2.TopSurface = 0
  2248. rng2.BottomSurface = 0
  2249. rng2.CFrame = rootPart.CFrame
  2250. local rngm2 = Instance.new("SpecialMesh", rng2)
  2251. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2252. rngm2.Scale = Vector3.new(1, 0, 1)
  2253. rngm2.Offset = Vector3.new(0, 0, -2)
  2254. Spawn(function()
  2255. for i = 1, 60, 2 do
  2256. rngm2.Scale = Vector3.new(1 + i * 0.3, 5 - i * 0.1, 1 + i * 0.3)
  2257. rng2.Transparency = i / 30
  2258. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  2259. swait()
  2260. end
  2261. wait()
  2262. rng2:Destroy()
  2263. end)
  2264. local rng2 = Instance.new("Part", Character)
  2265. rng2.Anchored = true
  2266. rng2.BrickColor = BrickColor.new("Royal purple")
  2267. rng2.CanCollide = false
  2268. rng2.FormFactor = 3
  2269. rng2.Name = "Shockwave"
  2270. rng2.Size = Vector3.new(1, 1, 1)
  2271. rng2.Transparency = 0.35
  2272. rng2.TopSurface = 0
  2273. rng2.BottomSurface = 0
  2274. rng2.CFrame = rootPart.CFrame
  2275. local rngm2 = Instance.new("SpecialMesh", rng2)
  2276. rngm2.Scale = Vector3.new(1, 0, 1)
  2277. rngm2.Offset = Vector3.new(0, 0.5, -1)
  2278. rngm2.MeshType = "Sphere"
  2279. Spawn(function()
  2280. for i = 1, 60, 2 do
  2281. rngm2.Scale = Vector3.new(5 + i * 0.3, 5 + i * 0.3, 5 + i * 0.3)
  2282. rng2.Transparency = i / 60
  2283. swait()
  2284. end
  2285. wait()
  2286. rng2:Destroy()
  2287. end)
  2288. local RArm1 = Instance.new("Part", Right_Arm)
  2289. RArm1.Name = "Blade"
  2290. RArm1.Shape = Enum.PartType.Ball
  2291. RArm1.CanCollide = false
  2292. RArm1.BrickColor = BrickColor.new("Medium stone grey")
  2293. RArm1.Transparency = 0
  2294. RArm1.Material = "Grass"
  2295. RArm1.Size = Vector3.new(0.1, 0.1, 0.1)
  2296. RArm1.TopSurface = Enum.SurfaceType.Smooth
  2297. RArm1.BottomSurface = Enum.SurfaceType.Smooth
  2298. local RArm1Weld = Instance.new("Weld", RArm1)
  2299. RArm1Weld.Part0 = Right_Arm
  2300. RArm1Weld.Part1 = RArm1
  2301. RArm1Weld.C1 = CFrame.new(0.2, -1.3, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90), math.rad(10))
  2302. RArm1Mesh = Instance.new("FileMesh", RArm1)
  2303. RArm1Mesh.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2304. RArm1Mesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2305. RArm1Mesh.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2306. local RArm2 = Instance.new("Part", Right_Arm)
  2307. RArm2.Name = "Blade"
  2308. RArm2.Shape = Enum.PartType.Ball
  2309. RArm2.CanCollide = false
  2310. RArm2.BrickColor = BrickColor.new("Medium stone grey")
  2311. RArm2.Transparency = 0
  2312. RArm2.Material = "Grass"
  2313. RArm2.Size = Vector3.new(0.1, 0.1, 0.1)
  2314. RArm2.TopSurface = Enum.SurfaceType.Smooth
  2315. RArm2.BottomSurface = Enum.SurfaceType.Smooth
  2316. local RArm2Weld = Instance.new("Weld", RArm2)
  2317. RArm2Weld.Part0 = Right_Arm
  2318. RArm2Weld.Part1 = RArm2
  2319. RArm2Weld.C1 = CFrame.new(-0.2, -1.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(-10))
  2320. RArm2Weld = Instance.new("FileMesh", RArm2)
  2321. RArm2Weld.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2322. RArm2Weld.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2323. RArm2Weld.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2324. RArm2Mesh = Instance.new("FileMesh", RArm2)
  2325. RArm2Mesh.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2326. RArm2Mesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2327. RArm2Mesh.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2328. local RArm3 = Instance.new("Part", Right_Arm)
  2329. RArm3.Name = "Metal"
  2330. RArm3.Shape = Enum.PartType.Ball
  2331. RArm3.CanCollide = false
  2332. RArm3.BrickColor = BrickColor.new("Really black")
  2333. RArm3.Transparency = 0
  2334. RArm3.Material = "DiamondPlate"
  2335. RArm3.Size = Vector3.new(0.1, 0.1, 0.1)
  2336. RArm3.TopSurface = Enum.SurfaceType.Smooth
  2337. RArm3.BottomSurface = Enum.SurfaceType.Smooth
  2338. local RArm3Weld = Instance.new("Weld", RArm3)
  2339. RArm3Weld.Part0 = Right_Arm
  2340. RArm3Weld.Part1 = RArm3
  2341. RArm3Weld.C1 = CFrame.new(0, -0.4, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2342. RArm3Mesh = Instance.new("FileMesh", RArm3)
  2343. RArm3Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2344. RArm3Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2345. local RArm4 = Instance.new("Part", Right_Arm)
  2346. RArm4.Name = "Metal"
  2347. RArm4.Shape = Enum.PartType.Ball
  2348. RArm4.CanCollide = false
  2349. RArm4.BrickColor = BrickColor.new("Really black")
  2350. RArm4.Transparency = 0
  2351. RArm4.Material = "DiamondPlate"
  2352. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2353. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2354. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2355. local RArm4Weld = Instance.new("Weld", RArm4)
  2356. RArm4Weld.Part0 = Right_Arm
  2357. RArm4Weld.Part1 = RArm4
  2358. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2359. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2360. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2361. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2362. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2363. local RArm4 = Instance.new("Part", Right_Arm)
  2364. RArm4.Name = "Metal"
  2365. RArm4.Shape = Enum.PartType.Ball
  2366. RArm4.CanCollide = false
  2367. RArm4.BrickColor = BrickColor.new("Really black")
  2368. RArm4.Transparency = 0
  2369. RArm4.Material = "DiamondPlate"
  2370. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2371. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2372. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2373. local RArm4Weld = Instance.new("Weld", RArm4)
  2374. RArm4Weld.Part0 = Right_Arm
  2375. RArm4Weld.Part1 = RArm4
  2376. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(-90), math.rad(0))
  2377. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2378. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2379. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2380. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2381. local Tentacle = Instance.new("Part", Right_Arm)
  2382. Tentacle.Name = "Tentacle"
  2383. Tentacle.Shape = Enum.PartType.Ball
  2384. Tentacle.CanCollide = false
  2385. Tentacle.BrickColor = BrickColor.new("Really black")
  2386. Tentacle.Transparency = 0
  2387. Tentacle.Material = "DiamondPlate"
  2388. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2389. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2390. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2391. local TentacleWeld = Instance.new("Weld", Tentacle)
  2392. TentacleWeld.Part0 = Right_Arm
  2393. TentacleWeld.Part1 = Tentacle
  2394. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180))
  2395. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2396. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2397. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2398. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2399. local Tentacle = Instance.new("Part", Right_Arm)
  2400. Tentacle.Name = "Tentacle"
  2401. Tentacle.Shape = Enum.PartType.Ball
  2402. Tentacle.CanCollide = false
  2403. Tentacle.BrickColor = BrickColor.new("Really black")
  2404. Tentacle.Transparency = 0
  2405. Tentacle.Material = "DiamondPlate"
  2406. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2407. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2408. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2409. local TentacleWeld = Instance.new("Weld", Tentacle)
  2410. TentacleWeld.Part0 = Right_Arm
  2411. TentacleWeld.Part1 = Tentacle
  2412. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(180))
  2413. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2414. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2415. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2416. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2417. local Tentacle = Instance.new("Part", Right_Arm)
  2418. Tentacle.Name = "Blade"
  2419. Tentacle.Shape = Enum.PartType.Ball
  2420. Tentacle.CanCollide = false
  2421. Tentacle.BrickColor = BrickColor.new("Really black")
  2422. Tentacle.Transparency = 0
  2423. Tentacle.Material = "DiamondPlate"
  2424. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2425. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2426. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2427. local TentacleWeld = Instance.new("Weld", Tentacle)
  2428. TentacleWeld.Part0 = Right_Arm
  2429. TentacleWeld.Part1 = Tentacle
  2430. TentacleWeld.C1 = CFrame.new(0, 0, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(100), math.rad(180))
  2431. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2432. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2433. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2434. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2435. local Tentacle = Instance.new("Part", Right_Arm)
  2436. Tentacle.Name = "Blade"
  2437. Tentacle.Shape = Enum.PartType.Ball
  2438. Tentacle.CanCollide = false
  2439. Tentacle.BrickColor = BrickColor.new("Really black")
  2440. Tentacle.Transparency = 0
  2441. Tentacle.Material = "DiamondPlate"
  2442. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2443. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2444. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2445. local TentacleWeld = Instance.new("Weld", Tentacle)
  2446. TentacleWeld.Part0 = Right_Arm
  2447. TentacleWeld.Part1 = Tentacle
  2448. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(-45), math.rad(180))
  2449. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2450. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2451. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2452. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2453. local Tors = Instance.new("Part", Character)
  2454. Tors.Name = "Toor"
  2455. Tors.CanCollide = false
  2456. Tors.BrickColor = BrickColor.new("Really black")
  2457. Tors.Transparency = 0
  2458. Tors.Material = "Metal"
  2459. Tors.Size = Vector3.new(0.1, 0.1, 0.1)
  2460. Tors.TopSurface = Enum.SurfaceType.Smooth
  2461. Tors.BottomSurface = Enum.SurfaceType.Smooth
  2462. local TorsWeld = Instance.new("Weld", Tors)
  2463. TorsWeld.Part0 = Torso
  2464. TorsWeld.Part1 = Tors
  2465. TorsWeld.C1 = CFrame.new(0, 0.44, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(180))
  2466. TMesh = Instance.new("SpecialMesh", Tors)
  2467. TMesh.Scale = Vector3.new(11.6, 11.6, 11.6)
  2468. TMesh.TextureId = "rbxassetid://74620702"
  2469. TMesh.MeshType = "Wedge"
  2470. local Tentacle = Instance.new("Part", Torso)
  2471. Tentacle.Name = "Blade"
  2472. Tentacle.Shape = Enum.PartType.Ball
  2473. Tentacle.CanCollide = false
  2474. Tentacle.BrickColor = BrickColor.new("Really black")
  2475. Tentacle.Transparency = 0
  2476. Tentacle.Material = "DiamondPlate"
  2477. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2478. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2479. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2480. local TentacleWeld = Instance.new("Weld", Tentacle)
  2481. TentacleWeld.Part0 = Torso
  2482. TentacleWeld.Part1 = Tentacle
  2483. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90))
  2484. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2485. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2486. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2487. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2488. local Tentacle = Instance.new("Part", Torso)
  2489. Tentacle.Name = "Blade"
  2490. Tentacle.Shape = Enum.PartType.Ball
  2491. Tentacle.CanCollide = false
  2492. Tentacle.BrickColor = BrickColor.new("Really black")
  2493. Tentacle.Transparency = 0
  2494. Tentacle.Material = "DiamondPlate"
  2495. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2496. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2497. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2498. local TentacleWeld = Instance.new("Weld", Tentacle)
  2499. TentacleWeld.Part0 = Torso
  2500. TentacleWeld.Part1 = Tentacle
  2501. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(45))
  2502. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2503. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2504. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2505. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2506. local Tentacle = Instance.new("Part", Torso)
  2507. Tentacle.Name = "Blade"
  2508. Tentacle.Shape = Enum.PartType.Ball
  2509. Tentacle.CanCollide = false
  2510. Tentacle.BrickColor = BrickColor.new("Really black")
  2511. Tentacle.Transparency = 0
  2512. Tentacle.Material = "DiamondPlate"
  2513. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2514. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2515. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2516. local TentacleWeld = Instance.new("Weld", Tentacle)
  2517. TentacleWeld.Part0 = Torso
  2518. TentacleWeld.Part1 = Tentacle
  2519. TentacleWeld.C1 = CFrame.new(0.6, 0.5, -0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(150))
  2520. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2521. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2522. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2523. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2524. local Tentacle = Instance.new("Part", Torso)
  2525. Tentacle.Name = "Blade"
  2526. Tentacle.Shape = Enum.PartType.Ball
  2527. Tentacle.CanCollide = false
  2528. Tentacle.BrickColor = BrickColor.new("Really black")
  2529. Tentacle.Transparency = 0
  2530. Tentacle.Material = "DiamondPlate"
  2531. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2532. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2533. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2534. local TentacleWeld = Instance.new("Weld", Tentacle)
  2535. TentacleWeld.Part0 = Torso
  2536. TentacleWeld.Part1 = Tentacle
  2537. TentacleWeld.C1 = CFrame.new(-0.8, 0.5, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(-90))
  2538. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2539. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2540. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2541. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2542. local Tentacle = Instance.new("Part", Torso)
  2543. Tentacle.Name = "Blade"
  2544. Tentacle.Shape = Enum.PartType.Ball
  2545. Tentacle.CanCollide = false
  2546. Tentacle.BrickColor = BrickColor.new("Really black")
  2547. Tentacle.Transparency = 0
  2548. Tentacle.Material = "DiamondPlate"
  2549. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2550. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2551. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2552. local TentacleWeld = Instance.new("Weld", Tentacle)
  2553. TentacleWeld.Part0 = Torso
  2554. TentacleWeld.Part1 = Tentacle
  2555. TentacleWeld.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
  2556. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2557. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2558. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2559. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2560. local Tentacle = Instance.new("Part", Torso)
  2561. Tentacle.Name = "Blade"
  2562. Tentacle.Shape = Enum.PartType.Ball
  2563. Tentacle.CanCollide = false
  2564. Tentacle.BrickColor = BrickColor.new("Really black")
  2565. Tentacle.Transparency = 0
  2566. Tentacle.Material = "DiamondPlate"
  2567. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2568. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2569. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2570. local TentacleWeld = Instance.new("Weld", Tentacle)
  2571. TentacleWeld.Part0 = Torso
  2572. TentacleWeld.Part1 = Tentacle
  2573. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(60))
  2574. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2575. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2576. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2577. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2578. local Tentacle = Instance.new("Part", Torso)
  2579. Tentacle.Name = "Blade"
  2580. Tentacle.Shape = Enum.PartType.Ball
  2581. Tentacle.CanCollide = false
  2582. Tentacle.BrickColor = BrickColor.new("Really black")
  2583. Tentacle.Transparency = 0
  2584. Tentacle.Material = "DiamondPlate"
  2585. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2586. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2587. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2588. local TentacleWeld = Instance.new("Weld", Tentacle)
  2589. TentacleWeld.Part0 = Torso
  2590. TentacleWeld.Part1 = Tentacle
  2591. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(65))
  2592. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2593. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2594. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2595. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2596. local Tentacle = Instance.new("Part", Torso)
  2597. Tentacle.Name = "Blade"
  2598. Tentacle.Shape = Enum.PartType.Ball
  2599. Tentacle.CanCollide = false
  2600. Tentacle.BrickColor = BrickColor.new("Really black")
  2601. Tentacle.Transparency = 0
  2602. Tentacle.Material = "DiamondPlate"
  2603. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2604. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2605. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2606. local TentacleWeld = Instance.new("Weld", Tentacle)
  2607. TentacleWeld.Part0 = Torso
  2608. TentacleWeld.Part1 = Tentacle
  2609. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90))
  2610. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2611. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2612. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2613. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2614. local Tentacle = Instance.new("Part", Torso)
  2615. Tentacle.Name = "Blade"
  2616. Tentacle.Shape = Enum.PartType.Ball
  2617. Tentacle.CanCollide = false
  2618. Tentacle.BrickColor = BrickColor.new("Really black")
  2619. Tentacle.Transparency = 0
  2620. Tentacle.Material = "DiamondPlate"
  2621. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2622. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2623. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2624. local TentacleWeld = Instance.new("Weld", Tentacle)
  2625. TentacleWeld.Part0 = Torso
  2626. TentacleWeld.Part1 = Tentacle
  2627. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(45))
  2628. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2629. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2630. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2631. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2632. local Tentacle = Instance.new("Part", Torso)
  2633. Tentacle.Name = "Blade"
  2634. Tentacle.Shape = Enum.PartType.Ball
  2635. Tentacle.CanCollide = false
  2636. Tentacle.BrickColor = BrickColor.new("Really black")
  2637. Tentacle.Transparency = 0
  2638. Tentacle.Material = "DiamondPlate"
  2639. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2640. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2641. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2642. local TentacleWeld = Instance.new("Weld", Tentacle)
  2643. TentacleWeld.Part0 = Torso
  2644. TentacleWeld.Part1 = Tentacle
  2645. TentacleWeld.C1 = CFrame.new(0.6, -0.5, -0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(150))
  2646. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2647. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2648. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2649. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2650. local Tentacle = Instance.new("Part", Torso)
  2651. Tentacle.Name = "Blade"
  2652. Tentacle.Shape = Enum.PartType.Ball
  2653. Tentacle.CanCollide = false
  2654. Tentacle.BrickColor = BrickColor.new("Really black")
  2655. Tentacle.Transparency = 0
  2656. Tentacle.Material = "DiamondPlate"
  2657. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2658. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2659. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2660. local TentacleWeld = Instance.new("Weld", Tentacle)
  2661. TentacleWeld.Part0 = Torso
  2662. TentacleWeld.Part1 = Tentacle
  2663. TentacleWeld.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
  2664. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2665. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2666. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2667. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2668. local Tentacle = Instance.new("Part", Torso)
  2669. Tentacle.Name = "Blade"
  2670. Tentacle.Shape = Enum.PartType.Ball
  2671. Tentacle.CanCollide = false
  2672. Tentacle.BrickColor = BrickColor.new("Really black")
  2673. Tentacle.Transparency = 0
  2674. Tentacle.Material = "DiamondPlate"
  2675. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2676. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2677. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2678. local TentacleWeld = Instance.new("Weld", Tentacle)
  2679. TentacleWeld.Part0 = Torso
  2680. TentacleWeld.Part1 = Tentacle
  2681. TentacleWeld.C1 = CFrame.new(1.5, -0.35, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-20), math.rad(120))
  2682. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2683. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2684. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2685. TentacleMesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  2686. local Heart = Instance.new("Part", Character)
  2687. Heart.Name = "Heart"
  2688. Heart.Shape = Enum.PartType.Ball
  2689. Heart.CanCollide = false
  2690. Heart.BrickColor = BrickColor.new("Dark indigo")
  2691. Heart.Transparency = 0.5
  2692. Heart.Material = "Neon"
  2693. Heart.Size = Vector3.new(0.4, 0.4, 0.4)
  2694. Heart.TopSurface = Enum.SurfaceType.Smooth
  2695. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2696. local Weld = Instance.new("Weld", Heart)
  2697. Weld.Part0 = Torso
  2698. Weld.Part1 = Heart
  2699. Weld.C1 = CFrame.new(0.1, -0.5, 0.45)
  2700. local HeartGlow = Instance.new("SurfaceLight")
  2701. HeartGlow.Color = Color3.fromRGB(213, 115, 61)
  2702. HeartGlow.Range = 6
  2703. HeartGlow.Brightness = 10
  2704. HeartGlow.Parent = Heart
  2705. local Heart = Instance.new("Part", Character)
  2706. Heart.Name = "Heart"
  2707. Heart.Shape = Enum.PartType.Ball
  2708. Heart.CanCollide = false
  2709. Heart.BrickColor = BrickColor.new("Dark indigo")
  2710. Heart.Transparency = 0
  2711. Heart.Material = "Granite"
  2712. Heart.Size = Vector3.new(0.35, 0.35, 0.35)
  2713. Heart.TopSurface = Enum.SurfaceType.Smooth
  2714. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2715. local Weld = Instance.new("Weld", Heart)
  2716. Weld.Part0 = Torso
  2717. Weld.Part1 = Heart
  2718. Weld.C1 = CFrame.new(0.1, -0.5, 0.45)
  2719. local Heart = Instance.new("Part", Character)
  2720. Heart.Name = "Heart"
  2721. Heart.Shape = Enum.PartType.Ball
  2722. Heart.CanCollide = false
  2723. Heart.BrickColor = BrickColor.new("Dark indigo")
  2724. Heart.Transparency = 0.5
  2725. Heart.Material = "Neon"
  2726. Heart.Size = Vector3.new(0.4, 0.4, 0.4)
  2727. Heart.TopSurface = Enum.SurfaceType.Smooth
  2728. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2729. local Weld = Instance.new("Weld", Heart)
  2730. Weld.Part0 = Torso
  2731. Weld.Part1 = Heart
  2732. Weld.C1 = CFrame.new(0.1, -0.5, -0.45)
  2733. local HeartGlow = Instance.new("SurfaceLight")
  2734. HeartGlow.Color = Color3.fromRGB(213, 115, 61)
  2735. HeartGlow.Range = 6
  2736. HeartGlow.Brightness = 10
  2737. HeartGlow.Parent = Heart
  2738. local Heart = Instance.new("Part", Character)
  2739. Heart.Name = "Heart"
  2740. Heart.Shape = Enum.PartType.Ball
  2741. Heart.CanCollide = false
  2742. Heart.BrickColor = BrickColor.new("Dark indigo")
  2743. Heart.Transparency = 0
  2744. Heart.Material = "Granite"
  2745. Heart.Size = Vector3.new(0.35, 0.35, 0.35)
  2746. Heart.TopSurface = Enum.SurfaceType.Smooth
  2747. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2748. local Weld = Instance.new("Weld", Heart)
  2749. Weld.Part0 = Torso
  2750. Weld.Part1 = Heart
  2751. Weld.C1 = CFrame.new(0.1, -0.5, -0.45)
  2752. Character["Body Colors"].RightArmColor = BrickColor.new("Really black")
  2753. Head.face.Texture = "rbxassetid://508723120"
  2754. ShadesMesh.MeshId = "rbxassetid://0"
  2755. shirt.ShirtTemplate = "rbxassetid://1266142884"
  2756. for i, v in pairs(Torso:GetChildren()) do
  2757. if v:IsA("ParticleEmitter") then
  2758. v:Destroy()
  2759. end
  2760. end
  2761. for i, v in pairs(Left_Arm:GetChildren()) do
  2762. if v:IsA("ParticleEmitter") then
  2763. v:Destroy()
  2764. end
  2765. end
  2766. S = Instance.new("Sound", rootPart)
  2767. S.Volume = 8
  2768. S.SoundId = "rbxassetid://658228911"
  2769. S:Play()
  2770. for i = 0, 0.1, 0.01 do
  2771. angleSpeed = 1
  2772. axisSpeed = 1
  2773. change = 0.5
  2774. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  2775. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.9)
  2776. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  2777. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  2778. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  2779. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  2780. swait()
  2781. end
  2782. for i = 0, 0.2, 0.01 do
  2783. angleSpeed = 1
  2784. axisSpeed = 1
  2785. change = 1
  2786. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(45)), 0.15)
  2787. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(-45)), 0.15)
  2788. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -1, 0) * c_angles(math.rad(45), math.rad(5), math.rad(0)), 0.15)
  2789. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -1, 0) * c_angles(math.rad(45), math.rad(-5), math.rad(0)), 0.15)
  2790. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-45), math.rad(0), math.rad(0)), 0.15)
  2791. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  2792. swait()
  2793. end
  2794. Animations = false
  2795. transforming = false
  2796. attack2 = false
  2797. attack = false
  2798. transformed = true
  2799. end
  2800. function ThirdForm()
  2801. attack = true
  2802. attack2 = true
  2803. transforming = true
  2804. transformed2 = true
  2805. Animations = true
  2806. Character["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  2807. S = Instance.new("Sound", rootPart)
  2808. S.Volume = 8
  2809. S.SoundId = "rbxassetid://658228911"
  2810. S:Play()
  2811. local rng2 = Instance.new("Part", Character)
  2812. rng2.Anchored = true
  2813. rng2.BrickColor = BrickColor.new("Royal purple")
  2814. rng2.CanCollide = false
  2815. rng2.FormFactor = 3
  2816. rng2.Name = "Shockwave"
  2817. rng2.Size = Vector3.new(1, 1, 1)
  2818. rng2.Transparency = 0.35
  2819. rng2.TopSurface = 0
  2820. rng2.BottomSurface = 0
  2821. rng2.CFrame = rootPart.CFrame
  2822. local rngm2 = Instance.new("SpecialMesh", rng2)
  2823. rngm2.Scale = Vector3.new(1, 0, 1)
  2824. rngm2.Offset = Vector3.new(0, 0.5, -1)
  2825. rngm2.MeshType = "Sphere"
  2826. Spawn(function()
  2827. for i = 1, 60, 2 do
  2828. rngm2.Scale = Vector3.new(5 + i * 0.3, 5 + i * 0.3, 5 + i * 0.3)
  2829. rng2.Transparency = i / 60
  2830. swait()
  2831. end
  2832. wait()
  2833. rng2:Destroy()
  2834. end)
  2835. Theme.SoundId = "rbxassetid://171493674"
  2836. local MusicID = 171493674
  2837. Theme.TimePosition = 1
  2838. Theme:Play()
  2839. local RArm3 = Instance.new("Part", Left_Arm)
  2840. RArm3.Name = "Metal"
  2841. RArm3.Shape = Enum.PartType.Ball
  2842. RArm3.CanCollide = false
  2843. RArm3.BrickColor = BrickColor.new("Really black")
  2844. RArm3.Transparency = 0
  2845. RArm3.Material = "DiamondPlate"
  2846. RArm3.Size = Vector3.new(0.1, 0.1, 0.1)
  2847. RArm3.TopSurface = Enum.SurfaceType.Smooth
  2848. RArm3.BottomSurface = Enum.SurfaceType.Smooth
  2849. local RArm3Weld = Instance.new("Weld", RArm3)
  2850. RArm3Weld.Part0 = Left_Arm
  2851. RArm3Weld.Part1 = RArm3
  2852. RArm3Weld.C1 = CFrame.new(0, -0.4, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2853. RArm3Mesh = Instance.new("FileMesh", RArm3)
  2854. RArm3Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2855. RArm3Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2856. local RArm4 = Instance.new("Part", Left_Arm)
  2857. RArm4.Name = "Metal"
  2858. RArm4.Shape = Enum.PartType.Ball
  2859. RArm4.CanCollide = false
  2860. RArm4.BrickColor = BrickColor.new("Really black")
  2861. RArm4.Transparency = 0
  2862. RArm4.Material = "DiamondPlate"
  2863. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2864. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2865. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2866. local RArm4Weld = Instance.new("Weld", RArm4)
  2867. RArm4Weld.Part0 = Left_Arm
  2868. RArm4Weld.Part1 = RArm4
  2869. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2870. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2871. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2872. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2873. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2874. local RArm4 = Instance.new("Part", Left_Arm)
  2875. RArm4.Name = "Metal"
  2876. RArm4.Shape = Enum.PartType.Ball
  2877. RArm4.CanCollide = false
  2878. RArm4.BrickColor = BrickColor.new("Really black")
  2879. RArm4.Transparency = 0
  2880. RArm4.Material = "DiamondPlate"
  2881. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2882. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2883. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2884. local RArm4Weld = Instance.new("Weld", RArm4)
  2885. RArm4Weld.Part0 = Left_Arm
  2886. RArm4Weld.Part1 = RArm4
  2887. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(-90), math.rad(0))
  2888. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2889. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2890. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2891. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2892. local Tentacle = Instance.new("Part", Left_Arm)
  2893. Tentacle.Name = "Tentacle"
  2894. Tentacle.Shape = Enum.PartType.Ball
  2895. Tentacle.CanCollide = false
  2896. Tentacle.BrickColor = BrickColor.new("Really black")
  2897. Tentacle.Transparency = 0
  2898. Tentacle.Material = "DiamondPlate"
  2899. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2900. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2901. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2902. local TentacleWeld = Instance.new("Weld", Tentacle)
  2903. TentacleWeld.Part0 = Left_Arm
  2904. TentacleWeld.Part1 = Tentacle
  2905. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180))
  2906. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2907. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2908. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2909. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2910. local Tentacle = Instance.new("Part", Left_Arm)
  2911. Tentacle.Name = "Tentacle"
  2912. Tentacle.Shape = Enum.PartType.Ball
  2913. Tentacle.CanCollide = false
  2914. Tentacle.BrickColor = BrickColor.new("Really black")
  2915. Tentacle.Transparency = 0
  2916. Tentacle.Material = "DiamondPlate"
  2917. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2918. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2919. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2920. local TentacleWeld = Instance.new("Weld", Tentacle)
  2921. TentacleWeld.Part0 = Left_Arm
  2922. TentacleWeld.Part1 = Tentacle
  2923. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(180))
  2924. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2925. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2926. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2927. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2928. local Tentacle = Instance.new("Part", Left_Arm)
  2929. Tentacle.Name = "Blade"
  2930. Tentacle.Shape = Enum.PartType.Ball
  2931. Tentacle.CanCollide = false
  2932. Tentacle.BrickColor = BrickColor.new("Really black")
  2933. Tentacle.Transparency = 0
  2934. Tentacle.Material = "DiamondPlate"
  2935. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2936. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2937. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2938. local TentacleWeld = Instance.new("Weld", Tentacle)
  2939. TentacleWeld.Part0 = Left_Arm
  2940. TentacleWeld.Part1 = Tentacle
  2941. TentacleWeld.C1 = CFrame.new(0, 0, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(100), math.rad(180))
  2942. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2943. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2944. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2945. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2946. local Tentacle = Instance.new("Part", Left_Arm)
  2947. Tentacle.Name = "Blade"
  2948. Tentacle.Shape = Enum.PartType.Ball
  2949. Tentacle.CanCollide = false
  2950. Tentacle.BrickColor = BrickColor.new("Really black")
  2951. Tentacle.Transparency = 0
  2952. Tentacle.Material = "DiamondPlate"
  2953. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2954. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2955. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2956. local TentacleWeld = Instance.new("Weld", Tentacle)
  2957. TentacleWeld.Part0 = Left_Arm
  2958. TentacleWeld.Part1 = Tentacle
  2959. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(-45), math.rad(180))
  2960. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2961. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2962. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2963. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2964. local Tors = Instance.new("Part", Character)
  2965. Tors.Name = "Toor"
  2966. Tors.CanCollide = false
  2967. Tors.BrickColor = BrickColor.new("Really black")
  2968. Tors.Transparency = 0
  2969. Tors.Material = "Metal"
  2970. Tors.Size = Vector3.new(0.1, 0.1, 0.1)
  2971. Tors.TopSurface = Enum.SurfaceType.Smooth
  2972. Tors.BottomSurface = Enum.SurfaceType.Smooth
  2973. local TorsWeld = Instance.new("Weld", Tors)
  2974. TorsWeld.Part0 = Torso
  2975. TorsWeld.Part1 = Tors
  2976. TorsWeld.C1 = CFrame.new(0, 0.44, -0.44) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90))
  2977. TMesh = Instance.new("SpecialMesh", Tors)
  2978. TMesh.Scale = Vector3.new(11.6, 11.6, 11.6)
  2979. TMesh.TextureId = "rbxassetid://74620702"
  2980. TMesh.MeshType = "Wedge"
  2981. for i = 0, 0.3, 0.01 do
  2982. angleSpeed = 1
  2983. axisSpeed = 1
  2984. change = 0.5
  2985. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  2986. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(-35), math.rad(-120)), 0.15)
  2987. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  2988. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  2989. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  2990. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(45), math.rad(0)), 0.15)
  2991. swait()
  2992. end
  2993. Animations = false
  2994. transforming = false
  2995. attack2 = false
  2996. attack = false
  2997. transformed2 = true
  2998. end
  2999. mouse.KeyDown:connect(function(key)
  3000. if key == "p" and attack == false then
  3001. if transformed == false and transformed2 == false then
  3002. Uroboros()
  3003. elseif transformed == true and transformed2 == false then
  3004. ThirdForm()
  3005. end
  3006. end
  3007. end)
  3008. tp = true
  3009. Player:GetMouse().KeyDown:connect(function(k)
  3010. if k == "t" and tp == true then
  3011. tp = false
  3012. S = Instance.new("Sound")
  3013. S.Parent = rootPart
  3014. S.SoundId = "rbxassetid://2767090"
  3015. S.Volume = 10
  3016. S.Looped = false
  3017. S.Pitch = 0.8
  3018. S:Play()
  3019. Trace()
  3020. Character.Head.face.Parent = game.Lighting
  3021. Character.HumanoidRootPart.CFrame = Player:GetMouse().Hit * CFrame.new(0, 3.5, 0)
  3022. game.Lighting.face.Parent = Character.Head
  3023. tp = true
  3024. end
  3025. end)
  3026. talk = math.random(1, 5)
  3027. function CobraPunch()
  3028. attack = true
  3029. Animations = true
  3030. talk = math.random(1, 5)
  3031. if talk == 5 then
  3032. Head.face.Texture = "rbxassetid://508723120"
  3033. Qe = Instance.new("Sound")
  3034. Qe.Parent = Character.Torso
  3035. Qe.SoundId = "rbxassetid://1146553450"
  3036. Qe.Volume = 10
  3037. Qe.Looped = false
  3038. Qe.Pitch = 1
  3039. Qe:Play()
  3040. end
  3041. if talk ~= 5 then
  3042. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3043. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  3044. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(10, 15)
  3045. S = Instance.new("Sound")
  3046. S.Parent = Character.Torso
  3047. S.SoundId = "rbxassetid://1063050323"
  3048. S.Volume = 8
  3049. S.Looped = false
  3050. S.Pitch = 1
  3051. S:Play()
  3052. else
  3053. end
  3054. end
  3055. end
  3056. for i = 0, 0.3, 0.01 do
  3057. angleSpeed = 1
  3058. axisSpeed = 1
  3059. change = 0.5
  3060. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.5) * c_angles(math.rad(90), math.rad(0), math.rad(-80)), 0.15)
  3061. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(-80)), 0.15)
  3062. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.15)
  3063. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(0), math.rad(5)), 0.15)
  3064. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), 0.15)
  3065. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-10), math.rad(80), math.rad(0)), 0.15)
  3066. swait()
  3067. end
  3068. if talk == 5 then
  3069. wait(0.5)
  3070. Head.face.Texture = "rbxassetid://508723120"
  3071. dashing = true
  3072. rootPart.Velocity = rootPart.CFrame.lookVector * 150
  3073. else
  3074. rootPart.Velocity = rootPart.CFrame.lookVector * 100
  3075. end
  3076. if talk == 5 then
  3077. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3078. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  3079. v:FindFirstChild("Humanoid").Health = 0
  3080. S = Instance.new("Sound")
  3081. S.Parent = Character.Torso
  3082. S.SoundId = "rbxassetid://1063050323"
  3083. S.Volume = 8
  3084. S.Looped = false
  3085. S.Pitch = 1
  3086. S:Play()
  3087. else
  3088. end
  3089. end
  3090. else
  3091. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3092. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  3093. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 25)
  3094. S = Instance.new("Sound")
  3095. S.Parent = Character.Torso
  3096. S.SoundId = "rbxassetid://1063050323"
  3097. S.Volume = 8
  3098. S.Looped = false
  3099. S.Pitch = 1
  3100. S:Play()
  3101. else
  3102. end
  3103. end
  3104. end
  3105. for i = 0, 0.2, 0.01 do
  3106. angleSpeed = 1
  3107. axisSpeed = 1
  3108. change = 0.5
  3109. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), 0.15)
  3110. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.5) * c_angles(math.rad(90), math.rad(0), math.rad(80)), 0.15)
  3111. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.15)
  3112. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(0), math.rad(-10)), 0.15)
  3113. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80), math.rad(0)), 0.15)
  3114. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), 0.15)
  3115. swait()
  3116. end
  3117. if talk == 5 then
  3118. wait(0.05)
  3119. dashing = false
  3120. wait(0.5)
  3121. Qe:Destroy()
  3122. Head.face.Texture = "rbxassetid://508723120"
  3123. end
  3124. Animations = false
  3125. attack = false
  3126. end
  3127. function attackone()
  3128. attack = true
  3129. Animations = true
  3130. Head.face.Texture = "rbxassetid://508723120"
  3131. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3132. if v:FindFirstChild("HumanoidRootPart") then
  3133. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3134. S = Instance.new("Sound")
  3135. S.Parent = Character.Torso
  3136. S.SoundId = "rbxassetid://1063050323"
  3137. S.Volume = 2
  3138. S.Looped = false
  3139. S.Pitch = 1
  3140. S:Play()
  3141. end
  3142. end
  3143. S = Instance.new("Sound")
  3144. S.Parent = Character.Torso
  3145. s2 = math.random(1, 4)
  3146. if s2 == 1 then
  3147. S.SoundId = "rbxassetid://1146556706"
  3148. elseif s2 == 2 then
  3149. S.SoundId = "rbxassetid://1146556975"
  3150. elseif s2 == 3 or s2 == 4 then
  3151. S.SoundId = "rbxassetid://0"
  3152. end
  3153. S.Volume = 10
  3154. S.Looped = false
  3155. S.Pitch = 1
  3156. S:Play()
  3157. for i = 0, 0.08, 0.01 do
  3158. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
  3159. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3160. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  3161. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  3162. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3163. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3164. swait()
  3165. end
  3166. for i = 0, 0.08, 0.01 do
  3167. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(-20)), 0.5)
  3168. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  3169. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.5)
  3170. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.5)
  3171. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  3172. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.5)
  3173. swait()
  3174. end
  3175. Head.face.Texture = "rbxassetid://508723120"
  3176. Animations = false
  3177. attack = false
  3178. end
  3179. function attacktwo()
  3180. attack = true
  3181. Animations = true
  3182. Head.face.Texture = "rbxassetid://508723120"
  3183. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3184. if v:FindFirstChild("HumanoidRootPart") then
  3185. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3186. S = Instance.new("Sound")
  3187. S.Parent = Character.Torso
  3188. S.SoundId = "rbxassetid://1063050323"
  3189. S.Volume = 8
  3190. S.Looped = false
  3191. S.Pitch = 1
  3192. S:Play()
  3193. end
  3194. end
  3195. S = Instance.new("Sound")
  3196. S.Parent = Character.Torso
  3197. s2 = math.random(1, 4)
  3198. if s2 == 1 then
  3199. S.SoundId = "rbxassetid://1146556706"
  3200. elseif s2 == 2 then
  3201. S.SoundId = "rbxassetid://1146556975"
  3202. elseif s2 == 3 or s2 == 4 then
  3203. S.SoundId = "rbxassetid://0"
  3204. end
  3205. S.Volume = 10
  3206. S.Looped = false
  3207. S.Pitch = 1
  3208. S:Play()
  3209. for i = 0, 0.08, 0.01 do
  3210. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3211. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  3212. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3213. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  3214. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3215. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3216. swait()
  3217. end
  3218. for i = 0, 0.08, 0.01 do
  3219. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  3220. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(20)), 0.5)
  3221. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.5)
  3222. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.5)
  3223. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  3224. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  3225. swait()
  3226. end
  3227. Head.face.Texture = "rbxassetid://508723120"
  3228. Animations = false
  3229. attack = false
  3230. end
  3231. function attackthree()
  3232. attack = true
  3233. Animations = true
  3234. for i = 0, 0.08, 0.01 do
  3235. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3236. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3237. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3238. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(20)), 0.15)
  3239. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(-20), math.rad(0)), 0.15)
  3240. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3241. swait()
  3242. end
  3243. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3244. if v:FindFirstChild("HumanoidRootPart") then
  3245. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3246. S = Instance.new("Sound")
  3247. S.Parent = Character.Torso
  3248. S.SoundId = "rbxassetid://1063050323"
  3249. S.Volume = 8
  3250. S.Looped = false
  3251. S.Pitch = 1
  3252. S:Play()
  3253. end
  3254. end
  3255. for i = 0, 0.06, 0.01 do
  3256. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3257. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3258. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3259. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(110), math.rad(0), math.rad(0)), 0.15)
  3260. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(20), math.rad(0)), 0.15)
  3261. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3262. swait()
  3263. end
  3264. Animations = false
  3265. attack = false
  3266. end
  3267. function attackfour()
  3268. attack = true
  3269. Animations = true
  3270. for i = 0, 0.08, 0.01 do
  3271. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3272. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3273. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.15)
  3274. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3275. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(20), math.rad(0)), 0.15)
  3276. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3277. swait()
  3278. end
  3279. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3280. if v:FindFirstChild("HumanoidRootPart") then
  3281. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3282. S = Instance.new("Sound")
  3283. S.Parent = Character.Torso
  3284. S.SoundId = "rbxassetid://1063050323"
  3285. S.Volume = 8
  3286. S.Looped = false
  3287. S.Pitch = 1
  3288. S:Play()
  3289. end
  3290. end
  3291. for i = 0, 0.06, 0.01 do
  3292. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3293. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3294. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(110), math.rad(0), math.rad(0)), 0.15)
  3295. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3296. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(-20), math.rad(0)), 0.15)
  3297. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3298. swait()
  3299. end
  3300. Animations = false
  3301. attack = false
  3302. end
  3303. function attackfive()
  3304. attack = true
  3305. Animations = true
  3306. Head.face.Texture = "rbxassetid://508723120"
  3307. for i = 0, 0.01, 0.01 do
  3308. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3309. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3310. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3311. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3312. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3313. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3314. end
  3315. for i = 0, 0.08, 0.01 do
  3316. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(0)), 0.15)
  3317. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(0)), 0.15)
  3318. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3319. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3320. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3321. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3322. swait()
  3323. end
  3324. S = Instance.new("Sound")
  3325. S.Parent = Character.Torso
  3326. S.SoundId = "rbxassetid://1278006076"
  3327. S.Volume = 10
  3328. S.Looped = false
  3329. S.Pitch = 1
  3330. S:Play()
  3331. for i = 0, 0.05, 0.01 do
  3332. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(-40)), 0.15)
  3333. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(40)), 0.15)
  3334. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3335. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3336. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3337. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3338. swait()
  3339. end
  3340. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3341. if v:FindFirstChild("HumanoidRootPart") then
  3342. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(25, 35)
  3343. S = Instance.new("Sound")
  3344. S.Parent = Character.Torso
  3345. S.SoundId = "rbxassetid://1063050323"
  3346. S.Volume = 8
  3347. S.Looped = false
  3348. S.Pitch = 1
  3349. S:Play()
  3350. end
  3351. end
  3352. for i = 0, 0.01, 0.01 do
  3353. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(-40)), 0.15)
  3354. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(40)), 0.15)
  3355. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3356. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3357. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3358. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3359. swait()
  3360. end
  3361. for i = 0, 0.04, 0.01 do
  3362. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.2, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-40)), 0.15)
  3363. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.2, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(40)), 0.15)
  3364. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3365. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3366. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3367. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3368. swait()
  3369. end
  3370. wait(0.1)
  3371. Head.face.Texture = "rbxassetid://508723120"
  3372. Animations = false
  3373. attack = false
  3374. end
  3375. function attackoneA()
  3376. attack = true
  3377. Animations = true
  3378. Head.face.Texture = "rbxassetid://508723120"
  3379. S = Instance.new("Sound")
  3380. S.Parent = Character.Torso
  3381. s2 = math.random(1, 4)
  3382. if s2 == 1 then
  3383. S.SoundId = "rbxassetid://1146556706"
  3384. elseif s2 == 2 then
  3385. S.SoundId = "rbxassetid://1146556975"
  3386. elseif s2 == 3 or s2 == 4 then
  3387. S.SoundId = "rbxassetid://0"
  3388. end
  3389. S.Volume = 10
  3390. S.Looped = false
  3391. S.Pitch = 1
  3392. S:Play()
  3393. for i = 0, 0.2, 0.01 do
  3394. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(120)), 0.15)
  3395. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3396. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  3397. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  3398. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3399. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3400. swait()
  3401. end
  3402. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 6)) do
  3403. if v:FindFirstChild("HumanoidRootPart") then
  3404. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 30)
  3405. S = Instance.new("Sound")
  3406. S.Parent = Character.Torso
  3407. S.SoundId = "rbxassetid://1063050323"
  3408. S.Volume = 2
  3409. S.Looped = false
  3410. S.Pitch = 1
  3411. S:Play()
  3412. end
  3413. end
  3414. for i = 0, 0.2, 0.01 do
  3415. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.8) * c_angles(math.rad(75), math.rad(0), math.rad(-50)), 0.15)
  3416. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.15)
  3417. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3418. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.15)
  3419. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3420. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3421. swait()
  3422. end
  3423. Head.face.Texture = "rbxassetid://508723120"
  3424. Animations = false
  3425. attack = false
  3426. end
  3427. function attacktwoA()
  3428. attack = true
  3429. Animations = true
  3430. Head.face.Texture = "rbxassetid://508723120"
  3431. S = Instance.new("Sound")
  3432. S.Parent = Character.Torso
  3433. s2 = math.random(1, 4)
  3434. if s2 == 1 then
  3435. S.SoundId = "rbxassetid://1146556706"
  3436. elseif s2 == 2 then
  3437. S.SoundId = "rbxassetid://1146556975"
  3438. elseif s2 == 3 or s2 == 4 then
  3439. S.SoundId = "rbxassetid://0"
  3440. end
  3441. S.Volume = 10
  3442. S.Looped = false
  3443. S.Pitch = 1
  3444. S:Play()
  3445. for i = 0, 0.08, 0.01 do
  3446. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3447. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  3448. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3449. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  3450. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3451. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3452. swait()
  3453. end
  3454. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3455. if v:FindFirstChild("HumanoidRootPart") then
  3456. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3457. S = Instance.new("Sound")
  3458. S.Parent = Character.Torso
  3459. S.SoundId = "rbxassetid://1063050323"
  3460. S.Volume = 8
  3461. S.Looped = false
  3462. S.Pitch = 1
  3463. S:Play()
  3464. end
  3465. end
  3466. for i = 0, 0.08, 0.01 do
  3467. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  3468. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(20)), 0.5)
  3469. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.5)
  3470. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.5)
  3471. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  3472. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  3473. swait()
  3474. end
  3475. Head.face.Texture = "rbxassetid://508723120"
  3476. Animations = false
  3477. attack = false
  3478. end
  3479. function attacktwoB()
  3480. attack = true
  3481. Animations = true
  3482. Head.face.Texture = "rbxassetid://508723120"
  3483. S = Instance.new("Sound")
  3484. S.Parent = Character.Torso
  3485. s2 = math.random(1, 4)
  3486. if s2 == 1 then
  3487. S.SoundId = "rbxassetid://1146556706"
  3488. elseif s2 == 2 then
  3489. S.SoundId = "rbxassetid://1146556975"
  3490. elseif s2 == 3 or s2 == 4 then
  3491. S.SoundId = "rbxassetid://0"
  3492. end
  3493. S.Volume = 10
  3494. S.Looped = false
  3495. S.Pitch = 1
  3496. S:Play()
  3497. for i = 0, 0.2, 0.01 do
  3498. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  3499. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(-120)), 0.15)
  3500. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3501. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  3502. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3503. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3504. swait()
  3505. end
  3506. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 6)) do
  3507. if v:FindFirstChild("HumanoidRootPart") then
  3508. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 30)
  3509. S = Instance.new("Sound")
  3510. S.Parent = Character.Torso
  3511. S.SoundId = "rbxassetid://1063050323"
  3512. S.Volume = 8
  3513. S.Looped = false
  3514. S.Pitch = 1
  3515. S:Play()
  3516. end
  3517. end
  3518. for i = 0, 0.2, 0.01 do
  3519. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(50)), 0.15)
  3520. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(75), math.rad(0), math.rad(20)), 0.15)
  3521. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  3522. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  3523. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.15)
  3524. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3525. swait()
  3526. end
  3527. Head.face.Texture = "rbxassetid://508723120"
  3528. Animations = false
  3529. attack = false
  3530. end
  3531. function attackthreeB()
  3532. attack = true
  3533. Animations = true
  3534. Head.face.Texture = "rbxassetid://508723120"
  3535. for i = 0, 0.2, 0.01 do
  3536. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3537. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  3538. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3539. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3540. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3541. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3542. end
  3543. for i = 0, 0.2, 0.01 do
  3544. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  3545. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(180), math.rad(0), math.rad(-20)), 0.15)
  3546. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3547. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3548. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3549. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3550. swait()
  3551. end
  3552. Head.face.Texture = "rbxassetid://508723120"
  3553. S = Instance.new("Sound")
  3554. S.Parent = Character.Torso
  3555. S.SoundId = "rbxassetid://1278006076"
  3556. S.Volume = 10
  3557. S.Looped = false
  3558. S.Pitch = 1
  3559. S:Play()
  3560. for i = 0, 0.05, 0.01 do
  3561. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  3562. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(200), math.rad(0), math.rad(-20)), 0.15)
  3563. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3564. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3565. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3566. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3567. swait()
  3568. end
  3569. local rng2 = Instance.new("Part", Character)
  3570. rng2.Anchored = true
  3571. rng2.BrickColor = BrickColor.new("Royal purple")
  3572. rng2.CanCollide = false
  3573. rng2.FormFactor = 3
  3574. rng2.Name = "Shockwave"
  3575. rng2.Size = Vector3.new(1, 1, 1)
  3576. rng2.Transparency = 0.35
  3577. rng2.TopSurface = 0
  3578. rng2.BottomSurface = 0
  3579. rng2.CFrame = rootPart.CFrame
  3580. local rngm2 = Instance.new("SpecialMesh", rng2)
  3581. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3582. rngm2.Scale = Vector3.new(1, 0, 1)
  3583. rngm2.Offset = Vector3.new(0, 0, -5)
  3584. Spawn(function()
  3585. for i = 1, 60, 2 do
  3586. rngm2.Scale = Vector3.new(1 + i * 0.8, 5 - i * 0.1, 1 + i * 0.8)
  3587. rng2.Transparency = i / 30
  3588. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  3589. swait()
  3590. end
  3591. wait()
  3592. rng2:Destroy()
  3593. end)
  3594. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3595. if v:FindFirstChild("HumanoidRootPart") then
  3596. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(100, 150)
  3597. S = Instance.new("Sound")
  3598. S.Parent = Character.Torso
  3599. S.SoundId = "rbxassetid://1063050323"
  3600. S.Volume = 8
  3601. S.Looped = false
  3602. S.Pitch = 1
  3603. S:Play()
  3604. end
  3605. end
  3606. S = Instance.new("Sound")
  3607. S.Parent = Character.Torso
  3608. S.SoundId = "rbxassetid://2248511"
  3609. S.Volume = 10
  3610. S.Looped = false
  3611. S.Pitch = 1
  3612. S:Play()
  3613. for i = 0, 0.01, 0.01 do
  3614. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  3615. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(25), math.rad(0), math.rad(-20)), 0.15)
  3616. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3617. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3618. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3619. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3620. swait()
  3621. end
  3622. for i = 0, 0.04, 0.01 do
  3623. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3624. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  3625. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3626. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3627. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3628. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3629. swait()
  3630. end
  3631. wait(0.1)
  3632. Head.face.Texture = "rbxassetid://508723120"
  3633. Animations = false
  3634. attack = false
  3635. end
  3636. function attackthreeA()
  3637. attack = true
  3638. Animations = true
  3639. Head.face.Texture = "rbxassetid://508723120"
  3640. for i = 0, 0.2, 0.01 do
  3641. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3642. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3643. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3644. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3645. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3646. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3647. end
  3648. for i = 0, 0.2, 0.01 do
  3649. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  3650. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3651. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3652. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3653. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3654. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3655. swait()
  3656. end
  3657. Head.face.Texture = "rbxassetid://508723120"
  3658. S = Instance.new("Sound")
  3659. S.Parent = Character.Torso
  3660. S.SoundId = "rbxassetid://1278006076"
  3661. S.Volume = 10
  3662. S.Looped = false
  3663. S.Pitch = 1
  3664. S:Play()
  3665. for i = 0, 0.05, 0.01 do
  3666. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  3667. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3668. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3669. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3670. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3671. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3672. swait()
  3673. end
  3674. local rng2 = Instance.new("Part", Character)
  3675. rng2.Anchored = true
  3676. rng2.BrickColor = BrickColor.new("Royal purple")
  3677. rng2.CanCollide = false
  3678. rng2.FormFactor = 3
  3679. rng2.Name = "Shockwave"
  3680. rng2.Size = Vector3.new(1, 1, 1)
  3681. rng2.Transparency = 0.35
  3682. rng2.TopSurface = 0
  3683. rng2.BottomSurface = 0
  3684. rng2.CFrame = rootPart.CFrame
  3685. local rngm2 = Instance.new("SpecialMesh", rng2)
  3686. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3687. rngm2.Scale = Vector3.new(1, 0, 1)
  3688. rngm2.Offset = Vector3.new(0.5, 0, -5)
  3689. Spawn(function()
  3690. for i = 1, 60, 2 do
  3691. rngm2.Scale = Vector3.new(1 + i * 0.3, 5 - i * 0.1, 1 + i * 0.3)
  3692. rng2.Transparency = i / 30
  3693. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  3694. swait()
  3695. end
  3696. wait()
  3697. rng2:Destroy()
  3698. end)
  3699. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3700. if v:FindFirstChild("HumanoidRootPart") then
  3701. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(40, 45)
  3702. S = Instance.new("Sound")
  3703. S.Parent = Character.Torso
  3704. S.SoundId = "rbxassetid://1063050323"
  3705. S.Volume = 8
  3706. S.Looped = false
  3707. S.Pitch = 1
  3708. S:Play()
  3709. end
  3710. end
  3711. S = Instance.new("Sound")
  3712. S.Parent = Character.Torso
  3713. S.SoundId = "rbxassetid://1310889008"
  3714. S.Volume = 10
  3715. S.Looped = false
  3716. S.Pitch = 1
  3717. S:Play()
  3718. for i = 0, 0.01, 0.01 do
  3719. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  3720. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3721. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3722. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3723. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3724. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3725. swait()
  3726. end
  3727. for i = 0, 0.04, 0.01 do
  3728. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3729. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3730. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3731. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3732. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3733. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3734. swait()
  3735. end
  3736. wait(0.1)
  3737. Head.face.Texture = "rbxassetid://508723120"
  3738. Animations = false
  3739. attack = false
  3740. end
  3741. attktype = 1
  3742. mouse.Button1Down:connect(function(key)
  3743. if attack == false and crouching == false then
  3744. if gun == false then
  3745. if transformed == false then
  3746. if attktype == 1 then
  3747. attackone()
  3748. elseif attktype == 2 then
  3749. attacktwo()
  3750. elseif attktype == 3 then
  3751. attackthree()
  3752. elseif attktype == 4 then
  3753. attackfour()
  3754. elseif attktype == 5 then
  3755. attackfive()
  3756. elseif attktype == 6 then
  3757. CobraPunch()
  3758. attktype = 0
  3759. end
  3760. attktype = attktype + 1
  3761. elseif transformed == true then
  3762. if attktype == 1 then
  3763. attackoneA()
  3764. elseif attktype == 2 then
  3765. if transformed2 == false then
  3766. attacktwoA()
  3767. elseif transformed2 == true then
  3768. attacktwoB()
  3769. end
  3770. elseif attktype == 3 then
  3771. if transformed2 == false then
  3772. attackthreeA()
  3773. elseif transformed2 == true then
  3774. attackthreeB()
  3775. end
  3776. attktype = 0
  3777. end
  3778. attktype = attktype + 1
  3779. end
  3780. end
  3781. elseif gun == true then
  3782. shoot = true
  3783. elseif attack == false and crouching == true then
  3784. UpperCut()
  3785. end
  3786. end)
  3787. function findCloseHumanoid(centre, distance)
  3788. local tab = {}
  3789. for _, child in pairs(game.Workspace:GetChildren()) do
  3790. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  3791. local vtors = child.Torso
  3792. local mag = math.abs((vtors.Position - centre).magnitude)
  3793. if distance >= mag then
  3794. table.insert(tab, child.Humanoid)
  3795. end
  3796. end
  3797. end
  3798. return tab
  3799. end
  3800. function rayCast(Pos, Dir, Max, Ignore)
  3801. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3802. end
  3803. function QuaternionFromCFrame(cf)
  3804. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3805. local trace = m00 + m11 + m22
  3806. if trace > 0 then
  3807. local s = math.sqrt(1 + trace)
  3808. local recip = 0.5 / s
  3809. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  3810. else
  3811. local i = 0
  3812. if m00 < m11 then
  3813. i = 1
  3814. end
  3815. if m22 > (i == 0 and m00 or m11) then
  3816. i = 2
  3817. end
  3818. if i == 0 then
  3819. local s = math.sqrt(m00 - m11 - m22 + 1)
  3820. local recip = 0.5 / s
  3821. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  3822. elseif i == 1 then
  3823. local s = math.sqrt(m11 - m22 - m00 + 1)
  3824. local recip = 0.5 / s
  3825. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  3826. elseif i == 2 then
  3827. local s = math.sqrt(m22 - m00 - m11 + 1)
  3828. local recip = 0.5 / s
  3829. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  3830. end
  3831. end
  3832. end
  3833. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3834. local xs, ys, zs = x + x, y + y, z + z
  3835. local wx, wy, wz = w * xs, w * ys, w * zs
  3836. local xx = x * xs
  3837. local xy = x * ys
  3838. local xz = x * zs
  3839. local yy = y * ys
  3840. local yz = y * zs
  3841. local zz = z * zs
  3842. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  3843. end
  3844. function QuaternionSlerp(a, b, t)
  3845. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  3846. local startInterp, finishInterp
  3847. if cosTheta >= 1.0E-4 then
  3848. if 1 - cosTheta > 1.0E-4 then
  3849. local theta = math.acos(cosTheta)
  3850. local invSinTheta = 1 / math.sin(theta)
  3851. startInterp = math.sin((1 - t) * theta) * invSinTheta
  3852. finishInterp = math.sin(t * theta) * invSinTheta
  3853. else
  3854. startInterp = 1 - t
  3855. finishInterp = t
  3856. end
  3857. elseif 1 + cosTheta > 1.0E-4 then
  3858. local theta = math.acos(-cosTheta)
  3859. local invSinTheta = 1 / math.sin(theta)
  3860. startInterp = math.sin((t - 1) * theta) * invSinTheta
  3861. finishInterp = math.sin(t * theta) * invSinTheta
  3862. else
  3863. startInterp = t - 1
  3864. finishInterp = t
  3865. end
  3866. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  3867. end
  3868. function clerp(a, b, t)
  3869. local qa = {
  3870. QuaternionFromCFrame(a)
  3871. }
  3872. local qb = {
  3873. QuaternionFromCFrame(b)
  3874. }
  3875. local ax, ay, az = a.x, a.y, a.z
  3876. local bx, by, bz = b.x, b.y, b.z
  3877. local _t = 1 - t
  3878. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  3879. end
  3880. swait()
  3881. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  3882. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  3883. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  3884. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  3885. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  3886. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  3887. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  3888. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  3889. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  3890. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  3891. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  3892. for i, v in pairs(Character:GetChildren()) do
  3893. if v:IsA("Accoutrement") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("CharacterMesh") then
  3894. v:Destroy()
  3895. elseif v:IsA("Part") and v.Name == "Head" then
  3896. v.face.Texture = "rbxassetid://508723120"
  3897. end
  3898. end
  3899. shirt = Instance.new("Shirt", Character)
  3900. pants = Instance.new("Pants", Character)
  3901. shirt.ShirtTemplate = "rbxassetid://393560409"
  3902. pants.PantsTemplate = "rbxassetid://393560652"
  3903. Character["Body Colors"].HeadColor = BrickColor.new("Medium stone grey")
  3904. Character["Body Colors"].TorsoColor = BrickColor.new("Medium stone grey")
  3905. Character["Body Colors"].RightArmColor = BrickColor.new("Medium stone grey")
  3906. Character["Body Colors"].LeftArmColor = BrickColor.new("Medium stone grey")
  3907. Character["Body Colors"].RightLegColor = BrickColor.new("Medium stone grey")
  3908. Character["Body Colors"].LeftLegColor = BrickColor.new("Medium stone grey")
  3909. Humanoid.DisplayDistanceType = "None"
  3910.  
  3911.  
  3912.  
  3913. sine = 0
  3914. change = 1
  3915. sprint = false
  3916. local punches = {
  3917. a = false,
  3918. b = false,
  3919. c = false
  3920. }
  3921. UIService.InputBegan:connect(function(Input, GUIProcessed)
  3922. if not GUIProcessed and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  3923. if punches.a == false then
  3924. punches.a = true
  3925. wait(0.4)
  3926. punches.a = false
  3927. else
  3928. punches.a = true
  3929. if punches.b == false then
  3930. punches.b = true
  3931. wait(0.4)
  3932. punches.b = false
  3933. else
  3934. punches.b = true
  3935. if punches.c == false then
  3936. punches.c = true
  3937. wait(0.4)
  3938. punches.c = false
  3939. else
  3940. punches.c = true
  3941. end
  3942. end
  3943. end
  3944. elseif not GUIProcessed and Input.KeyCode == Enum.KeyCode.LeftShift then
  3945. sprint = true
  3946. end
  3947. end)
  3948. Humanoid.Died:connect(function()
  3949. Theme:Destroy()
  3950. for i, v in pairs(Character:GetChildren()) do
  3951. if v:IsA("Part") or v:IsA("Accessory") then
  3952. v:Destroy()
  3953. end
  3954. end
  3955. end)
  3956. UIService.InputEnded:connect(function(Input, GUIProcessed)
  3957. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.LeftShift then
  3958. sprint = false
  3959. end
  3960. end)
  3961. coroutine.wrap(function()
  3962. while true do
  3963. if sprint == false then
  3964. if attack2 == false and crouching == false then
  3965. Humanoid.WalkSpeed = 8
  3966. Humanoid.JumpPower = 50
  3967. elseif attack2 == true or crouching == true then
  3968. Humanoid.WalkSpeed = 0
  3969. Humanoid.JumpPower = 0
  3970. end
  3971. elseif sprint == true then
  3972. if attack2 == false and crouching == false then
  3973. Humanoid.WalkSpeed = 25
  3974. Humanoid.JumpPower = 100
  3975. elseif attack2 == true or crouching == true then
  3976. Humanoid.WalkSpeed = 0
  3977. Humanoid.JumpPower = 0
  3978. end
  3979. end
  3980. wait()
  3981. end
  3982. end)()
  3983. game:GetService("RunService").RenderStepped:connect(function()
  3984. Angle = Angle % 100 + angleSpeed / 10
  3985. Axis = Axis % 100 + axisSpeed / 10
  3986. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  3987. jumpVel = Torso.Velocity.Y
  3988. sine = change + sine
  3989. if jumpVel > 1 then
  3990. currentAnim = "Jumping"
  3991. elseif jumpVel < -1 then
  3992. currentAnim = "Falling"
  3993. elseif walkingMagnitude < 2 then
  3994. currentAnim = "Idling"
  3995. elseif isSprinting == true then
  3996. currentAnim = "Sprinting"
  3997. elseif walkingMagnitude > 2 then
  3998. currentAnim = "Walking"
  3999. elseif isAttacking == true then
  4000. currentAnim = "Attacking"
  4001. end
  4002. if currentAnim == "Jumping" and Animations == false then
  4003. angleSpeed = 2
  4004. axisSpeed = 2
  4005. change = 0.5
  4006. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(15), math.rad(0), math.rad(20)), 0.15)
  4007. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.15)
  4008. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  4009. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4010. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4011. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  4012. elseif currentAnim == "Falling" and Animations == false then
  4013. if transformed == false then
  4014. angleSpeed = 2
  4015. axisSpeed = 2
  4016. change = 0.5
  4017. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(25)), 0.15)
  4018. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-25)), 0.15)
  4019. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4020. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  4021. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  4022. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4023. elseif transformed == true and transformed2 == false then
  4024. angleSpeed = 2
  4025. axisSpeed = 2
  4026. change = 0.5
  4027. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(80)), 0.15)
  4028. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-25)), 0.15)
  4029. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4030. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  4031. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  4032. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4033. elseif transformed == true and transformed2 == true then
  4034. angleSpeed = 2
  4035. axisSpeed = 2
  4036. change = 0.5
  4037. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(80)), 0.15)
  4038. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-80)), 0.15)
  4039. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4040. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  4041. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  4042. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  4043. end
  4044. elseif currentAnim == "Idling" and Animations == false then
  4045. if transformed == false then
  4046. angleSpeed = 1
  4047. axisSpeed = 1
  4048. change = 0.5
  4049. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.15)
  4050. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  4051. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4052. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4053. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  4054. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-20) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  4055. elseif transformed == true and transformed2 == false then
  4056. angleSpeed = 1
  4057. axisSpeed = 1
  4058. change = 0.5
  4059. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  4060. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  4061. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  4062. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  4063. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  4064. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  4065. elseif transformed == true and transformed2 == true then
  4066. angleSpeed = 1
  4067. axisSpeed = 1
  4068. change = 0.5
  4069. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  4070. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(50) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-50) - math.sin(sine / 15) / 10), 0.15)
  4071. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  4072. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  4073. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  4074. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  4075. end
  4076. elseif currentAnim == "Walking" and Animations == false then
  4077. if transformed == false then
  4078. if sprint == false then
  4079. angleSpeed = 1
  4080. axisSpeed = 1
  4081. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  4082. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  4083. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4084. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4085. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  4086. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  4087. else
  4088. angleSpeed = 10
  4089. axisSpeed = 10
  4090. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(10)), 0.15)
  4091. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(-10)), 0.15)
  4092. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4093. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4094. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  4095. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  4096. end
  4097. elseif transformed == true and transformed2 == false then
  4098. if sprint == false then
  4099. angleSpeed = 1
  4100. axisSpeed = 1
  4101. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  4102. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  4103. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4104. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4105. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  4106. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  4107. else
  4108. angleSpeed = 10
  4109. axisSpeed = 10
  4110. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(20) + math.sin(sine / 3) / 10), 0.15)
  4111. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(-10)), 0.15)
  4112. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4113. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4114. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  4115. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  4116. end
  4117. elseif transformed == true and transformed2 == true then
  4118. if sprint == false then
  4119. angleSpeed = 1
  4120. axisSpeed = 1
  4121. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  4122. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-50) - math.sin(sine / 15) / 10), 0.15)
  4123. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4124. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  4125. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  4126. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  4127. else
  4128. angleSpeed = 10
  4129. axisSpeed = 10
  4130. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(20) + math.sin(sine / 3) / 10), 0.15)
  4131. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(-20) - math.sin(sine / 3) / 10), 0.15)
  4132. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4133. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  4134. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  4135. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  4136. end
  4137. end
  4138. end
  4139. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement