SHARE
TWEET

65tuy546u56u567567567

a guest Jun 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --||    CREATED BY CRACKLUSTER / EDIT BY VAYYERS
  3. --\\====================================================//--
  4.  
  5. -- dumb memeus thing cause i wanted a shack version like crethail/123jl123's version
  6. -- still wip i'll add a sword soon
  7. -- maybe 2 modes?
  8. -- idk what else
  9.  
  10.  
  11.  
  12. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  13. do
  14. owner = game.Players.StarzoZero
  15.     script.Parent = owner.Character
  16.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  17.     local function NewFakeEvent()
  18.         local Bind = Instance.new("BindableEvent")
  19.         local Fake;Fake = {Connections = {},
  20.         fakeEvent=true;
  21.         Connect=function(self,Func)
  22.             Bind.Event:connect(Func)
  23.             self.Connections[Bind] = true
  24.             return setmetatable({Connected = true},{
  25.             __index = function (self,Index)
  26.                 if Index:lower() == "disconnect" then
  27.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  28.                 end
  29.                 return Fake[Index]
  30.             end;
  31.             __tostring = function() return "Connection" end;
  32.         })
  33.         end}
  34.         Fake.connect = Fake.Connect;return Fake;
  35.     end
  36.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  37.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  38.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  39.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  40.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  41.     local function TriggerEvent(self,Event,...)
  42.         local Trigger = Mouse[Event]
  43.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  44.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  45.         end
  46.     end
  47.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  48.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  49.         if FiredBy.Name ~= owner.Name then return end
  50.         if Input.MouseEvent then
  51.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  52.         else
  53.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  54.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  55.             for _,Action in pairs(ContextActionService.Actions) do
  56.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  57.             end
  58.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  59.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  60.         end
  61.     end)
  62.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  63.     NLS([[
  64. Event.Parent =
  65. owner = game.Players.LocalPlayer
  66. owner.Character.LocalScript
  67.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  68.         local Input = function(Input,gameProcessedEvent)
  69.             if gameProcessedEvent then return end
  70.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  71.         end
  72.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  73.         local Hit,Target
  74.         while wait(1/30) do
  75.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  76.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  77.             end
  78.         end
  79.     ]],owner.Character)
  80. end
  81. RealGame = game;game = setmetatable({},{
  82.     __index = function (self,Index)
  83.         local Sandbox = function (Thing)
  84.             if Thing:IsA("Player") then
  85.                 local RealPlayer = Thing
  86.                 return setmetatable({},{
  87.                     __index = function (self,Index)
  88.                         local Type = type(RealPlayer[Index])
  89.                         if Type == "function" then
  90.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  91.                                 return function (self)return InternalData["Mouse"] end
  92.                             end
  93.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  94.                         end
  95.                         return RealPlayer[Index]
  96.                     end;
  97.                     __tostring = function(self) return RealPlayer.Name end
  98.                 })
  99.             end
  100.         end
  101.         if RealGame[Index] then
  102.             local Type = type(RealGame[Index])
  103.             if Type == "function" then
  104.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  105.                     return function (self,Service)
  106.                         local FakeServices = {
  107.                             ["players"] = function()
  108.                                 return setmetatable({},{
  109.                                     __index = function (self2,Index2)
  110.                                         local RealService = RealGame:GetService(Service)
  111.                                         local Type2 = type(Index2)
  112.                                         if Type2 == "function" then
  113.                                             return function (self,...) return RealService[Index2](RealService,...)end
  114.                                         else
  115.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  116.                                             return RealService[Index2]
  117.                                         end
  118.                                     end;
  119.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  120.                                 })
  121.                             end;
  122.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  123.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  124.                             ["runservice"] = function()
  125.                                 return setmetatable({},{
  126.                                     __index = function(self2,Index2)
  127.                                         local RealService = RealGame:GetService(Service)
  128.                                         local Type2 = type(Index2)
  129.                                         if Type2 == "function" then
  130.                                             return function (self,...) return RealService[Index2](RealService,...) end
  131.                                         else
  132.                                             local RunServices = {
  133.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  134.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  135.                                             }
  136.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  137.                                             return RealService[Index2]
  138.                                         end
  139.                                     end
  140.                                 })
  141.                             end
  142.                         }
  143.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  144.                         return RealGame:GetService(Service)
  145.                     end
  146.                 end
  147.                 return function (self,...) return RealGame[Index](RealGame,...) end
  148.             else
  149.                 if game:GetService(Index) then return game:GetService(Index) end
  150.                 return RealGame[Index]
  151.             end
  152.         end
  153.         return nil
  154.     end
  155. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  156.  
  157. wait(0.2)
  158.  
  159. Player = game:GetService("Players").LocalPlayer
  160. PlayerGui = Player.PlayerGui
  161. Cam = workspace.CurrentCamera
  162. Backpack = Player.Backpack
  163. Character = Player.Character
  164. Humanoid = Character.Humanoid
  165. Mouse = Player:GetMouse()
  166. RootPart = Character["HumanoidRootPart"]
  167. Torso = Character["Torso"]
  168. Head = Character["Head"]
  169. RightArm = Character["Right Arm"]
  170. LeftArm = Character["Left Arm"]
  171. RightLeg = Character["Right Leg"]
  172. LeftLeg = Character["Left Leg"]
  173. RootJoint = RootPart["RootJoint"]
  174. Neck = Torso["Neck"]
  175. RightShoulder = Torso["Right Shoulder"]
  176. LeftShoulder = Torso["Left Shoulder"]
  177. RightHip = Torso["Right Hip"]
  178. LeftHip = Torso["Left Hip"]
  179.  
  180. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  181.  
  182. IT = Instance.new
  183. CF = CFrame.new
  184. VT = Vector3.new
  185. RAD = math.rad
  186. C3 = Color3.new
  187. UD2 = UDim2.new
  188. BRICKC = BrickColor.new
  189. ANGLES = CFrame.Angles
  190. EULER = CFrame.fromEulerAnglesXYZ
  191. COS = math.cos
  192. ACOS = math.acos
  193. SIN = math.sin
  194. ASIN = math.asin
  195. ABS = math.abs
  196. MRANDOM = math.random
  197. FLOOR = math.floor
  198.  
  199. --//=================================\\
  200. --||          USEFUL VALUES
  201. --\\=================================//
  202.  
  203. Animation_Speed = 3
  204. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  205. local Speed = 12
  206. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  207. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  208. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  209. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  210. local DAMAGEMULTIPLIER = 1
  211. local ANIM = "Idle"
  212. local ATTACK = false
  213. local EQUIPPED = false
  214. local HOLD = false
  215. local COMBO = 1
  216. local Rooted = false
  217. local SINE = 0
  218. local KEYHOLD = false
  219. local CHANGE = 2 / Animation_Speed
  220. local WALKINGANIM = false
  221. local VALUE1 = false
  222. local VALUE2 = false
  223. local ROBLOXIDLEANIMATION = IT("Animation")
  224. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  225. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  226. --ROBLOXIDLEANIMATION.Parent = Humanoid
  227. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  228. WEAPONGUI.Name = "Weapon GUI"
  229. local Weapon = IT("Model")
  230. Weapon.Name = "Adds"
  231. local Effects = IT("Folder", Weapon)
  232. Effects.Name = "Effects"
  233. local ANIMATOR = Humanoid.Animator
  234. local ANIMATE = Character.Animate
  235. local UNANCHOR = true
  236. local PLAYANIMS = true
  237. local CLOAKED = false
  238.  
  239. --//=================================\\
  240. --\\=================================//
  241.  
  242.  
  243. --//=================================\\
  244. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  245. --\\=================================//
  246.  
  247. ArtificialHB = Instance.new("BindableEvent", script)
  248. ArtificialHB.Name = "ArtificialHB"
  249.  
  250. script:WaitForChild("ArtificialHB")
  251.  
  252. frame = Frame_Speed
  253. tf = 0
  254. allowframeloss = false
  255. tossremainder = false
  256. lastframe = tick()
  257. script.ArtificialHB:Fire()
  258.  
  259. game:GetService("RunService").Heartbeat:connect(function(s, p)
  260.     tf = tf + s
  261.     if tf >= frame then
  262.         if allowframeloss then
  263.             script.ArtificialHB:Fire()
  264.             lastframe = tick()
  265.         else
  266.             for i = 1, math.floor(tf / frame) do
  267.                 script.ArtificialHB:Fire()
  268.             end
  269.         lastframe = tick()
  270.         end
  271.         if tossremainder then
  272.             tf = 0
  273.         else
  274.             tf = tf - frame * math.floor(tf / frame)
  275.         end
  276.     end
  277. end)
  278.  
  279. --//=================================\\
  280. --\\=================================//
  281.  
  282. local mouse = game.Players.LocalPlayer:GetMouse()
  283. function Light()
  284.     player = game.Players.LocalPlayer
  285.     playerChar = player.Character
  286.     playerLight = playerChar.Torso:FindFirstChild("Light")
  287.     if playerLight then
  288.         playerLight:Destroy()
  289.     else
  290.         light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Torso"))
  291.         light.Name = "Light"
  292.         light.Range = 30 -- light distance
  293.         light.Brightness = 35 -- change to how much
  294.         light.Shadows = true -- change it to true or false
  295.  
  296.        
  297.         local play = Instance.new("Sound",playerChar:FindFirstChild("Head"))
  298.         play.SoundId = "http://www.roblox.com/asset/?id=198914875"
  299.         play:Play()
  300.        
  301.     end
  302. end
  303. mouse.KeyDown:connect(function(key)
  304. key = key:lower()
  305. if key == "q" then
  306.     Light()
  307. end
  308. end)
  309.  
  310. --//=================================\\
  311. --||          SOME FUNCTIONS
  312. --\\=================================//
  313.  
  314. function WACKYEFFECT(Table)
  315.     local TYPE = (Table.EffectType or "Sphere")
  316.     local SIZE = (Table.Size or VT(1,1,1))
  317.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  318.     local TRANSPARENCY = (Table.Transparency or 0)
  319.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  320.     local CFRAME = (Table.CFrame or Torso.CFrame)
  321.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  322.     local ROTATION1 = (Table.RotationX or 0)
  323.     local ROTATION2 = (Table.RotationY or 0)
  324.     local ROTATION3 = (Table.RotationZ or 0)
  325.     local MATERIAL = (Table.Material or "Neon")
  326.     local COLOR = (Table.Color or C3(1,1,1))
  327.     local TIME = (Table.Time or 45)
  328.     local SOUNDID = (Table.SoundID or nil)
  329.     local SOUNDPITCH = (Table.SoundPitch or nil)
  330.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  331.     coroutine.resume(coroutine.create(function()
  332.         local PLAYSSOUND = false
  333.         local SOUND = nil
  334.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  335.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  336.             PLAYSSOUND = true
  337.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  338.         end
  339.         EFFECT.Color = COLOR
  340.         local MSH = nil
  341.         if TYPE == "Sphere" then
  342.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  343.         elseif TYPE == "Block" then
  344.             MSH = IT("BlockMesh",EFFECT)
  345.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  346.         elseif TYPE == "Wave" then
  347.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  348.         elseif TYPE == "Ring" then
  349.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  350.         elseif TYPE == "Slash" then
  351.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  352.         elseif TYPE == "Round Slash" then
  353.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  354.         elseif TYPE == "Swirl" then
  355.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  356.         elseif TYPE == "Skull" then
  357.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  358.         elseif TYPE == "Crystal" then
  359.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  360.         end
  361.         if MSH ~= nil then
  362.             local MOVESPEED = nil
  363.             if MOVEDIRECTION ~= nil then
  364.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  365.             end
  366.             local GROWTH = SIZE - ENDSIZE
  367.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  368.             if TYPE == "Block" then
  369.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  370.             else
  371.                 EFFECT.CFrame = CFRAME
  372.             end
  373.             for LOOP = 1, TIME+1 do
  374.                 Swait()
  375.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  376.                 if TYPE == "Wave" then
  377.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  378.                 end
  379.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  380.                 if TYPE == "Block" then
  381.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  382.                 else
  383.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  384.                 end
  385.                 if MOVEDIRECTION ~= nil then
  386.                     local ORI = EFFECT.Orientation
  387.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  388.                     EFFECT.Orientation = ORI
  389.                 end
  390.             end
  391.             if PLAYSSOUND == false then
  392.                 EFFECT:remove()
  393.             else
  394.                 SOUND.Stopped:Connect(function()
  395.                     EFFECT:remove()
  396.                 end)
  397.             end
  398.         else
  399.             if PLAYSSOUND == false then
  400.                 EFFECT:remove()
  401.             else
  402.                 repeat Swait() until SOUND.Playing == false
  403.                 EFFECT:remove()
  404.             end
  405.         end
  406.     end))
  407. end
  408.  
  409. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  410.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  411. end
  412.  
  413. function PositiveAngle(NUMBER)
  414.     if NUMBER >= 0 then
  415.         NUMBER = 0
  416.     end
  417.     return NUMBER
  418. end
  419.  
  420. function NegativeAngle(NUMBER)
  421.     if NUMBER <= 0 then
  422.         NUMBER = 0
  423.     end
  424.     return NUMBER
  425. end
  426.  
  427. function SpawnTrail(FROM,TO)
  428.     local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
  429.     MakeForm(TRAIL,"Cyl")
  430.     local DIST = (FROM - TO).Magnitude
  431.     TRAIL.Size = VT(0.1,DIST,0.1)
  432.     TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  433.     coroutine.resume(coroutine.create(function()
  434.         for i = 1, 5 do
  435.             Swait()
  436.             TRAIL.Transparency = TRAIL.Transparency + 0.1
  437.         end
  438.         TRAIL:remove()
  439.     end))
  440. end
  441.  
  442.  
  443. function Swait(NUMBER)
  444.     if NUMBER == 0 or NUMBER == nil then
  445.         ArtificialHB.Event:wait()
  446.     else
  447.         for i = 1, NUMBER do
  448.             ArtificialHB.Event:wait()
  449.         end
  450.     end
  451. end
  452.  
  453. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  454.     local NEWMESH = IT(MESH)
  455.     if MESH == "SpecialMesh" then
  456.         NEWMESH.MeshType = MESHTYPE
  457.         if MESHID ~= "nil" and MESHID ~= "" then
  458.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  459.         end
  460.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  461.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  462.         end
  463.     end
  464.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  465.     NEWMESH.Scale = SCALE
  466.     NEWMESH.Parent = PARENT
  467.     return NEWMESH
  468. end
  469.  
  470. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  471.     local NEWPART = IT("Part")
  472.     NEWPART.formFactor = FORMFACTOR
  473.     NEWPART.Reflectance = REFLECTANCE
  474.     NEWPART.Transparency = TRANSPARENCY
  475.     NEWPART.CanCollide = false
  476.     NEWPART.Locked = true
  477.     NEWPART.Anchored = true
  478.     if ANCHOR == false then
  479.         NEWPART.Anchored = false
  480.     end
  481.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  482.     NEWPART.Name = NAME
  483.     NEWPART.Size = SIZE
  484.     NEWPART.Position = Torso.Position
  485.     NEWPART.Material = MATERIAL
  486.     NEWPART:BreakJoints()
  487.     NEWPART.Parent = PARENT
  488.     return NEWPART
  489. end
  490.  
  491.     local function weldBetween(a, b)
  492.         local weldd = Instance.new("ManualWeld")
  493.         weldd.Part0 = a
  494.         weldd.Part1 = b
  495.         weldd.C0 = CFrame.new()
  496.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  497.         weldd.Parent = a
  498.         return weldd
  499.     end
  500.  
  501.  
  502. function QuaternionFromCFrame(cf)
  503.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  504.     local trace = m00 + m11 + m22
  505.     if trace > 0 then
  506.         local s = math.sqrt(1 + trace)
  507.         local recip = 0.5 / s
  508.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  509.     else
  510.         local i = 0
  511.         if m11 > m00 then
  512.             i = 1
  513.         end
  514.         if m22 > (i == 0 and m00 or m11) then
  515.             i = 2
  516.         end
  517.         if i == 0 then
  518.             local s = math.sqrt(m00 - m11 - m22 + 1)
  519.             local recip = 0.5 / s
  520.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  521.         elseif i == 1 then
  522.             local s = math.sqrt(m11 - m22 - m00 + 1)
  523.             local recip = 0.5 / s
  524.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  525.         elseif i == 2 then
  526.             local s = math.sqrt(m22 - m00 - m11 + 1)
  527.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  528.         end
  529.     end
  530. end
  531.  
  532. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  533.     local xs, ys, zs = x + x, y + y, z + z
  534.     local wx, wy, wz = w * xs, w * ys, w * zs
  535.     local xx = x * xs
  536.     local xy = x * ys
  537.     local xz = x * zs
  538.     local yy = y * ys
  539.     local yz = y * zs
  540.     local zz = z * zs
  541.     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))
  542. end
  543.  
  544. function QuaternionSlerp(a, b, t)
  545.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  546.     local startInterp, finishInterp;
  547.     if cosTheta >= 0.0001 then
  548.         if (1 - cosTheta) > 0.0001 then
  549.             local theta = ACOS(cosTheta)
  550.             local invSinTheta = 1 / SIN(theta)
  551.             startInterp = SIN((1 - t) * theta) * invSinTheta
  552.             finishInterp = SIN(t * theta) * invSinTheta
  553.         else
  554.             startInterp = 1 - t
  555.             finishInterp = t
  556.         end
  557.     else
  558.         if (1 + cosTheta) > 0.0001 then
  559.             local theta = ACOS(-cosTheta)
  560.             local invSinTheta = 1 / SIN(theta)
  561.             startInterp = SIN((t - 1) * theta) * invSinTheta
  562.             finishInterp = SIN(t * theta) * invSinTheta
  563.         else
  564.             startInterp = t - 1
  565.             finishInterp = t
  566.         end
  567.     end
  568.     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
  569. end
  570.  
  571. function Clerp(a, b, t)
  572.     local qa = {QuaternionFromCFrame(a)}
  573.     local qb = {QuaternionFromCFrame(b)}
  574.     local ax, ay, az = a.x, a.y, a.z
  575.     local bx, by, bz = b.x, b.y, b.z
  576.     local _t = 1 - t
  577.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  578. end
  579.  
  580. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  581.     local frame = IT("Frame")
  582.     frame.BackgroundTransparency = TRANSPARENCY
  583.     frame.BorderSizePixel = BORDERSIZEPIXEL
  584.     frame.Position = POSITION
  585.     frame.Size = SIZE
  586.     frame.BackgroundColor3 = COLOR
  587.     frame.BorderColor3 = BORDERCOLOR
  588.     frame.Name = NAME
  589.     frame.Parent = PARENT
  590.     return frame
  591. end
  592.  
  593. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  594.     local label = IT("TextLabel")
  595.     label.BackgroundTransparency = 1
  596.     label.Size = UD2(1, 0, 1, 0)
  597.     label.Position = UD2(0, 0, 0, 0)
  598.     label.TextColor3 = TEXTCOLOR
  599.     label.TextStrokeTransparency = STROKETRANSPARENCY
  600.     label.TextTransparency = TRANSPARENCY
  601.     label.FontSize = TEXTFONTSIZE
  602.     label.Font = TEXTFONT
  603.     label.BorderSizePixel = BORDERSIZEPIXEL
  604.     label.TextScaled = false
  605.     label.Text = TEXT
  606.     label.Name = NAME
  607.     label.Parent = PARENT
  608.     return label
  609. end
  610.  
  611. function NoOutlines(PART)
  612.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  613. end
  614.  
  615. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  616.     if FLOOR ~= nil then
  617.         coroutine.resume(coroutine.create(function()
  618.             local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  619.             PART.CFrame = CF(POSITION)
  620.             for i = 1, 45 do
  621.                 local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  622.                 RingPiece.Material = FLOOR.Material
  623.                 RingPiece.Color = FLOOR.Color
  624.                 RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  625.                 Debris:AddItem(RingPiece, SWAIT)
  626.             end
  627.             PART:remove()
  628.         end))
  629.     end
  630. end
  631.  
  632. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  633.     if FLOOR ~= nil then
  634.         for i = 1, AMOUNT do
  635.             do
  636.                 local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  637.                 DEBREE.Material = FLOOR.Material
  638.                 DEBREE.Color = FLOOR.Color
  639.                 DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  640.                 DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  641.                 coroutine.resume(coroutine.create(function()
  642.                     Swait(15)
  643.                     DEBREE.Parent = workspace
  644.                     DEBREE.CanCollide = true
  645.                     Debris:AddItem(DEBREE, SWAIT)
  646.                 end))
  647.             end
  648.         end
  649.     end
  650. end
  651.  
  652. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  653.     local NEWWELD = IT(TYPE)
  654.     NEWWELD.Part0 = PART0
  655.     NEWWELD.Part1 = PART1
  656.     NEWWELD.C0 = C0
  657.     NEWWELD.C1 = C1
  658.     NEWWELD.Parent = PARENT
  659.     return NEWWELD
  660. end
  661.  
  662. local S = IT("Sound")
  663. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  664.     local NEWSOUND = nil
  665.     coroutine.resume(coroutine.create(function()
  666.         NEWSOUND = S:Clone()
  667.         NEWSOUND.Parent = PARENT
  668.         NEWSOUND.Volume = VOLUME
  669.         NEWSOUND.Pitch = PITCH
  670.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  671.         NEWSOUND:play()
  672.         if DOESLOOP == true then
  673.             NEWSOUND.Looped = true
  674.         else
  675.             repeat wait(1) until NEWSOUND.Playing == false
  676.             NEWSOUND:remove()
  677.         end
  678.     end))
  679.     return NEWSOUND
  680. end
  681.  
  682. function MakeForm(PART,TYPE)
  683.     if TYPE == "Cyl" then
  684.         local MSH = IT("CylinderMesh",PART)
  685.     elseif TYPE == "Ball" then
  686.         local MSH = IT("SpecialMesh",PART)
  687.         MSH.MeshType = "Sphere"
  688.     elseif TYPE == "Wedge" then
  689.         local MSH = IT("SpecialMesh",PART)
  690.         MSH.MeshType = "Wedge"
  691.     end
  692. end
  693.  
  694. function CFrameFromTopBack(at, top, back)
  695.     local right = top:Cross(back)
  696.     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)
  697. end
  698.  
  699. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  700.     local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  701.     if HITFLOOR ~= nil then
  702.         if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  703.             if HITFLOOR.Name == "BloodPuddle" then
  704.                 local DIST = (Position - HITFLOOR.Position).Magnitude
  705.                 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
  706.                     HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  707.                 end
  708.             else
  709.                 if HITFLOOR.Anchored == true then
  710.                     local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  711.                     BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  712.                     MakeForm(BLOOD,"Cyl")
  713.                     coroutine.resume(coroutine.create(function()
  714.                         Swait(75)
  715.                         while true do
  716.                             Swait()
  717.                             BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  718.                             if BLOOD.Size.Z < 0.051 then
  719.                                 BLOOD:remove()
  720.                                 break
  721.                             end
  722.                         end
  723.                     end))
  724.                 end
  725.             end
  726.         end
  727.     end
  728. end
  729.  
  730. function SprayBlood(POSITION,DIRECTION,BloodSize)
  731.     local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  732.     BLOOD.CFrame = CF(POSITION)
  733.     MakeForm(BLOOD,"Ball")
  734.     local bv = Instance.new("BodyVelocity",BLOOD)
  735.     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  736.     bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  737.     bv.Name = "MOVE"
  738.     Debris:AddItem(bv,0.05)
  739.     coroutine.resume(coroutine.create(function()
  740.         local HASTOUCHEDGROUND = false
  741.         local HIT = BLOOD.Touched:Connect(function(hit)
  742.             if hit.Anchored == true then
  743.                 HASTOUCHEDGROUND = true
  744.                 PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  745.             end
  746.         end)
  747.         wait(5)
  748.         if HASTOUCHEDGROUND == false then
  749.             BLOOD:remove()
  750.         end
  751.     end))
  752. end
  753.  
  754. Debris = game:GetService("Debris")
  755.  
  756. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  757.     local DIRECTION = CF(StartPos,EndPos).lookVector
  758.     return Raycast(StartPos, DIRECTION, Distance, Ignore)
  759. end
  760.  
  761. function turnto(position)
  762.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  763. end
  764.  
  765. function recurse(root,callback,i)
  766.     i= i or 0
  767.     for _,v in pairs(root:GetChildren()) do
  768.         i = i + 1
  769.         callback(i,v)
  770.        
  771.         if #v:GetChildren() > 0 then
  772.             i = recurse(v,callback,i)
  773.         end
  774.     end
  775.    
  776.     return i
  777. end
  778.  
  779. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  780.     attachmentName = attachmentName.."RigAttachment"
  781.     local constraint = Instance.new(className.."Constraint")
  782.     constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  783.     constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  784.     constraint.Name = "RagdollConstraint"..part1.Name
  785.    
  786.     for _,propertyData in next,properties or {} do
  787.         constraint[propertyData[1]] = propertyData[2]
  788.     end
  789.    
  790.     constraint.Parent = character
  791. end
  792.  
  793. function getAttachment0(character, attachmentName)
  794.     for _,child in next,character:GetChildren() do
  795.         local attachment = child:FindFirstChild(attachmentName)
  796.         if attachment then
  797.             return attachment
  798.         end
  799.     end
  800. end
  801.  
  802. function R15Ragdoll(character)
  803.     recurse(character, function(_,v)
  804.         if v:IsA("Attachment") then
  805.             v.Axis = Vector3.new(0, 1, 0)
  806.             v.SecondaryAxis = Vector3.new(0, 0, 1)
  807.             v.Rotation = Vector3.new(0, 0, 0)
  808.         end
  809.     end)
  810.     for _,child in next,character:GetChildren() do
  811.         if child:IsA("Accoutrement") then
  812.             for _,part in next,child:GetChildren() do
  813.                 if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  814.                     local attachment1 = part:FindFirstChildOfClass("Attachment")
  815.                     local attachment0 = getAttachment0(character,attachment1.Name)
  816.                     if attachment0 and attachment1 then
  817.                         local constraint = Instance.new("HingeConstraint")
  818.                         constraint.Attachment0 = attachment0
  819.                         constraint.Attachment1 = attachment1
  820.                         constraint.LimitsEnabled = true
  821.                         constraint.UpperAngle = 0
  822.                         constraint.LowerAngle = 0
  823.                         constraint.Parent = character
  824.                     end
  825.                 elseif part.Name == "HumanoidRootPart" then
  826.                     part:remove()
  827.                 end
  828.             end
  829.         end
  830.     end
  831.    
  832.     ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  833.         {"LimitsEnabled",true};
  834.         {"UpperAngle",5};
  835.     })
  836.     ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  837.         {"LimitsEnabled",true};
  838.         {"UpperAngle",15};
  839.     })
  840.    
  841.     local handProperties = {
  842.         {"LimitsEnabled", true};
  843.         {"UpperAngle",0};
  844.         {"LowerAngle",0};
  845.     }
  846.     ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  847.     ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  848.    
  849.     local shinProperties = {
  850.         {"LimitsEnabled", true};
  851.         {"UpperAngle", 0};
  852.         {"LowerAngle", -75};
  853.     }
  854.     ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  855.     ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  856.    
  857.     local footProperties = {
  858.         {"LimitsEnabled", true};
  859.         {"UpperAngle", 15};
  860.         {"LowerAngle", -45};
  861.     }
  862.     ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  863.     ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  864.    
  865.     ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  866.     ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  867.     ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  868.     ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  869.     ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  870.     ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  871. end
  872.  
  873. function Ragdoll(Character2,CharTorso)
  874.     Character2:BreakJoints()
  875.     local hum = Character2:findFirstChild("Humanoid")
  876.     hum:remove()
  877.     local function Scan(ch)
  878.         local e
  879.         for e = 1,#ch do
  880.             Scan(ch[e]:GetChildren())
  881.             if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  882.                 ch[e]:remove()
  883.             end
  884.         end
  885.     end
  886.     local NEWHUM = IT("Humanoid")
  887.     NEWHUM.Name = "Corpse"
  888.     NEWHUM.Health = 0
  889.     NEWHUM.MaxHealth = 0
  890.     NEWHUM.PlatformStand = true
  891.     NEWHUM.Parent = Character2
  892.     NEWHUM.DisplayDistanceType = "None"
  893.  
  894.     local ch = Character2:GetChildren()
  895.     local i
  896.     for i = 1,#ch do
  897.         if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  898.             ch[i]:remove()
  899.         end
  900.     end
  901.  
  902.     local Torso2 = Character2.Torso
  903.     local movevector = Vector3.new()
  904.  
  905.     if Torso2 then
  906.         movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  907.         local Head = Character2:FindFirstChild("Head")
  908.         if Head then
  909.             local Neck = Instance.new("Weld")
  910.             Neck.Name = "Neck"
  911.             Neck.Part0 = Torso2
  912.             Neck.Part1 = Head
  913.             Neck.C0 = CFrame.new(0, 1.5, 0)
  914.             Neck.C1 = CFrame.new()
  915.             Neck.Parent = Torso2
  916.  
  917.         end
  918.         local Limb = Character2:FindFirstChild("Right Arm")
  919.         if Limb then
  920.  
  921.             Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  922.             local Joint = Instance.new("Glue")
  923.             Joint.Name = "RightShoulder"
  924.             Joint.Part0 = Torso2
  925.             Joint.Part1 = Limb
  926.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  927.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  928.             Joint.Parent = Torso2
  929.  
  930.             local B = Instance.new("Part")
  931.             B.TopSurface = 0
  932.             B.BottomSurface = 0
  933.             B.formFactor = "Symmetric"
  934.             B.Size = Vector3.new(1, 1, 1)
  935.             B.Transparency = 1
  936.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  937.             B.Parent = Character2
  938.             local W = Instance.new("Weld")
  939.             W.Part0 = Limb
  940.             W.Part1 = B
  941.             W.C0 = CFrame.new(0, -0.5, 0)
  942.             W.Parent = Limb
  943.  
  944.         end
  945.         local Limb = Character2:FindFirstChild("Left Arm")
  946.         if Limb then
  947.  
  948.             Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  949.             local Joint = Instance.new("Glue")
  950.             Joint.Name = "LeftShoulder"
  951.             Joint.Part0 = Torso2
  952.             Joint.Part1 = Limb
  953.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  954.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  955.             Joint.Parent = Torso2
  956.  
  957.             local B = Instance.new("Part")
  958.             B.TopSurface = 0
  959.             B.BottomSurface = 0
  960.             B.formFactor = "Symmetric"
  961.             B.Size = Vector3.new(1, 1, 1)
  962.             B.Transparency = 1
  963.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  964.             B.Parent = Character2
  965.             local W = Instance.new("Weld")
  966.             W.Part0 = Limb
  967.             W.Part1 = B
  968.             W.C0 = CFrame.new(0, -0.5, 0)
  969.             W.Parent = Limb
  970.  
  971.         end
  972.         local Limb = Character2:FindFirstChild("Right Leg")
  973.         if Limb then
  974.  
  975.             Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  976.             local Joint = Instance.new("Glue")
  977.             Joint.Name = "RightHip"
  978.             Joint.Part0 = Torso2
  979.             Joint.Part1 = Limb
  980.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  981.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  982.             Joint.Parent = Torso2
  983.  
  984.             local B = Instance.new("Part")
  985.             B.TopSurface = 0
  986.             B.BottomSurface = 0
  987.             B.formFactor = "Symmetric"
  988.             B.Size = Vector3.new(1, 1, 1)
  989.             B.Transparency = 1
  990.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  991.             B.Parent = Character2
  992.             local W = Instance.new("Weld")
  993.             W.Part0 = Limb
  994.             W.Part1 = B
  995.             W.C0 = CFrame.new(0, -0.5, 0)
  996.             W.Parent = Limb
  997.  
  998.         end
  999.         local Limb = Character2:FindFirstChild("Left Leg")
  1000.         if Limb then
  1001.  
  1002.             Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1003.             local Joint = Instance.new("Glue")
  1004.             Joint.Name = "LeftHip"
  1005.             Joint.Part0 = Torso2
  1006.             Joint.Part1 = Limb
  1007.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1008.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1009.             Joint.Parent = Torso2
  1010.  
  1011.             local B = Instance.new("Part")
  1012.             B.TopSurface = 0
  1013.             B.BottomSurface = 0
  1014.             B.formFactor = "Symmetric"
  1015.             B.Size = Vector3.new(1, 1, 1)
  1016.             B.Transparency = 1
  1017.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1018.             B.Parent = Character2
  1019.             local W = Instance.new("Weld")
  1020.             W.Part0 = Limb
  1021.             W.Part1 = B
  1022.             W.C0 = CFrame.new(0, -0.5, 0)
  1023.             W.Parent = Limb
  1024.  
  1025.         end
  1026.         --[
  1027.         local Bar = Instance.new("Part")
  1028.         Bar.TopSurface = 0
  1029.         Bar.BottomSurface = 0
  1030.         Bar.formFactor = "Symmetric"
  1031.         Bar.Size = Vector3.new(1, 1, 1)
  1032.         Bar.Transparency = 1
  1033.         Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1034.         Bar.Parent = Character2
  1035.         local Weld = Instance.new("Weld")
  1036.         Weld.Part0 = Torso2
  1037.         Weld.Part1 = Bar
  1038.         Weld.C0 = CFrame.new(0, 0.5, 0)
  1039.         Weld.Parent = Torso2
  1040.         --]]
  1041.     end
  1042.     Character2.Parent = workspace
  1043.     Debris:AddItem(Character2,5)
  1044.  
  1045.     return Character2,Torso2
  1046. end
  1047.  
  1048. --//=================================\\
  1049. --||         WEAPON CREATION
  1050. --\\=================================//
  1051.  
  1052. Humanoid.DisplayDistanceType = "None"
  1053. Humanoid.MaxHealth = 800
  1054. Humanoid.Health = 800
  1055.  
  1056. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Black", "Gun", VT(0, 0, 0),false)
  1057. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0))
  1058. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  1059. Gun.Transparency = 1
  1060.  
  1061. local STEP = CreateSound(141491460, Torso, 0.6, 1, true)
  1062. STEP.Playing = false
  1063. STEP.Looped = false
  1064. local STEPPING = false
  1065. Humanoid.Running:Connect(function(speed)
  1066.     if STEPPING == false then
  1067.         STEPPING = true
  1068.         repeat
  1069.             local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1070.             wait(8/TORSOVELOCITY)
  1071.             local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1072.             if TORSOVELOCITY > 1 and Torso.Transparency ~= 1 and HITFLOOR ~= nil then
  1073.                 STEP.Parent = Torso
  1074.                 STEP.Pitch = MRANDOM(8,12)/10
  1075.                 STEP:Play()
  1076.             end
  1077.         until TORSOVELOCITY < 0.6
  1078.         STEPPING = false
  1079.     end
  1080. end)
  1081.  
  1082. for _, c in pairs(Weapon:GetChildren()) do
  1083.     if c.ClassName == "Part" then
  1084.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1085.     end
  1086. end
  1087.  
  1088. local SKILLTEXTCOLOR = C3(0,0,0)
  1089. local SKILLFONT = "SciFi"
  1090. local SKILLTEXTSIZE = 7
  1091.  
  1092. Weapon.Parent = Character
  1093.  
  1094. Humanoid.Died:connect(function()
  1095.     ATTACK = true
  1096. end)
  1097.  
  1098. --//=================================\\
  1099. --||         DAMAGE FUNCTIONS
  1100. --\\=================================//
  1101.  
  1102. function StatLabel(CFRAME, TEXT, COLOR)
  1103.     local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1104.     STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1105.     local BODYGYRO = IT("BodyGyro", STATPART)
  1106.     game:GetService("Debris"):AddItem(STATPART ,5)
  1107.     local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1108.     BILLBOARDGUI.Adornee = STATPART
  1109.     BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1110.     BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1111.     BILLBOARDGUI.AlwaysOnTop = false
  1112.     local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1113.     TEXTLABEL.BackgroundTransparency = 1
  1114.     TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1115.     TEXTLABEL.Text = TEXT
  1116.     TEXTLABEL.Font = SKILLFONT
  1117.     TEXTLABEL.FontSize="Size42"
  1118.     TEXTLABEL.TextColor3 = COLOR
  1119.     TEXTLABEL.TextStrokeTransparency = 0
  1120.     TEXTLABEL.TextScaled = true
  1121.     TEXTLABEL.TextWrapped = true
  1122.     coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1123.         for i = 1, 50 do
  1124.             Swait()
  1125.             STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1126.             TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1127.             TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1128.         end
  1129.         THEPART.Parent = nil
  1130.     end),STATPART, TEXTLABEL)
  1131. end
  1132.  
  1133. --//=================================\\
  1134. --||            DAMAGING
  1135. --\\=================================//
  1136.  
  1137. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1138.     local defence = Instance.new("BoolValue",Humanoid.Parent)
  1139.     defence.Name = ("HitBy"..Player.Name)
  1140.     game:GetService("Debris"):AddItem(defence, 0.001)
  1141.     Damage = Damage * DAMAGEMULTIPLIER
  1142.     if Humanoid.Health ~= 0 then
  1143.         local CritChance = MRANDOM(1,100)
  1144.         if Damage > Humanoid.Health then
  1145.             Damage = math.ceil(Humanoid.Health)
  1146.             if Damage == 0 then
  1147.                 Damage = 0.1
  1148.             end
  1149.         end
  1150.         Humanoid.Health = Humanoid.Health - Damage
  1151.         StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1152.     end
  1153. end
  1154.  
  1155. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1156.     local CHILDREN = workspace:GetDescendants()
  1157.     for index, CHILD in pairs(CHILDREN) do
  1158.         if CHILD.ClassName == "Model" and CHILD ~= Character then
  1159.             local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1160.             if HUM then
  1161.                 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1162.                 if TORSO then
  1163.                     if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1164.                         if INSTAKILL == true then
  1165.                             CHILD:BreakJoints()
  1166.                         else
  1167.                             local DMG = MRANDOM(MINDMG,MAXDMG)
  1168.                             ApplyDamage(HUM,DMG,TORSO)
  1169.                         end
  1170.                         if FLING > 0 then
  1171.                             for _, c in pairs(CHILD:GetChildren()) do
  1172.                                 if c:IsA("BasePart") then
  1173.                                     local bv = Instance.new("BodyVelocity")
  1174.                                     bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1175.                                     bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1176.                                     bv.Parent = c
  1177.                                     Debris:AddItem(bv,0.05)
  1178.                                 end
  1179.                             end
  1180.                         end
  1181.                     end
  1182.                 end
  1183.             end
  1184.         end
  1185.     end
  1186. end
  1187.  
  1188. --//=================================\\
  1189. --||    ATTACK FUNCTIONS AND STUFF
  1190. --\\=================================//
  1191.  
  1192. local Decal = IT("Decal")
  1193. function SpawnBulletHole(POSITION)
  1194.     local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2))
  1195.     local decal = Decal:Clone()
  1196.     decal.Parent = O1
  1197.     decal.Face = "Top"
  1198.     decal.Texture = "http://www.roblox.com/asset/?id=130624105"
  1199.     local decal2 = Decal:Clone()
  1200.     decal2.Parent = O1
  1201.     decal2.Face = "Bottom"
  1202.     decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
  1203.     O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
  1204.     Debris:AddItem(O1,5)
  1205. end
  1206.  
  1207. local asd = Instance.new("ParticleEmitter")
  1208. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1209. asd.LightEmission = .1
  1210. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1211. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)})
  1212. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1213. asd.Transparency = bbb
  1214. asd.Size = aaa
  1215. asd.ZOffset = .9
  1216. asd.Acceleration = Vector3.new(0, -15, 0)
  1217. asd.LockedToPart = false
  1218. asd.EmissionDirection = "Back"
  1219. asd.Lifetime = NumberRange.new(1, 2)
  1220. asd.Rotation = NumberRange.new(-100, 100)
  1221. asd.RotSpeed = NumberRange.new(-100, 100)
  1222. asd.Speed = NumberRange.new(10)
  1223. asd.Enabled = false
  1224. asd.VelocitySpread = 999
  1225.  
  1226. function getbloody(victim,amount)
  1227.     local PART = IT("Part",Effects)
  1228.     PART.Transparency = 1
  1229.     PART.Size = victim.Size
  1230.     PART.Anchored = true
  1231.     PART.CanCollide = false
  1232.     PART.CFrame = CF(victim.Position)
  1233.     local HITPLAYERSOUNDS = {"356551938","264486467"}
  1234.     Debris:AddItem(PART,5)
  1235.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1236.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1237.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1238.     local prtcl = asd:Clone()
  1239.     prtcl.Parent = PART
  1240.     prtcl:Emit(amount*10)
  1241. end
  1242.  
  1243.  
  1244. function BulletDetection(FROM,TO)
  1245.     local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1246.     coroutine.resume(coroutine.create(function()
  1247.         if AIMHIT ~= nil then
  1248.             if AIMHIT.Parent ~= Character then
  1249.                 if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1250.                     if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
  1251.                         ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
  1252.                     elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
  1253.                         if AIMHIT.Parent.ClassName == "Accessory" then
  1254.                             if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
  1255.                                 AIMHIT.Parent.Parent:BreakJoints()
  1256.                                 if AIMHIT.Parent.Parent:FindFirstChild("Head") then
  1257.                                     getbloody(AIMHIT.Parent.Parent.Head,15)
  1258.                                     AIMHIT.Parent.Parent.Head:remove()
  1259.                                     StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  1260.                                 end
  1261.                             else
  1262.                                 ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT)
  1263.                             end
  1264.                         elseif AIMHIT.Name == "Head" then
  1265.                             getbloody(AIMHIT,15)
  1266.                             AIMHIT.Parent:BreakJoints()
  1267.                             AIMHIT:remove()
  1268.                             StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  1269.                         end
  1270.                     end
  1271.                 else
  1272.                     CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
  1273.                     SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
  1274.                 end
  1275.             end
  1276.         end
  1277.     end))
  1278.     return AIMHIT,AIMPOS,NORMAL
  1279. end
  1280.  
  1281. function Taunt()
  1282.         ATTACK = true
  1283.     PLAYANIMS = false
  1284.         CreateSound(957655044,Torso,2,MRANDOM(10,10)/10,false)
  1285.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=364044449"
  1286.     for i=0, 1.5, 0.1 / 19 do
  1287.         Swait()
  1288.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1289.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-30 + math.random(-30,30)), RAD(0), RAD(0 + math.random(-30,30))), 1 / Animation_Speed)
  1290.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 + math.random(-30,30)), RAD(0), RAD(140 + math.random(-30,30))) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1291.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + math.random(-30,30)), RAD(0), RAD(-140 + math.random(-30,30))) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1292.     end
  1293.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1294.     PLAYANIMS = true
  1295.         ATTACK = false
  1296. end
  1297.  
  1298. function Shell()
  1299.     ATTACK = true
  1300.     PLAYANIMS = false
  1301.         Gun.Transparency = 0
  1302.     local GYRO = IT("BodyGyro",RootPart)
  1303.     GYRO.D = 750
  1304.     GYRO.P = 20000
  1305.     GYRO.MaxTorque = VT(0,40000000,0)
  1306.     for i=0, 1, 0.1 / Animation_Speed do
  1307.         Swait()
  1308.         GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1309.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1310.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(100), RAD(20), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1311.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1312.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1313.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1314.     end
  1315.     CreateSound(1112953216, Gun, 5, MRANDOM(8,12)/10, false)
  1316.     local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  1317.     SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  1318.     WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,2,2), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1319.     for i=0, 0.3, 0.1 / Animation_Speed do
  1320.         Swait()
  1321.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1322.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1323.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1324.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1325.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1326.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1327.     end
  1328.     for i=0, 0.3, 0.1 / Animation_Speed do
  1329.         Swait()
  1330.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1331.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1332.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(100), RAD(20), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1333.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1334.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1335.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1336.     end
  1337.     CreateSound(1112953216, Gun, 5, MRANDOM(8,12)/10, false)
  1338.     local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  1339.     SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  1340.     WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,2,2), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1341.     for i=0, 0.3, 0.1 / Animation_Speed do
  1342.         Swait()
  1343.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1344.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1345.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1346.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1347.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1348.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1349.     end
  1350.     for i=0, 0.3, 0.1 / Animation_Speed do
  1351.         Swait()
  1352.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1353.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1354.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(100), RAD(20), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1355.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1356.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1357.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1358.     end
  1359.     CreateSound(1112953216, Gun, 5, MRANDOM(8,12)/10, false)
  1360.     local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  1361.     SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  1362.     WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,2,2), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1363.     for i=0, 0.3, 0.1 / Animation_Speed do
  1364.         Swait()
  1365.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1366.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1367.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1368.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1369.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1370.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1371.     end
  1372.     for i=0, 0.3, 0.1 / Animation_Speed do
  1373.         Swait()
  1374.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1375.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1376.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(100), RAD(20), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1377.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1378.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1379.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  1380.     end
  1381.     GYRO:remove()
  1382.     Rooted = false
  1383.     PLAYANIMS = true
  1384.         ATTACK = false
  1385.         Gun.Transparency = 1
  1386. end
  1387.  
  1388. function Taunt2()
  1389.         ATTACK = true
  1390.     PLAYANIMS = false
  1391.         Rooted = true
  1392.         NOU = CreateSound(1448252559,Torso,2,MRANDOM(10,10)/10,false)
  1393.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=44424613"
  1394.     for i=0, 1.5, 0.1 / 6 do
  1395.         Swait()
  1396.             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)
  1397.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + (0.1*NOU.PlaybackLoudness/75)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1398.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1399.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1400.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1401.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1402.     end
  1403.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1404.     PLAYANIMS = true
  1405.         ATTACK = false
  1406. end
  1407.  
  1408. function Taunt3()
  1409.     ATTACK = true
  1410.     Rooted = true
  1411.     local TAUNT = CreateSound(159882635, Torso, 7, 1, false)
  1412.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=82323254"
  1413.     repeat
  1414.         Swait()
  1415.         TAUNT.Parent = Torso
  1416.         TAUNT.Playing = true
  1417.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1418.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  1419.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1420.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1421.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1422.     until TAUNT.TimePosition >= 1.25
  1423.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1731306305"
  1424.     for i=0, 1.6, 0.1 / Animation_Speed do
  1425.         Swait()
  1426.         TAUNT.Parent = Torso
  1427.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  1428.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1429.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-30)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1430.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1431.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1432.     end
  1433.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1434.     ATTACK = false
  1435.     Rooted = false
  1436. end
  1437.  
  1438. function Extreme_Offset()
  1439.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=429340009"
  1440.     local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
  1441.     if HITFLOOR then
  1442.         local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  1443.         CreateSound("1295446488", Torso, 5, 1)
  1444.         for i = 1, 5 do
  1445.             WACKYEFFECT({
  1446.                 Time = MRANDOM(15, 35),
  1447.                 EffectType = "Round Slash",
  1448.                 Size = VT(0, 0, 0),
  1449.                 Size2 = VT(0.3, 0, 0.3),
  1450.                 Transparency = 0.5,
  1451.                 Transparency2 = 1,
  1452.                 CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  1453.                 MoveToPos = nil,
  1454.                 RotationX = MRANDOM(-50, 50) / 10,
  1455.                 RotationY = MRANDOM(-50, 50) / 10,
  1456.                 RotationZ = MRANDOM(-50, 50) / 10,
  1457.                 Material = "Neon",
  1458.                 Color = C3(1, 1, 1),
  1459.                 SoundID = nil,
  1460.                 SoundPitch = nil,
  1461.                 SoundVolume = nil
  1462.             })
  1463.         end
  1464.         ATTACK = true
  1465.         Rooted = true
  1466.         UNANCHOR = false
  1467.         RootPart.Anchored = true
  1468.         RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  1469.         for i = 1, 5 do
  1470.             WACKYEFFECT({
  1471.                 Time = MRANDOM(15, 35),
  1472.                 EffectType = "Round Slash",
  1473.                 Size = VT(0, 0, 0),
  1474.                 Size2 = VT(0.3, 0, 0.3),
  1475.                 Transparency = 0.5,
  1476.                 Transparency2 = 1,
  1477.                 CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  1478.                 MoveToPos = nil,
  1479.                 RotationX = MRANDOM(-50, 50) / 10,
  1480.                 RotationY = MRANDOM(-50, 50) / 10,
  1481.                 RotationZ = MRANDOM(-50, 50) / 10,
  1482.                 Material = "Neon",
  1483.                 Color = C3(1, 1, 1),
  1484.                 SoundID = nil,
  1485.                 SoundPitch = nil,
  1486.                 SoundVolume = nil
  1487.             })
  1488.         end
  1489.         for i = 0, 0.2, 0.1 / Animation_Speed do
  1490.             Swait()
  1491.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  1492.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1493.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1494.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1495.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1496.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
  1497.         end
  1498.         for i = 0, 1, 0.1 / Animation_Speed do
  1499.             Swait()
  1500.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  1501.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  1502.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  1503.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  1504.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  1505.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  1506.         end
  1507.         for i = 1, 10 do
  1508.             Swait()
  1509.             RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  1510.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  1511.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  1512.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  1513.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  1514.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  1515.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  1516.         end
  1517.         for i = 0, 0.2, 0.1 / Animation_Speed do
  1518.             Swait()
  1519.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  1520.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  1521.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1522.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  1523.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1524.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1525.         end
  1526.         local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  1527.         if HITFLOOR then
  1528.             if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1529.                 local CHILDREN = HITFLOOR.Parent:GetDescendants()
  1530.                 for index, CHILD in pairs(CHILDREN) do
  1531.                     if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  1532.                         for i = 1, 5 do
  1533.                             CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, VT(math.random(.5,2), math.random(.5,2), math.random(.5,2)), 5, 150)
  1534.                             CHILD:remove()
  1535.                         end
  1536.                     end
  1537.                 end
  1538.                 local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1539.                 SOUNDPART.CFrame = CF(HITPOS)
  1540.                 Debris:AddItem(SOUNDPART, 5)
  1541.                 CreateSound("130972023", SOUNDPART, 6, 3)
  1542.                 CreateSound("182765513", SOUNDPART, 6, 1)
  1543.                 WACKYEFFECT({
  1544.                     EffectType = "Ring",
  1545.                     Size = VT(0, 0, 0),
  1546.                     Size2 = VT(6, 6, 10),
  1547.                     Transparency = .3,
  1548.                     Transparency2 = 1,
  1549.                     CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1550.                     MoveToPos = nil,
  1551.                     RotationX = 0,
  1552.                     RotationY = 0,
  1553.                     RotationZ = 0,
  1554.                     Material = "Neon",
  1555.                     Color = C3(1, 1, 1),
  1556.                     SoundID = nil,
  1557.                     SoundPitch = nil,
  1558.                     SoundVolume = nil
  1559.                 })
  1560.             elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1561.                 local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  1562.                 for index, CHILD in pairs(CHILDREN) do
  1563.                     if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  1564.                         for i = 1, 5 do
  1565.                             CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, VT(math.random(.5,2), math.random(.5,2), math.random(.5,2)), 5, 150)
  1566.                             CHILD:remove()
  1567.                         end
  1568.                     end
  1569.                 end
  1570.                 local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1571.                 SOUNDPART.CFrame = CF(HITPOS)
  1572.                 Debris:AddItem(SOUNDPART, 5)
  1573.                 CreateSound("130972023", SOUNDPART, 6, 3)
  1574.                 CreateSound("182765513", SOUNDPART, 6, 1)
  1575.                 WACKYEFFECT({
  1576.                     EffectType = "Ring",
  1577.                     Size = VT(0, 0, 0),
  1578.                     Size2 = VT(6, 6, 10),
  1579.                     Transparency = 0.3,
  1580.                     Transparency2 = 1,
  1581.                     CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1582.                     MoveToPos = nil,
  1583.                     RotationX = 0,
  1584.                     RotationY = 0,
  1585.                     RotationZ = 0,
  1586.                     Material = "Neon",
  1587.                     Color = C3(1, 1, 1),
  1588.                     SoundID = nil,
  1589.                     SoundPitch = nil,
  1590.                     SoundVolume = nil
  1591.                 })
  1592.             elseif HITFLOOR.Anchored == false then
  1593.                 if HITFLOOR.Parent ~= workspace then
  1594.                     local CHILDREN = HITFLOOR.Parent:GetDescendants()
  1595.                     for index, CHILD in pairs(CHILDREN) do
  1596.                         if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  1597.                             for i = 1, 5 do
  1598.                                 CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, VT(math.random(.5,2), math.random(.5,2), math.random(.5,2)), 5, 150)
  1599.                             end
  1600.                             CHILD:remove()
  1601.                         end
  1602.                     end
  1603.                 else
  1604.                     for i = 1, 5 do
  1605.                         CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, VT(math.random(.5,2), math.random(.5,2), math.random(.5,2)), 5, 150)
  1606.                     end
  1607.                     HITFLOOR:remove()
  1608.                 end
  1609.                 local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1610.                 SOUNDPART.CFrame = CF(HITPOS)
  1611.                 Debris:AddItem(SOUNDPART, 5)
  1612.                 CreateSound("130972023", SOUNDPART, 10, 3)
  1613.                 CreateSound("178452217", SOUNDPART, 6, 1)
  1614.                 WACKYEFFECT({
  1615.                     EffectType = "Ring",
  1616.                     Size = VT(0, 0, 0),
  1617.                     Size2 = VT(6, 6, 10),
  1618.                     Transparency = 0.3,
  1619.                     Transparency2 = 1,
  1620.                     CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1621.                     MoveToPos = nil,
  1622.                     RotationX = 0,
  1623.                     RotationY = 0,
  1624.                     RotationZ = 0,
  1625.                     Material = "Neon",
  1626.                     Color = C3(1, 1, 1),
  1627.                     SoundID = nil,
  1628.                     SoundPitch = nil,
  1629.                     SoundVolume = nil
  1630.                 })
  1631.             else
  1632.                 local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1633.                 SOUNDPART.CFrame = CF(HITPOS)
  1634.                 Debris:AddItem(SOUNDPART, 5)
  1635.                 CreateSound("130972023", SOUNDPART, 10, 1)
  1636.                 CreateSound("130972023", SOUNDPART, 6, 0.7)
  1637.                 CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  1638.                 CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  1639.                 ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  1640.                 ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  1641.                 for i = 1, 5 do
  1642.                     CreateFlyingDebree(HITFLOOR, CF(HITPOS), 2, VT(math.random(4,8), math.random(4,8), math.random(4,8)), 5, 150)
  1643.                 end
  1644.         for i = 1, 5 do
  1645.             WACKYEFFECT({
  1646.                 Time = 75,
  1647.                 EffectType = "Sphere",
  1648.                 Size = VT(20, 10, 20),
  1649.                 Size2 = VT(30, 15, 30) * i,
  1650.                 Transparency = 0.5,
  1651.                 Transparency2 = 1,
  1652.                 CFrame = CF(HITPOS),
  1653.                 MoveToPos = nil,
  1654.                 RotationX = 0,
  1655.                 RotationY = 0,
  1656.                 RotationZ = 0,
  1657.                 Material = "Neon",
  1658.                 Color = White,
  1659.                 SoundID = 627724804,
  1660.                 SoundPitch = 1,
  1661.                 SoundVolume = 10
  1662.             })
  1663.         end
  1664.                 for i = 1, 5 do
  1665.                     CreateFlyingDebree(HITFLOOR, CF(HITPOS), 2, VT(math.random(4,8), math.random(4,8), math.random(4,8)), 5, 150)
  1666.                 end
  1667.             end
  1668.         end
  1669.         for i = 0, 1.2, 0.1 / Animation_Speed do
  1670.             Swait()
  1671.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  1672.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  1673.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1674.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  1675.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1676.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1677.         end
  1678.         ATTACK = false
  1679.         Rooted = false
  1680.         UNANCHOR = true
  1681.         RootPart.Anchored = false
  1682.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1683.     end
  1684. end
  1685.  
  1686. -- fat
  1687.  
  1688. function Yes()
  1689.         ATTACK = true
  1690.     PLAYANIMS = false
  1691.         Rooted = true
  1692.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=40770311"
  1693.         CreateSound(895472214,Torso,2,MRANDOM(10,10)/10,false)
  1694.     for i=0, 1.5, 0.1 / 1.2 do
  1695.         Swait()
  1696.             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)
  1697.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1698.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1699.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1700.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1701.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1702.     end
  1703.     for i=0, 1.5, 0.1 / 1.2 do
  1704.         Swait()
  1705.             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)
  1706.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1707.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1708.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1709.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1710.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1711.     end
  1712.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1713.     PLAYANIMS = true
  1714.         Rooted = false
  1715.         ATTACK = false
  1716. end
  1717.  
  1718. function Hi()
  1719.         ATTACK = true
  1720.     PLAYANIMS = false
  1721.         Rooted = true
  1722.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=16132434"
  1723.         CreateSound(659669306,Torso,2,MRANDOM(9.5,10.5)/10,false)
  1724.     for i=0, 1.5, 0.1 / 1.2 do
  1725.         Swait()
  1726.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(-5), RAD(-10)), 0.15 / Animation_Speed)
  1727.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(-10), RAD(0)), 0.15 / Animation_Speed)
  1728.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1729.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1730.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1731.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1732.     end
  1733.     for i=0, 1.5, 0.1 / 1.2 do
  1734.         Swait()
  1735.             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)
  1736.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(-10), RAD(-10)), 0.15 / Animation_Speed)
  1737.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1738.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1739.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1740.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1741.     end
  1742.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1743.     PLAYANIMS = true
  1744.         Rooted = false
  1745.         ATTACK = false
  1746. end
  1747.  
  1748. function Animate(INOUT)
  1749.     if INOUT == "In" then
  1750.         ANIMATE.Parent = Character
  1751.         RootJoint.C0 = ROOTC0
  1752.         Neck.C0 = NECKC0
  1753.         RightShoulder.C0 = CF(1.5, 0.5, 0) * RIGHTSHOULDERC0
  1754.         LeftShoulder.C0 = CF(-1.5, 0.5, 0) * LEFTSHOULDERC0
  1755.         RightHip.C0 = CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1756.         LeftHip.C0 = CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1757.     elseif INOUT == "Out" then
  1758.         for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1759.             v:Stop();
  1760.         end
  1761.         ANIMATE.Parent = nil
  1762.     end
  1763. end
  1764.  
  1765. function No()
  1766.         ATTACK = true
  1767.     PLAYANIMS = false
  1768.         Rooted = true
  1769.         CreateSound(299172598,Torso,2,MRANDOM(10,10)/10,false)
  1770.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=22451609"
  1771.     for i=0, 1.5, 0.1 / 5 do
  1772.         Swait()
  1773.             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)
  1774.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(-10), RAD(0)), 0.15 / Animation_Speed)
  1775.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1776.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1777.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1778.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1779.     end
  1780.     for i=0, 1.5, 0.1 / Animation_Speed do
  1781.         Swait()
  1782.             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)
  1783.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(-10), RAD(0)), 0.15 / Animation_Speed)
  1784.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1785.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1786.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1787.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1788.     end
  1789.     PLAYANIMS = true
  1790.         Character.Head.face.Texture = "http://www.roblox.com/asset/?id=219826504"
  1791.         Rooted = false
  1792.         ATTACK = false
  1793. end
  1794.  
  1795. local NECK = Neck
  1796. local RIGHTSHOULDER = RightShoulder
  1797. local LEFTSHOULDER = LeftShoulder
  1798. local RIGHTHIP = RightHip
  1799. local LEFTHIP = LeftHip
  1800.  
  1801. function NewSound(TABLE)
  1802.     local ID = "rbxassetid://"..(TABLE.ID or 0)
  1803.     local PARENT = (TABLE.PARENT or ROOT)
  1804.     local VOLUME = (TABLE.VOLUME or 0.5)
  1805.     local PITCH = (TABLE.PITCH or 1)
  1806.     local LOOP = (TABLE.LOOP or false)
  1807.     local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
  1808.     local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
  1809.     local PLAYING = (TABLE.PLAYING or true)
  1810.     local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
  1811.     local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
  1812.     if ID ~= "rbxassetid://0" then
  1813.         local SOUND = IT("Sound",PARENT)
  1814.         SOUND.SoundId = ID
  1815.         SOUND.Volume = VOLUME
  1816.         SOUND.Pitch = PITCH
  1817.         SOUND.Looped = LOOP
  1818.         SOUND.MaxDistance = MAXDISTANCE
  1819.         SOUND.EmitterSize = EMITTERSIZE
  1820.         SOUND.PlayOnRemove = PLAYONREMOVE
  1821.         if DOESDEBRIS == true and PLAYING == true and LOOP == false then
  1822.             Debris:AddItem(SOUND,SOUND.TimeLength+5)
  1823.         end
  1824.         if PLAYING == true then
  1825.             SOUND:Play()
  1826.         end
  1827.         return SOUND
  1828.     end
  1829. end
  1830.  
  1831. function The_Future_Is_Now()
  1832.         Animate("Out")
  1833.         ATTACK = true
  1834.         local FACE = Head.face
  1835.         local MESH = function(MESHID,TEXTURE,SIZE)
  1836.             if MESHID then
  1837.                 for index, CHILD in pairs(Character:GetDescendants()) do
  1838.                     if CHILD:IsA("BasePart") then
  1839.                         CHILD.Transparency = 1
  1840.                     end
  1841.                 end
  1842.                 FACE.Transparency = 1
  1843.                 Torso.Transparency = 0
  1844.                 local MESH = Torso:FindFirstChildOfClass("SpecialMesh") or IT("SpecialMesh",Torso)
  1845.                 MESH.MeshId = "rbxassetid://"..MESHID
  1846.                 MESH.TextureId = "rbxassetid://"..TEXTURE
  1847.                 MESH.Scale = SIZE
  1848.                 MESH.Offset = VT(0,0.5,0)
  1849.             else
  1850.                 for index, CHILD in pairs(Character:GetDescendants()) do
  1851.                     if CHILD:IsA("BasePart") then
  1852.                         CHILD.Transparency = 0
  1853.                     end
  1854.                 end
  1855.                 FACE.Transparency = 0
  1856.                 Torso.Transparency = 1
  1857.                 if Torso:FindFirstChildOfClass("SpecialMesh") then
  1858.                     Torso:FindFirstChildOfClass("SpecialMesh"):Remove()
  1859.                 end
  1860.             end
  1861.         end
  1862.         local BOOMED = false
  1863.         local WARIO = NewSound({ID = 2989518230,PARENT = Torso,VOLUME = 5,PITCH = 1,LOOP = false,MAXDISTANCE = 200,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  1864.         repeat
  1865.             Swait()
  1866.             if WARIO.TimePosition <= 2.335 then
  1867.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1868.                 NECK.C0 = Clerp(NECK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-65), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1869.                 RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1870.                 LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1871.                 RIGHTHIP.C0 = Clerp(RIGHTHIP.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1872.                 LEFTHIP.C0 = Clerp(LEFTHIP.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1873.             elseif WARIO.TimePosition > 2.335 and WARIO.TimePosition < 3.35 then
  1874.                 MESH(441220320,441220324,VT(0.4,0.4,0.4))
  1875.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1876.                 NECK.C0 = Clerp(NECK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1877.                 RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1878.                 LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1879.                 RIGHTHIP.C0 = Clerp(RIGHTHIP.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1880.                 LEFTHIP.C0 = Clerp(LEFTHIP.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1881.             else
  1882.                 if BOOMED == false then
  1883.                     BOOMED = true
  1884.                     local BOOM = IT("Explosion")
  1885.                     BOOM.Position = Torso.Position
  1886.                     BOOM.BlastRadius = 0
  1887.                     BOOM.Parent = Torso
  1888.                 end
  1889.                 MESH(441220320,441220324,VT(0,0,0))
  1890.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1891.                 NECK.C0 = Clerp(NECK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1892.                 RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1893.                 LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1894.                 RIGHTHIP.C0 = Clerp(RIGHTHIP.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1895.                 LEFTHIP.C0 = Clerp(LEFTHIP.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1896.             end
  1897.         until WARIO.Playing == false or WARIO.Parent ~= Torso
  1898.         FACE.Transparency = 1
  1899.         Head.Transparency = 1
  1900.         Torso.Transparency = 1
  1901.         RightArm.Transparency = 1
  1902.         LeftArm.Transparency = 1
  1903.         RightLeg.Transparency = 1
  1904.         LeftLeg.Transparency = 1
  1905.         local textblin = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  1906.         textblin.Adornee = cykablyat
  1907.         textblin.Name = "ky"
  1908.         textblin.Size = UDim2.new(2, 0, 1.2, 0)
  1909.         textblin.StudsOffset = Vector3.new(-5, 3, 0)
  1910.         local textblin= Instance.new("TextLabel", textblin)
  1911.         textblin.Size = UDim2.new(6, 0, 1, 0)
  1912.         textblin.FontSize = "Size14"
  1913.         textblin.TextScaled = true
  1914.         textblin.TextTransparency = 0
  1915.         textblin.BackgroundTransparency = 1
  1916.         textblin.TextTransparency = 0
  1917.         textblin.TextStrokeTransparency = 0
  1918.         textblin.Font = "Cartoon"
  1919.         textblin.TextStrokeColor3 = Color3.new(255,255,255)
  1920.         textblin.TextColor3 = Color3.new(255,0,0)
  1921.         textblin.Text = "ded"
  1922.         local OOF = NewSound({ID = 434976383,PARENT = Torso,VOLUME = 5,PITCH = 1,LOOP = true,MAXDISTANCE = 200,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  1923.         Animate("Idle")
  1924.     end
  1925.  
  1926. --//=================================\\
  1927. --||      ASSIGN THINGS TO KEYS
  1928. --\\=================================//
  1929.  
  1930. function MouseDown(Mouse)
  1931. HOLD = true
  1932. end
  1933.  
  1934. function MouseUp(Mouse)
  1935. HOLD = false
  1936. end
  1937.  
  1938.  
  1939. function KeyDown(Key)
  1940.     KEYHOLD = true
  1941.  
  1942.     if Key == "t" and ATTACK == false then
  1943.         Taunt()
  1944.     end
  1945.  
  1946.     if Key == "y" and ATTACK == false then
  1947.         Taunt2()
  1948.     end
  1949.  
  1950.     if Key == "u" and ATTACK == false then
  1951.         Taunt3()
  1952.     end
  1953.  
  1954.     if Key == "z" and ATTACK == false then
  1955.         Yes()
  1956.     end
  1957.  
  1958.     if Key == "x" and ATTACK == false then
  1959.         No()
  1960.     end
  1961.  
  1962.     if Key == "c" and ATTACK == false then
  1963.         Hi()
  1964.     end
  1965.  
  1966.     if Key == "v" and ATTACK == false then
  1967.         The_Future_Is_Now()
  1968.     end
  1969.  
  1970.     if Key == "f" and ATTACK == false then
  1971.         Shell()
  1972.     end
  1973.  
  1974.     if Key == "g" and ATTACK == false then
  1975.         Extreme_Offset()
  1976.     end
  1977.  
  1978.     if string.byte(Key) == 50 then
  1979.         if Speed == 12 then
  1980.             Speed = 30
  1981.         elseif Speed == 30 then
  1982.             Speed = 12
  1983.         end
  1984.     end
  1985. end
  1986.  
  1987. function KeyUp(Key)
  1988.     KEYHOLD = false
  1989. end
  1990.  
  1991.     Mouse.Button1Down:connect(function(NEWKEY)
  1992.         MouseDown(NEWKEY)
  1993.     end)
  1994.     Mouse.Button1Up:connect(function(NEWKEY)
  1995.         MouseUp(NEWKEY)
  1996.     end)
  1997.     Mouse.KeyDown:connect(function(NEWKEY)
  1998.         KeyDown(NEWKEY)
  1999.     end)
  2000.     Mouse.KeyUp:connect(function(NEWKEY)
  2001.         KeyUp(NEWKEY)
  2002.     end)
  2003.  
  2004. --//=================================\\
  2005. --\\=================================//
  2006.  
  2007. function unanchor()
  2008.     if UNANCHOR == true then
  2009.         g = Character:GetChildren()
  2010.         for i = 1, #g do
  2011.             if g[i].ClassName == "Part" then
  2012.                 g[i].Anchored = false
  2013.             end
  2014.         end
  2015.     end
  2016. end
  2017.  
  2018. --//=================================\\
  2019. --||    WRAP THE WHOLE SCRIPT UP
  2020. --\\=================================//
  2021.  
  2022. Humanoid.Changed:connect(function(Jump)
  2023.     if Jump == "Jump" and (Disable_Jump == true) then
  2024.         Humanoid.Jump = false
  2025.     end
  2026. end)
  2027.  
  2028. while true do
  2029.     Swait()
  2030.     script.Parent = WEAPONGUI
  2031.     ANIMATE.Parent = nil
  2032.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2033.         v:Stop();
  2034.     end
  2035.     SINE = SINE + CHANGE
  2036.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2037.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2038.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2039.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2040.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2041.         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)
  2042.         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)
  2043.         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)
  2044.         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)
  2045.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2046.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2047.         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)
  2048.         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)
  2049.         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)
  2050.     end
  2051.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2052.         ANIM = "Jump"
  2053.         if PLAYANIMS == true then
  2054.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2055.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2056.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2057.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2058.             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)
  2059.             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)
  2060.         end
  2061.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2062.         ANIM = "Fall"
  2063.         if PLAYANIMS == true then
  2064.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2065.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2066.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2067.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2068.             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)
  2069.             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)
  2070.         end
  2071.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2072.         ANIM = "Idle"
  2073.         if PLAYANIMS == true then
  2074.             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)
  2075.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2076.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2077.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2078.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2079.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2080.         end
  2081.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2082.         ANIM = "Walk"
  2083.         if PLAYANIMS == true then
  2084.             if Humanoid.WalkSpeed <= 17 then
  2085.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  2086.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  2087.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2088.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2089.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(88), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2090.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-88), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2091.             else
  2092.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2093.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  2094.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE)), 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(10+60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2095.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE)), 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(10-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2096.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
  2097.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
  2098.             end
  2099.         end
  2100.     end
  2101.     unanchor()
  2102.     if Rooted == false then
  2103.         Disable_Jump = false
  2104.         Humanoid.WalkSpeed = Speed
  2105.     elseif Rooted == true then
  2106.         Disable_Jump = true
  2107.         Humanoid.WalkSpeed = 0
  2108.     end
  2109.     Humanoid.Health = Humanoid.Health + 1
  2110. end
  2111.  
  2112. --//=================================\\
  2113. --\\=================================//
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119. --//====================================================\\--
  2120. --||                     END OF SCRIPT
  2121. --\\====================================================//--
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top