SHARE
TWEET

notive smash bros wip

HenloMyDude Aug 25th, 2019 (edited) 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. local Player = owner
  85. local Character = Player.Character
  86. local plr = owner
  87. local Humanoid = Character.Humanoid
  88. local char = plr.Character
  89. local hum = char.Humanoid
  90. local ra = char["Right Arm"]
  91. local la= char["Left Arm"]
  92. local rl= char["Right Leg"]
  93. local ll = char["Left Leg"]
  94. local hed = char.Head
  95. local root = char.HumanoidRootPart
  96. local rootj = root.RootJoint
  97. local tors = char.Torso
  98. local LeftArm = Character["Left Arm"]
  99. local RightArm = Character["Right Arm"]
  100. local LeftLeg = Character["Left Leg"]
  101. local RightLeg = Character["Right Leg"]
  102. local Head = Character.Head
  103. local Torso = Character.Torso
  104. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  105. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  106. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  107. local cam = game.Workspace.CurrentCamera
  108. trazx = Instance.new("ParticleEmitter")
  109. c = owner.Character
  110. local sine=0
  111. Character.Head.face.Texture = "rbxassetid://620619801"
  112.  
  113. spawn(function()
  114.     while wait() do
  115.         Head.BrickColor = BrickColor.new("Bright yellow")
  116.         RightArm.BrickColor = BrickColor.new("Bright yellow")
  117.         LeftArm.BrickColor = BrickColor.new("Bright yellow")
  118.         Torso.BrickColor = BrickColor.new("Shamrock")
  119.         RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  120.         LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  121.     end
  122. end)
  123. for i,v in pairs(Character:children()) do
  124.     if v:IsA("Hat") then
  125.         v:Destroy()
  126.     end
  127. end
  128. for i,v in pairs(Character:children()) do
  129.     if v:IsA("Accessory") then
  130.         v:Destroy()
  131.     end
  132. end
  133. for i,v in pairs(Character:children()) do
  134.     if v:IsA("Hair") then
  135.         v:Destroy()
  136.     end
  137. end
  138. for i,v in pairs(Character:children()) do
  139.     if v:IsA("Shirt") then
  140.         v:Destroy()
  141.     end
  142. end
  143. for i,v in pairs(Character:children()) do
  144.     if v:IsA("Pants") then
  145.         v:Destroy()
  146.     end
  147. end
  148. for i,v in pairs(Character:children()) do
  149.     if v:IsA("Graphic Shirt") then
  150.         v:Destroy()
  151.     end
  152. end
  153. for i,v in pairs(Character:children()) do
  154.     if v:IsA("GraphicShirt") then
  155.         v:Destroy()
  156.     end
  157. end
  158.  
  159. for _,v in pairs(Character:children()) do
  160. if v:IsA("Shirt") then
  161. v.ShirtTemplate = "rbxassetid://0"
  162. elseif v:IsA("Pants") then
  163. v.PantsTemplate = "rbxassetid://0"
  164. elseif v:IsA("ShirtGraphic") then
  165. v:Remove()
  166. wait(.1)
  167. Torso.roblox:Remove()
  168. elseif v:IsA("Accessory") then
  169. v:Remove()
  170. end
  171. end
  172.  
  173. local Hair = Instance.new("Part")
  174. Hair.Parent = char
  175. Hair.Name = "GreenTopHat"
  176. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  177. Hair.CFrame = char.Head.CFrame
  178. Hair:BreakJoints()
  179. Hair.CanCollide = false
  180. Hair.BrickColor = BrickColor.new("Medium Stone")
  181. Hair.TopSurface = "Smooth"
  182. Hair.BottomSurface = "Smooth"
  183. Weld = Instance.new("Weld")
  184. Weld.Name = "Weld"
  185. Weld.Part0 = char.Head
  186. Weld.Part1 = Hair
  187. Weld.Parent = char.Head
  188. Weld.C0 = CFrame.new(0, 0.77, 0)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  189. Mesh = Instance.new("SpecialMesh")
  190. Mesh.Parent = Hair
  191. Mesh.MeshId = "http://www.roblox.com/asset/?id=1028713"
  192. Mesh.TextureId = "http://www.roblox.com/asset/?id=1563327"
  193. Mesh.Scale = Vector3.new(1, 1, 1)
  194.  
  195. -------------------------------------------------------
  196. --Start Good Stuff--
  197. -------------------------------------------------------
  198. CF = CFrame.new
  199. angles = CFrame.Angles
  200. attack = false
  201. timetofly = true
  202. Euler = CFrame.fromEulerAnglesXYZ
  203. Rad = math.rad
  204. IT = Instance.new
  205. BrickC = BrickColor.new
  206. Cos = math.cos
  207. Acos = math.acos
  208. Sin = math.sin
  209. Asin = math.asin
  210. Abs = math.abs
  211. Mrandom = math.random
  212. Floor = math.floor
  213. random = math.random
  214. radian = math.rad
  215. Vec3 = Vector3.new
  216. cFrame = CFrame.new
  217. Euler = CFrame.fromEulerAnglesXYZ
  218. h = char.Head
  219. t = char.Torso
  220. rs = t["Right Shoulder"]
  221. ls = t["Left Shoulder"]
  222. rh = t["Right Hip"]
  223. lh = t["Left Hip"]
  224. nec = t.Neck
  225. rut = char.HumanoidRootPart
  226. rutj = rut.RootJoint
  227. it = Instance.new
  228. -------------------------------------------------------
  229. --End Good Stuff--
  230. -------------------------------------------------------
  231. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  232. RW = Instance.new("Weld")
  233. LW = Instance.new("Weld")
  234. RH = tors["Right Hip"]
  235. LH = tors["Left Hip"]
  236. RW.Name = "RW"
  237. RW.Part0 = tors
  238. RW.C0 = CF(1.5, 0.5, 0)
  239. RW.C1 = CF(0, 0.5, 0)
  240. RW.Part1 = ra
  241. RW.Parent = tors
  242. LW.Name = "LW"
  243. LW.Part0 = tors
  244. LW.C0 = CF(-1.5, 0.5, 0)
  245. LW.C1 = CF(0, 0.5, 0)
  246. LW.Part1 = la
  247. LW.Parent = tors
  248. Effects = {}
  249. bat = Instance.new("Part", owner.Character)
  250. bat.Size = Vector3.new(1, 1, 5)
  251. bat.CanCollide = false
  252. bat:BreakJoints()
  253.  
  254. LeDrink = it("Model")
  255. LeDrink.Parent = char
  256. LeDrink.Name = "LeDrink"
  257. RHe = it("Part")
  258. RHe.Parent = LeDrink
  259. RHe.BrickColor = BrickColor.new("Really black")
  260. RHe.Locked = true
  261. RHe.CanCollide = false
  262. RHe.Transparency = 1
  263. PMesh = it("SpecialMesh")
  264. RHe.formFactor =  "Symmetric"
  265. PMesh.MeshType = "FileMesh"
  266. PMesh.MeshId = "rbxassetid://10470609"
  267. PMesh.TextureId = "rbxassetid://111405256"
  268. PMesh.Scale = Vector3.new(1.3, 1.4, 1.3)
  269. PMesh.Parent = RHe
  270. local RWeld = it("Weld")
  271. RWeld.Parent = RHe
  272. RWeld.Part0 = RHe
  273. RWeld.Part1 = ra
  274. RWeld.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  275.  
  276. LeChips = it("Model")
  277. LeChips.Parent = char
  278. LeChips.Name = "LeChips"
  279. RHk = it("Part")
  280. RHk.Parent = LeChips
  281. RHk.BrickColor = BrickColor.new("Really black")
  282. RHk.Locked = true
  283. RHk.CanCollide = false
  284. RHk.Transparency = 1
  285. PMeshe = it("SpecialMesh")
  286. RHk.formFactor =  "Symmetric"
  287. PMeshe.MeshType = "FileMesh"
  288. PMeshe.MeshId = "rbxassetid://19106014"
  289. PMeshe.TextureId = "rbxassetid://342435650"
  290. PMeshe.Scale = Vector3.new(1, 1.4, 0.8)
  291. PMeshe.Parent = RHk
  292. local RWelds = it("Weld")
  293. RWelds.Parent = RHk
  294. RWelds.Part0 = RHk
  295. RWelds.Part1 = ra
  296. RWelds.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  297.  
  298. local LeDrink = "wiplolnotyet"
  299. local LeChips = "wipaswelllol"
  300. local Sitt = false
  301.  
  302. -------------------------------------------------------
  303. --Start HeartBeat--
  304. -------------------------------------------------------
  305. ArtificialHB = Instance.new("BindableEvent", script)
  306. ArtificialHB.Name = "Heartbeat"
  307. script:WaitForChild("Heartbeat")
  308.  
  309. frame = 1 / 60
  310. tf = 0
  311. allowframeloss = false
  312. tossremainder = false
  313.  
  314.  
  315. lastframe = tick()
  316. script.Heartbeat:Fire()
  317.  
  318.  
  319. game:GetService("RunService").Heartbeat:connect(function(s, p)
  320.     tf = tf + s
  321.     if tf >= frame then
  322.         if allowframeloss then
  323.             script.Heartbeat:Fire()
  324.             lastframe = tick()
  325.         else
  326.             for i = 1, math.floor(tf / frame) do
  327.                 script.Heartbeat:Fire()
  328.             end
  329.             lastframe = tick()
  330.         end
  331.         if tossremainder then
  332.             tf = 0
  333.         else
  334.             tf = tf - frame * math.floor(tf / frame)
  335.         end
  336.     end
  337. end)
  338. -------------------------------------------------------
  339. --End HeartBeat--
  340. -------------------------------------------------------
  341.  
  342.  
  343. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  344.     coroutine.resume(coroutine.create(function()
  345.         local intensity = 1 * Intensity
  346.         local rotM = 0.01 * Intensity
  347.         for i = 0, Length, 0.1 do
  348.             swait()
  349.             intensity = intensity - 0.05 * Intensity / Length
  350.             rotM = rotM - 5.0E-4 * Intensity / Length
  351.             hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  352.             cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  353.         end
  354.         Humanoid.CameraOffset = Vec3(0, 0, 0)
  355.     end))
  356. end
  357.  
  358.         local joyemoji = Instance.new('ParticleEmitter', tors)
  359.         joyemoji.VelocitySpread = 2000
  360.         joyemoji.Lifetime = NumberRange.new(1)
  361.         joyemoji.Speed = NumberRange.new(40)
  362. joy= {}
  363. for i=0, 19 do
  364.   joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  365. end
  366. joyemoji.Size = NumberSequence.new(joy)
  367.         joyemoji.Rate = 0
  368.         joyemoji.LockedToPart = false
  369.         joyemoji.LightEmission = 0
  370.         joyemoji.Texture = "rbxassetid://1176402123"
  371.         joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  372.  
  373.  
  374.         local LIT = Instance.new('ParticleEmitter', tors)
  375.         LIT.VelocitySpread = 2000
  376.         LIT.Lifetime = NumberRange.new(1)
  377.         LIT.Speed = NumberRange.new(45)
  378. nani= {}
  379. for i=0, 19 do
  380.   nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  381. end
  382. LIT.Size = NumberSequence.new(nani)
  383.         LIT.Rate = 0
  384.         LIT.LockedToPart = false
  385.         LIT.LightEmission = 0
  386.         LIT.Texture = "rbxassetid://1492670151"
  387.         LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  388.  
  389.         local toast = Instance.new('ParticleEmitter', tors)
  390.         toast.VelocitySpread = 2000
  391.         toast.Lifetime = NumberRange.new(1)
  392.         toast.Speed = NumberRange.new(60)
  393. toasterstoasttoast= {}
  394. for i=0, 19 do
  395.   toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  396. end
  397. toast.Size = NumberSequence.new(toasterstoasttoast)
  398.         toast.Rate = 0
  399.         toast.LockedToPart = false
  400.         toast.LightEmission = 0
  401.         toast.Texture = "rbxassetid://436096230"
  402.         toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  403.  
  404.         local ok = Instance.new('ParticleEmitter', tors)
  405.         ok.VelocitySpread = 2000
  406.         ok.Lifetime = NumberRange.new(1)
  407.         ok.Speed = NumberRange.new(50)
  408. cool= {}
  409. for i=0, 19 do
  410.   cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  411. end
  412. ok.Size = NumberSequence.new(cool)
  413.         ok.Rate = 0
  414.         ok.LockedToPart = false
  415.         ok.LightEmission = 0
  416.         ok.Texture = "rbxassetid://636768448"
  417.         ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  418.  
  419. maincolor = BrickC("Really red")
  420.  
  421. -------------------------------------------------------
  422. --Start Important Functions--
  423. -------------------------------------------------------
  424. function swait(num)
  425.     if num == 0 or num == nil then
  426.         game:service("RunService").Stepped:wait(0)
  427.     else
  428.         for i = 0, num do
  429.             game:service("RunService").Stepped:wait(0)
  430.         end
  431.     end
  432. end
  433. function thread(f)
  434.     coroutine.resume(coroutine.create(f))
  435. end
  436. function clerp(a, b, t)
  437.     local qa = {
  438.         QuaternionFromCFrame(a)
  439.     }
  440.     local qb = {
  441.         QuaternionFromCFrame(b)
  442.     }
  443.     local ax, ay, az = a.x, a.y, a.z
  444.     local bx, by, bz = b.x, b.y, b.z
  445.     local _t = 1 - t
  446.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  447. end
  448. function QuaternionFromCFrame(cf)
  449.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  450.     local trace = m00 + m11 + m22
  451.     if trace > 0 then
  452.         local s = math.sqrt(1 + trace)
  453.         local recip = 0.5 / s
  454.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  455.     else
  456.         local i = 0
  457.         if m00 < m11 then
  458.             i = 1
  459.         end
  460.         if m22 > (i == 0 and m00 or m11) then
  461.             i = 2
  462.         end
  463.         if i == 0 then
  464.             local s = math.sqrt(m00 - m11 - m22 + 1)
  465.             local recip = 0.5 / s
  466.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  467.         elseif i == 1 then
  468.             local s = math.sqrt(m11 - m22 - m00 + 1)
  469.             local recip = 0.5 / s
  470.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  471.         elseif i == 2 then
  472.             local s = math.sqrt(m22 - m00 - m11 + 1)
  473.             local recip = 0.5 / s
  474.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  475.         end
  476.     end
  477. end
  478. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  479.     local xs, ys, zs = x + x, y + y, z + z
  480.     local wx, wy, wz = w * xs, w * ys, w * zs
  481.     local xx = x * xs
  482.     local xy = x * ys
  483.     local xz = x * zs
  484.     local yy = y * ys
  485.     local yz = y * zs
  486.     local zz = z * zs
  487.     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))
  488. end
  489. function QuaternionSlerp(a, b, t)
  490.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  491.     local startInterp, finishInterp
  492.     if cosTheta >= 1.0E-4 then
  493.         if 1 - cosTheta > 1.0E-4 then
  494.             local theta = math.acos(cosTheta)
  495.             local invSinTheta = 1 / Sin(theta)
  496.             startInterp = Sin((1 - t) * theta) * invSinTheta
  497.             finishInterp = Sin(t * theta) * invSinTheta
  498.         else
  499.             startInterp = 1 - t
  500.             finishInterp = t
  501.         end
  502.     elseif 1 + cosTheta > 1.0E-4 then
  503.         local theta = math.acos(-cosTheta)
  504.         local invSinTheta = 1 / Sin(theta)
  505.         startInterp = Sin((t - 1) * theta) * invSinTheta
  506.         finishInterp = Sin(t * theta) * invSinTheta
  507.     else
  508.         startInterp = t - 1
  509.         finishInterp = t
  510.     end
  511.     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
  512. end
  513. function rayCast(Position, Direction, Range, Ignore)
  514.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  515. end
  516. local RbxUtility = LoadLibrary("RbxUtility")
  517. local Create = RbxUtility.Create
  518. local insta = true
  519.  
  520. -------------------------------------------------------
  521. --Start Damage Function--
  522. -------------------------------------------------------
  523. insta = false
  524. function Damage2(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  525.     if hit.Parent == nil then
  526.         return
  527.     end
  528.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  529.     for _, v in pairs(hit.Parent:children()) do
  530.         if v:IsA("Humanoid") then
  531.             h = v
  532.         end
  533.     end
  534.  
  535.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  536.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  537.             if hit.Parent.DebounceHit.Value == true then
  538.                 return
  539.             end
  540.         end
  541.          if insta == true then
  542.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  543.          end
  544.         local c = Create("ObjectValue"){
  545.             Name = "creator",
  546.             Value = game:service("Players").LocalPlayer,
  547.             Parent = h,
  548.         }
  549.         game:GetService("Debris"):AddItem(c, .5)
  550.         if HitSound ~= nil and HitPitch ~= nil then
  551.             CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  552.         end
  553.         local Damage = math.random(minim, maxim)
  554.         local blocked = false
  555.         local block = hit.Parent:findFirstChild("Block")
  556.         if block ~= nil then
  557.             if block.className == "IntValue" then
  558.                 if block.Value > 0 then
  559.                     blocked = true
  560.                     block.Value = block.Value - 1
  561.                     print(block.Value)
  562.                 end
  563.             end
  564.         end
  565.         if blocked == false then
  566.             h.Health = h.Health - Damage
  567.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "", 1.5, tors.BrickColor.Color)
  568.         else
  569.             h.Health = h.Health - (Damage / 2)
  570.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "", 1.5, tors.BrickColor.Color)
  571.         end
  572.         if Type == "Knockdown" then
  573.             local hum = hit.Parent.Humanoid
  574.             hum.PlatformStand = true
  575.             coroutine.resume(coroutine.create(function(HHumanoid)
  576.                 swait(1)
  577.                 HHumanoid.PlatformStand = false
  578.             end), hum)
  579.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  580.             local bodvol = Create("BodyVelocity"){
  581.                 velocity = angle * knockback,
  582.                 P = 5000,
  583.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  584.                 Parent = hit,
  585.             }
  586.             local rl = Create("BodyAngularVelocity"){
  587.                 P = 3000,
  588.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  589.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  590.                 Parent = hit,
  591.             }
  592.             game:GetService("Debris"):AddItem(bodvol, .5)
  593.             game:GetService("Debris"):AddItem(rl, .5)
  594.         elseif Type == "Normal" then
  595.             local vp = Create("BodyVelocity"){
  596.                 P = 500,
  597.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  598.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  599.             }
  600.             if knockback > 0 then
  601.                 vp.Parent = hit.Parent.Torso
  602.             end
  603.             game:GetService("Debris"):AddItem(vp, .5)
  604.         elseif Type == "Up" then
  605.             local bodyVelocity = Create("BodyVelocity"){
  606.                 velocity = Vector3.new(0, 20, 0),
  607.                 P = 5000,
  608.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  609.                 Parent = hit,
  610.             }
  611.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  612.         elseif Type == "DarkUp" then
  613.             coroutine.resume(coroutine.create(function()
  614.                 for i = 0, 1, 0.1 do
  615.                     swait()
  616.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  617.                 end
  618.             end))
  619.             local bodyVelocity = Create("BodyVelocity"){
  620.                 velocity = Vector3.new(0, 20, 0),
  621.                 P = 5000,
  622.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  623.                 Parent = hit,
  624.             }
  625.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  626.         elseif Type == "Snare" then
  627.             local bp = Create("BodyPosition"){
  628.                 P = 2000,
  629.                 D = 100,
  630.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  631.                 position = hit.Parent.Torso.Position,
  632.                 Parent = hit.Parent.Torso,
  633.             }
  634.             game:GetService("Debris"):AddItem(bp, 1)
  635.         elseif Type == "Freeze" then
  636.             local BodPos = Create("BodyPosition"){
  637.                 P = 50000,
  638.                 D = 1000,
  639.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  640.                 position = hit.Parent.Torso.Position,
  641.                 Parent = hit.Parent.Torso,
  642.             }
  643.             local BodGy = Create("BodyGyro") {
  644.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  645.                 P = 20e+003,
  646.                 Parent = hit.Parent.Torso,
  647.                 cframe = hit.Parent.Torso.CFrame,
  648.             }
  649.             hit.Parent.Torso.Anchored = true
  650.             coroutine.resume(coroutine.create(function(Part)
  651.                 swait(1.5)
  652.                 Part.Anchored = false
  653.             end), hit.Parent.Torso)
  654.             game:GetService("Debris"):AddItem(BodPos, 3)
  655.             game:GetService("Debris"):AddItem(BodGy, 3)
  656.         end
  657.         local debounce = Create("BoolValue"){
  658.             Name = "DebounceHit",
  659.             Parent = hit.Parent,
  660.             Value = true,
  661.         }
  662.         game:GetService("Debris"):AddItem(debounce, Delay)
  663.         c = Create("ObjectValue"){
  664.             Name = "creator",
  665.             Value = Player,
  666.             Parent = h,
  667.         }
  668.         game:GetService("Debris"):AddItem(c, .5)
  669.     end
  670. end
  671.  
  672. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  673.     if hit.Parent == nil then
  674.         return
  675.     end
  676.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  677.     for _, v in pairs(hit.Parent:children()) do
  678.         if v:IsA("Humanoid") then
  679.             h = v
  680.         end
  681.     end
  682.          if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  683.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  684.          end
  685.  
  686.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  687.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  688.             if hit.Parent.DebounceHit.Value == true then
  689.                 return
  690.             end
  691.         end
  692.          if insta == true then
  693.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  694.          end
  695.         CreateSound("958257111", hit, 10, 1)
  696.         local Damage = math.random(minim, maxim)
  697.         hit.Parent:FindFirstChild("Head"):BreakJoints()
  698.         local blocked = false
  699.         local block = hit.Parent:findFirstChild("Block")
  700.         if block ~= nil then
  701.             if block.className == "IntValue" then
  702.                 if block.Value > 0 then
  703.                     blocked = true
  704.                     block.Value = block.Value - 1
  705.                 end
  706.             end
  707.         end
  708.         if blocked == false then
  709.             h.Health = h.Health - Damage
  710.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "rekt", 1.5, tors.BrickColor.Color)
  711.         else
  712.             h.Health = h.Health - (Damage / 2)
  713.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "ez kill", 1.5, tors.BrickColor.Color)
  714.         end
  715.         if Type == "Knockdown" then
  716.             local hum = hit.Parent.Humanoid
  717.             hum.PlatformStand = true
  718.             coroutine.resume(coroutine.create(function(HHumanoid)
  719.                 swait(1)
  720.                 HHumanoid.PlatformStand = false
  721.             end), hum)
  722.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  723.             local bodvol = Create("BodyVelocity"){
  724.                 velocity = angle * knockback,
  725.                 P = 5000,
  726.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  727.                 Parent = hit,
  728.             }
  729.             local rl = Create("BodyAngularVelocity"){
  730.                 P = 3000,
  731.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  732.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  733.                 Parent = hit,
  734.             }
  735.             game:GetService("Debris"):AddItem(bodvol, .5)
  736.             game:GetService("Debris"):AddItem(rl, .5)
  737.         elseif Type == "Normal" then
  738.             local vp = Create("BodyVelocity"){
  739.                 P = 500,
  740.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  741.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  742.             }
  743.             if knockback > 0 then
  744.                 vp.Parent = hit.Parent.Torso
  745.             end
  746.             game:GetService("Debris"):AddItem(vp, .5)
  747.         elseif Type == "Up" then
  748.             local bodyVelocity = Create("BodyVelocity"){
  749.                 velocity = Vector3.new(0, 20, 0),
  750.                 P = 5000,
  751.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  752.                 Parent = hit,
  753.             }
  754.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  755.         elseif Type == "DarkUp" then
  756.             coroutine.resume(coroutine.create(function()
  757.                 for i = 0, 1, 0.1 do
  758.                     swait()
  759.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  760.                 end
  761.             end))
  762.             local bodyVelocity = Create("BodyVelocity"){
  763.                 velocity = Vector3.new(0, 20, 0),
  764.                 P = 5000,
  765.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  766.                 Parent = hit,
  767.             }
  768.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  769.         elseif Type == "Snare" then
  770.             local bp = Create("BodyPosition"){
  771.                 P = 2000,
  772.                 D = 100,
  773.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  774.                 position = hit.Parent.Torso.Position,
  775.                 Parent = hit.Parent.Torso,
  776.             }
  777.             game:GetService("Debris"):AddItem(bp, 1)
  778.         elseif Type == "Freeze" then
  779.             local BodPos = Create("BodyPosition"){
  780.                 P = 50000,
  781.                 D = 1000,
  782.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  783.                 position = hit.Parent.Torso.Position,
  784.                 Parent = hit.Parent.Torso,
  785.             }
  786.             local BodGy = Create("BodyGyro") {
  787.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  788.                 P = 20e+003,
  789.                 Parent = hit.Parent.Torso,
  790.                 cframe = hit.Parent.Torso.CFrame,
  791.             }
  792.             hit.Parent.Torso.Anchored = true
  793.             coroutine.resume(coroutine.create(function(Part)
  794.                 swait(1.5)
  795.                 Part.Anchored = false
  796.             end), hit.Parent.Torso)
  797.             game:GetService("Debris"):AddItem(BodPos, 3)
  798.             game:GetService("Debris"):AddItem(BodGy, 3)
  799.         end
  800.         local debounce = Create("BoolValue"){
  801.             Name = "DebounceHit",
  802.             Parent = hit.Parent,
  803.             Value = true,
  804.         }
  805.         game:GetService("Debris"):AddItem(debounce, Delay)
  806.     end
  807. end
  808. -------------------------------------------------------
  809. --End Damage Function--
  810. -------------------------------------------------------
  811.  
  812. -------------------------------------------------------
  813. --Start Damage Function Customization--
  814. -------------------------------------------------------
  815. function ShowDamage(Pos, Text, Time, Color)
  816.     local Rate = (1 / 30)
  817.     local Pos = (Pos or Vector3.new(0, 0, 0))
  818.     local Text = (Text or "")
  819.     local Time = (Time or 2)
  820.     local Color = (Color or Color3.new(1, 0, 1))
  821.     local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  822.     EffectPart.Anchored = true
  823.     local BillboardGui = Create("BillboardGui"){
  824.         Size = UDim2.new(3, 0, 3, 0),
  825.         Adornee = EffectPart,
  826.         Parent = EffectPart,
  827.     }
  828.     local TextLabel = Create("TextLabel"){
  829.         BackgroundTransparency = 1,
  830.         Size = UDim2.new(1, 0, 1, 0),
  831.         Text = Text,
  832.         Font = "Bodoni",
  833.         TextColor3 = Color,
  834.         TextScaled = true,
  835.         TextStrokeColor3 = Color3.fromRGB(0,0,0),
  836.         Parent = BillboardGui,
  837.     }
  838.     game.Debris:AddItem(EffectPart, (Time))
  839.     EffectPart.Parent = game:GetService("Workspace")
  840.     delay(0, function()
  841.         local Frames = (Time / Rate)
  842.         for Frame = 1, Frames do
  843.             wait(Rate)
  844.             local Percent = (Frame / Frames)
  845.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  846.             TextLabel.TextTransparency = Percent
  847.         end
  848.         if EffectPart and EffectPart.Parent then
  849.             EffectPart:Destroy()
  850.         end
  851.     end)
  852. end
  853. -------------------------------------------------------
  854. --End Damage Function Customization--
  855. -------------------------------------------------------
  856.  
  857. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  858.   for _, c in pairs(workspace:children()) do
  859.     local hum = c:findFirstChild("Humanoid")
  860.     if hum ~= nil then
  861.       local head = c:findFirstChild("Head")
  862.       if head ~= nil then
  863.         local targ = head.Position - Part.Position
  864.         local mag = targ.magnitude
  865.         if magni >= mag and c.Name ~= plr.Name then
  866.            
  867.           Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  868.         end
  869.       end
  870.     end
  871.   end
  872. end
  873.  
  874. function MagniDamage2(Part, magni, mindam, maxdam, knock, Type)
  875.   for _, c in pairs(workspace:children()) do
  876.     local hum = c:findFirstChild("Humanoid")
  877.     if hum ~= nil then
  878.       local head = c:findFirstChild("Head")
  879.       if head ~= nil then
  880.         local targ = head.Position - Part.Position
  881.         local mag = targ.magnitude
  882.         if magni >= mag and c.Name ~= plr.Name then
  883.            
  884.           Damage2(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=2174934221", 1.2)
  885.         end
  886.       end
  887.     end
  888.   end
  889. end
  890.  
  891.  
  892.  
  893. CFuncs = {
  894.     Part = {
  895.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  896.             local Part = Create("Part")({
  897.                 Parent = Parent,
  898.                 Reflectance = Reflectance,
  899.                 Transparency = Transparency,
  900.                 CanCollide = false,
  901.                 Locked = true,
  902.                 BrickColor = BrickColor.new(tostring(BColor)),
  903.                 Name = Name,
  904.                 Size = Size,
  905.                 Material = Material
  906.             })
  907.             RemoveOutlines(Part)
  908.             return Part
  909.         end
  910.     },
  911.     Mesh = {
  912.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  913.             local Msh = Create(Mesh)({
  914.                 Parent = Part,
  915.                 Offset = OffSet,
  916.                 Scale = Scale
  917.             })
  918.             if Mesh == "SpecialMesh" then
  919.                 Msh.MeshType = MeshType
  920.                 Msh.MeshId = MeshId
  921.             end
  922.             return Msh
  923.         end
  924.     },
  925.     Mesh = {
  926.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  927.             local Msh = Create(Mesh)({
  928.                 Parent = Part,
  929.                 Offset = OffSet,
  930.                 Scale = Scale
  931.             })
  932.             if Mesh == "SpecialMesh" then
  933.                 Msh.MeshType = MeshType
  934.                 Msh.MeshId = MeshId
  935.             end
  936.             return Msh
  937.         end
  938.     },
  939.     Weld = {
  940.         Create = function(Parent, Part0, Part1, C0, C1)
  941.             local Weld = Create("Weld")({
  942.                 Parent = Parent,
  943.                 Part0 = Part0,
  944.                 Part1 = Part1,
  945.                 C0 = C0,
  946.                 C1 = C1
  947.             })
  948.             return Weld
  949.         end
  950.     },
  951.     Sound = {
  952.         Create = function(id, par, vol, pit)
  953.             coroutine.resume(coroutine.create(function()
  954.                 local S = Create("Sound")({
  955.                     Volume = vol,
  956.                     Pitch = pit or 1,
  957.                     SoundId = id,
  958.                     Parent = par or workspace
  959.                 })
  960.                 wait()
  961.                 S:play()
  962.                 game:GetService("Debris"):AddItem(S, 6)
  963.             end))
  964.         end
  965.     },
  966.     ParticleEmitter = {
  967.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  968.             local fp = Create("ParticleEmitter")({
  969.                 Parent = Parent,
  970.                 Color = ColorSequence.new(Color1, Color2),
  971.                 LightEmission = LightEmission,
  972.                 Size = Size,
  973.                 Texture = Texture,
  974.                 Transparency = Transparency,
  975.                 ZOffset = ZOffset,
  976.                 Acceleration = Accel,
  977.                 Drag = Drag,
  978.                 LockedToPart = LockedToPart,
  979.                 VelocityInheritance = VelocityInheritance,
  980.                 EmissionDirection = EmissionDirection,
  981.                 Enabled = Enabled,
  982.                 Lifetime = LifeTime,
  983.                 Rate = Rate,
  984.                 Rotation = Rotation,
  985.                 RotSpeed = RotSpeed,
  986.                 Speed = Speed,
  987.                 VelocitySpread = VelocitySpread
  988.             })
  989.             return fp
  990.         end
  991.     }
  992. }
  993. function RemoveOutlines(part)
  994.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  995. end
  996. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  997.     local Part = Create("Part")({
  998.         formFactor = FormFactor,
  999.         Parent = Parent,
  1000.         Reflectance = Reflectance,
  1001.         Transparency = Transparency,
  1002.         CanCollide = false,
  1003.         Locked = true,
  1004.         BrickColor = BrickColor.new(tostring(BColor)),
  1005.         Name = Name,
  1006.         Size = Size,
  1007.         Material = Material
  1008.     })
  1009.     RemoveOutlines(Part)
  1010.     return Part
  1011. end
  1012. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1013.     local Msh = Create(Mesh)({
  1014.         Parent = Part,
  1015.         Offset = OffSet,
  1016.         Scale = Scale
  1017.     })
  1018.     if Mesh == "SpecialMesh" then
  1019.         Msh.MeshType = MeshType
  1020.         Msh.MeshId = MeshId
  1021.     end
  1022.     return Msh
  1023. end
  1024. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1025.     local Weld = Create("Weld")({
  1026.         Parent = Parent,
  1027.         Part0 = Part0,
  1028.         Part1 = Part1,
  1029.         C0 = C0,
  1030.         C1 = C1
  1031.     })
  1032.     return Weld
  1033. end
  1034.  
  1035. -------------------------------------------------------
  1036. --Start Effect Function--
  1037. -------------------------------------------------------
  1038. EffectModel = Instance.new("Model", char)
  1039. Effects = {
  1040.   Block = {
  1041.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1042.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1043.       prt.Anchored = true
  1044.       prt.CFrame = cframe
  1045.       local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1046.       game:GetService("Debris"):AddItem(prt, 10)
  1047.       if Type == 1 or Type == nil then
  1048.         table.insert(Effects, {
  1049.           prt,
  1050.           "Block1",
  1051.           delay,
  1052.           x3,
  1053.           y3,
  1054.           z3,
  1055.           msh
  1056.         })
  1057.       elseif Type == 2 then
  1058.         table.insert(Effects, {
  1059.           prt,
  1060.           "Block2",
  1061.           delay,
  1062.           x3,
  1063.           y3,
  1064.           z3,
  1065.           msh
  1066.         })
  1067.       else
  1068.         table.insert(Effects, {
  1069.           prt,
  1070.           "Block3",
  1071.           delay,
  1072.           x3,
  1073.           y3,
  1074.           z3,
  1075.           msh
  1076.         })
  1077.       end
  1078.     end
  1079.   },
  1080.   Sphere = {
  1081.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1082.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1083.       prt.Anchored = true
  1084.       prt.CFrame = cframe
  1085.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  1086.       game:GetService("Debris"):AddItem(prt, 10)
  1087.       table.insert(Effects, {
  1088.         prt,
  1089.         "Cylinder",
  1090.         delay,
  1091.         x3,
  1092.         y3,
  1093.         z3,
  1094.         msh
  1095.       })
  1096.     end
  1097.   },
  1098.   Cylinder = {
  1099.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1100.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1101.       prt.Anchored = true
  1102.       prt.CFrame = cframe
  1103.       local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1104.       game:GetService("Debris"):AddItem(prt, 10)
  1105.       table.insert(Effects, {
  1106.         prt,
  1107.         "Cylinder",
  1108.         delay,
  1109.         x3,
  1110.         y3,
  1111.         z3,
  1112.         msh
  1113.       })
  1114.     end
  1115.   },
  1116.   Wave = {
  1117.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1118.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1119.       prt.Anchored = true
  1120.       prt.CFrame = cframe
  1121.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1122.       game:GetService("Debris"):AddItem(prt, 10)
  1123.       table.insert(Effects, {
  1124.         prt,
  1125.         "Cylinder",
  1126.         delay,
  1127.         x3 / 60,
  1128.         y3 / 60,
  1129.         z3 / 60,
  1130.         msh
  1131.       })
  1132.     end
  1133.   },
  1134.   Ring = {
  1135.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1136.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1137.       prt.Anchored = true
  1138.       prt.CFrame = cframe
  1139.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1140.       game:GetService("Debris"):AddItem(prt, 10)
  1141.       table.insert(Effects, {
  1142.         prt,
  1143.         "Cylinder",
  1144.         delay,
  1145.         x3,
  1146.         y3,
  1147.         z3,
  1148.         msh
  1149.       })
  1150.     end
  1151.   },
  1152.   Break = {
  1153.     Create = function(brickcolor, cframe, x1, y1, z1)
  1154.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1155.       prt.Anchored = true
  1156.       prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1157.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1158.       local num = math.random(10, 50) / 1000
  1159.       game:GetService("Debris"):AddItem(prt, 10)
  1160.       table.insert(Effects, {
  1161.         prt,
  1162.         "Shatter",
  1163.         num,
  1164.         prt.CFrame,
  1165.         math.random() - math.random(),
  1166.         0,
  1167.         math.random(50, 100) / 100
  1168.       })
  1169.     end
  1170.   },
  1171. Spiral = {
  1172.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1173.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1174.       prt.Anchored = true
  1175.       prt.CFrame = cframe
  1176.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1177.       game:GetService("Debris"):AddItem(prt, 10)
  1178.       table.insert(Effects, {
  1179.         prt,
  1180.         "Cylinder",
  1181.         delay,
  1182.         x3,
  1183.         y3,
  1184.         z3,
  1185.         msh
  1186.       })
  1187.     end
  1188.   },
  1189. Push = {
  1190.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1191.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1192.       prt.Anchored = true
  1193.       prt.CFrame = cframe
  1194.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1195.       game:GetService("Debris"):AddItem(prt, 10)
  1196.       table.insert(Effects, {
  1197.         prt,
  1198.         "Cylinder",
  1199.         delay,
  1200.         x3,
  1201.         y3,
  1202.         z3,
  1203.         msh
  1204.       })
  1205.     end
  1206.   }
  1207. }
  1208. -------------------------------------------------------
  1209. --End Effect Function--
  1210. -------------------------------------------------------
  1211.  
  1212. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  1213.     local NSound = nil
  1214.     coroutine.resume(coroutine.create(function()
  1215.         NSound = Instance.new("Sound", PARENT)
  1216.         NSound.Volume = VOLUME
  1217.         NSound.Pitch = PITCH
  1218.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1219.         swait()
  1220.         NSound:play()
  1221.         game:GetService("Debris"):AddItem(NSound, 10)
  1222.     end))
  1223.     return NSound
  1224. end
  1225.  
  1226.  
  1227. coroutine.resume(coroutine.create(function()
  1228.     while text ~= nil do
  1229.         swait()
  1230.         text.Rotation = math.random(-1.8,1.8)
  1231.     end
  1232. end))
  1233.  
  1234. angery = false
  1235.  
  1236.  
  1237. -------------------------------------------------------
  1238. --End Important Functions--
  1239. -------------------------------------------------------
  1240.  
  1241. Player_Size = 1
  1242. Speed = 3.01
  1243. combo = 0
  1244. wait2 = false
  1245. neck = Torso.Neck
  1246.  
  1247. function Cso(ID, PARENT, VOLUME, PITCH)
  1248.     local NSound = nil
  1249.     coroutine.resume(coroutine.create(function()
  1250.         NSound = IT("Sound", PARENT)
  1251.         NSound.Volume = VOLUME
  1252.         NSound.Pitch = PITCH
  1253.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1254.         swait()
  1255.         NSound:play()
  1256.         game:GetService("Debris"):AddItem(NSound, 10)
  1257.     end))
  1258.     return NSound
  1259. end
  1260.  
  1261. function HitboxFunction2(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1262.   local Hitboxpart = Instance.new("Part", EffectModel)
  1263.   RemoveOutlines(Hitboxpart)
  1264.   Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1265.   Hitboxpart.CanCollide = false
  1266.   Hitboxpart.Transparency = 1
  1267.   Hitboxpart.Anchored = true
  1268.   Hitboxpart.CFrame = Pose
  1269.  
  1270.   game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1271.   MagniDamage2(Hitboxpart, Radie, Min, Max, kb, atype)
  1272. end
  1273.  
  1274. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1275.   local Hitboxpart = Instance.new("Part", EffectModel)
  1276.   RemoveOutlines(Hitboxpart)
  1277.   Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1278.   Hitboxpart.CanCollide = false
  1279.   Hitboxpart.Transparency = 1
  1280.   Hitboxpart.Anchored = true
  1281.   Hitboxpart.CFrame = Pose
  1282.  
  1283.   game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1284.   MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1285. end
  1286.  
  1287. combo = 1
  1288. attack = false
  1289.  
  1290. --start attacks--
  1291.  
  1292. mouse.Button1Down:connect(function(key)
  1293.   if attack == false then
  1294.     attack = true
  1295.     Speed = 3.01
  1296.     if combo == 1 and wait2 == false then
  1297. combo = 2
  1298. wait2 = true
  1299. RWelds.Part1 = ra
  1300.     RHk.Transparency = 0
  1301.         for i = 0, 1.6, 0.1 do
  1302.             swait()
  1303.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.2)
  1304.             neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(45)), 0.2)
  1305.             RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-45), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.2)
  1306.             LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.2)
  1307.             RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0 + 5 * Sin(sine / 20)), Rad(25 + 5 * Sin(sine / 20))), 0.2)
  1308.             LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.2)
  1309.         end
  1310.         Cso("138097048", ra, 1.2, 0.8)
  1311.         HitboxFunction2(ra.CFrame, 0.01, 0.1, 0.1, 1, 7, 1, 1, 3, "Normal")
  1312.         for i = 0, 1.2, 0.1 do
  1313.             swait()
  1314.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(45)), 0.3)
  1315.             neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 5 * Sin(sine / 20)), Rad(0), Rad(-45)), 0.3)
  1316.             RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-10), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.3)
  1317.             LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(45), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1318.             RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(85), Rad(0 + 5 * Sin(sine / 20)), Rad(45 + 5 * Sin(sine / 20))), 0.3)
  1319.             LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(0 - 5 * Sin(sine / 20)), Rad(-25 - 5 * Sin(sine / 20))), 0.3)
  1320.         end
  1321.     RHk.Transparency = 1
  1322.     RWelds.Part1 = ra
  1323.     end
  1324.  
  1325. if combo == 2 and wait2 == false then
  1326.       wait2 = true
  1327. combo = 1
  1328. RWelds.Part1 = la
  1329.     RHk.Transparency = 0
  1330.         for i = 0, 1.6, 0.1 do
  1331.             swait()
  1332.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(45)), 0.2)
  1333.             neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(-45)), 0.2)
  1334.             RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-45), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.2)
  1335.             LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.2)
  1336.             LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0 + 5 * Sin(sine / 20)), Rad(25 + 5 * Sin(sine / 20))), 0.2)
  1337.             RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.2)
  1338.         end
  1339.         Cso("138097048", la, 1.2, 0.8)
  1340.         HitboxFunction2(la.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Knockdown")
  1341.         for i = 0, 1.2, 0.1 do
  1342.             swait()
  1343.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(45)), 0.3)
  1344.             neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 5 * Sin(sine / 20)), Rad(0), Rad(45)), 0.3)
  1345.             RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-10), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.3)
  1346.             LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(45), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1347.             LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(85), Rad(0 + 5 * Sin(sine / 20)), Rad(45 + 5 * Sin(sine / 20))), 0.3)
  1348.             RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(0 - 5 * Sin(sine / 20)), Rad(-25 - 5 * Sin(sine / 20))), 0.3)
  1349.         end
  1350.     RHk.Transparency = 1
  1351.     RWelds.Part1 = ra
  1352.     end
  1353.     Speed = 56
  1354.     wait2 = false
  1355.     attack = false
  1356.     end
  1357. end)
  1358.  
  1359. function Taunt1()
  1360.     attack = true
  1361.     hum.WalkSpeed = 0
  1362.     for i = 0, 9, 0.1 do
  1363.         swait()
  1364.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  1365.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1366.         RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(15)), 0.15)
  1367.         LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-15)), 0.15)
  1368.         RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  1369.         LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1370.     end
  1371.     attack = false
  1372.     hum.WalkSpeed = 10
  1373. end
  1374.  
  1375. --assign things to keys--
  1376.  
  1377. mouse.KeyDown:connect(function(key)
  1378.     key=key:lower()
  1379.     if key == "t" and attack == false then
  1380.         Taunt1()
  1381.     end
  1382. end)
  1383.  
  1384. -------------------------------------------------------
  1385. --Start Animations--
  1386. -------------------------------------------------------
  1387. local PlayerSize = 1
  1388. local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  1389. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1390. RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1391. LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1392. RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1393. LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1394.  
  1395.  
  1396. local equipped = false
  1397. local idle = 0
  1398. local change = 1
  1399. local val = 0
  1400. local toim = 0
  1401. local idleanim = 0.4
  1402. hum.Animator.Parent = nil
  1403. angery = true
  1404. while true do
  1405.     swait()
  1406.     sine = sine + change
  1407.     local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1408.     local velderp = root.Velocity.y
  1409.     hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1410.     if equipped == true or equipped == false then
  1411.         if attack == false then
  1412.             idle = idle + 1
  1413.         else
  1414.             idle = 0
  1415.         end
  1416.         if 1 < root.Velocity.y and hitfloor == nil then
  1417.             Anim = "Jump"
  1418.             if attack == false then
  1419.                 rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1420.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1421.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
  1422.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
  1423.                 LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1424.                 RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1425.             end
  1426.         elseif -1 > root.Velocity.y and hitfloor == nil then
  1427.             Anim = "Fall"
  1428.             if attack == false then
  1429.                 rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1430.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1431.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
  1432.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
  1433.                 LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1434.                 RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1435.             end
  1436.         elseif torvel < 1 and hitfloor ~= nil then
  1437.             Anim = "Idle"
  1438.             change = .5
  1439.             if attack == false then
  1440. if angery == false then
  1441. VALUE1 = false
  1442.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1443.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1444.                 RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  1445.                 LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1446.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1)
  1447.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-5 + 2.5 * Sin(sine / 20))), 0.1)
  1448. if VALUE1 == false and math.random(1,200) == 1 then
  1449.                 coroutine.resume(coroutine.create(function()
  1450.                     VALUE1 = true
  1451.                 for i = 1, 25 do
  1452.                         swait()
  1453.                     tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(30)),.3)
  1454.                     end
  1455.                     VALUE1 = false
  1456.                    
  1457.                 end))
  1458. end
  1459. elseif angery == true then
  1460.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1461.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1462.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1463.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1464.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1465.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1466. if VALUE1 == false and math.random(1,200) == 1 then
  1467.                 coroutine.resume(coroutine.create(function()
  1468.                     VALUE1 = true
  1469.                     for i = 1, 25 do
  1470.                         swait()
  1471.         FT.Parent = tors
  1472.         RA.Parent = ra
  1473.         LA.Parent = la
  1474.         RL.Parent = rl
  1475.         LL.Parent = ll
  1476.         for _,v in next, char:GetDescendants() do
  1477.             if(v:IsA'DataModelMesh')then
  1478.                 v.Offset = Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1479.             end
  1480.         end
  1481.                     tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(0)),.3)
  1482.                     end
  1483.                     VALUE1 = false
  1484.         FT.Parent = nil
  1485.         RA.Parent = nil
  1486.         LA.Parent = nil
  1487.         RL.Parent = nil
  1488.         LL.Parent = nil
  1489.         for _,v in next, char:GetDescendants() do
  1490.             if(v:IsA'DataModelMesh')then
  1491.                 v.Offset = Vector3.new(0,0,0)
  1492.             end
  1493.         end
  1494.                    
  1495.                 end))
  1496.     end
  1497. end
  1498. end
  1499.         elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1500.             Anim = "Walk"
  1501.             change = 1
  1502.             if attack == false then
  1503.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1504.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1505.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(0), Rad(0), Rad(0 + 50 * Cos(sine / 7))), 0.15)
  1506.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(0), Rad(0), Rad(0 + 50 * Cos(sine / 7))), 0.15)
  1507.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0 + 50 * Cos(sine / 7)), Rad(0), Rad(0)), 0.1)
  1508.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0 + -50 * Cos(sine / 7)), Rad(0), Rad(0)), 0.1)
  1509.             end
  1510.         end
  1511.     end
  1512.     if 0 < #Effects then
  1513.         for e = 1, #Effects do
  1514.             if Effects[e] ~= nil then
  1515.                 local Thing = Effects[e]
  1516.                 if Thing ~= nil then
  1517.                     local Part = Thing[1]
  1518.                     local Mode = Thing[2]
  1519.                     local Delay = Thing[3]
  1520.                     local IncX = Thing[4]
  1521.                     local IncY = Thing[5]
  1522.                     local IncZ = Thing[6]
  1523.                     if 1 >= Thing[1].Transparency then
  1524.                         if Thing[2] == "Block1" then
  1525.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1526.                             local Mesh = Thing[1].Mesh
  1527.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1528.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1529.                         elseif Thing[2] == "Block2" then
  1530.                             Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1531.                             local Mesh = Thing[7]
  1532.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1533.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1534.                         elseif Thing[2] == "Block3" then
  1535.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1536.                             local Mesh = Thing[7]
  1537.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1538.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1539.                         elseif Thing[2] == "Cylinder" then
  1540.                             local Mesh = Thing[1].Mesh
  1541.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1542.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543.                         elseif Thing[2] == "Blood" then
  1544.                             local Mesh = Thing[7]
  1545.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1546.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1547.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1548.                         elseif Thing[2] == "Elec" then
  1549.                             local Mesh = Thing[1].Mesh
  1550.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1551.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1552.                         elseif Thing[2] == "Disappear" then
  1553.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1554.                         elseif Thing[2] == "Shatter" then
  1555.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1556.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1557.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1558.                             Thing[6] = Thing[6] + Thing[5]
  1559.                         end
  1560.                     else
  1561.                         Part.Parent = nil
  1562.                         table.remove(Effects, e)
  1563.                     end
  1564.                 end
  1565.             end
  1566.         end
  1567.     end
  1568. end
  1569. -------------------------------------------------------
  1570. --End Animations And Script--
  1571. -------------------------------------------------------
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