Advertisement
aaaay63746

Felipe

Mar 27th, 2020
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.18 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('Vebley 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. soul.Touched:connect(function(hit)
  1174. if hit.Parent == char then
  1175. soul:Destroy()
  1176. end
  1177. end)
  1178. wait(1.2)
  1179. while soul do
  1180. swait()
  1181. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1182. BodPoss.Position = tors.Position
  1183. end
  1184. end)
  1185. soulst()
  1186. end
  1187. end
  1188. function FaceMouse()
  1189. local Cam = workspace.CurrentCamera
  1190. return {
  1191. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1192. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1193. }
  1194. end
  1195. function WACKYEFFECT(Table)
  1196. local TYPE = (Table.EffectType or "Sphere")
  1197. local SIZE = (Table.Size or Vector3.new(1,1,1))
  1198. local ENDSIZE = (Table.Size2 or Vector3.new(0,0,0))
  1199. local TRANSPARENCY = (Table.Transparency or 0)
  1200. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1201. local CFRAME = (Table.CFrame or tors.CFrame)
  1202. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1203. local ROTATION1 = (Table.RotationX or 0)
  1204. local ROTATION2 = (Table.RotationY or 0)
  1205. local ROTATION3 = (Table.RotationZ or 0)
  1206. local MATERIAL = (Table.Material or "Neon")
  1207. local COLOR = (Table.Color or Color3.new(1,1,1))
  1208. local TIME = (Table.Time or 45)
  1209. local SOUNDID = (Table.SoundID or nil)
  1210. local SOUNDPITCH = (Table.SoundPitch or nil)
  1211. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1212. coroutine.resume(coroutine.create(function()
  1213. local PLAYSSOUND = false
  1214. local SOUND = nil
  1215. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BrickC("Pearl"), "Effect", Vector3.new(1,1,1), true)
  1216. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1217. PLAYSSOUND = true
  1218. SOUND = Cso(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1219. end
  1220. EFFECT.Color = COLOR
  1221. local MSH = nil
  1222. if TYPE == "Sphere" then
  1223. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, Vector3.new(0,0,0))
  1224. elseif TYPE == "Block" or TYPE == "Box" then
  1225. MSH = IT("BlockMesh",EFFECT)
  1226. MSH.Scale = SIZE
  1227. elseif TYPE == "Cylinder" then
  1228. MSH = IT("CylinderMesh",EFFECT)
  1229. MSH.Scale = SIZE
  1230. elseif TYPE == "Wave" then
  1231. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, Vector3.new(0,0,-SIZE.X/8))
  1232. elseif TYPE == "Ring" then
  1233. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", Vector3.new(SIZE.X,SIZE.X,0.1), Vector3.new(0,0,0))
  1234. elseif TYPE == "Slash" then
  1235. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  1236. elseif TYPE == "Round Slash" then
  1237. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  1238. elseif TYPE == "Swirl" then
  1239. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, Vector3.new(0,0,0))
  1240. elseif TYPE == "Skull" then
  1241. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, Vector3.new(0,0,0))
  1242. elseif TYPE == "Crystal" then
  1243. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, Vector3.new(0,0,0))
  1244. elseif TYPE == "Crown" then
  1245. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, Vector3.new(0,0,0))
  1246. end
  1247. if MSH ~= nil then
  1248. local MOVESPEED = nil
  1249. if MOVEDIRECTION ~= nil then
  1250. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1251. end
  1252. local GROWTH = SIZE - ENDSIZE
  1253. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1254. if TYPE == "Block" then
  1255. EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
  1256. else
  1257. EFFECT.CFrame = CFRAME
  1258. end
  1259. for LOOP = 1, TIME+1 do
  1260. swait()
  1261. MSH.Scale = MSH.Scale - GROWTH/TIME
  1262. if TYPE == "Wave" then
  1263. MSH.Offset = Vector3.new(0,0,-MSH.Scale.X/8)
  1264. end
  1265. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1266. if TYPE == "Block" then
  1267. EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
  1268. else
  1269. EFFECT.CFrame = EFFECT.CFrame*angles(Rad(ROTATION1),Rad(ROTATION2),Rad(ROTATION3))
  1270. end
  1271. if MOVEDIRECTION ~= nil then
  1272. local ORI = EFFECT.Orientation
  1273. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1274. EFFECT.Orientation = ORI
  1275. end
  1276. end
  1277. EFFECT.Transparency = 1
  1278. if PLAYSSOUND == false then
  1279. EFFECT:remove()
  1280. else
  1281. repeat swait() until SOUND.Playing == false
  1282. EFFECT:remove()
  1283. end
  1284. else
  1285. if PLAYSSOUND == false then
  1286. EFFECT:remove()
  1287. else
  1288. repeat swait() until SOUND.Playing == false
  1289. EFFECT:remove()
  1290. end
  1291. end
  1292. end))
  1293. end
  1294.  
  1295. -------------------------------------------------------
  1296. --End Effect Function--
  1297. -------------------------------------------------------
  1298. function Cso(ID, PARENT, VOLUME, PITCH)
  1299. local NSound = nil
  1300. coroutine.resume(coroutine.create(function()
  1301. NSound = IT("Sound", PARENT)
  1302. NSound.Volume = VOLUME
  1303. NSound.Pitch = PITCH
  1304. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1305. swait()
  1306. NSound:play()
  1307. game:GetService("Debris"):AddItem(NSound, 10)
  1308. end))
  1309. return NSound
  1310. end
  1311. function CameraEnshaking(Length, Intensity)
  1312. coroutine.resume(coroutine.create(function()
  1313. local intensity = 1 * Intensity
  1314. local rotM = 0.01 * Intensity
  1315. for i = 0, Length, 0.1 do
  1316. swait()
  1317. intensity = intensity - 0.05 * Intensity / Length
  1318. rotM = rotM - 5.0E-4 * Intensity / Length
  1319. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1320. 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)
  1321. end
  1322. hum.CameraOffset = Vector3.new(0, 0, 0)
  1323. end))
  1324. end
  1325. NewInstance = function(instance,parent,properties)
  1326. local inst = Instance.new(instance)
  1327. inst.Parent = parent
  1328. if(properties)then
  1329. for i,v in next, properties do
  1330. pcall(function() inst[i] = v end)
  1331. end
  1332. end
  1333. return inst;
  1334. end
  1335. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1336. local NEWWELD = IT(TYPE)
  1337. NEWWELD.Part0 = PART0
  1338. NEWWELD.Part1 = PART1
  1339. NEWWELD.C0 = C0
  1340. NEWWELD.C1 = C1
  1341. NEWWELD.Parent = PARENT
  1342. return NEWWELD
  1343. end
  1344. local DECAL = IT("Decal")
  1345. function MagicRing(PART,CFRAME)
  1346. local RING = CreatePart(3, EffectModel, "Granite", 0, 1, "Maroon", "MagicRing", Vector3.new(0,0,0),false)
  1347. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  1348. local MESH = IT("BlockMesh",RING)
  1349. local BOTTOMTEXTURE = DECAL:Clone()
  1350. BOTTOMTEXTURE.Parent = RING
  1351. BOTTOMTEXTURE.Face = "Bottom"
  1352. BOTTOMTEXTURE.Name = "BottomTexture"
  1353. local TOPTEXTURE = DECAL:Clone()
  1354. TOPTEXTURE.Parent = RING
  1355. TOPTEXTURE.Face = "Top"
  1356. TOPTEXTURE.Name = "TopTexture"
  1357. local LIGHT = IT("PointLight",RING)
  1358. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1359. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1360. return RING,WELD,MESH
  1361. end
  1362. -------------------------------------------------------
  1363. -- Title
  1364. -------------------------------------------------------
  1365. local naeeym2 = IT("BillboardGui",char)
  1366. naeeym2.AlwaysOnTop = true
  1367. naeeym2.Size = UDim2.new(5,35,2,15)
  1368. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1369. naeeym2.MaxDistance = 75
  1370. naeeym2.Adornee = hed
  1371. naeeym2.Name = "Name"
  1372. --naeeym2.PlayerToHideFrom = Player
  1373. local tecks2 = IT("TextLabel",naeeym2)
  1374. tecks2.BackgroundTransparency = 1
  1375. tecks2.TextScaled = true
  1376. tecks2.BorderSizePixel = 0
  1377. tecks2.Text = "Felipe"
  1378. tecks2.Font = "Arcade"
  1379. tecks2.TextSize = 30
  1380. tecks2.TextStrokeTransparency = 0
  1381. tecks2.TextColor3 = Color3.fromRGB(0, 0, 0)
  1382. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1383. tecks2.Size = UDim2.new(1,0,0.5,0)
  1384. tecks2.Parent = naeeym2
  1385.  
  1386. -------------------------------------------------------
  1387. --Start Customization--
  1388. -------------------------------------------------------
  1389. local Player_Size = 1
  1390. if Player_Size ~= 1 then
  1391. root.Size = root.Size * Player_Size
  1392. tors.Size = tors.Size * Player_Size
  1393. hed.Size = hed.Size * Player_Size
  1394. ra.Size = ra.Size * Player_Size
  1395. la.Size = la.Size * Player_Size
  1396. rl.Size = rl.Size * Player_Size
  1397. ll.Size = ll.Size * Player_Size
  1398. ----------------------------------------------------------------------------------
  1399. rootj.Parent = root
  1400. neck.Parent = tors
  1401. RW.Parent = tors
  1402. LW.Parent = tors
  1403. RH.Parent = tors
  1404. LH.Parent = tors
  1405. ----------------------------------------------------------------------------------
  1406. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1407. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1408. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1409. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1410. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1411. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1412. ----------------------------------------------------------------------------------
  1413. 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))
  1414. 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))
  1415. 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))
  1416. 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))
  1417. --hat.Parent = Character
  1418. end
  1419. ----------------------------------------------------------------------------------
  1420. local SONG = 4086275707
  1421. local SONG2 = 0
  1422. local Music = Instance.new("Sound",tors)
  1423. Music.Volume = 4
  1424. Music.Looped = true
  1425. Music.Pitch = 1 --Pitcher
  1426. ----------------------------------------------------------------------------------
  1427. local equipped = false
  1428. local idle = 0
  1429. local change = 1
  1430. local val = 0
  1431. local toim = 0
  1432. local idleanim = 0.4
  1433. local sine = 0
  1434. local Sit = 1
  1435. local WasAir = false
  1436. local InAir = false
  1437. local LandTick = 0
  1438. local movelegs = false
  1439. local HatOn = false
  1440. ----------------------------------------------------------------------------------
  1441. hum.WalkSpeed = 16
  1442. hum.JumpPower = 55
  1443. hum.Animator.Parent = nil
  1444. ----------------------------------------------------------------------------------
  1445. BWJester = IT("Model")
  1446. BWJester.Parent = char
  1447. BWJester.Name = "BWJester"
  1448. RHe = IT("Part")
  1449. RHe.Parent = BWJester
  1450. RHe.BrickColor = BrickColor.new("Really black")
  1451. RHe.Locked = true
  1452. RHe.CanCollide = false
  1453. RHe.Transparency = 0
  1454. PMesh = IT("SpecialMesh")
  1455. RHe.formFactor = "Symmetric"
  1456. PMesh.MeshType = "FileMesh"
  1457. PMesh.MeshId = "rbxassetid://4125549274"
  1458. PMesh.TextureId = "rbxassetid://4125544592"
  1459. PMesh.Scale = Vector3.new(1, 1, 1)
  1460. PMesh.Parent = RHe
  1461. local RWeld = IT("Weld")
  1462. RWeld.Parent = RHe
  1463. RWeld.Part0 = RHe
  1464. RWeld.Part1 = ra
  1465. RWeld.C0 = CF(0, -1.3, -0.4) * angles(Rad(180), Rad(0), Rad(-30))
  1466. hed.face:Remove()
  1467. hed.Transparency = 1
  1468. -------------------------------------------------------
  1469. --End Customization--
  1470. -------------------------------------------------------
  1471.  
  1472.  
  1473. -------------------------------------------------------
  1474. --Start Attacks N Stuff--
  1475. -------------------------------------------------------
  1476. function AttackTemplate()
  1477. attack = true
  1478. for i = 0, 2, 0.1 do
  1479. swait()
  1480. 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)
  1481. 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)
  1482. 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)
  1483. 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)
  1484. 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)
  1485. 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)
  1486. end
  1487. attack = false
  1488. end
  1489. function Fun_Times_Ahead()
  1490. attack = true
  1491. movelegs = true
  1492. local Laughing = Cso("2011351501", hed, 5, 0.8)
  1493. swait(2)
  1494. repeat
  1495. swait()
  1496. 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)
  1497. 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)
  1498. 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)
  1499. 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)
  1500. 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)
  1501. 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)
  1502. until Laughing.Playing == false
  1503. attack = false
  1504. movelegs = false
  1505. end
  1506. function Fun_Times_Ahead_2()
  1507. attack = true
  1508. movelegs = true
  1509. local Laughing = Cso("2011351501", hed, 5, 0.8)
  1510. swait(2)
  1511. repeat
  1512. swait()
  1513. 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)
  1514. 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)
  1515. 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)
  1516. 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)
  1517. 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)
  1518. 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)
  1519. until Laughing.Playing == false
  1520. attack = false
  1521. movelegs = false
  1522. end
  1523. function Jester_Dash()
  1524. attack = true
  1525. for i = 0, 20, 0.1 do
  1526. swait()
  1527. root.Velocity = root.CFrame.lookVector * 100
  1528. Effects.Block.Create(BrickC("Really black"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 12, 12, 12, 0.05)
  1529. 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)
  1530. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.1)
  1531. 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)
  1532. 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)
  1533. 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)
  1534. 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)
  1535. MagniDamage(tors, 12, 40, 60, 10, "Normal")
  1536. end
  1537. attack = false
  1538. end
  1539. function Sie_alle_sterben()
  1540. attack = true
  1541. --movelegs = true
  1542. local orb = Instance.new("Part", char)
  1543. orb.Anchored = true
  1544. orb.BrickColor = BrickC("Really black")
  1545. orb.CanCollide = false
  1546. orb.FormFactor = 3
  1547. orb.Name = "Ring"
  1548. orb.Material = "Neon"
  1549. orb.Size = Vector3.new(1, 1, 1)
  1550. orb.Transparency = 0
  1551. orb.TopSurface = 0
  1552. orb.BottomSurface = 0
  1553. local orbm = Instance.new("SpecialMesh", orb)
  1554. orbm.MeshType = "Sphere"
  1555. orbm.Name = "SizeMesh"
  1556. orbm.Scale = Vector3.new(0, 0, 0)
  1557. local scaled = 0.1
  1558. local posid = 0
  1559. local RoaringLaugh = Cso("2011355991", char, 5, 0.8)
  1560. swait(2)
  1561. for i = 0, 30, 0.1 do
  1562. swait()
  1563. scaled = scaled + 0.006
  1564. posid = posid - scaled
  1565. orb.CFrame = la.CFrame * CF(0, -0.1 + posid / 1.05, 0)
  1566. orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
  1567. --Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1568. 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)
  1569. 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)
  1570. 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)
  1571. 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)
  1572. 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)
  1573. 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)
  1574. end
  1575. for i = 0, 10, 0.1 do
  1576. swait()
  1577. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 30) * angles(Rad(-35), Rad(-30), Rad(0)), 0.1)
  1578. 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)
  1579. 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)
  1580. 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)
  1581. 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)
  1582. 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)
  1583. end
  1584. coroutine.resume(coroutine.create(function()
  1585. orb.Anchored = false
  1586. CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1)
  1587. local a = Instance.new("Part", workspace)
  1588. a.Name = "Direction"
  1589. a.Anchored = true
  1590. a.BrickColor = BrickC("Really black")
  1591. a.Material = "Neon"
  1592. a.Transparency = 1
  1593. a.CanCollide = false
  1594. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  1595. local ignore = orb
  1596. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1597. a.BottomSurface = 10
  1598. a.TopSurface = 10
  1599. local distance = (orb.CFrame.p - position).magnitude
  1600. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1601. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1602. orb.CFrame = a.CFrame
  1603. a:Destroy()
  1604. local bv = Instance.new("BodyVelocity")
  1605. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1606. bv.velocity = orb.CFrame.lookVector * 125
  1607. bv.Parent = orb
  1608. local hitted = false
  1609. game:GetService("Debris"):AddItem(orb, 15)
  1610. swait()
  1611. local hit = orb.Touched:connect(function(hit)
  1612. if hitted == false then
  1613. hitted = true
  1614. CameraEnshaking(10, 20)
  1615. CFuncs.Sound.Create("rbxassetid://304490261", char, 5, 0.7)
  1616. for i, v in pairs(FindNearestHead(orb.CFrame.p, 100)) do
  1617. if v:FindFirstChild("Head") then
  1618. Eviscerate(v)
  1619. end
  1620. end
  1621. Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere")
  1622. Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, maincolor, "Sphere")
  1623. orb.Anchored = true
  1624. orb.Transparency = 1
  1625. wait(8)
  1626. orb:Destroy()
  1627. end
  1628. end)
  1629. end))
  1630. for i = 0, 10, 0.1 do
  1631. swait()
  1632. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 30) * angles(Rad(25), Rad(-30), Rad(0)), 0.1)
  1633. 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)
  1634. 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)
  1635. 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)
  1636. 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)
  1637. 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)
  1638. end
  1639. attack = false
  1640. movelegs = false
  1641. end
  1642. function Apocalypse()
  1643. attack = true
  1644. local bodyVelocity = Create("BodyVelocity")({
  1645. velocity = Vector3.new(0, 100, 0) + root.CFrame.lookVector * 90,
  1646. P = 5000,
  1647. maxForce = Vector3.new(50000, 50000, 50000),
  1648. Parent = root
  1649. })
  1650. game:GetService("Debris"):AddItem(bodyVelocity, 0.2)
  1651. for i = 0, 6, 0.1 do
  1652. swait()
  1653. 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)
  1654. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  1655. 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)
  1656. 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)
  1657. 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)
  1658. 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)
  1659. end
  1660. for i = 0, 3, 0.1 do
  1661. swait()
  1662. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1 * Cos(sine / 20)) * angles(Rad(80), Rad(0), Rad(0)), 0.15)
  1663. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  1664. 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)
  1665. 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)
  1666. 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)
  1667. 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)
  1668. end
  1669. CameraEnshaking(3, 10)
  1670. 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)
  1671. 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)
  1672. 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)
  1673. 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)
  1674. Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1675. MagniDamage(tors, 12, 40, 60, 10, "Normal")
  1676. for i = 0, 4, 0.1 do
  1677. swait()
  1678. 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)
  1679. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  1680. 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)
  1681. 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)
  1682. 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)
  1683. 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)
  1684. end
  1685. attack = false
  1686. end
  1687. function HattyOn()
  1688. attack = true
  1689. movelegs = true
  1690. for i = 0, 4, 0.1 do
  1691. swait()
  1692. 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)
  1693. 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)
  1694. 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)
  1695. 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)
  1696. 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)
  1697. 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)
  1698. end
  1699. Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1700. CameraEnshaking(5, 10)
  1701. RWeld.Part1 = hed
  1702. RWeld.C0 = CF(0, -0.8, -0.4) * angles(Rad(0), Rad(0), Rad(0))
  1703. attack = false
  1704. movelegs = false
  1705. HatOn = true
  1706. end
  1707. function HattyOff()
  1708. attack = true
  1709. movelegs = true
  1710. for i = 0, 6, 0.1 do
  1711. swait()
  1712. 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)
  1713. 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)
  1714. 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)
  1715. 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)
  1716. 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)
  1717. 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)
  1718. end
  1719. Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickC("Really black"), "Sphere")
  1720. CameraEnshaking(5, 10)
  1721. RWeld.Part1 = ra
  1722. RWeld.C0 = CF(0, -1.3, -0.4) * angles(Rad(180), Rad(0), Rad(-30))
  1723. attack = false
  1724. movelegs = false
  1725. HatOn = false
  1726. end
  1727. function Tele()
  1728. local POS = mouse.Hit.p + Vector3.new(0, 4, 0)
  1729. local HITFLOOR,HITPOS = rayCast(root.Position, (CF(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, 3.7*Player_Size, char)
  1730. if HITFLOOR then
  1731. attack = true
  1732. local CLERPTO = CF(POS, Vector3.new(root.Position.X, POS.Y, root.Position.Z))
  1733. local RING,WELD,MESH = MagicRing(root,CF(0,0,0))
  1734. WELD:remove()
  1735. RING.Anchored = true
  1736. RING.CFrame = CF(HITPOS)
  1737. local RINGON = true
  1738. --CreateSound(TURNUP,Effects,10,0.8,false)
  1739. coroutine.resume(coroutine.create(function()
  1740. coroutine.resume(coroutine.create(function()
  1741. for i = 1, 15 do
  1742. swait()
  1743. MESH.Scale = MESH.Scale + Vector3.new(55,0,55)
  1744. end
  1745. end))
  1746. repeat
  1747. swait()
  1748. RING.CFrame = RING.CFrame * angles(Rad(0), Rad(2), Rad(0))
  1749. until RINGON == false
  1750. for i = 1, 15 do
  1751. swait()
  1752. MESH.Scale = MESH.Scale - Vector3.new(55,0,55)
  1753. RING.CFrame = RING.CFrame * angles(Rad(0), Rad(2), Rad(0))
  1754. end
  1755. RING:remove()
  1756. end))
  1757. for i = 0, 6, 0.1 do
  1758. swait()
  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(0)), 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(0)), 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. root.Anchored = true
  1767. for i = 0, 6, 0.1 do
  1768. swait()
  1769. 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)
  1770. 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)
  1771. 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)
  1772. 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)
  1773. 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)
  1774. 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)
  1775. end
  1776. for i = 1, 170 do
  1777. swait()
  1778. root.CFrame = clerp(root.CFrame, CLERPTO, 0.05)
  1779. end
  1780. root.Anchored = false
  1781. RINGON = false
  1782. attack = false
  1783. end
  1784. end
  1785. -------------------------------------------------------
  1786. --End Attacks N Stuff--
  1787. -------------------------------------------------------
  1788. mouse.KeyDown:connect(function(key)
  1789. if attack == false then
  1790. if key == "t" and HatOn == false then
  1791. Fun_Times_Ahead()
  1792. elseif key == "t" and HatOn == true then
  1793. Fun_Times_Ahead_2()
  1794. elseif key == "z" then
  1795. Jester_Dash()
  1796. elseif key == "x" then
  1797. Sie_alle_sterben()
  1798. elseif key == "c" then
  1799. Apocalypse()
  1800. elseif key == "v" and HatOn == false then
  1801. HattyOn()
  1802. elseif key == "v" and HatOn == true then
  1803. HattyOff()
  1804. elseif key == "b" and HatOn == true then
  1805. Tele()
  1806. end
  1807. end
  1808. end)
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817. -------------------------------------------------------
  1818. --Start Animations--
  1819. -------------------------------------------------------
  1820. print("By Vebley")
  1821. while true do
  1822. swait()
  1823. sine = sine + change
  1824. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1825. local velderp = root.Velocity.y
  1826. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1827. if equipped == true or equipped == false then
  1828. if attack == false then
  1829. idle = idle + 1
  1830. else
  1831. idle = 0
  1832. end
  1833. local Landed = false
  1834. if(hitfloor)then
  1835. WasAir = false
  1836. else
  1837. WasAir = true
  1838. end
  1839. if(WasAir == false)then
  1840. if(InAir == true)then
  1841. LandTick = time()
  1842. Landed = true
  1843. end
  1844. end
  1845. if(time()-LandTick < .3)then
  1846. Landed = true
  1847. end
  1848. if(hitfloor)then
  1849. InAir = false
  1850. else
  1851. InAir = true
  1852. end
  1853. if(not char:FindFirstChildOfClass'Shirt')then
  1854. NewInstance("Shirt",char,{ShirtTemplate='rbxassetid://122671947'})
  1855. else
  1856. char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://122671947'
  1857. end
  1858. if(not char:FindFirstChildOfClass'Pants')then
  1859. NewInstance("Pants",char,{PantsTemplate='rbxassetid://3240230567'})
  1860. else
  1861. char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://3240230567'
  1862. end
  1863. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  1864. 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")
  1865. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  1866. if hum.Sit == false then
  1867. if(State == 'Jump')then
  1868. hum.WalkSpeed = 34
  1869. hum.JumpPower = 55
  1870. if attack == false then
  1871. 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)
  1872. 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)
  1873. 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)
  1874. 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)
  1875. 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)
  1876. 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)
  1877. end
  1878. elseif(State == 'Fall')then
  1879. if attack == false then
  1880. 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)
  1881. 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)
  1882. 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)
  1883. 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)
  1884. 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)
  1885. 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)
  1886. end
  1887. elseif(State == 'Land')then
  1888. hum.WalkSpeed = 4
  1889. hum.JumpPower = 0
  1890. if attack == false then
  1891. 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)
  1892. 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)
  1893. 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)
  1894. 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)
  1895. 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)
  1896. 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)
  1897. end
  1898. elseif(State == 'Idle')then
  1899. change = 1
  1900. if attack == false then
  1901. if HatOn == false then
  1902. 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)
  1903. 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)
  1904. 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)
  1905. 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)
  1906. 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)
  1907. 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)
  1908. else
  1909. 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)
  1910. 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)
  1911. 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)
  1912. 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)
  1913. 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)
  1914. 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)
  1915. end
  1916. end
  1917. elseif(State == 'Walk')then
  1918. change = 0.76
  1919. hum.WalkSpeed = 16
  1920. hum.JumpPower = 55
  1921. if attack == false then
  1922. if HatOn == false then
  1923. 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)
  1924. 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)
  1925. 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)
  1926. 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)
  1927. 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)
  1928. 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)
  1929. else
  1930. 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)
  1931. 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)
  1932. 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)
  1933. 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)
  1934. 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)
  1935. 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)
  1936. end
  1937. elseif attack == true and movelegs == true then
  1938. 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)
  1939. 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)
  1940. end
  1941. end
  1942. else
  1943. Sit.Value = true
  1944. if attack == false then
  1945. 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)
  1946. 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)
  1947. 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)
  1948. 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)
  1949. 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)
  1950. 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)
  1951. end
  1952. end
  1953. end
  1954. for _, c in pairs(char:GetChildren()) do
  1955. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1956. if c:FindFirstChildOfClass("ParticleEmitter") then
  1957. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1958. end
  1959. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1960. c:remove()
  1961. end
  1962. end
  1963. Music.SoundId = "rbxassetid://"..SONG
  1964. Music.Looped = true
  1965. Music.Pitch = 1
  1966. Music.Volume = 2
  1967. Music.Parent = tors
  1968. Music.Playing = true
  1969. if 0 < #Effects then
  1970. for e = 1, #Effects do
  1971. if Effects[e] ~= nil then
  1972. local Thing = Effects[e]
  1973. if Thing ~= nil then
  1974. local Part = Thing[1]
  1975. local Mode = Thing[2]
  1976. local Delay = Thing[3]
  1977. local IncX = Thing[4]
  1978. local IncY = Thing[5]
  1979. local IncZ = Thing[6]
  1980. if 1 >= Thing[1].Transparency then
  1981. if Thing[2] == "Block1" then
  1982. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1983. local Mesh = Thing[1].Mesh
  1984. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1985. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1986. elseif Thing[2] == "Block2" then
  1987. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1988. local Mesh = Thing[7]
  1989. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1990. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1991. elseif Thing[2] == "Block3" then
  1992. 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)
  1993. local Mesh = Thing[7]
  1994. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1995. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1996. elseif Thing[2] == "Cylinder" then
  1997. local Mesh = Thing[1].Mesh
  1998. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1999. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2000. elseif Thing[2] == "Blood" then
  2001. local Mesh = Thing[7]
  2002. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2003. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2004. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2005. elseif Thing[2] == "Elec" then
  2006. local Mesh = Thing[1].Mesh
  2007. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2008. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2009. elseif Thing[2] == "Disappear" then
  2010. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2011. elseif Thing[2] == "Shatter" then
  2012. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2013. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2014. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2015. Thing[6] = Thing[6] + Thing[5]
  2016. end
  2017. else
  2018. Part.Parent = nil
  2019. table.remove(Effects, e)
  2020. end
  2021. end
  2022. end
  2023. end
  2024. end
  2025. end
  2026. -------------------------------------------------------
  2027. --End Animations And Script--
  2028. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement