Guest User

Untitled

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