Advertisement
saba1517

Untitled

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