Advertisement
Guest User

yjkohgj

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