Advertisement
5325325325

Untitled

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