Advertisement
nargon10

Untitled

May 25th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. ----------------------------------
  149.  
  150. --Made by goodguyaiden------------
  151. --Infinity war gauntlet-----------
  152. --prob my biggest project---------
  153. --sorry i couldnt do reality------
  154.  
  155. ----------------------------------
  156.  
  157. wait(0.2)
  158. plr = game.Players.LocalPlayer
  159. repeat wait() until plr.Character
  160. char = plr.Character
  161. local mouse = plr:GetMouse()
  162. local Player = game:service'Players'.localPlayer
  163. local chara = Player.Character
  164. Player=game:GetService("Players").LocalPlayer
  165. Character=Player.Character
  166. PlayerGui=Player.PlayerGui
  167. Backpack=Player.Backpack
  168. Torso=Character.Torso
  169. Head=Character.Head
  170. Humanoid=Character.Humanoid
  171. m=Instance.new('Model',Character)
  172. LeftArm=Character["Left Arm"]
  173. LeftLeg=Character["Left Leg"]
  174. RightArm=Character["Right Arm"]
  175. RightLeg=Character["Right Leg"]
  176. LS=Torso["Left Shoulder"]
  177. LH=Torso["Left Hip"]
  178. RS=Torso["Right Shoulder"]
  179. RH=Torso["Right Hip"]
  180. Face = Head.face
  181. Neck=Torso.Neck
  182. it=Instance.new
  183. attacktype=1
  184. vt=Vector3.new
  185. cf=CFrame.new
  186. cl3=Color3.new
  187. rgb=Color3.fromRGB
  188. bcn=BrickColor.new
  189. euler=CFrame.fromEulerAnglesXYZ
  190. angles=CFrame.Angles
  191. Humanoid.WalkSpeed = 16
  192. Player = game:GetService("Players").LocalPlayer
  193. PlayerGui = Player.PlayerGui
  194. Cam = workspace.CurrentCamera
  195. Backpack = Player.Backpack
  196. Character = Player.Character
  197. Humanoid = Character.Humanoid
  198. Mouse = Player:GetMouse()
  199. RootPart = Character["HumanoidRootPart"]
  200. Torso = Character["Torso"]
  201. Head = Character["Head"]
  202. RightArm = Character["Right Arm"]
  203. LeftArm = Character["Left Arm"]
  204. RightLeg = Character["Right Leg"]
  205. LeftLeg = Character["Left Leg"]
  206. RootJoint = RootPart["RootJoint"]
  207. Neck = Torso["Neck"]
  208. RightShoulder = Torso["Right Shoulder"]
  209. LeftShoulder = Torso["Left Shoulder"]
  210. RightHip = Torso["Right Hip"]
  211. LeftHip = Torso["Left Hip"]
  212. pumpk = Instance.new("Sound")
  213. pumpk.Parent = game.Players.LocalPlayer.Character.Head
  214. pumpk.SoundId = "rbxassetid://1771675015"
  215. pumpk.Volume = 2
  216. pumpk.Looped = true
  217. pumpk:Play()
  218. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 99999999999999999
  219. game.Players.LocalPlayer.Character.Humanoid.Health = 99999999999999
  220.  
  221. IT = Instance.new
  222. CF = CFrame.new
  223. VT = Vector3.new
  224. RAD = math.rad
  225. C3 = Color3.new
  226. UD2 = UDim2.new
  227. BRICKC = BrickColor.new
  228. ANGLES = CFrame.Angles
  229. EULER = CFrame.fromEulerAnglesXYZ
  230. COS = math.cos
  231. ACOS = math.acos
  232. SIN = math.sin
  233. ASIN = math.asin
  234. ABS = math.abs
  235. MRANDOM = math.random
  236. FLOOR = math.floor
  237. Animation_Speed = 3
  238. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  239. local Speed = 12
  240. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  241. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  242. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  243. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  244. local DAMAGEMULTIPLIER = 1
  245. local ANIM = "Idle"
  246. local ATTACK = false
  247. local EQUIPPED = false
  248. local HOLD = false
  249. local COMBO = 1
  250. local Rooted = false
  251. local SINE = 0
  252. local KEYHOLD = false
  253. local CHANGE = 2 / Animation_Speed
  254. local WALKINGANIM = false
  255. local VALUE1 = false
  256. local VALUE2 = false
  257. local ROBLOXIDLEANIMATION = IT("Animation")
  258. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  259. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  260. --ROBLOXIDLEANIMATION.Parent = Humanoid
  261. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  262. WEAPONGUI.Name = "Weapon GUI"
  263. local Weapon = IT("Model")
  264. Weapon.Name = "Adds"
  265. local Effects = IT("Folder", Weapon)
  266. Effects.Name = "Effects"
  267. local ANIMATOR = Humanoid.Animator
  268. local ANIMATE = Character.Animate
  269. local UNANCHOR = true
  270. local PLAYANIMS = true
  271. ArtificialHB = Instance.new("BindableEvent", script)
  272. ArtificialHB.Name = "ArtificialHB"
  273.  
  274.  
  275. Player_Size = 1 --Size of the player.
  276. Animation_Speed = 3
  277. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  278.  
  279. local Speed = 16
  280. local Effects2 = {}
  281.  
  282.  
  283.  
  284. script:WaitForChild("ArtificialHB")
  285.  
  286. frame = Frame_Speed
  287. tf = 0
  288. allowframeloss = false
  289. tossremainder = false
  290. lastframe = tick()
  291. script.ArtificialHB:Fire()
  292.  
  293. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  294. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  295. end
  296.  
  297. function PositiveAngle(NUMBER)
  298. if NUMBER >= 0 then
  299. NUMBER = 0
  300. end
  301. return NUMBER
  302. end
  303.  
  304. function NegativeAngle(NUMBER)
  305. if NUMBER <= 0 then
  306. NUMBER = 0
  307. end
  308. return NUMBER
  309. end
  310.  
  311. function Swait(NUMBER)
  312. if NUMBER == 0 or NUMBER == nil then
  313. ArtificialHB.Event:wait()
  314. else
  315. for i = 1, NUMBER do
  316. ArtificialHB.Event:wait()
  317. end
  318. end
  319. end
  320.  
  321. function QuaternionFromCFrame(cf)
  322. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  323. local trace = m00 + m11 + m22
  324. if trace > 0 then
  325. local s = math.sqrt(1 + trace)
  326. local recip = 0.5 / s
  327. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  328. else
  329. local i = 0
  330. if m11 > m00 then
  331. i = 1
  332. end
  333. if m22 > (i == 0 and m00 or m11) then
  334. i = 2
  335. end
  336. if i == 0 then
  337. local s = math.sqrt(m00 - m11 - m22 + 1)
  338. local recip = 0.5 / s
  339. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  340. elseif i == 1 then
  341. local s = math.sqrt(m11 - m22 - m00 + 1)
  342. local recip = 0.5 / s
  343. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  344. elseif i == 2 then
  345. local s = math.sqrt(m22 - m00 - m11 + 1)
  346. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  347. end
  348. end
  349. end
  350.  
  351. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  352. local xs, ys, zs = x + x, y + y, z + z
  353. local wx, wy, wz = w * xs, w * ys, w * zs
  354. local xx = x * xs
  355. local xy = x * ys
  356. local xz = x * zs
  357. local yy = y * ys
  358. local yz = y * zs
  359. local zz = z * zs
  360. 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))
  361. end
  362.  
  363. function QuaternionSlerp(a, b, t)
  364. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  365. local startInterp, finishInterp;
  366. if cosTheta >= 0.0001 then
  367. if (1 - cosTheta) > 0.0001 then
  368. local theta = ACOS(cosTheta)
  369. local invSinTheta = 1 / SIN(theta)
  370. startInterp = SIN((1 - t) * theta) * invSinTheta
  371. finishInterp = SIN(t * theta) * invSinTheta
  372. else
  373. startInterp = 1 - t
  374. finishInterp = t
  375. end
  376. else
  377. if (1 + cosTheta) > 0.0001 then
  378. local theta = ACOS(-cosTheta)
  379. local invSinTheta = 1 / SIN(theta)
  380. startInterp = SIN((t - 1) * theta) * invSinTheta
  381. finishInterp = SIN(t * theta) * invSinTheta
  382. else
  383. startInterp = t - 1
  384. finishInterp = t
  385. end
  386. end
  387. 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
  388. end
  389.  
  390. function Clerp(a, b, t)
  391. local qa = {QuaternionFromCFrame(a)}
  392. local qb = {QuaternionFromCFrame(b)}
  393. local ax, ay, az = a.x, a.y, a.z
  394. local bx, by, bz = b.x, b.y, b.z
  395. local _t = 1 - t
  396. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  397. end
  398.  
  399. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  400. local frame = IT("Frame")
  401. frame.BackgroundTransparency = TRANSPARENCY
  402. frame.BorderSizePixel = BORDERSIZEPIXEL
  403. frame.Position = POSITION
  404. frame.Size = SIZE
  405. frame.BackgroundColor3 = COLOR
  406. frame.BorderColor3 = BORDERCOLOR
  407. frame.Name = NAME
  408. frame.Parent = PARENT
  409. return frame
  410. end
  411.  
  412. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  413. local label = IT("TextLabel")
  414. label.BackgroundTransparency = 1
  415. label.Size = UD2(1, 0, 1, 0)
  416. label.Position = UD2(0, 0, 0, 0)
  417. label.TextColor3 = TEXTCOLOR
  418. label.TextStrokeTransparency = STROKETRANSPARENCY
  419. label.TextTransparency = TRANSPARENCY
  420. label.FontSize = TEXTFONTSIZE
  421. label.Font = TEXTFONT
  422. label.BorderSizePixel = BORDERSIZEPIXEL
  423. label.TextScaled = false
  424. label.Text = TEXT
  425. label.Name = NAME
  426. label.Parent = PARENT
  427. return label
  428. end
  429.  
  430. function NoOutlines(PART)
  431. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  432. end
  433.  
  434.  
  435. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  436. local NEWWELD = IT(TYPE)
  437. NEWWELD.Part0 = PART0
  438. NEWWELD.Part1 = PART1
  439. NEWWELD.C0 = C0
  440. NEWWELD.C1 = C1
  441. NEWWELD.Parent = PARENT
  442. return NEWWELD
  443. end
  444.  
  445. local S = IT("Sound")
  446.  
  447. function CreateSound(ID, PARENT, VOLUME, PITCH)
  448. local NEWSOUND = nil
  449. coroutine.resume(coroutine.create(function()
  450. NEWSOUND = S:Clone()
  451. NEWSOUND.Parent = PARENT
  452. NEWSOUND.Volume = VOLUME
  453. NEWSOUND.Pitch = PITCH
  454. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  455. Swait()
  456. NEWSOUND:play()
  457. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  458. end))
  459. return NEWSOUND
  460. end
  461.  
  462. function CFrameFromTopBack(at, top, back)
  463. local right = top:Cross(back)
  464. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  465. end
  466.  
  467. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  468. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  469. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  470. wave.CFrame = CFRAME
  471. coroutine.resume(coroutine.create(function(PART)
  472. for i = 1, WAIT do
  473. Swait()
  474. mesh.Scale = mesh.Scale + GROW
  475. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  476. if DOESROT == true then
  477. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  478. end
  479. wave.Transparency = wave.Transparency + (0.5/WAIT)
  480. if wave.Transparency > 0.99 then
  481. wave:remove()
  482. end
  483. end
  484. end))
  485. end
  486.  
  487. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  488. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  489. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  490. wave.CFrame = CFRAME
  491. coroutine.resume(coroutine.create(function(PART)
  492. for i = 1, WAIT do
  493. Swait()
  494. mesh.Scale = mesh.Scale + GROW
  495. if DOESROT == true then
  496. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  497. end
  498. wave.Transparency = wave.Transparency + (0.5/WAIT)
  499. if wave.Transparency > 0.99 then
  500. wave:remove()
  501. end
  502. end
  503. end))
  504. end
  505.  
  506. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  507. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  508. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  509. wave.CFrame = CFRAME
  510. coroutine.resume(coroutine.create(function(PART)
  511. for i = 1, WAIT do
  512. Swait()
  513. mesh.Scale = mesh.Scale + GROW
  514. wave.Transparency = wave.Transparency + (1/WAIT)
  515. if wave.Transparency > 0.99 then
  516. wave:remove()
  517. end
  518. end
  519. end))
  520. end
  521.  
  522. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  523. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  524. local mesh = nil
  525. if KIND == "Base" then
  526. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  527. elseif KIND == "Thin" then
  528. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  529. elseif KIND == "Round" then
  530. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  531. end
  532. wave.CFrame = CFRAME
  533. coroutine.resume(coroutine.create(function(PART)
  534. for i = 1, WAIT do
  535. Swait()
  536. mesh.Scale = mesh.Scale + GROW/10
  537. wave.Transparency = wave.Transparency + (0.5/WAIT)
  538. if wave.Transparency > 0.99 then
  539. wave:remove()
  540. end
  541. end
  542. end))
  543. end
  544.  
  545. function MakeForm(PART,TYPE)
  546. if TYPE == "Cyl" then
  547. local MSH = IT("CylinderMesh",PART)
  548. elseif TYPE == "Ball" then
  549. local MSH = IT("SpecialMesh",PART)
  550. MSH.MeshType = "Sphere"
  551. elseif TYPE == "Wedge" then
  552. local MSH = IT("SpecialMesh",PART)
  553. MSH.MeshType = "Wedge"
  554. end
  555. end
  556.  
  557.  
  558. function CheckTableForString(Table, String)
  559. for i, v in pairs(Table) do
  560. if string.find(string.lower(String), string.lower(v)) then
  561. return true
  562. end
  563. end
  564. return false
  565. end
  566.  
  567. function CheckIntangible(Hit)
  568. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  569. if Hit and Hit.Parent then
  570. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  571. return true
  572. end
  573. end
  574. return false
  575. end
  576.  
  577. Debris = game:GetService("Debris")
  578.  
  579. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  580. local Direction = CFrame.new(StartPos, Vec).lookVector
  581. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  582. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  583. if RayHit and CheckIntangible(RayHit) then
  584. if DelayIfHit then
  585. wait()
  586. end
  587. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  588. end
  589. return RayHit, RayPos, RayNormal
  590. end
  591.  
  592. function turnto(position)
  593. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  594. end
  595.  
  596.  
  597.  
  598. game:GetService("RunService").Heartbeat:connect(function(s, p)
  599. tf = tf + s
  600. if tf >= frame then
  601. if allowframeloss then
  602. script.ArtificialHB:Fire()
  603. lastframe = tick()
  604. else
  605. for i = 1, math.floor(tf / frame) do
  606. script.ArtificialHB:Fire()
  607. end
  608. lastframe = tick()
  609. end
  610. if tossremainder then
  611. tf = 0
  612. else
  613. tf = tf - frame * math.floor(tf / frame)
  614. end
  615. end
  616. end)
  617. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  618. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  619. end
  620.  
  621. function PositiveAngle(NUMBER)
  622. if NUMBER >= 0 then
  623. NUMBER = 0
  624. end
  625. return NUMBER
  626. end
  627.  
  628. function NegativeAngle(NUMBER)
  629. if NUMBER <= 0 then
  630. NUMBER = 0
  631. end
  632. return NUMBER
  633. end
  634.  
  635. function Swait(NUMBER)
  636. if NUMBER == 0 or NUMBER == nil then
  637. ArtificialHB.Event:wait()
  638. else
  639. for i = 1, NUMBER do
  640. ArtificialHB.Event:wait()
  641. end
  642. end
  643. end
  644.  
  645. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  646. local NEWMESH = IT(MESH)
  647. if MESH == "SpecialMesh" then
  648. NEWMESH.MeshType = MESHTYPE
  649. if MESHID ~= "nil" and MESHID ~= "" then
  650. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  651. end
  652. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  653. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  654. end
  655. end
  656. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  657. NEWMESH.Scale = SCALE
  658. NEWMESH.Parent = PARENT
  659. return NEWMESH
  660. end
  661.  
  662. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  663. local NEWPART = IT("Part")
  664. NEWPART.formFactor = FORMFACTOR
  665. NEWPART.Reflectance = REFLECTANCE
  666. NEWPART.Transparency = TRANSPARENCY
  667. NEWPART.CanCollide = false
  668. NEWPART.Locked = true
  669. NEWPART.Anchored = true
  670. if ANCHOR == false then
  671. NEWPART.Anchored = false
  672. end
  673. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  674. NEWPART.Name = NAME
  675. NEWPART.Size = SIZE
  676. NEWPART.Position = Torso.Position
  677. NEWPART.Material = MATERIAL
  678. NEWPART:BreakJoints()
  679. NEWPART.Parent = PARENT
  680. return NEWPART
  681. end
  682.  
  683. local function weldBetween(a, b)
  684. local weldd = Instance.new("ManualWeld")
  685. weldd.Part0 = a
  686. weldd.Part1 = b
  687. weldd.C0 = CFrame.new()
  688. weldd.C1 = b.CFrame:inverse() * a.CFrame
  689. weldd.Parent = a
  690. return weldd
  691. end
  692.  
  693.  
  694. function QuaternionFromCFrame(cf)
  695. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  696. local trace = m00 + m11 + m22
  697. if trace > 0 then
  698. local s = math.sqrt(1 + trace)
  699. local recip = 0.5 / s
  700. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  701. else
  702. local i = 0
  703. if m11 > m00 then
  704. i = 1
  705. end
  706. if m22 > (i == 0 and m00 or m11) then
  707. i = 2
  708. end
  709. if i == 0 then
  710. local s = math.sqrt(m00 - m11 - m22 + 1)
  711. local recip = 0.5 / s
  712. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  713. elseif i == 1 then
  714. local s = math.sqrt(m11 - m22 - m00 + 1)
  715. local recip = 0.5 / s
  716. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  717. elseif i == 2 then
  718. local s = math.sqrt(m22 - m00 - m11 + 1)
  719. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  720. end
  721. end
  722. end
  723.  
  724. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  725. local xs, ys, zs = x + x, y + y, z + z
  726. local wx, wy, wz = w * xs, w * ys, w * zs
  727. local xx = x * xs
  728. local xy = x * ys
  729. local xz = x * zs
  730. local yy = y * ys
  731. local yz = y * zs
  732. local zz = z * zs
  733. 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))
  734. end
  735.  
  736. function QuaternionSlerp(a, b, t)
  737. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  738. local startInterp, finishInterp;
  739. if cosTheta >= 0.0001 then
  740. if (1 - cosTheta) > 0.0001 then
  741. local theta = ACOS(cosTheta)
  742. local invSinTheta = 1 / SIN(theta)
  743. startInterp = SIN((1 - t) * theta) * invSinTheta
  744. finishInterp = SIN(t * theta) * invSinTheta
  745. else
  746. startInterp = 1 - t
  747. finishInterp = t
  748. end
  749. else
  750. if (1 + cosTheta) > 0.0001 then
  751. local theta = ACOS(-cosTheta)
  752. local invSinTheta = 1 / SIN(theta)
  753. startInterp = SIN((t - 1) * theta) * invSinTheta
  754. finishInterp = SIN(t * theta) * invSinTheta
  755. else
  756. startInterp = t - 1
  757. finishInterp = t
  758. end
  759. end
  760. 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
  761. end
  762.  
  763. function Clerp(a, b, t)
  764. local qa = {QuaternionFromCFrame(a)}
  765. local qb = {QuaternionFromCFrame(b)}
  766. local ax, ay, az = a.x, a.y, a.z
  767. local bx, by, bz = b.x, b.y, b.z
  768. local _t = 1 - t
  769. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  770. end
  771.  
  772. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  773. local frame = IT("Frame")
  774. frame.BackgroundTransparency = TRANSPARENCY
  775. frame.BorderSizePixel = BORDERSIZEPIXEL
  776. frame.Position = POSITION
  777. frame.Size = SIZE
  778. frame.BackgroundColor3 = COLOR
  779. frame.BorderColor3 = BORDERCOLOR
  780. frame.Name = NAME
  781. frame.Parent = PARENT
  782. return frame
  783. end
  784.  
  785. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  786. local label = IT("TextLabel")
  787. label.BackgroundTransparency = 1
  788. label.Size = UD2(1, 0, 1, 0)
  789. label.Position = UD2(0, 0, 0, 0)
  790. label.TextColor3 = TEXTCOLOR
  791. label.TextStrokeTransparency = STROKETRANSPARENCY
  792. label.TextTransparency = TRANSPARENCY
  793. label.FontSize = TEXTFONTSIZE
  794. label.Font = TEXTFONT
  795. label.BorderSizePixel = BORDERSIZEPIXEL
  796. label.TextScaled = false
  797. label.Text = TEXT
  798. label.Name = NAME
  799. label.Parent = PARENT
  800. return label
  801. end
  802.  
  803. function NoOutlines(PART)
  804. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  805. end
  806.  
  807. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  808. local NEWWELD = IT(TYPE)
  809. NEWWELD.Part0 = PART0
  810. NEWWELD.Part1 = PART1
  811. NEWWELD.C0 = C0
  812. NEWWELD.C1 = C1
  813. NEWWELD.Parent = PARENT
  814. return NEWWELD
  815. end
  816.  
  817. local S = IT("Sound")
  818. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  819. local NEWSOUND = nil
  820. coroutine.resume(coroutine.create(function()
  821. NEWSOUND = S:Clone()
  822. NEWSOUND.Parent = PARENT
  823. NEWSOUND.Volume = VOLUME
  824. NEWSOUND.Pitch = PITCH
  825. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  826. NEWSOUND:play()
  827. if DOESLOOP == true then
  828. NEWSOUND.Looped = true
  829. else
  830. repeat wait(1) until NEWSOUND.Playing == false
  831. NEWSOUND:remove()
  832. end
  833. end))
  834. return NEWSOUND
  835. end
  836.  
  837. function MakeForm(PART,TYPE)
  838. if TYPE == "Cyl" then
  839. local MSH = IT("CylinderMesh",PART)
  840. elseif TYPE == "Ball" then
  841. local MSH = IT("SpecialMesh",PART)
  842. MSH.MeshType = "Sphere"
  843. elseif TYPE == "Wedge" then
  844. local MSH = IT("SpecialMesh",PART)
  845. MSH.MeshType = "Wedge"
  846. end
  847. end
  848.  
  849. function CFrameFromTopBack(at, top, back)
  850. local right = top:Cross(back)
  851. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  852. end
  853.  
  854. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  855. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  856. if HITFLOOR ~= nil then
  857. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  858. if HITFLOOR.Name == "BloodPuddle" then
  859. local DIST = (Position - HITFLOOR.Position).Magnitude
  860. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  861. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  862. end
  863. else
  864. if HITFLOOR.Anchored == true then
  865. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  866. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  867. MakeForm(BLOOD,"Cyl")
  868. coroutine.resume(coroutine.create(function()
  869. Swait(75)
  870. while true do
  871. Swait()
  872. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  873. if BLOOD.Size.Z < 0.051 then
  874. BLOOD:remove()
  875. break
  876. end
  877. end
  878. end))
  879. end
  880. end
  881. end
  882. end
  883. end
  884.  
  885. function SprayBlood(POSITION,DIRECTION,BloodSize)
  886. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  887. BLOOD.CFrame = CF(POSITION)
  888. MakeForm(BLOOD,"Ball")
  889. local bv = Instance.new("BodyVelocity",BLOOD)
  890. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  891. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  892. bv.Name = "MOVE"
  893. Debris:AddItem(bv,0.05)
  894. coroutine.resume(coroutine.create(function()
  895. local HASTOUCHEDGROUND = false
  896. local HIT = BLOOD.Touched:Connect(function(hit)
  897. if hit.Anchored == true then
  898. HASTOUCHEDGROUND = true
  899. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  900. end
  901. end)
  902. wait(5)
  903. if HASTOUCHEDGROUND == false then
  904. BLOOD:remove()
  905. end
  906. end))
  907. end
  908.  
  909. Debris = game:GetService("Debris")
  910.  
  911. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  912. local DIRECTION = CF(StartPos,EndPos).lookVector
  913. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  914. end
  915.  
  916. function turnto(position)
  917. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  918. end
  919.  
  920. function recurse(root,callback,i)
  921. i= i or 0
  922. for _,v in pairs(root:GetChildren()) do
  923. i = i + 1
  924. callback(i,v)
  925.  
  926. if #v:GetChildren() > 0 then
  927. i = recurse(v,callback,i)
  928. end
  929. end
  930.  
  931. return i
  932. end
  933.  
  934. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  935. attachmentName = attachmentName.."RigAttachment"
  936. local constraint = Instance.new(className.."Constraint")
  937. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  938. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  939. constraint.Name = "RagdollConstraint"..part1.Name
  940.  
  941. for _,propertyData in next,properties or {} do
  942. constraint[propertyData[1]] = propertyData[2]
  943. end
  944.  
  945. constraint.Parent = character
  946. end
  947.  
  948. function getAttachment0(character, attachmentName)
  949. for _,child in next,character:GetChildren() do
  950. local attachment = child:FindFirstChild(attachmentName)
  951. if attachment then
  952. return attachment
  953. end
  954. end
  955. end
  956.  
  957. function R15Ragdoll(character)
  958. recurse(character, function(_,v)
  959. if v:IsA("Attachment") then
  960. v.Axis = Vector3.new(0, 1, 0)
  961. v.SecondaryAxis = Vector3.new(0, 0, 1)
  962. v.Rotation = Vector3.new(0, 0, 0)
  963. end
  964. end)
  965. for _,child in next,character:GetChildren() do
  966. if child:IsA("Accoutrement") then
  967. for _,part in next,child:GetChildren() do
  968. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  969. local attachment1 = part:FindFirstChildOfClass("Attachment")
  970. local attachment0 = getAttachment0(character,attachment1.Name)
  971. if attachment0 and attachment1 then
  972. local constraint = Instance.new("HingeConstraint")
  973. constraint.Attachment0 = attachment0
  974. constraint.Attachment1 = attachment1
  975. constraint.LimitsEnabled = true
  976. constraint.UpperAngle = 0
  977. constraint.LowerAngle = 0
  978. constraint.Parent = character
  979. end
  980. elseif part.Name == "HumanoidRootPart" then
  981. part:remove()
  982. end
  983. end
  984. end
  985. end
  986.  
  987. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  988. {"LimitsEnabled",true};
  989. {"UpperAngle",5};
  990. })
  991. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  992. {"LimitsEnabled",true};
  993. {"UpperAngle",15};
  994. })
  995.  
  996. local handProperties = {
  997. {"LimitsEnabled", true};
  998. {"UpperAngle",0};
  999. {"LowerAngle",0};
  1000. }
  1001. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1002. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1003.  
  1004. local shinProperties = {
  1005. {"LimitsEnabled", true};
  1006. {"UpperAngle", 0};
  1007. {"LowerAngle", -75};
  1008. }
  1009. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1010. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1011.  
  1012. local footProperties = {
  1013. {"LimitsEnabled", true};
  1014. {"UpperAngle", 15};
  1015. {"LowerAngle", -45};
  1016. }
  1017. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1018. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1019.  
  1020. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1021. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1022. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1023. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1024. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1025. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1026. end
  1027.  
  1028. function Ragdoll(Character2,CharTorso)
  1029. Character2:BreakJoints()
  1030. local hum = Character2:findFirstChild("Humanoid")
  1031. hum:remove()
  1032. local function Scan(ch)
  1033. local e
  1034. for e = 1,#ch do
  1035. Scan(ch[e]:GetChildren())
  1036. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1037. ch[e]:remove()
  1038. end
  1039. end
  1040. end
  1041. local NEWHUM = IT("Humanoid")
  1042. NEWHUM.Name = "Corpse"
  1043. NEWHUM.Health = 0
  1044. NEWHUM.MaxHealth = 0
  1045. NEWHUM.PlatformStand = true
  1046. NEWHUM.Parent = Character2
  1047. NEWHUM.DisplayDistanceType = "None"
  1048.  
  1049. local ch = Character2:GetChildren()
  1050. local i
  1051. for i = 1,#ch do
  1052. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1053. ch[i]:remove()
  1054. end
  1055. end
  1056.  
  1057. local Torso2 = Character2.Torso
  1058. local movevector = Vector3.new()
  1059.  
  1060. if Torso2 then
  1061. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1062. local Head = Character2:FindFirstChild("Head")
  1063. if Head then
  1064. local Neck = Instance.new("Weld")
  1065. Neck.Name = "Neck"
  1066. Neck.Part0 = Torso2
  1067. Neck.Part1 = Head
  1068. Neck.C0 = CFrame.new(0, 1.5, 0)
  1069. Neck.C1 = CFrame.new()
  1070. Neck.Parent = Torso2
  1071.  
  1072. end
  1073. local Limb = Character2:FindFirstChild("Right Arm")
  1074. if Limb then
  1075.  
  1076. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1077. local Joint = Instance.new("Glue")
  1078. Joint.Name = "RightShoulder"
  1079. Joint.Part0 = Torso2
  1080. Joint.Part1 = Limb
  1081. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1082. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1083. Joint.Parent = Torso2
  1084.  
  1085. local B = Instance.new("Part")
  1086. B.TopSurface = 0
  1087. B.BottomSurface = 0
  1088. B.formFactor = "Symmetric"
  1089. B.Size = Vector3.new(1, 1, 1)
  1090. B.Transparency = 1
  1091. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1092. B.Parent = Character2
  1093. local W = Instance.new("Weld")
  1094. W.Part0 = Limb
  1095. W.Part1 = B
  1096. W.C0 = CFrame.new(0, -0.5, 0)
  1097. W.Parent = Limb
  1098.  
  1099. end
  1100. local Limb = Character2:FindFirstChild("Left Arm")
  1101. if Limb then
  1102.  
  1103. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1104. local Joint = Instance.new("Glue")
  1105. Joint.Name = "LeftShoulder"
  1106. Joint.Part0 = Torso2
  1107. Joint.Part1 = Limb
  1108. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1109. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1110. Joint.Parent = Torso2
  1111.  
  1112. local B = Instance.new("Part")
  1113. B.TopSurface = 0
  1114. B.BottomSurface = 0
  1115. B.formFactor = "Symmetric"
  1116. B.Size = Vector3.new(1, 1, 1)
  1117. B.Transparency = 1
  1118. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1119. B.Parent = Character2
  1120. local W = Instance.new("Weld")
  1121. W.Part0 = Limb
  1122. W.Part1 = B
  1123. W.C0 = CFrame.new(0, -0.5, 0)
  1124. W.Parent = Limb
  1125.  
  1126. end
  1127. local Limb = Character2:FindFirstChild("Right Leg")
  1128. if Limb then
  1129.  
  1130. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1131. local Joint = Instance.new("Glue")
  1132. Joint.Name = "RightHip"
  1133. Joint.Part0 = Torso2
  1134. Joint.Part1 = Limb
  1135. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1136. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1137. Joint.Parent = Torso2
  1138.  
  1139. local B = Instance.new("Part")
  1140. B.TopSurface = 0
  1141. B.BottomSurface = 0
  1142. B.formFactor = "Symmetric"
  1143. B.Size = Vector3.new(1, 1, 1)
  1144. B.Transparency = 1
  1145. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1146. B.Parent = Character2
  1147. local W = Instance.new("Weld")
  1148. W.Part0 = Limb
  1149. W.Part1 = B
  1150. W.C0 = CFrame.new(0, -0.5, 0)
  1151. W.Parent = Limb
  1152.  
  1153. end
  1154. local Limb = Character2:FindFirstChild("Left Leg")
  1155. if Limb then
  1156.  
  1157. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1158. local Joint = Instance.new("Glue")
  1159. Joint.Name = "LeftHip"
  1160. Joint.Part0 = Torso2
  1161. Joint.Part1 = Limb
  1162. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1163. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1164. Joint.Parent = Torso2
  1165.  
  1166. local B = Instance.new("Part")
  1167. B.TopSurface = 0
  1168. B.BottomSurface = 0
  1169. B.formFactor = "Symmetric"
  1170. B.Size = Vector3.new(1, 1, 1)
  1171. B.Transparency = 1
  1172. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1173. B.Parent = Character2
  1174. local W = Instance.new("Weld")
  1175. W.Part0 = Limb
  1176. W.Part1 = B
  1177. W.C0 = CFrame.new(0, -0.5, 0)
  1178. W.Parent = Limb
  1179.  
  1180. end
  1181. --[
  1182. local Bar = Instance.new("Part")
  1183. Bar.TopSurface = 0
  1184. Bar.BottomSurface = 0
  1185. Bar.formFactor = "Symmetric"
  1186. Bar.Size = Vector3.new(1, 1, 1)
  1187. Bar.Transparency = 1
  1188. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1189. Bar.Parent = Character2
  1190. local Weld = Instance.new("Weld")
  1191. Weld.Part0 = Torso2
  1192. Weld.Part1 = Bar
  1193. Weld.C0 = CFrame.new(0, 0.5, 0)
  1194. Weld.Parent = Torso2
  1195. --]]
  1196. end
  1197. Character2.Parent = workspace
  1198. Debris:AddItem(Character2,5)
  1199.  
  1200. return Character2,Torso2
  1201. end
  1202.  
  1203. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  1204. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "1757389224", "1757405356", VT(0.07,0.07,0.07), VT(0,0, 0))
  1205. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, LeftArm, Gun, CF(0.2, -1, 0.2) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
  1206.  
  1207. canworld = true
  1208.  
  1209. we = true
  1210.  
  1211. function time()
  1212. CreateSound("907330619", Head, 10, 1)
  1213. wait(1)
  1214. local function weld(lol)
  1215. local weld = Instance.new("Weld", plr.Character.Torso)
  1216. weld.Part0 = plr.Character.Torso
  1217. weld.Part1 = lol
  1218. weld.C0 = plr.Character.Torso.CFrame:inverse()
  1219. weld.C1 = lol.CFrame:inverse()
  1220. end
  1221. wait(1.4)
  1222.  
  1223. for i, v in pairs(game.Players:GetChildren()) do
  1224. t = v.Character:FindFirstChild("Torso")
  1225. if t then
  1226. t.Anchored = true
  1227. plr.Character:FindFirstChild("Torso").Anchored = false
  1228. end
  1229. RA = v.Character:FindFirstChild("Right Arm")
  1230. if RA then
  1231. RA.Anchored = true
  1232. plr.Character:FindFirstChild("Right Arm").Anchored = false
  1233. end
  1234. LA = v.Character:FindFirstChild("Left Arm")
  1235. if LA then
  1236. LA.Anchored = true
  1237. plr.Character:FindFirstChild("Left Arm").Anchored = false
  1238. end
  1239. RL = v.Character:FindFirstChild("Right Leg")
  1240. if RL then
  1241. RL.Anchored = true
  1242. plr.Character:FindFirstChild("Right Leg").Anchored = false
  1243. end
  1244. LL = v.Character:FindFirstChild("Left Leg")
  1245. if LL then
  1246. LL.Anchored = true
  1247. plr.Character:FindFirstChild("Left Leg").Anchored = false
  1248. end
  1249. end
  1250.  
  1251. game.Lighting.TimeOfDay="00:00:00"
  1252. game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
  1253. wait(0.1)
  1254. game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
  1255. wait(0.1)
  1256. game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
  1257. wait(0.1)
  1258. game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
  1259. wait(0.1)
  1260. game.Lighting.OutdoorAmbient=Color3.new(255, 255, 355)
  1261. wait(10)
  1262. for i, v in pairs(game.Players:GetChildren()) do
  1263. t = v.Character:FindFirstChild("Torso")
  1264. if t then
  1265. t.Anchored = false
  1266. end
  1267. RA = v.Character:FindFirstChild("Right Arm")
  1268. if RA then
  1269. RA.Anchored = false
  1270. end
  1271. LA = v.Character:FindFirstChild("Left Arm")
  1272. if LA then
  1273. LA.Anchored = false
  1274. end
  1275. RL = v.Character:FindFirstChild("Right Leg")
  1276. if RL then
  1277. RL.Anchored = false
  1278. end
  1279. LL = v.Character:FindFirstChild("Left Leg")
  1280. if LL then
  1281. LL.Anchored = false
  1282. end
  1283. end
  1284.  
  1285.  
  1286. game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
  1287. wait(0.1)
  1288. game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
  1289. wait(0.1)
  1290. game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
  1291. wait(0.1)
  1292. game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
  1293.  
  1294. game.Lighting.OutdoorAmbient=Color3.new(135/255, 135/255, 128/255)
  1295. game.Lighting.TimeOfDay="15:00:00"
  1296.  
  1297. end
  1298.  
  1299. function Space()
  1300. sky = Instance.new('Sky', game.Lighting)
  1301. sky.MoonTextureId = 'rbxasset://sky/moon.png'
  1302. sky.SkyboxBk = 'http://www.roblox.com/asset/?id=159248188'
  1303. sky.SkyboxDn = 'http://www.roblox.com/asset/?id=159248183'
  1304. sky.SkyboxFt = 'http://www.roblox.com/asset/?id=159248187'
  1305. sky.SkyboxLf = 'http://www.roblox.com/asset/?id=159248173'
  1306. sky.SkyboxRt = 'http://www.roblox.com/asset/?id=159248192'
  1307. sky.SkyboxUp = 'http://www.roblox.com/asset/?id=159248176'
  1308. sky.Name = 'Space'
  1309.  
  1310. for i,v in pairs(workspace:getChildren()) do
  1311. if v.ClassName == 'Part' and v.Name == 'Base' then
  1312. v.Transparency = 1
  1313. v.Size = Vector3.new(2048, 1, 2048)
  1314. end
  1315. end
  1316. workspace.Gravity = 10
  1317. end
  1318.  
  1319.  
  1320. function Space2()
  1321. sky = game.Lighting:findFirstChild('Space')
  1322. sky:Destroy()
  1323.  
  1324. for i,v in pairs(workspace:getChildren()) do
  1325. if v.ClassName == 'Part' and v.Name == 'Base' then
  1326. v.Transparency = 0
  1327. v.Size = Vector3.new(2048, 1, 2048)
  1328. end
  1329. end
  1330. workspace.Gravity = 196.5
  1331. end
  1332. function Mind()
  1333. ATTACK = true
  1334. Rooted = true
  1335. CreateSound("907332856", Head, 10, 1)
  1336. for i=0, 1, 0.1 / Animation_Speed do
  1337. Swait()
  1338. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1339. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1340. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1341. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1342. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1343. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1344. end
  1345. for i=0, 1, 0.1 / Animation_Speed do
  1346. Swait()
  1347. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1348. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1349. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1350. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1351. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1352. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1353. end
  1354. local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
  1355. local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "495572467", "495572476", VT(1,1,1), VT(0,0, 0))
  1356. local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1357. for i=0, 1, 0.1 / Animation_Speed do
  1358. Swait()
  1359. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1360. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1361. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1362. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1363. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1364. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1365. end
  1366. Wind:remove()
  1367. local broken = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "broken", VT(0, 0, 0),false)
  1368. local HandleMesh = CreateMesh("SpecialMesh", broken, "FileMesh", "926826971", "926827014", VT(1,1,1), VT(0,0, 0))
  1369. local Weld = CreateWeldOrSnapOrMotor("Weld", broken, Torso, broken, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1370. for i=0, 1, 0.1 / Animation_Speed do
  1371. Swait()
  1372. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1373. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1375. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1376. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1377. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1378. end
  1379. broken:remove()
  1380. ATTACK = false
  1381. Rooted = false
  1382. end
  1383.  
  1384. function power2()
  1385. we = true
  1386. ATTACK = true
  1387. Rooted = true
  1388. CreateSound("1843115950", Head, 10, 1)
  1389. for i=0, 1, 0.1 / Animation_Speed do
  1390. Swait()
  1391. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1392. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1393. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1394. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1395. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1396. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1397. end
  1398. for i=0, 1, 0.1 / Animation_Speed do
  1399. Swait()
  1400. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1401. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1402. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1403. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1404. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1405. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1406. end
  1407. local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
  1408. local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "433838302", "1031083476", VT(3,3,3), VT(0,0, 0))
  1409. local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -5) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1410. game.Players.LocalPlayer.Character["Wind"].Touched:connect(function(hit)
  1411. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1412. if we == true then
  1413. humanoid:TakeDamage(50)
  1414. end
  1415. end)
  1416. for i=0, 1, 0.1 / Animation_Speed do
  1417. Swait()
  1418. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1419. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1420. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1421. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1422. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1423. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1424. end
  1425. for i=0, 1, 0.1 / Animation_Speed do
  1426. Swait()
  1427. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1428. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1429. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1430. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1431. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1432. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1433. end
  1434. we = false
  1435. Wind:remove()
  1436. ATTACK = false
  1437. Rooted = false
  1438. end
  1439.  
  1440. function all_together_now()
  1441. ATTACK = true
  1442. Rooted = true
  1443. CreateSound("907329532", Head, 10, 1)
  1444. for i=0, 1, 0.1 / Animation_Speed do
  1445. Swait()
  1446. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1447. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1448. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1449. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1450. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1451. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1452. end
  1453. for i=0, 1, 0.1 / Animation_Speed do
  1454. Swait()
  1455. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1456. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1457. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1458. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1459. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1460. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1461. end
  1462. for i=0, 1, 0.1 / Animation_Speed do
  1463. Swait()
  1464. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1465. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1466. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1467. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1468. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1469. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1470. end
  1471. for i=0, 1, 0.1 / Animation_Speed do
  1472. Swait()
  1473. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1474. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1475. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1476. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1477. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1478. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1479. end
  1480. CreateSound("217767125", Head, 10, 1)
  1481. for i,v in pairs(workspace:GetChildren()) do
  1482. if v.ClassName == "Model" then
  1483. local human = v:FindFirstChildOfClass("Humanoid")
  1484. if human and human.Parent.Name ~= chara.Name then
  1485. human.Parent:BreakJoints()
  1486. end
  1487. end
  1488. end
  1489.  
  1490. for i=0, 1, 0.1 / Animation_Speed do
  1491. Swait()
  1492. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1493. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1494. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1495. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1496. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1497. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1498. end
  1499. CreateSound("907333294", Head, 10, 1)
  1500. for i=0, 1, 0.1 / Animation_Speed do
  1501. Swait()
  1502. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1503. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1504. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1505. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1506. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1507. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1508. end
  1509. for i=0, 1, 0.1 / Animation_Speed do
  1510. Swait()
  1511. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1512. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1513. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1514. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1515. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1516. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1517. end
  1518. for i=0, 1, 0.1 / Animation_Speed do
  1519. Swait()
  1520. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1521. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1522. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1523. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1524. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1525. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1526. end
  1527. ATTACK = false
  1528. Rooted = false
  1529. end
  1530.  
  1531. function Taunt()
  1532. ATTACK = true
  1533. Rooted = true
  1534. CreateSound("907331038", Head, 10, 1)
  1535. for i=0, 1, 0.1 / Animation_Speed do
  1536. Swait()
  1537. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1538. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1539. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1540. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1541. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1542. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1543. end
  1544. for i=0, 1, 0.1 / Animation_Speed do
  1545. Swait()
  1546. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1547. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1548. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1549. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1550. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1551. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1552. end
  1553. for i=0, 1, 0.1 / Animation_Speed do
  1554. Swait()
  1555. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1556. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1557. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1558. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1559. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1560. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1561. end
  1562. for i=0, 1, 0.1 / Animation_Speed do
  1563. Swait()
  1564. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1565. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1566. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1567. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1568. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1569. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1570. end
  1571. ATTACK = false
  1572. Rooted = false
  1573. end
  1574.  
  1575. function power()
  1576. we = true
  1577. ATTACK = true
  1578. Rooted = true
  1579. CreateSound("1843115950", Head, 10, 1)
  1580. for i=0, 1, 0.1 / Animation_Speed do
  1581. Swait()
  1582. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1583. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1586. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1587. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1588. end
  1589. game.Players.LocalPlayer.Character["Gun"].Touched:connect(function(hit)
  1590. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1591. if we == true then
  1592. humanoid:TakeDamage(50)
  1593. end
  1594. end)
  1595. for i=0, 1, 0.1 / Animation_Speed do
  1596. Swait()
  1597. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1598. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1601. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1602. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1603. end
  1604. we = false
  1605. ATTACK = false
  1606. Rooted = false
  1607. end
  1608.  
  1609. function MouseDown(Mouse)
  1610. end
  1611.  
  1612. function MouseUp(Mouse)
  1613. HOLD = false
  1614. end
  1615.  
  1616. function KeyDown(Key)
  1617. KEYHOLD = true
  1618. if Key == "f" and ATTACK == false then
  1619. Taunt()
  1620. end
  1621. if Key == "h" and ATTACK == false then
  1622. all_together_now()
  1623. end
  1624. if Key == "g" and ATTACK == false then
  1625. Mind()
  1626. end
  1627. if Key == "q" and ATTACK == false then
  1628. power()
  1629. end
  1630. if Key == "r" and ATTACK == false then
  1631. Space()
  1632. end
  1633. if Key == "p" and ATTACK == false then
  1634. time()
  1635. end
  1636. if Key == "t" and ATTACK == false then
  1637. Space2()
  1638. end
  1639. if Key == "e" and ATTACK == false then
  1640. power2()
  1641. end
  1642. end
  1643.  
  1644. function KeyUp(Key)
  1645. KEYHOLD = false
  1646. end
  1647.  
  1648. Mouse.Button1Down:connect(function(NEWKEY)
  1649. MouseDown(NEWKEY)
  1650. end)
  1651. Mouse.Button1Up:connect(function(NEWKEY)
  1652. MouseUp(NEWKEY)
  1653. end)
  1654. Mouse.KeyDown:connect(function(NEWKEY)
  1655. KeyDown(NEWKEY)
  1656. end)
  1657. Mouse.KeyUp:connect(function(NEWKEY)
  1658. KeyUp(NEWKEY)
  1659. end)
  1660.  
  1661. while true do
  1662. Swait()
  1663. script.Parent = WEAPONGUI
  1664. ANIMATE.Parent = nil
  1665. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1666. v:Stop();
  1667. end
  1668. SINE = SINE + CHANGE
  1669. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1670. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1671. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1672. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1673. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1674. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1675. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1676. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1677. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1678. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1679. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1680. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1681. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1682. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1683. end
  1684. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1685. ANIM = "Jump"
  1686. if PLAYANIMS == true then
  1687. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1688. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1689. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1690. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1691. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1692. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1693. end
  1694. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1695. ANIM = "Fall"
  1696. if PLAYANIMS == true then
  1697. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1698. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1699. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1700. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1701. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1702. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1703. end
  1704. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1705. ANIM = "Idle"
  1706. if PLAYANIMS == true then
  1707. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1708. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1709. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1710. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1711. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1712. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1713. end
  1714. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1715. ANIM = "Walk"
  1716. if PLAYANIMS == true then
  1717. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1718. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1719. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1720. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1721. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
  1722. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
  1723. end
  1724. end
  1725. end
  1726. if Rooted == false then
  1727. Disable_Jump = false
  1728. Humanoid.WalkSpeed = Speed
  1729. elseif Rooted == true then
  1730. Disable_Jump = true
  1731. Humanoid.WalkSpeed = 0
  1732. end
  1733.  
  1734. Humanoid.Health = Humanoid.Health + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement