Advertisement
shgsiughiiruhdu12354

Fe sheriff

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