SHARE
TWEET

val

1nubloku Sep 22nd, 2019 75 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. local FavIDs = {
  87.     340106355, --Nefl Crystals
  88.     927529620, --Dimension
  89.     876981900, --Fantasy
  90.     398987889, --Ordinary Days
  91.     1117396305, --Oh wait, it's you.
  92.     885996042, --Action Winter Journey
  93.     919231299, --Sprawling Idiot Effigy
  94.     743466274, --Good Day Sunshine
  95.     727411183, --Knife Fight
  96.     1402748531, --The Earth Is Counting On You!
  97.     595230126 --Robot Language
  98.     }
  99.  
  100.  
  101.  
  102. --The reality of my life isn't real but a Universe -makhail07
  103. wait()
  104. local plr = owner
  105. print('Local User is '..plr.Name)
  106. local char = plr.Character
  107. local hum = char.Humanoid
  108. local hed = char.Head
  109. local root = char.HumanoidRootPart
  110. local rootj = root.RootJoint
  111. local tors = char.Torso
  112. local ra = char["Right Arm"]
  113. local la = char["Left Arm"]
  114. local rl = char["Right Leg"]
  115. local ll = char["Left Leg"]
  116. local neck = tors["Neck"]
  117. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  118. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  119. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  120. local maincolor = BrickColor.new("Institutional white")
  121. -------------------------------------------------------
  122. --Start Whitelist and Invincibility--
  123. -------------------------------------------------------
  124. ff = Instance.new("ForceField",char)
  125. ff.Visible = false
  126. hum.Name = "Base"
  127. hum.MaxHealth = 1.0E298
  128. hum.Health = 1.0E298
  129. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  130.   if hum.Health > 0.1 and hum.Health < 1.0E298 then
  131.     hum.MaxHealth = 1.0E298
  132.     hum.Health = 1.0E298
  133.   end
  134. end)
  135. -------------------------------------------------------
  136. --End Whitelist and Invincibility--
  137. -------------------------------------------------------
  138.  
  139. -------------------------------------------------------
  140. --Start Good Stuff--
  141. -------------------------------------------------------
  142. cam = game.Workspace.CurrentCamera
  143. CF = CFrame.new
  144. angles = CFrame.Angles
  145. attack = false
  146. Euler = CFrame.fromEulerAnglesXYZ
  147. Rad = math.rad
  148. IT = Instance.new
  149. BrickC = BrickColor.new
  150. Cos = math.cos
  151. Acos = math.acos
  152. Sin = math.sin
  153. Asin = math.asin
  154. Abs = math.abs
  155. Mrandom = math.random
  156. Floor = math.floor
  157. -------------------------------------------------------
  158. --End Good Stuff--
  159. -------------------------------------------------------
  160. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  161. RSH, LSH = nil, nil
  162. RW = Instance.new("Weld")
  163. LW = Instance.new("Weld")
  164. RH = tors["Right Hip"]
  165. LH = tors["Left Hip"]
  166. RSH = tors["Right Shoulder"]
  167. LSH = tors["Left Shoulder"]
  168. RSH.Parent = nil
  169. LSH.Parent = nil
  170. RW.Name = "RW"
  171. RW.Part0 = tors
  172. RW.C0 = CF(1.5, 0.5, 0)
  173. RW.C1 = CF(0, 0.5, 0)
  174. RW.Part1 = ra
  175. RW.Parent = tors
  176. LW.Name = "LW"
  177. LW.Part0 = tors
  178. LW.C0 = CF(-1.5, 0.5, 0)
  179. LW.C1 = CF(0, 0.5, 0)
  180. LW.Part1 = la
  181. LW.Parent = tors
  182. Effects = {}
  183. -------------------------------------------------------
  184. --Start HeartBeat--
  185. -------------------------------------------------------
  186. ArtificialHB = Instance.new("BindableEvent", script)
  187. ArtificialHB.Name = "Heartbeat"
  188. script:WaitForChild("Heartbeat")
  189.  
  190. frame = 1 / 60
  191. tf = 0
  192. allowframeloss = false
  193. tossremainder = false
  194.  
  195.  
  196. lastframe = tick()
  197. script.Heartbeat:Fire()
  198.  
  199.  
  200. game:GetService("RunService").Heartbeat:connect(function(s, p)
  201.     tf = tf + s
  202.     if tf >= frame then
  203.         if allowframeloss then
  204.             script.Heartbeat:Fire()
  205.             lastframe = tick()
  206.         else
  207.             for i = 1, math.floor(tf / frame) do
  208.                 script.Heartbeat:Fire()
  209.             end
  210.             lastframe = tick()
  211.         end
  212.         if tossremainder then
  213.             tf = 0
  214.         else
  215.             tf = tf - frame * math.floor(tf / frame)
  216.         end
  217.     end
  218. end)
  219. -------------------------------------------------------
  220. --End HeartBeat--
  221. -------------------------------------------------------
  222.  
  223. -------------------------------------------------------
  224. --Start Important Functions--
  225. -------------------------------------------------------
  226. function swait(num)
  227.     if num == 0 or num == nil then
  228.         game:service("RunService").Stepped:wait(0)
  229.     else
  230.         for i = 0, num do
  231.             game:service("RunService").Stepped:wait(0)
  232.         end
  233.     end
  234. end
  235. function thread(f)
  236.     coroutine.resume(coroutine.create(f))
  237. end
  238. function clerp(a, b, t)
  239.     local qa = {
  240.         QuaternionFromCFrame(a)
  241.     }
  242.     local qb = {
  243.         QuaternionFromCFrame(b)
  244.     }
  245.     local ax, ay, az = a.x, a.y, a.z
  246.     local bx, by, bz = b.x, b.y, b.z
  247.     local _t = 1 - t
  248.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  249. end
  250. function QuaternionFromCFrame(cf)
  251.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  252.     local trace = m00 + m11 + m22
  253.     if trace > 0 then
  254.         local s = math.sqrt(1 + trace)
  255.         local recip = 0.5 / s
  256.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  257.     else
  258.         local i = 0
  259.         if m00 < m11 then
  260.             i = 1
  261.         end
  262.         if m22 > (i == 0 and m00 or m11) then
  263.             i = 2
  264.         end
  265.         if i == 0 then
  266.             local s = math.sqrt(m00 - m11 - m22 + 1)
  267.             local recip = 0.5 / s
  268.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  269.         elseif i == 1 then
  270.             local s = math.sqrt(m11 - m22 - m00 + 1)
  271.             local recip = 0.5 / s
  272.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  273.         elseif i == 2 then
  274.             local s = math.sqrt(m22 - m00 - m11 + 1)
  275.             local recip = 0.5 / s
  276.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  277.         end
  278.     end
  279. end
  280. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  281.     local xs, ys, zs = x + x, y + y, z + z
  282.     local wx, wy, wz = w * xs, w * ys, w * zs
  283.     local xx = x * xs
  284.     local xy = x * ys
  285.     local xz = x * zs
  286.     local yy = y * ys
  287.     local yz = y * zs
  288.     local zz = z * zs
  289.     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))
  290. end
  291. function QuaternionSlerp(a, b, t)
  292.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  293.     local startInterp, finishInterp
  294.     if cosTheta >= 1.0E-4 then
  295.         if 1 - cosTheta > 1.0E-4 then
  296.             local theta = math.acos(cosTheta)
  297.             local invSinTheta = 1 / Sin(theta)
  298.             startInterp = Sin((1 - t) * theta) * invSinTheta
  299.             finishInterp = Sin(t * theta) * invSinTheta
  300.         else
  301.             startInterp = 1 - t
  302.             finishInterp = t
  303.         end
  304.     elseif 1 + cosTheta > 1.0E-4 then
  305.         local theta = math.acos(-cosTheta)
  306.         local invSinTheta = 1 / Sin(theta)
  307.         startInterp = Sin((t - 1) * theta) * invSinTheta
  308.         finishInterp = Sin(t * theta) * invSinTheta
  309.     else
  310.         startInterp = t - 1
  311.         finishInterp = t
  312.     end
  313.     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
  314. end
  315. function rayCast(Position, Direction, Range, Ignore)
  316.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  317. end
  318. local RbxUtility = LoadLibrary("RbxUtility")
  319. local Create = RbxUtility.Create
  320.  
  321. -------------------------------------------------------
  322. --Start Damage Function--
  323. -------------------------------------------------------
  324. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  325.     if hit.Parent == nil then
  326.         return
  327.     end
  328.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  329.     for _, v in pairs(hit.Parent:children()) do
  330.         if v:IsA("Humanoid") then
  331.             h = v
  332.         end
  333.     end
  334.          if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  335.    
  336.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  337.          end
  338.  
  339.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  340.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  341.             if hit.Parent.DebounceHit.Value == true then
  342.                 return
  343.             end
  344.         end
  345.          if insta == true then
  346.          hit.Parent:FindFirstChild("Head"):BreakJoints()
  347.          end
  348.         local c = Create("ObjectValue"){
  349.             Name = "creator",
  350.             Value = owner,
  351.             Parent = h,
  352.         }
  353.         game:GetService("Debris"):AddItem(c, .5)
  354.         if HitSound ~= nil and HitPitch ~= nil then
  355.             CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  356.         end
  357.         local Damage = math.random(minim, maxim)
  358.         local blocked = false
  359.         local block = hit.Parent:findFirstChild("Block")
  360.         if block ~= nil then
  361.             if block.className == "IntValue" then
  362.                 if block.Value > 0 then
  363.                     blocked = true
  364.                     block.Value = block.Value - 1
  365.                     print(block.Value)
  366.                 end
  367.             end
  368.         end
  369.         if blocked == false then
  370.             h.Health = h.Health - Damage
  371.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  372.         else
  373.             h.Health = h.Health - (Damage / 2)
  374.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  375.         end
  376.         if Type == "Knockdown" then
  377.             local hum = hit.Parent.Humanoid
  378.             hum.PlatformStand = true
  379.             coroutine.resume(coroutine.create(function(HHumanoid)
  380.                 swait(1)
  381.                 HHumanoid.PlatformStand = false
  382.             end), hum)
  383.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  384.             local bodvol = Create("BodyVelocity"){
  385.                 velocity = angle * knockback,
  386.                 P = 5000,
  387.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  388.                 Parent = hit,
  389.             }
  390.             local rl = Create("BodyAngularVelocity"){
  391.                 P = 3000,
  392.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  393.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  394.                 Parent = hit,
  395.             }
  396.             game:GetService("Debris"):AddItem(bodvol, .5)
  397.             game:GetService("Debris"):AddItem(rl, .5)
  398.         elseif Type == "Normal" then
  399.             local vp = Create("BodyVelocity"){
  400.                 P = 500,
  401.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  402.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  403.             }
  404.             if knockback > 0 then
  405.                 vp.Parent = hit.Parent.Torso
  406.             end
  407.             game:GetService("Debris"):AddItem(vp, .5)
  408.         elseif Type == "Up" then
  409.             local bodyVelocity = Create("BodyVelocity"){
  410.                 velocity = Vector3.new(0, 20, 0),
  411.                 P = 5000,
  412.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  413.                 Parent = hit,
  414.             }
  415.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  416.         elseif Type == "DarkUp" then
  417.             coroutine.resume(coroutine.create(function()
  418.                 for i = 0, 1, 0.1 do
  419.                     swait()
  420.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  421.                 end
  422.             end))
  423.             local bodyVelocity = Create("BodyVelocity"){
  424.                 velocity = Vector3.new(0, 20, 0),
  425.                 P = 5000,
  426.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  427.                 Parent = hit,
  428.             }
  429.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  430.         elseif Type == "Snare" then
  431.             local bp = Create("BodyPosition"){
  432.                 P = 2000,
  433.                 D = 100,
  434.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  435.                 position = hit.Parent.Torso.Position,
  436.                 Parent = hit.Parent.Torso,
  437.             }
  438.             game:GetService("Debris"):AddItem(bp, 1)
  439.         elseif Type == "Freeze" then
  440.             local BodPos = Create("BodyPosition"){
  441.                 P = 50000,
  442.                 D = 1000,
  443.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  444.                 position = hit.Parent.Torso.Position,
  445.                 Parent = hit.Parent.Torso,
  446.             }
  447.             local BodGy = Create("BodyGyro") {
  448.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  449.                 P = 20e+003,
  450.                 Parent = hit.Parent.Torso,
  451.                 cframe = hit.Parent.Torso.CFrame,
  452.             }
  453.             hit.Parent.Torso.Anchored = true
  454.             coroutine.resume(coroutine.create(function(Part)
  455.                 swait(1.5)
  456.                 Part.Anchored = false
  457.             end), hit.Parent.Torso)
  458.             game:GetService("Debris"):AddItem(BodPos, 3)
  459.             game:GetService("Debris"):AddItem(BodGy, 3)
  460.         end
  461.         local debounce = Create("BoolValue"){
  462.             Name = "DebounceHit",
  463.             Parent = hit.Parent,
  464.             Value = true,
  465.         }
  466.         game:GetService("Debris"):AddItem(debounce, Delay)
  467.         c = Create("ObjectValue"){
  468.             Name = "creator",
  469.             Value = Player,
  470.             Parent = h,
  471.         }
  472.         game:GetService("Debris"):AddItem(c, .5)
  473.     end
  474. end
  475. -------------------------------------------------------
  476. --End Damage Function--
  477. -------------------------------------------------------
  478.  
  479. -------------------------------------------------------
  480. --Start Damage Function Customization--
  481. -------------------------------------------------------
  482. function ShowDamage(Pos, Text, Time, Color)
  483.     local Rate = (1 / 30)
  484.     local Pos = (Pos or Vector3.new(0, 0, 0))
  485.     local Text = (Text or "")
  486.     local Time = (Time or 2)
  487.     local Color = (Color or Color3.new(1, 0, 1))
  488.     local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  489.     EffectPart.Anchored = true
  490.     local BillboardGui = Create("BillboardGui"){
  491.         Size = UDim2.new(3, 0, 3, 0),
  492.         Adornee = EffectPart,
  493.         Parent = EffectPart,
  494.     }
  495.     local TextLabel = Create("TextLabel"){
  496.         BackgroundTransparency = 1,
  497.         Size = UDim2.new(1, 0, 1, 0),
  498.         Text = Text,
  499.         Font = "Bodoni",
  500.         TextColor3 = Color,
  501.         TextScaled = true,
  502.         TextStrokeColor3 = Color3.fromRGB(0,0,0),
  503.         Parent = BillboardGui,
  504.     }
  505.     game.Debris:AddItem(EffectPart, (Time))
  506.     EffectPart.Parent = game:GetService("Workspace")
  507.     delay(0, function()
  508.         local Frames = (Time / Rate)
  509.         for Frame = 1, Frames do
  510.             wait(Rate)
  511.             local Percent = (Frame / Frames)
  512.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  513.             TextLabel.TextTransparency = Percent
  514.         end
  515.         if EffectPart and EffectPart.Parent then
  516.             EffectPart:Destroy()
  517.         end
  518.     end)
  519. end
  520. -------------------------------------------------------
  521. --End Damage Function Customization--
  522. -------------------------------------------------------
  523.  
  524. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  525.   for _, c in pairs(workspace:children()) do
  526.     local hum = c:findFirstChild("Humanoid")
  527.     if hum ~= nil then
  528.       local head = c:findFirstChild("Head")
  529.       if head ~= nil then
  530.         local targ = head.Position - Part.Position
  531.         local mag = targ.magnitude
  532.         if magni >= mag and c.Name ~= plr.Name then
  533.           Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  534.         end
  535.       end
  536.     end
  537.   end
  538. end
  539.  
  540.  
  541. CFuncs = {
  542.     Part = {
  543.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  544.             local Part = Create("Part")({
  545.                 Parent = Parent,
  546.                 Reflectance = Reflectance,
  547.                 Transparency = Transparency,
  548.                 CanCollide = false,
  549.                 Locked = true,
  550.                 BrickColor = BrickColor.new(tostring(BColor)),
  551.                 Name = Name,
  552.                 Size = Size,
  553.                 Material = Material
  554.             })
  555.             RemoveOutlines(Part)
  556.             return Part
  557.         end
  558.     },
  559.     Mesh = {
  560.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  561.             local Msh = Create(Mesh)({
  562.                 Parent = Part,
  563.                 Offset = OffSet,
  564.                 Scale = Scale
  565.             })
  566.             if Mesh == "SpecialMesh" then
  567.                 Msh.MeshType = MeshType
  568.                 Msh.MeshId = MeshId
  569.             end
  570.             return Msh
  571.         end
  572.     },
  573.     Mesh = {
  574.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  575.             local Msh = Create(Mesh)({
  576.                 Parent = Part,
  577.                 Offset = OffSet,
  578.                 Scale = Scale
  579.             })
  580.             if Mesh == "SpecialMesh" then
  581.                 Msh.MeshType = MeshType
  582.                 Msh.MeshId = MeshId
  583.             end
  584.             return Msh
  585.         end
  586.     },
  587.     Weld = {
  588.         Create = function(Parent, Part0, Part1, C0, C1)
  589.             local Weld = Create("Weld")({
  590.                 Parent = Parent,
  591.                 Part0 = Part0,
  592.                 Part1 = Part1,
  593.                 C0 = C0,
  594.                 C1 = C1
  595.             })
  596.             return Weld
  597.         end
  598.     },
  599.     Sound = {
  600.         Create = function(id, par, vol, pit)
  601.             coroutine.resume(coroutine.create(function()
  602.                 local S = Create("Sound")({
  603.                     Volume = vol,
  604.                     Pitch = pit or 1,
  605.                     SoundId = id,
  606.                     Parent = par or workspace
  607.                 })
  608.                 wait()
  609.                 S:play()
  610.                 game:GetService("Debris"):AddItem(S, 6)
  611.             end))
  612.         end
  613.     },
  614.     ParticleEmitter = {
  615.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  616.             local fp = Create("ParticleEmitter")({
  617.                 Parent = Parent,
  618.                 Color = ColorSequence.new(Color1, Color2),
  619.                 LightEmission = LightEmission,
  620.                 Size = Size,
  621.                 Texture = Texture,
  622.                 Transparency = Transparency,
  623.                 ZOffset = ZOffset,
  624.                 Acceleration = Accel,
  625.                 Drag = Drag,
  626.                 LockedToPart = LockedToPart,
  627.                 VelocityInheritance = VelocityInheritance,
  628.                 EmissionDirection = EmissionDirection,
  629.                 Enabled = Enabled,
  630.                 Lifetime = LifeTime,
  631.                 Rate = Rate,
  632.                 Rotation = Rotation,
  633.                 RotSpeed = RotSpeed,
  634.                 Speed = Speed,
  635.                 VelocitySpread = VelocitySpread
  636.             })
  637.             return fp
  638.         end
  639.     }
  640. }
  641. function RemoveOutlines(part)
  642.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  643. end
  644. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  645.     local Part = Create("Part")({
  646.         formFactor = FormFactor,
  647.         Parent = Parent,
  648.         Reflectance = Reflectance,
  649.         Transparency = Transparency,
  650.         CanCollide = false,
  651.         Locked = true,
  652.         BrickColor = BrickColor.new(tostring(BColor)),
  653.         Name = Name,
  654.         Size = Size,
  655.         Material = Material
  656.     })
  657.     RemoveOutlines(Part)
  658.     return Part
  659. end
  660. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  661.     local Msh = Create(Mesh)({
  662.         Parent = Part,
  663.         Offset = OffSet,
  664.         Scale = Scale
  665.     })
  666.     if Mesh == "SpecialMesh" then
  667.         Msh.MeshType = MeshType
  668.         Msh.MeshId = MeshId
  669.     end
  670.     return Msh
  671. end
  672. function CreateWeld(Parent, Part0, Part1, C0, C1)
  673.     local Weld = Create("Weld")({
  674.         Parent = Parent,
  675.         Part0 = Part0,
  676.         Part1 = Part1,
  677.         C0 = C0,
  678.         C1 = C1
  679.     })
  680.     return Weld
  681. end
  682.  
  683.  
  684. -------------------------------------------------------
  685. --Start Effect Function--
  686. -------------------------------------------------------
  687. EffectModel = Instance.new("Model", char)
  688. Effects = {
  689.   Block = {
  690.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  691.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  692.       prt.Anchored = true
  693.       prt.CFrame = cframe
  694.       local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  695.       game:GetService("Debris"):AddItem(prt, 10)
  696.       if Type == 1 or Type == nil then
  697.         table.insert(Effects, {
  698.           prt,
  699.           "Block1",
  700.           delay,
  701.           x3,
  702.           y3,
  703.           z3,
  704.           msh
  705.         })
  706.       elseif Type == 2 then
  707.         table.insert(Effects, {
  708.           prt,
  709.           "Block2",
  710.           delay,
  711.           x3,
  712.           y3,
  713.           z3,
  714.           msh
  715.         })
  716.       else
  717.         table.insert(Effects, {
  718.           prt,
  719.           "Block3",
  720.           delay,
  721.           x3,
  722.           y3,
  723.           z3,
  724.           msh
  725.         })
  726.       end
  727.     end
  728.   },
  729.   Sphere = {
  730.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  731.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  732.       prt.Anchored = true
  733.       prt.CFrame = cframe
  734.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  735.       game:GetService("Debris"):AddItem(prt, 10)
  736.       table.insert(Effects, {
  737.         prt,
  738.         "Cylinder",
  739.         delay,
  740.         x3,
  741.         y3,
  742.         z3,
  743.         msh
  744.       })
  745.     end
  746.   },
  747.   Cylinder = {
  748.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  749.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  750.       prt.Anchored = true
  751.       prt.CFrame = cframe
  752.       local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  753.       game:GetService("Debris"):AddItem(prt, 10)
  754.       table.insert(Effects, {
  755.         prt,
  756.         "Cylinder",
  757.         delay,
  758.         x3,
  759.         y3,
  760.         z3,
  761.         msh
  762.       })
  763.     end
  764.   },
  765.   Wave = {
  766.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  767.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  768.       prt.Anchored = true
  769.       prt.CFrame = cframe
  770.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  771.       game:GetService("Debris"):AddItem(prt, 10)
  772.       table.insert(Effects, {
  773.         prt,
  774.         "Cylinder",
  775.         delay,
  776.         x3 / 60,
  777.         y3 / 60,
  778.         z3 / 60,
  779.         msh
  780.       })
  781.     end
  782.   },
  783.   Ring = {
  784.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  785.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  786.       prt.Anchored = true
  787.       prt.CFrame = cframe
  788.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  789.       game:GetService("Debris"):AddItem(prt, 10)
  790.       table.insert(Effects, {
  791.         prt,
  792.         "Cylinder",
  793.         delay,
  794.         x3,
  795.         y3,
  796.         z3,
  797.         msh
  798.       })
  799.     end
  800.   },
  801.   Break = {
  802.     Create = function(brickcolor, cframe, x1, y1, z1)
  803.       local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  804.       prt.Anchored = true
  805.       prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  806.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  807.       local num = math.random(10, 50) / 1000
  808.       game:GetService("Debris"):AddItem(prt, 10)
  809.       table.insert(Effects, {
  810.         prt,
  811.         "Shatter",
  812.         num,
  813.         prt.CFrame,
  814.         math.random() - math.random(),
  815.         0,
  816.         math.random(50, 100) / 100
  817.       })
  818.     end
  819.   },
  820. Spiral = {
  821.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  822.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  823.       prt.Anchored = true
  824.       prt.CFrame = cframe
  825.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  826.       game:GetService("Debris"):AddItem(prt, 10)
  827.       table.insert(Effects, {
  828.         prt,
  829.         "Cylinder",
  830.         delay,
  831.         x3,
  832.         y3,
  833.         z3,
  834.         msh
  835.       })
  836.     end
  837.   },
  838. Push = {
  839.     Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  840.       local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  841.       prt.Anchored = true
  842.       prt.CFrame = cframe
  843.       local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  844.       game:GetService("Debris"):AddItem(prt, 10)
  845.       table.insert(Effects, {
  846.         prt,
  847.         "Cylinder",
  848.         delay,
  849.         x3,
  850.         y3,
  851.         z3,
  852.         msh
  853.       })
  854.     end
  855.   }
  856. }
  857. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  858.     local fp = IT("Part")
  859.     fp.formFactor = formfactor
  860.     fp.Parent = parent
  861.     fp.Reflectance = reflectance
  862.     fp.Transparency = transparency
  863.     fp.CanCollide = false
  864.     fp.Locked = true
  865.     fp.BrickColor = brickcolor
  866.     fp.Name = name
  867.     fp.Size = size
  868.     fp.Position = tors.Position
  869.     RemoveOutlines(fp)
  870.     fp.Material = "SmoothPlastic"
  871.     fp:BreakJoints()
  872.     return fp
  873. end
  874.  
  875. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  876.     local mesh = IT(Mesh)
  877.     mesh.Parent = part
  878.     if Mesh == "SpecialMesh" then
  879.         mesh.MeshType = meshtype
  880.     if meshid ~= "nil" then
  881.         mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  882.         end
  883.     end
  884.     mesh.Offset = offset
  885.     mesh.Scale = scale
  886.     return mesh
  887. end
  888.  
  889. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  890.     local type = type
  891.     local rng = Instance.new("Part", char)
  892.     rng.Anchored = true
  893.     rng.BrickColor = color
  894.     rng.CanCollide = false
  895.     rng.FormFactor = 3
  896.     rng.Name = "Ring"
  897.     rng.Material = "Neon"
  898.     rng.Size = Vector3.new(1, 1, 1)
  899.     rng.Transparency = 0
  900.     rng.TopSurface = 0
  901.     rng.BottomSurface = 0
  902.     rng.CFrame = pos
  903.     local rngm = Instance.new("SpecialMesh", rng)
  904.     rngm.MeshType = MType
  905.     rngm.Scale = scale
  906.     local scaler2 = 1
  907.     if type == "Add" then
  908.         scaler2 = 1 * value
  909.     elseif type == "Divide" then
  910.         scaler2 = 1 / value
  911.     end
  912.     coroutine.resume(coroutine.create(function()
  913.         for i = 0, 10 / bonuspeed, 0.1 do
  914.             swait()
  915.             if type == "Add" then
  916.                 scaler2 = scaler2 - 0.01 * value / bonuspeed
  917.             elseif type == "Divide" then
  918.                 scaler2 = scaler2 - 0.01 / value * bonuspeed
  919.             end
  920.             rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  921.             rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  922.         end
  923.         rng:Destroy()
  924.     end))
  925. end
  926.  
  927. function Eviscerate(dude)
  928.     if dude.Name ~= char then
  929.         local bgf = IT("BodyGyro", dude.Head)
  930.         bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  931.         local val = IT("BoolValue", dude)
  932.         val.Name = "IsHit"
  933.         local ds = coroutine.wrap(function()
  934.             dude:WaitForChild("Head"):BreakJoints()
  935.             wait(0.5)
  936.             target = nil
  937.             coroutine.resume(coroutine.create(function()
  938.                 for i, v in pairs(dude:GetChildren()) do
  939.                     if v:IsA("Accessory") then
  940.                         v:Destroy()
  941.                     end
  942.                     if v:IsA("Humanoid") then
  943.                         v:Destroy()
  944.                     end
  945.                     if v:IsA("CharacterMesh") then
  946.                         v:Destroy()
  947.                     end
  948.                     if v:IsA("Model") then
  949.                         v:Destroy()
  950.                     end
  951.                     if v:IsA("Part") or v:IsA("MeshPart") then
  952.                         for x, o in pairs(v:GetChildren()) do
  953.                             if o:IsA("Decal") then
  954.                                 o:Destroy()
  955.                             end
  956.                         end
  957.                         coroutine.resume(coroutine.create(function()
  958.                             v.Material = "Neon"
  959.                             v.CanCollide = false
  960.                             local PartEmmit1 = IT("ParticleEmitter", v)
  961.                             PartEmmit1.LightEmission = 1
  962.                             PartEmmit1.Texture = "rbxassetid://284205403"
  963.                             PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  964.                             PartEmmit1.Rate = 150
  965.                             PartEmmit1.Lifetime = NumberRange.new(1)
  966.                             PartEmmit1.Size = NumberSequence.new({
  967.                                 NumberSequenceKeypoint.new(0, 0.75, 0),
  968.                                 NumberSequenceKeypoint.new(1, 0, 0)
  969.                             })
  970.                             PartEmmit1.Transparency = NumberSequence.new({
  971.                                 NumberSequenceKeypoint.new(0, 0, 0),
  972.                                 NumberSequenceKeypoint.new(1, 1, 0)
  973.                             })
  974.                             PartEmmit1.Speed = NumberRange.new(0, 0)
  975.                             PartEmmit1.VelocitySpread = 30000
  976.                             PartEmmit1.Rotation = NumberRange.new(-500, 500)
  977.                             PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  978.                             local BodPoss = IT("BodyPosition", v)
  979.                             BodPoss.P = 3000
  980.                             BodPoss.D = 1000
  981.                             BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  982.                             BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  983.                             v.Color = maincolor.Color
  984.                             coroutine.resume(coroutine.create(function()
  985.                                 for i = 0, 49 do
  986.                                     swait(1)
  987.                                     v.Transparency = v.Transparency + 0.08
  988.                                 end
  989.                                 wait(0.5)
  990.                                 PartEmmit1.Enabled = false
  991.                                 wait(3)
  992.                                 v:Destroy()
  993.                                 dude:Destroy()
  994.                             end))
  995.                         end))
  996.                     end
  997.                 end
  998.             end))
  999.         end)
  1000.         ds()
  1001.     end
  1002. end
  1003.  
  1004. function FindNearestHead(Position, Distance, SinglePlayer)
  1005.     if SinglePlayer then
  1006.         return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1007.     end
  1008.     local List = {}
  1009.     for i, v in pairs(workspace:GetChildren()) do
  1010.         if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1011.             table.insert(List, v)
  1012.         end
  1013.     end
  1014.     return List
  1015. end
  1016.  
  1017. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1018.     local type = type
  1019.     local rng = Instance.new("Part", char)
  1020.     rng.Anchored = true
  1021.     rng.BrickColor = color
  1022.     rng.CanCollide = false
  1023.     rng.FormFactor = 3
  1024.     rng.Name = "Ring"
  1025.     rng.Material = "Neon"
  1026.     rng.Size = Vector3.new(1, 1, 1)
  1027.     rng.Transparency = 0
  1028.     rng.TopSurface = 0
  1029.     rng.BottomSurface = 0
  1030.     rng.CFrame = pos
  1031.     rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1032.     local rngm = Instance.new("SpecialMesh", rng)
  1033.     rngm.MeshType = MType
  1034.     rngm.Scale = Vector3.new(x1, y1, z1)
  1035.     local scaler2 = 1
  1036.     local speeder = FastSpeed
  1037.     if type == "Add" then
  1038.         scaler2 = 1 * value
  1039.     elseif type == "Divide" then
  1040.         scaler2 = 1 / value
  1041.     end
  1042.     coroutine.resume(coroutine.create(function()
  1043.         for i = 0, 10 / bonuspeed, 0.1 do
  1044.             swait()
  1045.             if type == "Add" then
  1046.                 scaler2 = scaler2 - 0.01 * value / bonuspeed
  1047.             elseif type == "Divide" then
  1048.                 scaler2 = scaler2 - 0.01 / value * bonuspeed
  1049.             end
  1050.             speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1051.             rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1052.             rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1053.             rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1054.         end
  1055.         rng:Destroy()
  1056.     end))
  1057. end
  1058.  
  1059. function SoulSteal(dude)
  1060. if dude.Name ~= char then
  1061. local bgf = IT("BodyGyro", dude.Head)
  1062. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1063. local val = IT("BoolValue", dude)
  1064. val.Name = "IsHit"
  1065. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1066. local soulst = coroutine.wrap(function()
  1067. local soul = Instance.new("Part",dude)
  1068. soul.Size = Vector3.new(1,1,1)
  1069. soul.CanCollide = false
  1070. soul.Anchored = false
  1071. soul.Position = torso.Position
  1072. soul.Transparency = 1
  1073. local PartEmmit1 = IT("ParticleEmitter", soul)
  1074. PartEmmit1.LightEmission = 1
  1075. PartEmmit1.Texture = "rbxassetid://569507414"
  1076. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1077. PartEmmit1.Rate = 250
  1078. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1079. PartEmmit1.Size = NumberSequence.new({
  1080.     NumberSequenceKeypoint.new(0, 1, 0),
  1081.     NumberSequenceKeypoint.new(1, 0, 0)
  1082. })
  1083. PartEmmit1.Transparency = NumberSequence.new({
  1084.     NumberSequenceKeypoint.new(0, 0, 0),
  1085.     NumberSequenceKeypoint.new(1, 1, 0)
  1086. })
  1087. PartEmmit1.Speed = NumberRange.new(0, 0)
  1088. PartEmmit1.VelocitySpread = 30000
  1089. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1090. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1091. local BodPoss = IT("BodyPosition", soul)
  1092. BodPoss.P = 3000
  1093. BodPoss.D = 1000
  1094. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1095. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1096. wait(1.6)
  1097. soul.Touched:connect(function(hit)
  1098.     if hit.Parent == char then
  1099.     soul:Destroy()
  1100.     end
  1101. end)
  1102. wait(1.2)
  1103. while soul do
  1104.     swait()
  1105.     PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1106.     BodPoss.Position = tors.Position
  1107. end
  1108. end)
  1109.     soulst()
  1110.     end
  1111. end
  1112. function FaceMouse()
  1113. local   Cam = workspace.CurrentCamera
  1114.     return {
  1115.         CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1116.         Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1117.     }
  1118. end
  1119. -------------------------------------------------------
  1120. --End Effect Function--
  1121. -------------------------------------------------------
  1122. function Cso(ID, PARENT, VOLUME, PITCH)
  1123.     local NSound = nil
  1124.     coroutine.resume(coroutine.create(function()
  1125.         NSound = IT("Sound", PARENT)
  1126.         NSound.Volume = VOLUME
  1127.         NSound.Pitch = PITCH
  1128.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1129.         swait()
  1130.         NSound:play()
  1131.         game:GetService("Debris"):AddItem(NSound, 10)
  1132.     end))
  1133.     return NSound
  1134. end
  1135. function CameraEnshaking(Length, Intensity)
  1136.     coroutine.resume(coroutine.create(function()
  1137.         local intensity = 1 * Intensity
  1138.         local rotM = 0.01 * Intensity
  1139.         for i = 0, Length, 0.1 do
  1140.             swait()
  1141.             intensity = intensity - 0.05 * Intensity / Length
  1142.             rotM = rotM - 5.0E-4 * Intensity / Length
  1143.             hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1144.             cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1145.         end
  1146.         hum.CameraOffset = Vector3.new(0, 0, 0)
  1147.     end))
  1148. end
  1149. -------------------------------------------------------
  1150. --End Important Functions--
  1151. -------------------------------------------------------
  1152.  
  1153.  
  1154. -------------------------------------------------------
  1155. --Start Customization--
  1156. -------------------------------------------------------
  1157. local Player_Size = 1
  1158. if Player_Size ~= 1 then
  1159. root.Size = root.Size * Player_Size
  1160. tors.Size = tors.Size * Player_Size
  1161. hed.Size = hed.Size * Player_Size
  1162. ra.Size = ra.Size * Player_Size
  1163. la.Size = la.Size * Player_Size
  1164. rl.Size = rl.Size * Player_Size
  1165. ll.Size = ll.Size * Player_Size
  1166. ----------------------------------------------------------------------------------
  1167. rootj.Parent = root
  1168. neck.Parent = tors
  1169. RW.Parent = tors
  1170. LW.Parent = tors
  1171. RH.Parent = tors
  1172. LH.Parent = tors
  1173. ----------------------------------------------------------------------------------
  1174. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1175. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1176. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1177. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1178. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1179. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1180. ----------------------------------------------------------------------------------
  1181. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1182. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1183. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1184. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1185. --hat.Parent = Character
  1186. end
  1187. ----------------------------------------------------------------------------------
  1188. local SONG = 0
  1189. local SONG2 = 0
  1190. local Music = Instance.new("Sound",tors)
  1191. Music.Volume = 2.5
  1192. Music.Looped = true
  1193. Music.Pitch = 1 --Pitcher
  1194. local HighNoon = Instance.new("Sound",char)
  1195. HighNoon.Volume = 10
  1196. HighNoon.SoundId = "rbxassetid://814875394"
  1197. HighNoon.Looped = false
  1198. HighNoon.Pitch = 1 --Pitcher
  1199. ----------------------------------------------------------------------------------
  1200. local equipped = false
  1201. local idle = 0
  1202. local change = 1
  1203. local val = 0
  1204. local toim = 0
  1205. local idleanim = 0.4
  1206. local sine = 0
  1207. ----------------------------------------------------------------------------------
  1208. hum.WalkSpeed = 8
  1209. hum.JumpPower = 57
  1210. hum.Animator.Parent = nil
  1211. local Hair = Instance.new("Part", char)
  1212. Hair.Name = "Hair"
  1213. Hair.CanCollide = false
  1214. Hair.BrickColor = BrickColor.new("Institutional white")
  1215. Hair.Transparency = 0
  1216. Hair.Material = "Plastic"
  1217. Hair.Size = Vector3.new(1, 1, 2)
  1218. Hair.TopSurface = Enum.SurfaceType.Smooth
  1219. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1220.  
  1221. local Weld = Instance.new("Weld", Hair)
  1222. Weld.Part0 = hed
  1223. Weld.Part1 = Hair
  1224. Weld.C1 = CFrame.new(0, -.6, 0)
  1225. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1226.  
  1227. local M2 = Instance.new("SpecialMesh")
  1228. M2.Parent = Hair
  1229. M2.MeshId = "http://www.roblox.com/asset/?id=3751820670"
  1230. M2.TextureId = "http://www.roblox.com/asset/?id=3751820776"
  1231. M2.Scale = Vector3.new(1, 1, 1)
  1232.  
  1233. local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
  1234. Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
  1235. Hat.Name = "Hat_F"
  1236. local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
  1237. if Handle.Name ~= "Handle" then
  1238.   Handle.Size = Vector3.new(1, 1, 1)
  1239. end
  1240. Handle.BottomSurface = 0
  1241. Handle.Name = "Handle"
  1242. Handle.TopSurface = 0
  1243. Handle.Locked = 1
  1244. handle = Instance.new("Part", char)
  1245. handle.TopSurface = "Smooth"
  1246. handle.BottomSurface = "Smooth"
  1247. handle.Material = "Neon"
  1248. handle.Size = Vector3.new(0.4, 1.2, 2)
  1249. handle.CanCollide = false
  1250. handle.FormFactor = "Custom"
  1251. local Weldb = Instance.new("Weld", char)
  1252. Weldb.Part0 = ra
  1253. Weldb.Part1 = handle
  1254. Weldb.C1 = CFrame.new(0, -.4, -1.6) *angles(Rad(90), Rad(0), Rad(180))
  1255. local KnifeMesh = Instance.new("SpecialMesh", handle)
  1256. KnifeMesh.MeshType = "FileMesh"
  1257. KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=54126200"
  1258. KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=54126269"
  1259. KnifeMesh.Scale = Vector3.new(.002, .002, .002)
  1260. -------------------------------------------------------
  1261. --End Customization--
  1262. -------------------------------------------------------
  1263.  
  1264.  
  1265. -------------------------------------------------------
  1266. --Start Attacks N Stuff--
  1267. -------------------------------------------------------
  1268. function High_Noon()
  1269.     print("Oh no.....")
  1270.     attack = true
  1271.     HighNoon:Play()
  1272.     --Cso("814875394", char, 10, 1)
  1273.     local orb = Instance.new("Part", char)
  1274.     orb.Anchored = true
  1275.     orb.BrickColor = BrickC("Camo")
  1276.     orb.CanCollide = false
  1277.     orb.FormFactor = 3
  1278.     orb.Name = "Ring"
  1279.     orb.Material = "Neon"
  1280.     orb.Size = Vector3.new(1, 1, 1)
  1281.     orb.Transparency = 0
  1282.     orb.TopSurface = 0
  1283.     orb.BottomSurface = 0
  1284.     local orbm = Instance.new("SpecialMesh", orb)
  1285.     orbm.MeshType = "Sphere"
  1286.     orbm.Name = "SizeMesh"
  1287.     orbm.Scale = Vector3.new(0, 0, 0)
  1288.     local scaled = 0.1
  1289.     local posid = 0
  1290.     for i = 0, 109, 0.1 do
  1291.         swait()
  1292.         scaled = scaled + 0.001
  1293.         --posid = posid - scaled
  1294.         orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
  1295.         orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
  1296.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1297.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1298.         RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1299.         LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1300.         RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 0.2)
  1301.         LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1302.     end
  1303.     coroutine.resume(coroutine.create(function()
  1304.         orb.Anchored = false
  1305.         --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  1306.         local a = Instance.new("Part", workspace)
  1307.         a.Name = "Direction"
  1308.         a.Anchored = true
  1309.         a.BrickColor = BrickC("Bright red")
  1310.         a.Material = "Neon"
  1311.         a.Transparency = 1
  1312.         a.CanCollide = false
  1313.         local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
  1314.         local ignore = orb
  1315.         local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1316.         a.BottomSurface = 10
  1317.         a.TopSurface = 10
  1318.         local distance = (orb.CFrame.p - position).magnitude
  1319.         a.Size = Vector3.new(0.1, 0.1, 0.1)
  1320.         a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
  1321.         orb.CFrame = a.CFrame
  1322.         a:Destroy()
  1323.         local bv = Instance.new("BodyVelocity")
  1324.         bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1325.         bv.velocity = orb.CFrame.lookVector * 125
  1326.         bv.Parent = orb
  1327.         local hitted = false
  1328.         game:GetService("Debris"):AddItem(orb, 15)
  1329.         wait()
  1330.         local hit = orb.Touched:connect(function(hit)
  1331.             if hitted == false then
  1332.                 hitted = true
  1333.                 coroutine.resume(coroutine.create(function()
  1334.         for i = 0,1.8,0.1 do
  1335.             swait()
  1336.             hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1337.         end
  1338.         for i = 0,1.8,0.1 do
  1339.             swait()
  1340.         hum.CameraOffset = Vector3.new(0,0,0)
  1341.         end
  1342.     end))
  1343.                 CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  1344.                 for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
  1345.         if v:FindFirstChild("Head") then
  1346.             Eviscerate(v)
  1347.         end
  1348.     end
  1349.                 Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("New Yeller"), "Sphere")
  1350.                 Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("New Yeller"), "Sphere")
  1351.                 for i = 0, 9 do
  1352.                     --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1353.                     --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1354.                 end
  1355.                 orb.Anchored = true
  1356.                 orb.Transparency = 1
  1357.                 wait(8)
  1358.                 orb:Destroy()
  1359.             end
  1360.         end)
  1361.     end))
  1362.     for i = 0, 6, 0.1 do
  1363.         swait()
  1364.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1365.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1366.         RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1367.         LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1368.         RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
  1369.         LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1370.     end
  1371.     attack = false
  1372. end
  1373. function Up_High_Noon()
  1374.     print("Oh no.....")
  1375.     attack = true
  1376.     HighNoon:Play()
  1377.     --Cso("814875394", char, 10, 1)
  1378.     local orb = Instance.new("Part", char)
  1379.     orb.Anchored = true
  1380.     orb.BrickColor = BrickC("New Yeller")
  1381.     orb.CanCollide = false
  1382.     orb.FormFactor = 3
  1383.     orb.Name = "Ring"
  1384.     orb.Material = "Neon"
  1385.     orb.Size = Vector3.new(1, 1, 1)
  1386.     orb.Transparency = 0
  1387.     orb.TopSurface = 0
  1388.     orb.BottomSurface = 0
  1389.     local orbm = Instance.new("SpecialMesh", orb)
  1390.     orbm.MeshType = "Sphere"
  1391.     orbm.Name = "SizeMesh"
  1392.     orbm.Scale = Vector3.new(0, 0, 0)
  1393.     local scaled = 0.1
  1394.     local posid = 0
  1395.     for i = 0, 109, 0.1 do
  1396.         swait()
  1397.         scaled = scaled + 0.001
  1398.         posid = posid - scaled
  1399.         orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
  1400.         orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
  1401.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1402.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1403.         RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1404.         LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1405.         RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(180)), 0.2)
  1406.         LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1407.     end
  1408.     coroutine.resume(coroutine.create(function()
  1409.         orb.Anchored = false
  1410.         --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  1411.         local a = Instance.new("Part", workspace)
  1412.         a.Name = "Direction"
  1413.         a.Anchored = true
  1414.         a.BrickColor = BrickC("Bright red")
  1415.         a.Material = "Neon"
  1416.         a.Transparency = 1
  1417.         a.CanCollide = false
  1418.         local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
  1419.         local ignore = orb
  1420.         local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1421.         a.BottomSurface = 10
  1422.         a.TopSurface = 10
  1423.         local distance = (orb.CFrame.p - position).magnitude
  1424.         a.Size = Vector3.new(0.1, 0.1, 0.1)
  1425.         a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
  1426.         orb.CFrame = a.CFrame
  1427.         a:Destroy()
  1428.         local bv = Instance.new("BodyVelocity")
  1429.         bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1430.         bv.velocity = orb.CFrame.lookVector * 125
  1431.         bv.Parent = orb
  1432.         local hitted = false
  1433.         game:GetService("Debris"):AddItem(orb, 15)
  1434.         wait()
  1435.         local hit = orb.Touched:connect(function(hit)
  1436.             if hitted == false then
  1437.                 hitted = true
  1438.                 coroutine.resume(coroutine.create(function()
  1439.         for i = 0,1.8,0.1 do
  1440.             swait()
  1441.             hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1442.         end
  1443.         for i = 0,1.8,0.1 do
  1444.             swait()
  1445.         hum.CameraOffset = Vector3.new(0,0,0)
  1446.         end
  1447.     end))
  1448.                 CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  1449.                     for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
  1450.         if v:FindFirstChild("Head") then
  1451.             Eviscerate(v)
  1452.         end
  1453.     end
  1454.                 Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere")
  1455.                 Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere")
  1456.                 for i = 0, 9 do
  1457.                     --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1458.                     --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1459.                 end
  1460.                 orb.Anchored = true
  1461.                 orb.Transparency = 1
  1462.                 wait(8)
  1463.                 orb:Destroy()
  1464.             end
  1465.         end)
  1466.     end))
  1467.     for i = 0, 6, 0.1 do
  1468.         swait()
  1469.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1470.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1471.         RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1472.         LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1473.         RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
  1474.         LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1475.     end
  1476.     attack = false
  1477. end
  1478. -------------------------------------------------------
  1479. --End Attacks N Stuff--
  1480. -------------------------------------------------------
  1481. mouse.KeyDown:connect(function(key)
  1482.     if string.byte(key) == 48 then
  1483.         Swing = 2
  1484.         hum.WalkSpeed = 38.82
  1485.     end
  1486. end)
  1487. mouse.KeyUp:connect(function(key)
  1488.     if string.byte(key) == 48 then
  1489.         Swing = 1
  1490.         hum.WalkSpeed = 8
  1491.     end
  1492. end)
  1493. mouse.KeyDown:connect(function(key)
  1494.     if attack == false then
  1495.         if key == 'z' then
  1496.             High_Noon()
  1497.         elseif key == 'x' then
  1498.             Up_High_Noon()
  1499.         end
  1500.     end
  1501. end)
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510. -------------------------------------------------------
  1511. --Start Animations--
  1512. -------------------------------------------------------
  1513. while true do
  1514.     swait()
  1515.     sine = sine + change
  1516.     local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1517.     local velderp = root.Velocity.y
  1518.     hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1519.     if equipped == true or equipped == false then
  1520.         if attack == false then
  1521.             idle = idle + 1
  1522.         else
  1523.             idle = 0
  1524.         end
  1525.         if 1 < root.Velocity.y and hitfloor == nil then
  1526.             Anim = "Jump"
  1527.             if attack == false then
  1528.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1529.                 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1530.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1531.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1532.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1533.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1534.             end
  1535.         elseif -1 > root.Velocity.y and hitfloor == nil then
  1536.             Anim = "Fall"
  1537.             if attack == false then
  1538.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1539.                 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1540.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1541.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1542.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1543.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1544.             end
  1545.         elseif torvel < 1 and hitfloor ~= nil then
  1546.             Anim = "Idle"
  1547.             change = .5
  1548.             if attack == false then
  1549.                 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)
  1550.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1551.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1552.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1553.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(3 + 4.5 * Sin(sine / 20))), 0.1)
  1554.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-3 - 4.5 * Sin(sine / 20))), 0.1)
  1555.             end
  1556.         elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1557.             Anim = "Walk"
  1558.             change = .9
  1559.             if attack == false then
  1560.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1561.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1562.                 RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2)  * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1563.                 LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1564.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37)  * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1565.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37)  * Cos(sine / 7) , Rad(0) ,  Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1566.             end
  1567.         elseif torvel >= 25 and hitfloor ~= nil then
  1568.             Anim = "Sprint"
  1569.             change = 1.35
  1570.             if attack == false then
  1571.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1572.             tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1573.             RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1574.             LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1575.             RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1576.             LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) ,    Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1577.             end
  1578.         end
  1579.     end
  1580.     Music.SoundId = "rbxassetid://3051828702"
  1581.     Music.Looped = true
  1582.     Music.Pitch = 1
  1583.     Music.Volume = 5
  1584.     Music.Parent = tors
  1585.     Music:Resume()
  1586.     for _, c in pairs(char:GetChildren()) do
  1587.         if c.ClassName == "Accessory" then
  1588.             c:remove()
  1589.         end
  1590.     end
  1591.     if 0 < #Effects then
  1592.         for e = 1, #Effects do
  1593.             if Effects[e] ~= nil then
  1594.                 local Thing = Effects[e]
  1595.                 if Thing ~= nil then
  1596.                     local Part = Thing[1]
  1597.                     local Mode = Thing[2]
  1598.                     local Delay = Thing[3]
  1599.                     local IncX = Thing[4]
  1600.                     local IncY = Thing[5]
  1601.                     local IncZ = Thing[6]
  1602.                     if 1 >= Thing[1].Transparency then
  1603.                         if Thing[2] == "Block1" then
  1604.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1605.                             local Mesh = Thing[1].Mesh
  1606.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1607.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1608.                         elseif Thing[2] == "Block2" then
  1609.                             Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1610.                             local Mesh = Thing[7]
  1611.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1612.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1613.                         elseif Thing[2] == "Block3" then
  1614.                             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)
  1615.                             local Mesh = Thing[7]
  1616.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1617.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1618.                         elseif Thing[2] == "Cylinder" then
  1619.                             local Mesh = Thing[1].Mesh
  1620.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1621.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1622.                         elseif Thing[2] == "Blood" then
  1623.                             local Mesh = Thing[7]
  1624.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1625.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1626.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1627.                         elseif Thing[2] == "Elec" then
  1628.                             local Mesh = Thing[1].Mesh
  1629.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1630.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1631.                         elseif Thing[2] == "Disappear" then
  1632.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1633.                         elseif Thing[2] == "Shatter" then
  1634.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1635.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1636.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1637.                             Thing[6] = Thing[6] + Thing[5]
  1638.                         end
  1639.                     else
  1640.                         Part.Parent = nil
  1641.                         table.remove(Effects, e)
  1642.                     end
  1643.                 end
  1644.             end
  1645.         end
  1646.     end
  1647. end
  1648. -------------------------------------------------------
  1649. --End Animations And Script--
  1650. -------------------------------------------------------
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