SHARE
TWEET

?

a guest Jan 18th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. warn("if ur reading this ur gay")
  87. Player = owner
  88. PlayerGui = Player.PlayerGui
  89. Cam = workspace.CurrentCamera
  90. Backpack = Player.Backpack
  91. Character = Player.Character
  92. Humanoid = Character.Humanoid
  93. RootPart = Character["HumanoidRootPart"]
  94. Torso = Character["Torso"]
  95. Head = Character["Head"]
  96. RightArm = Character["Right Arm"]
  97. LeftArm = Character["Left Arm"]
  98. RightLeg = Character["Right Leg"]
  99. LeftLeg = Character["Left Leg"]
  100. RootJoint = RootPart["RootJoint"]
  101. Neck = Torso["Neck"]
  102. RightShoulder = Torso["Right Shoulder"]
  103. LeftShoulder = Torso["Left Shoulder"]
  104. RightHip = Torso["Right Hip"]
  105. LeftHip = Torso["Left Hip"]
  106. local TIME = 0
  107. local sick = Instance.new("Sound",Torso)
  108.  
  109. IT = Instance.new
  110. CF = CFrame.new
  111. VT = Vector3.new
  112. RAD = math.rad
  113. C3 = Color3.new
  114. UD2 = UDim2.new
  115. BRICKC = BrickColor.new
  116. ANGLES = CFrame.Angles
  117. EULER = CFrame.fromEulerAnglesXYZ
  118. COS = math.cos
  119. ACOS = math.acos
  120. SIN = math.sin
  121. ASIN = math.asin
  122. ABS = math.abs
  123. MRANDOM = math.random
  124. FLOOR = math.floor
  125.  
  126. --//=================================\\
  127. --||        Value shit things
  128. --\\=================================//
  129.  
  130. Animation_Speed = 3
  131. local FORCERESET = false
  132. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  133. local SIZE = 1
  134. local Speed = 24
  135. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  136. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  137. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  138. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  139. local DAMAGEMULTIPLIER = 1
  140. local ANIM = "Idle"
  141. local ATTACK = false
  142. local EQUIPPED = false
  143. local HOLD = false
  144. local COMBO = 1
  145. local Rooted = false
  146. local SINE = 0
  147. local KEYHOLD = false
  148. local CHANGE = 2 / Animation_Speed
  149. local WALKINGANIM = false
  150. local VALUE1 = false
  151. local VALUE2 = false
  152. local ROBLOXIDLEANIMATION = IT("Animation")
  153. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  154. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  155. --ROBLOXIDLEANIMATION.Parent = Humanoid
  156. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  157. WEAPONGUI.Name = "BanishV3Gui"
  158. local Weapon = IT("Model")
  159. Weapon.Name = "Adds"
  160. local Effects = IT("Folder", Weapon)
  161. Effects.Name = "Effects"
  162. local ANIMATOR = Humanoid.Animator
  163. local ANIMATE = Character:FindFirstChild("Animate")
  164. local UNANCHOR = true
  165. local TOBANISH = {}
  166. Player_Size = 1
  167. local kan = Instance.new("Sound",Character)
  168. kan.Volume = 1.25
  169. kan.TimePosition = 0
  170. kan.PlaybackSpeed = 1
  171. kan.Pitch = 1
  172. kan.SoundId = "rbxassetid://614032233"
  173. kan.Name = "wrecked"
  174. kan.Looped = true
  175. kan:Play()
  176. local Mode = 1
  177. local currentThemePlaying = kan.SoundId
  178. local currentPitch = kan.Pitch
  179. local currentVol = kan.Volume
  180. --//=================================\\
  181. --\\=================================//
  182. for i,v in pairs(Character:children()) do
  183.     if v:IsA("Accessory") then
  184.         v:Destroy()
  185.     end
  186. end
  187.  
  188. warn("CREATED BY AlmightyToast#6465")
  189. warn("aka KrYn0MoRe or ShrekBenson")
  190. warn("DOnt rEm0vE tH1s 0r uR gAy")
  191. --//=================================\\
  192. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  193. --\\=================================//
  194.  
  195. ArtificialHB = Instance.new("BindableEvent", script)
  196. ArtificialHB.Name = "ArtificialHB"
  197.  
  198. script:WaitForChild("ArtificialHB")
  199.  
  200. frame = Frame_Speed
  201. tf = 0
  202. allowframeloss = false
  203. tossremainder = false
  204. lastframe = tick()
  205. script.ArtificialHB:Fire()
  206.  
  207. game:GetService("RunService").Heartbeat:connect(function(s, p)
  208.     tf = tf + s
  209.     if tf >= frame then
  210.         if allowframeloss then
  211.             script.ArtificialHB:Fire()
  212.             lastframe = tick()
  213.         else
  214.             for i = 1, math.floor(tf / frame) do
  215.                 script.ArtificialHB:Fire()
  216.             end
  217.         lastframe = tick()
  218.         end
  219.         if tossremainder then
  220.             tf = 0
  221.         else
  222.             tf = tf - frame * math.floor(tf / frame)
  223.         end
  224.     end
  225. end)
  226.  
  227. --//=================================\\
  228. --\\=================================//
  229.  
  230. --//=================================\\
  231. --||          MOST FUNCTIONS
  232. --\\=================================//
  233.  
  234. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  235.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  236. end
  237.  
  238. function PositiveAngle(NUMBER)
  239.     if NUMBER >= 0 then
  240.         NUMBER = 0
  241.     end
  242.     return NUMBER
  243. end
  244.  
  245. function NegativeAngle(NUMBER)
  246.     if NUMBER <= 0 then
  247.         NUMBER = 0
  248.     end
  249.     return NUMBER
  250. end
  251.  
  252. function Swait(NUMBER)
  253.     if NUMBER == 0 or NUMBER == nil then
  254.         ArtificialHB.Event:wait()
  255.     else
  256.         for i = 1, NUMBER do
  257.             ArtificialHB.Event:wait()
  258.         end
  259.     end
  260. end
  261.  
  262. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  263.     local NEWMESH = IT(MESH)
  264.     if MESH == "SpecialMesh" then
  265.         NEWMESH.MeshType = MESHTYPE
  266.         if MESHID ~= "nil" and MESHID ~= "" then
  267.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  268.         end
  269.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  270.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  271.         end
  272.     end
  273.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  274.     NEWMESH.Scale = SCALE
  275.     NEWMESH.Parent = PARENT
  276.     return NEWMESH
  277. end
  278.  
  279. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  280.     local NEWPART = IT("Part")
  281.     NEWPART.formFactor = FORMFACTOR
  282.     NEWPART.Reflectance = REFLECTANCE
  283.     NEWPART.Transparency = TRANSPARENCY
  284.     NEWPART.CanCollide = false
  285.     NEWPART.Locked = true
  286.     NEWPART.Anchored = true
  287.     if ANCHOR == false then
  288.         NEWPART.Anchored = false
  289.     end
  290.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  291.     NEWPART.Name = NAME
  292.     NEWPART.Size = SIZE
  293.     NEWPART.Position = Torso.Position
  294.     NEWPART.Material = MATERIAL
  295.     NEWPART:BreakJoints()
  296.     NEWPART.Parent = PARENT
  297.     return NEWPART
  298. end
  299.  
  300.     local function weldBetween(a, b)
  301.         local weldd = IT("Weld")
  302.         weldd.Part0 = a
  303.         weldd.Part1 = b
  304.         weldd.C0 = CF()
  305.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  306.         weldd.Parent = a
  307.         return weldd
  308.     end
  309.  
  310.  
  311. function QuaternionFromCFrame(cf)
  312.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  313.     local trace = m00 + m11 + m22
  314.     if trace > 0 then
  315.         local s = math.sqrt(1 + trace)
  316.         local recip = 0.5 / s
  317.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  318.     else
  319.         local i = 0
  320.         if m11 > m00 then
  321.             i = 1
  322.         end
  323.         if m22 > (i == 0 and m00 or m11) then
  324.             i = 2
  325.         end
  326.         if i == 0 then
  327.             local s = math.sqrt(m00 - m11 - m22 + 1)
  328.             local recip = 0.5 / s
  329.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  330.         elseif i == 1 then
  331.             local s = math.sqrt(m11 - m22 - m00 + 1)
  332.             local recip = 0.5 / s
  333.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  334.         elseif i == 2 then
  335.             local s = math.sqrt(m22 - m00 - m11 + 1)
  336.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  337.         end
  338.     end
  339. end
  340.  
  341. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  342.     local xs, ys, zs = x + x, y + y, z + z
  343.     local wx, wy, wz = w * xs, w * ys, w * zs
  344.     local xx = x * xs
  345.     local xy = x * ys
  346.     local xz = x * zs
  347.     local yy = y * ys
  348.     local yz = y * zs
  349.     local zz = z * zs
  350.     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))
  351. end
  352.  
  353. function QuaternionSlerp(a, b, t)
  354.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  355.     local startInterp, finishInterp;
  356.     if cosTheta >= 0.0001 then
  357.         if (1 - cosTheta) > 0.0001 then
  358.             local theta = ACOS(cosTheta)
  359.             local invSinTheta = 1 / SIN(theta)
  360.             startInterp = SIN((1 - t) * theta) * invSinTheta
  361.             finishInterp = SIN(t * theta) * invSinTheta
  362.         else
  363.             startInterp = 1 - t
  364.             finishInterp = t
  365.         end
  366.     else
  367.         if (1 + cosTheta) > 0.0001 then
  368.             local theta = ACOS(-cosTheta)
  369.             local invSinTheta = 1 / SIN(theta)
  370.             startInterp = SIN((t - 1) * theta) * invSinTheta
  371.             finishInterp = SIN(t * theta) * invSinTheta
  372.         else
  373.             startInterp = t - 1
  374.             finishInterp = t
  375.         end
  376.     end
  377.     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
  378. end
  379.  
  380. function Clerp(a, b, t)
  381.     local qa = {QuaternionFromCFrame(a)}
  382.     local qb = {QuaternionFromCFrame(b)}
  383.     local ax, ay, az = a.x, a.y, a.z
  384.     local bx, by, bz = b.x, b.y, b.z
  385.     local _t = 1 - t
  386.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  387. end
  388.  
  389. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  390.     local frame = IT("Frame")
  391.     frame.BackgroundTransparency = TRANSPARENCY
  392.     frame.BorderSizePixel = BORDERSIZEPIXEL
  393.     frame.Position = POSITION
  394.     frame.Size = SIZE
  395.     frame.BackgroundColor3 = COLOR
  396.     frame.BorderColor3 = BORDERCOLOR
  397.     frame.Name = NAME
  398.     frame.Parent = PARENT
  399.     return frame
  400. end
  401.  
  402. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  403.     local label = IT("TextLabel")
  404.     label.BackgroundTransparency = 1
  405.     label.Size = UD2(1, 0, 1, 0)
  406.     label.Position = UD2(0, 0, 0, 0)
  407.     label.TextColor3 = TEXTCOLOR
  408.     label.TextStrokeTransparency = STROKETRANSPARENCY
  409.     label.TextTransparency = TRANSPARENCY
  410.     label.FontSize = TEXTFONTSIZE
  411.     label.Font = TEXTFONT
  412.     label.BorderSizePixel = BORDERSIZEPIXEL
  413.     label.TextScaled = false
  414.     label.Text = TEXT
  415.     label.Name = NAME
  416.     label.Parent = PARENT
  417.     return label
  418. end
  419.  
  420. function NoOutlines(PART)
  421.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  422. end
  423.  
  424. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  425.     local NEWWELD = IT(TYPE)
  426.     NEWWELD.Part0 = PART0
  427.     NEWWELD.Part1 = PART1
  428.     NEWWELD.C0 = C0
  429.     NEWWELD.C1 = C1
  430.     NEWWELD.Parent = PARENT
  431.     return NEWWELD
  432. end
  433.  
  434. local S = IT("Sound")
  435. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  436.     local NEWSOUND = nil
  437.     coroutine.resume(coroutine.create(function()
  438.         NEWSOUND = S:Clone()
  439.         NEWSOUND.Parent = PARENT
  440.         NEWSOUND.Volume = VOLUME
  441.         NEWSOUND.Pitch = PITCH
  442.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  443.         NEWSOUND:play()
  444.         if DOESLOOP == true then
  445.             NEWSOUND.Looped = true
  446.         else
  447.             repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  448.             NEWSOUND:remove()
  449.         end
  450.     end))
  451.     return NEWSOUND
  452. end
  453.  
  454. function CFrameFromTopBack(at, top, back)
  455.     local right = top:Cross(back)
  456.     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)
  457. end
  458.  
  459. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  460. function WACKYEFFECT(Table)
  461.     local TYPE = (Table.EffectType or "Sphere")
  462.     local SIZE = (Table.Size or VT(1,1,1))
  463.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  464.     local TRANSPARENCY = (Table.Transparency or 0)
  465.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  466.     local CFRAME = (Table.CFrame or Torso.CFrame)
  467.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  468.     local ROTATION1 = (Table.RotationX or 0)
  469.     local ROTATION2 = (Table.RotationY or 0)
  470.     local ROTATION3 = (Table.RotationZ or 0)
  471.     local MATERIAL = (Table.Material or "Neon")
  472.     local COLOR = (Table.Color or C3(1,1,1))
  473.     local TIME = (Table.Time or 45)
  474.     local SOUNDID = (Table.SoundID or nil)
  475.     local SOUNDPITCH = (Table.SoundPitch or nil)
  476.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  477.     coroutine.resume(coroutine.create(function()
  478.         local PLAYSSOUND = false
  479.         local SOUND = nil
  480.         local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  481.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  482.             PLAYSSOUND = true
  483.             SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  484.         end
  485.         EFFECT.Color = COLOR
  486.         local MSH = nil
  487.         if TYPE == "Sphere" then
  488.             MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  489.         elseif TYPE == "Block" then
  490.             MSH = IT("BlockMesh",EFFECT)
  491.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  492.         elseif TYPE == "Wave" then
  493.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  494.         elseif TYPE == "Ring" then
  495.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  496.         elseif TYPE == "Slash" then
  497.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  498.         elseif TYPE == "Round Slash" then
  499.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  500.         elseif TYPE == "Swirl" then
  501.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  502.         elseif TYPE == "Skull" then
  503.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  504.         elseif TYPE == "Crystal" then
  505.             MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  506.         end
  507.         if MSH ~= nil then
  508.             local MOVESPEED = nil
  509.             if MOVEDIRECTION ~= nil then
  510.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  511.             end
  512.             local GROWTH = SIZE - ENDSIZE
  513.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  514.             if TYPE == "Block" then
  515.                 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  516.             else
  517.                 EFFECT.CFrame = CFRAME
  518.             end
  519.             for LOOP = 1, TIME+1 do
  520.                 Swait()
  521.                 MSH.Scale = MSH.Scale - GROWTH/TIME
  522.                 if TYPE == "Wave" then
  523.                     MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  524.                 end
  525.                 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  526.                 if TYPE == "Block" then
  527.                     EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  528.                 else
  529.                     EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  530.                 end
  531.                 if MOVEDIRECTION ~= nil then
  532.                     local ORI = EFFECT.Orientation
  533.                     EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  534.                     EFFECT.Orientation = ORI
  535.                 end
  536.             end
  537.             if PLAYSSOUND == false then
  538.                 EFFECT:remove()
  539.             else
  540.                 SOUND.Stopped:Connect(function()
  541.                     EFFECT:remove()
  542.                 end)
  543.             end
  544.         else
  545.             if PLAYSSOUND == false then
  546.                 EFFECT:remove()
  547.             else
  548.                 repeat Swait() until SOUND.Playing == false
  549.                 EFFECT:remove()
  550.             end
  551.         end
  552.     end))
  553. end
  554.  
  555. function MakeForm(PART,TYPE)
  556.     if TYPE == "Cyl" then
  557.         local MSH = IT("CylinderMesh",PART)
  558.     elseif TYPE == "Ball" then
  559.         local MSH = IT("SpecialMesh",PART)
  560.         MSH.MeshType = "Sphere"
  561.     elseif TYPE == "Wedge" then
  562.         local MSH = IT("SpecialMesh",PART)
  563.         MSH.MeshType = "Wedge"
  564.     end
  565. end
  566.  
  567. function SpawnTrail(FROM,TO,BIG)
  568.     local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  569.     MakeForm(TRAIL,"Cyl")
  570.     local DIST = (FROM - TO).Magnitude
  571.     if BIG == true then
  572.         TRAIL.Size = VT(0.5,DIST,0.5)
  573.     else
  574.         TRAIL.Size = VT(0.25,DIST,0.25)
  575.     end
  576.     TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  577.     coroutine.resume(coroutine.create(function()
  578.         for i = 1, 5 do
  579.             Swait()
  580.             TRAIL.Transparency = TRAIL.Transparency + 0.1
  581.         end
  582.         TRAIL:remove()
  583.     end))
  584. end
  585.  
  586. Debris = game:GetService("Debris")
  587.  
  588. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  589.     local DIRECTION = CF(StartPos,EndPos).lookVector
  590.     return Raycast(StartPos, DIRECTION, Distance, Ignore)
  591. end
  592.  
  593. function turnto(position)
  594.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  595. end
  596. local asd = Instance.new("ParticleEmitter")
  597. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  598. asd.LightEmission = .1
  599. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  600. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  601. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  602. asd.Transparency = bbb
  603. asd.Size = aaa
  604. asd.ZOffset = .9
  605. asd.Acceleration = Vector3.new(0, -15, 0)
  606. asd.LockedToPart = false
  607. asd.EmissionDirection = "Back"
  608. asd.Lifetime = NumberRange.new(1, 2)
  609. asd.Rotation = NumberRange.new(-100, 100)
  610. asd.RotSpeed = NumberRange.new(-100, 100)
  611. asd.Speed = NumberRange.new(10)
  612. asd.Enabled = false
  613. asd.VelocitySpread = 999
  614.  
  615. function getbloody(victim,amount)
  616.     local PART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Blood", victim.Size)
  617.     PART.CFrame = victim.CFrame
  618.     local HITPLAYERSOUNDS = {"356551938","264486467"}
  619.     Debris:AddItem(PART,5)
  620.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  621.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  622.     CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  623.     local prtcl = asd:Clone()
  624.     prtcl.Parent = PART
  625.     prtcl:Emit(amount*10)
  626. end
  627.  
  628. local Particle = IT("ParticleEmitter",nil)
  629. Particle.Enabled = false
  630. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  631. Particle.LightEmission = 0.5
  632. Particle.Rate = 150
  633. Particle.ZOffset = 1
  634. Particle.Rotation = NumberRange.new(-180, 180)
  635. Particle.RotSpeed = NumberRange.new(-180, 180)
  636. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  637. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  638.  
  639. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  640. function ParticleEmitter(Table)
  641.     local PRTCL = Particle:Clone()
  642.     local Speed = Table.Speed or 5
  643.     local Drag = Table.Drag or 0
  644.     local Size1 = Table.Size1 or 1
  645.     local Size2 = Table.Size2 or 5
  646.     local Lifetime1 = Table.Lifetime1 or 1
  647.     local Lifetime2 = Table.Lifetime2 or 1.5
  648.     local Parent = Table.Parent or Torso
  649.     local Emit = Table.Emit or 100
  650.     local Offset = Table.Offset or 360
  651.     local Acel = Table.Acel or VT(0,0,0)
  652.     local Enabled = Table.Enabled or false
  653.     PRTCL.Parent = Parent
  654.     PRTCL.Size = NumberSequence.new(Size1,Size2)
  655.     PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  656.     PRTCL.Speed = NumberRange.new(Speed)
  657.     PRTCL.VelocitySpread = Offset
  658.     PRTCL.Drag = Drag
  659.     PRTCL.Acceleration = Acel
  660.     if Enabled == false then
  661.         PRTCL:Emit(Emit)
  662.         Debris:AddItem(PRTCL,Lifetime2)
  663.     else
  664.         PRTCL.Enabled = true
  665.     end
  666.     return PRTCL
  667. end
  668.  
  669. function unanchor()
  670.     if UNANCHOR == true then
  671.         g = Character:GetChildren()
  672.         for i = 1, #g do
  673.             if g[i].ClassName == "Part" then
  674.                 g[i].Anchored = false
  675.             end
  676.         end
  677.     end
  678. end
  679.  
  680. function newTheme(ID,timepos,pitch,vol)
  681. local kanz = kan
  682. --kanz:Stop()
  683. kanz.Volume = vol
  684. --kanz.TimePosition = timepos
  685. kanz.PlaybackSpeed = pitch
  686. kanz.Pitch = pitch
  687. kanz.SoundId = ID
  688. kanz.Name = "wrecked"
  689. kanz.Looped = true
  690. currentThemePlaying = kanz.SoundId
  691. currentVol = kanz.Volume
  692. currentPitch = kanz.Pitch
  693. --kanz:Play()
  694. --coroutine.resume(coroutine.create(function()
  695. --wait(0.05)
  696. --end))
  697. end
  698. newTheme("rbxassetid://1191722766",0,1,1)
  699.  
  700. --//=================================\\
  701. --||      Clothing,Meshes,etc
  702. --\\=================================//
  703. for i,v in pairs(Character:children()) do
  704.     if v:IsA("Clothing") then
  705.         v:Destroy()
  706.     end
  707. end
  708.  
  709. local top = Instance.new("Shirt")
  710. top.ShirtTemplate = "rbxassetid://2370477670"
  711. top.Parent = Character
  712. top.Name = "Shirt"
  713.  
  714. local bottom = Instance.new("Pants")
  715. bottom.PantsTemplate = "rbxassetid://1134873684"
  716. bottom.Parent = Character
  717. bottom.Name = "Pants"
  718.  
  719. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  720. PRT.Color = C3(0.7,0,1)
  721. local TopHat = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.87,0), CF(0, 0, 0))
  722. CreateMesh("SpecialMesh", PRT, "FileMesh", "1033213385", "", VT(1,1,1)*1.05, VT(0,0,0))
  723. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  724. PRT.Color = C3(0.7,0,1)
  725.  
  726. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  727. PRT.Color = C3(86,66,54)
  728. local Hair = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,0), ANGLES(0,3.5,0))
  729. CreateMesh("SpecialMesh", PRT, "FileMesh", "1702831244", "1702831287", VT(1,1,1)*1.05, VT(0,0,0))
  730. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  731. PRT.Color = C3(0.86,0.66,0.54)
  732.  
  733. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1, 4.1, 0.532),false)
  734. PRT.Color = C3(86,66,54)
  735. local Umbrella = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(-1.3,-0.8,0), ANGLES(0,0,-1.5))
  736. CreateMesh("SpecialMesh", PRT, "FileMesh", "1304506613", "1304506638", VT(1,1,1)*1.05, VT(0,0,0))
  737. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1,1,1),false)
  738. PRT.Color = C3(0.86,0.66,0.54)
  739.  
  740. for i = 1, 10 do
  741.     local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FAAEC", VT(1.01,0.5,1.01),false)
  742.     FACE.Color = C3(0,0,0)
  743.     Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  744.     CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  745.    end
  746. Head.face.Texture = "http://www.roblox.com/asset/?id=632698682"
  747. --//=================================\\
  748. --||            Attacks
  749. --\\=================================//
  750. function switch()
  751.     ATTACK = true
  752.     Rooted = true
  753.     CreateSound("363808674",workspace,8,1,false)
  754.     for i=0, 1.5, 0.1 / Animation_Speed do
  755.         Swait()
  756.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(18), RAD(0)), 1 / Animation_Speed)
  757.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  758.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  759.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  760.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  761.     end
  762.     CreateSound("363808674",workspace,8,1,false)
  763.     for i=0, 1.5, 0.1 / Animation_Speed do
  764.         Swait()
  765.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-18), RAD(0)), 1 / Animation_Speed)
  766.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  767.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(24)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  768.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  769.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  770.     end
  771. if Mode == 1 and Mode ~= 2 then
  772. Mode = 2
  773. Speed = 38
  774. Humanoid.WalkSpeed = Speed
  775. newTheme("rbxassetid://228255592",0,1,1)
  776. elseif Mode == 2 and Mode ~= 1 then
  777. Mode = 1
  778. Speed = 24
  779. Humanoid.WalkSpeed = Speed
  780. newTheme("rbxassetid://1191722766",0,1,1)
  781. end
  782. ATTACK = false
  783. Rooted = false
  784. end
  785.  
  786. function Spinning_Attack()
  787.     ATTACK = true
  788.     CreatePart("Block",LeftArm,"Plastic",0,1,BrickColor.new(0,0,0),"HitBox",Vector3.new(1,2,1),false)
  789.     local HitBox = LeftArm.HitBox
  790.     weldBetween(HitBox, LeftArm)
  791.     Humanoid.WalkSpeed = 3.01
  792.     for i = 0, 1.2, 0.1 do
  793.         Swait()
  794.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(-65)), 0.3)
  795.         Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  796.         RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  797.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-35), math.rad(0), math.rad(-10)), 0.3)
  798.         RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  799.         LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  800.       end
  801.     for i = 0, 4.6, 0.1 do
  802.         Swait()
  803.     CreateSound("2304904662",workspace,3,1,false)
  804.         HitBox.Touched:connect(function(hit)
  805.             if hit.Parent and hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass('Humanoid') then
  806.                 hit.Parent:FindFirstChildOfClass('Humanoid').Health = 1 - 9999e+999
  807.             end
  808.         end)
  809.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(65 + 255.45 * i)), 0.3)
  810.         Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  811.         RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(0), math.rad(47)), 0.1)
  812.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(-90), math.rad(-47)), 0.3)
  813.         RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  814.         LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-4.5), math.rad(0), math.rad(30)), 0.3)
  815.       end
  816.     ATTACK = false
  817.     Humanoid.WalkSpeed = 8
  818.     HitBox:Destroy()
  819. end
  820.  
  821. --//=================================\\
  822. --||          Key Functions
  823. --\\=================================//
  824. Mouse.KeyDown:connect(function(k)
  825.     if(ATTACK)then return end
  826.     if(k == 't')then
  827.         switch()
  828.     elseif(k == 'v')then
  829.         Spinning_Attack()
  830.     end
  831. end)
  832. --//=================================\\
  833. --||           Animations
  834. --\\=================================//
  835.  
  836. local CONNECT = nil
  837.  
  838. while true do
  839.     Swait()
  840.     ANIMATE.Parent = nil
  841.     if Character:FindFirstChildOfClass("Humanoid") == nil then
  842.         Humanoid = IT("Humanoid",Character)
  843.     end
  844.     for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  845.         v:Stop();
  846.     end
  847.     SINE = SINE + CHANGE
  848.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  849.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  850.     local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  851.     local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 12)
  852.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  853.         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)
  854.         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)
  855.         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.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  856.         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.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  857.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  858.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  859.         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)
  860.         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)
  861.         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)
  862.     end
  863.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  864.         ANIM = "Jump"
  865.         if ATTACK == false then
  866.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  867.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  868.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  869.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  870.             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)
  871.             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)
  872.         end
  873.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  874.         ANIM = "Fall"
  875.         if ATTACK == false then
  876.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  877.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  878.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  879.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  880.             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)
  881.             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)
  882.         end
  883.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  884.         ANIM = "Idle"
  885.         if ATTACK == false and Mode == 1 then
  886.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  887.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  888.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(220), RAD(45), RAD(-75))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  889.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  890.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  891.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  892.         end
  893.     if Mode == 2 then
  894.         ANIM = "Idle"
  895. RightHip.C0=Clerp(RightHip.C0,CF(1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(25 - 2 * math.cos(SINE / 32))),.1)
  896. LeftHip.C0=Clerp(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-25 + 2 * math.cos(SINE / 32))),.1)
  897. RootJoint.C0=Clerp(RootJoint.C0,ROOTC0*CF(0,-0.25 + 0.02 * math.cos(SINE / 32),-0.1 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(25 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(0)),.1)
  898. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  899. RightShoulder.C0=Clerp(RightShoulder.C0,CF(1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 + 5 * math.cos(SINE / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(SINE / 53)),math.rad(1 + 3 * math.cos(SINE / 45))),.1)
  900. LeftShoulder.C0=Clerp(LeftShoulder.C0,CF(-1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 - 3 * math.cos(SINE / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(SINE / 55)),math.rad(-3 - 3 * math.cos(SINE / 45))),.1)
  901. end
  902.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  903.         ANIM = "Walk"
  904.         if ATTACK == false then
  905.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  906.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  907.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  908.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  909.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  910.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  911.         end
  912.     end
  913.     unanchor()
  914.     Humanoid.MaxHealth = "inf"
  915.     Humanoid.Health = "inf"
  916.     if Rooted == false then
  917.         Disable_Jump = false
  918.         Humanoid.WalkSpeed = Speed
  919.     elseif Rooted == true then
  920.         Disable_Jump = true
  921.         Humanoid.WalkSpeed = 0
  922.     end
  923. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top