SHARE
TWEET

Thanos

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