Advertisement
PixelDerpIsUber2

Untitled

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