Advertisement
aaaay63746

yeah no

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