Hugo1234cool

Untitled

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