Advertisement
Penien23

It's,,,,,,

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