Advertisement
yabagaba

Untitled

May 11th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.87 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification", {
  2. Title = "Chaotic Glitcher";
  3. Text = "Successfully Loaded Chaotic Glitcher! (Unfinished ver)";
  4. })
  5.  
  6. wait(0.2)
  7.  
  8. Player = game:GetService("Players").Nwibbles
  9. PlayerGui = Player.PlayerGui
  10. Cam = workspace.CurrentCamera
  11. Backpack = Player.Backpack
  12. Character = Player.Character
  13. Humanoid = Character.Humanoid
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. local sick = Instance.new("Sound",Torso)
  28. local SONG = 561833161
  29. local RANDOMIZERMOOSICK = {492070484,1255569288,1873219898,929330882,290079189,250408242,494139763}
  30. sick:Play()
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48. local RCHOICE = MRANDOM(1,7)
  49.  
  50. --//=================================\\
  51. --|| USEFUL VALUES
  52. --\\=================================//
  53.  
  54. Animation_Speed = 3
  55. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  56. local Speed = 13
  57. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  58. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  59. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  60. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  61. local DAMAGEMULTIPLIER = 1
  62. local ANIM = "Idle"
  63. local ATTACK = false
  64. local EQUIPPED = false
  65. local HOLD = false
  66. local COMBO = 1
  67. local Rooted = false
  68. local SINE = 0
  69. local KEYHOLD = false
  70. local CHANGE = 2 / Animation_Speed
  71. local WALKINGANIM = false
  72. local VALUE1 = false
  73. local VALUE2 = false
  74. local ROBLOXIDLEANIMATION = IT("Animation")
  75. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  76. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  77. --ROBLOXIDLEANIMATION.Parent = Humanoid
  78. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  79. WEAPONGUI.Name = "Weapon GUI"
  80. local Effects = IT("Folder", Character)
  81. Effects.Name = "Effects"
  82. local BALL = IT("Folder", Character)
  83. BALL.Name = "BALL-EYE"
  84. local XEYE = IT("Folder", Character)
  85. XEYE.Name = "X - EYE"
  86. local ANIMATOR = Humanoid.Animator
  87. local ANIMATE = Character.Animate
  88. local UNANCHOR = true
  89. local WHITELIST = {}
  90. local TAUNT = false
  91. local OFFSET = 0
  92. local FULL = false
  93. local MODE = "Lunar"
  94. local PITCH = 1
  95. local VOLUME = 3
  96. local FACE = 176217464
  97. local SIZE = 1
  98.  
  99. --//=================================\\
  100. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  101. --\\=================================//
  102.  
  103. ArtificialHB = Instance.new("BindableEvent", script)
  104. ArtificialHB.Name = "ArtificialHB"
  105.  
  106. script:WaitForChild("ArtificialHB")
  107. Frame_Speed = 1 / 60
  108. frame = Frame_Speed
  109. tf = 0
  110. allowframeloss = false
  111. tossremainder = false
  112. lastframe = tick()
  113. script.ArtificialHB:Fire()
  114.  
  115. game:GetService("RunService").Heartbeat:connect(function(s, p)
  116. tf = tf + s
  117. if tf >= frame then
  118. if allowframeloss then
  119. script.ArtificialHB:Fire()
  120. lastframe = tick()
  121. else
  122. for i = 1, math.floor(tf / frame) do
  123. script.ArtificialHB:Fire()
  124. end
  125. lastframe = tick()
  126. end
  127. if tossremainder then
  128. tf = 0
  129. else
  130. tf = tf - frame * math.floor(tf / frame)
  131. end
  132. end
  133. end)
  134.  
  135. --//=================================\\
  136. --// NOOBYGAME12'S CODE
  137. --\\=================================//
  138.  
  139. plr = game:GetService("Players").Nwibbles
  140. char = plr.Character
  141. hum = char.Humanoid
  142. local cam = game.Workspace.CurrentCamera
  143. Camera = cam
  144. local CamInterrupt = false
  145. local TwoD = false
  146. local TargetInfo = {nil, nil}
  147. cam.CameraType = "Custom"
  148. t = char.Torso
  149. h = char.Head
  150. ra = char["Right Arm"]
  151. la = char["Left Arm"]
  152. rl = char["Right Leg"]
  153. ll = char["Left Leg"]
  154. tors = char.Torso
  155. lleg = char["Left Leg"]
  156. root = char.HumanoidRootPart
  157. hed = char.Head
  158. rleg = char["Right Leg"]
  159. rarm = char["Right Arm"]
  160. larm = char["Left Arm"]
  161. Player = plr
  162. Character=Player.Character
  163. PlayerGui=Player.PlayerGui
  164. Backpack=Player.Backpack
  165. Torso=Character.Torso
  166. Head=Character.Head
  167. Humanoid=Character.Humanoid
  168. m=Instance.new('Model',Character)
  169. LeftArm=Character["Left Arm"]
  170. LeftLeg=Character["Left Leg"]
  171. RightArm=Character["Right Arm"]
  172. RightLeg=Character["Right Leg"]
  173. LS=Torso["Left Shoulder"]
  174. LH=Torso["Left Hip"]
  175. RS=Torso["Right Shoulder"]
  176. RH=Torso["Right Hip"]
  177. Face = Head.face
  178. Neck=Torso.Neck
  179. it=Instance.new
  180. attacktype=1
  181. vt=Vector3.new
  182. cf=CFrame.new
  183. euler=CFrame.fromEulerAnglesXYZ
  184. angles=CFrame.Angles
  185. cloaked=false
  186. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  187. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  188. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  189. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  190. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  191. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  192. RootPart=Character.HumanoidRootPart
  193. RootJoint=RootPart.RootJoint
  194. RootCF=euler(-1.57,0,3.14)
  195. radian = math.rad
  196. random = math.random
  197. Vec3 = Vector3.new
  198. Inst = Instance.new
  199. cFrame = CFrame.new
  200. Euler = CFrame.fromEulerAnglesXYZ
  201. vt = Vector3.new
  202. bc = BrickColor.new
  203. br = BrickColor.random
  204. it = Instance.new
  205. cf = CFrame.new
  206. local Player_Size = 0
  207. cam = game.Workspace.CurrentCamera
  208. CF = CFrame.new
  209. angles = CFrame.Angles
  210. attack = false
  211. Euler = CFrame.fromEulerAnglesXYZ
  212. Rad = math.rad
  213. IT = Instance.new
  214. BrickC = BrickColor.new
  215. Cos = math.cos
  216. Acos = math.acos
  217. Sin = math.sin
  218. Asin = math.asin
  219. Abs = math.abs
  220. Mrandom = math.random
  221. Floor = math.floor
  222. IT = Instance.new
  223. CF = CFrame.new
  224. VT = Vector3.new
  225. RAD = math.rad
  226. C3 = Color3.new
  227. UD2 = UDim2.new
  228. BRICKC = BrickColor.new
  229. ANGLES = CFrame.Angles
  230. EULER = CFrame.fromEulerAnglesXYZ
  231. COS = math.cos
  232. ACOS = math.acos
  233. SIN = math.sin
  234. ASIN = math.asin
  235. ABS = math.abs
  236. MRANDOM = math.random
  237. FLOOR = math.floor
  238.  
  239.  
  240. local Booleans = {
  241. CamFollow = true,
  242. GyroUse = true
  243. }
  244.  
  245. function lerp(object, newCFrame, alpha)
  246. return object:lerp(newCFrame, alpha)
  247. end
  248.  
  249. local Directer = Inst("BodyGyro", root)
  250. Directer.MaxTorque = Vec3(0, 0, 0)
  251. Directer.P = 600000
  252. local CPart = Inst("Part")
  253. CPart.Anchored = true
  254. CPart.CanCollide = false
  255. CPart.Locked = true
  256. CPart.Transparency = 1
  257.  
  258. local rainbowmode = false
  259. local chaosmode = false
  260.  
  261. local mutedtog = false
  262.  
  263. function CameraEnshaking(Length,Intensity)
  264. coroutine.resume(coroutine.create(function()
  265. local intensity = 1*Intensity
  266. local rotM = 0.01*Intensity
  267. for i = 0, Length, 0.1 do
  268. Swait()
  269. intensity = intensity - 0.05*Intensity/Length
  270. rotM = rotM - 0.0005*Intensity/Length
  271. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  272. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  273. end
  274. Humanoid.CameraOffset = Vec3(0, 0, 0)
  275. end))
  276. end
  277. CamShake=function(Part,Distan,Power,Times)
  278. local de=Part.Position
  279. for i,v in pairs(workspace:children()) do
  280. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  281. for _,c in pairs(v:children()) do
  282. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  283. local Noob=v.Humanoid
  284. if Noob~=nil then
  285. coroutine.resume(coroutine.create(function()
  286. FV = Instance.new("BoolValue", Noob)
  287. FV.Name = "CameraShake"
  288. for ShakeNum=1,Times do
  289. Swait()
  290. local ef=Power
  291. if ef>=1 then
  292. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  293. else
  294. ef=Power*10
  295. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  296. end
  297. end
  298. Humanoid.CameraOffset = Vector3.new(0,0,0)
  299. FV:Destroy()
  300. end))
  301. end
  302. end
  303. end
  304. end
  305. end
  306. end
  307.  
  308. local toggleTag = true
  309. local bilguit = Instance.new("BillboardGui", hed)
  310. bilguit.Adornee = nil
  311. bilguit.Name = "ModeName"
  312. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  313. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  314.  
  315.  
  316. function chatfunc(text,color,typet,font,timeex)
  317. local chat = coroutine.wrap(function()
  318. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  319. Character:FindFirstChild("TalkingBillBoard"):destroy()
  320. end
  321. local naeeym2 = Instance.new("BillboardGui",Character)
  322. naeeym2.Size = UDim2.new(0,100,0,40)
  323. naeeym2.StudsOffset = Vector3.new(0,3,0)
  324. naeeym2.Adornee = Character.Head
  325. naeeym2.Name = "TalkingBillBoard"
  326. local tecks2 = Instance.new("TextLabel",naeeym2)
  327. tecks2.BackgroundTransparency = 1
  328. tecks2.BorderSizePixel = 0
  329. tecks2.Text = ""
  330. tecks2.Font = font
  331. tecks2.TextSize = 30
  332. tecks2.TextStrokeTransparency = 0
  333. tecks2.TextColor3 = color
  334. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  335. tecks2.Size = UDim2.new(1,0,0.5,0)
  336. local tecks3 = Instance.new("TextLabel",naeeym2)
  337. tecks3.BackgroundTransparency = 1
  338. tecks3.BorderSizePixel = 0
  339. tecks3.Text = ""
  340. tecks3.Font = font
  341. tecks3.TextSize = 30
  342. tecks3.TextStrokeTransparency = 0
  343. if typet == "Inverted" then
  344. tecks3.TextColor3 = Color3.new(0,0,0)
  345. tecks3.TextStrokeColor3 = color
  346. elseif typet == "Normal" then
  347. tecks3.TextColor3 = color
  348. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  349. end
  350. tecks3.Size = UDim2.new(1,0,0.5,0)
  351. coroutine.resume(coroutine.create(function()
  352. while true do
  353. Swait(1)
  354. if chaosmode == true then
  355. tecks2.TextColor3 = BrickColor.random().Color
  356. tecks3.TextStrokeColor3 = BrickColor.random().Color
  357. end
  358. end
  359. end))
  360. text.TextTransparency = text.TextTransparency + 1
  361. text.TextStrokeTransparency = text.TextStrokeTransparency + 1
  362. for i = 0, 74*timeex do
  363. Swait()
  364. text.TextTransparency = 1
  365. text.TextStrokeTransparency = 1
  366. tecks2.Text = text
  367. tecks3.Text = text
  368. end
  369. local randomrot = math.random(1,2)
  370. if randomrot == 1 then
  371. for i = 1, 50 do
  372. Swait()
  373. tecks2.Text = text
  374. tecks3.Text = text
  375. text.TextTransparency = text.TextTransparency - .02
  376. text.TextStrokeTransparency = text.TextStrokeTransparency - .02
  377. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks2.TextTransparency = tecks2.TextTransparency + .04
  379. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  380. tecks3.TextTransparency = tecks2.TextTransparency + .04
  381. end
  382. elseif randomrot == 2 then
  383. for i = 1, 50 do
  384. Swait()
  385. tecks2.Text = text
  386. tecks3.Text = text
  387. text.TextTransparency = text.TextTransparency - .02
  388. text.TextStrokeTransparency = text.TextStrokeTransparency - .02
  389. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  390. tecks2.TextTransparency = tecks2.TextTransparency + .04
  391. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  392. tecks3.TextTransparency = tecks2.TextTransparency + .04
  393. end
  394. end
  395. text.TextTransparency = 0
  396. text.TextStrokeTransparency = 0
  397. if toggleTag == false then
  398. text.TextTransparency = 1
  399. text.TextStrokeTransparency = 1
  400. end
  401. naeeym2:Destroy()
  402. end)
  403. chat()
  404. end
  405.  
  406.  
  407.  
  408. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  409. local gui = it(GuiType)
  410. gui.Parent = parent
  411. gui.Text = text
  412. gui.BackgroundTransparency = backtrans
  413. gui.BackgroundColor3 = backcol
  414. gui.SizeConstraint = "RelativeXY"
  415. gui.TextXAlignment = "Center"
  416. gui.TextYAlignment = "Center"
  417. gui.Position = pos
  418. gui.Size = size
  419. gui.Font = "SourceSans"
  420. gui.FontSize = "Size14"
  421. gui.TextWrapped = false
  422. gui.TextStrokeTransparency = 0
  423. gui.TextColor = BrickColor.new("White")
  424. return gui
  425. end
  426. local TEXTCOLOR = C3(0, 0, 1)
  427.  
  428. m = game.Players.Nwibbles
  429. char = m.Character
  430. local txt = Instance.new("BillboardGui", char)
  431. txt.Adornee = char.Head
  432. txt.Name = "_status"
  433. txt.Size = UDim2.new(2, 0, 1.2, 0)
  434. txt.StudsOffset = Vector3.new(-18.75, 8, 0)
  435. local text = Instance.new("TextLabel", txt)
  436. text.Size = UDim2.new(20, 0, 7, 0)
  437. text.FontSize = "Size24"
  438. text.TextScaled = true
  439. text.TextTransparency = 0
  440. text.BackgroundTransparency = 1
  441. text.TextTransparency = 0
  442. text.TextStrokeTransparency = 0
  443. text.Font = "Bodoni"
  444. v = Instance.new("Part")
  445. v.Name = "ColorBrick"
  446. v.Parent = m.Character
  447. v.FormFactor = "Symmetric"
  448. v.Anchored = true
  449. v.CanCollide = false
  450. v.BottomSurface = "Smooth"
  451. v.TopSurface = "Smooth"
  452. v.Size = Vector3.new(10, 5, 3)
  453. v.Transparency = 1
  454. v.CFrame = char.Torso.CFrame
  455. v.BrickColor = BrickColor.new("Really black")
  456. v.Transparency = 1
  457. v.Shape = "Block"
  458. text.Text = ".."
  459.  
  460. function RecolorTextAndRename(name,col1,col2,font)
  461. text.TextStrokeColor3 = col2
  462. text.TextColor3 = col1
  463. text.Font = font
  464. text.Text = name
  465. techc.ImageColor3 = col2
  466. circl.ImageColor3 = col2
  467. circl2.ImageColor3 = col1
  468. imgl2.ImageColor3 = col1
  469. imgl2b.ImageColor3 = col2
  470. ned.Text = name
  471. ned.TextColor3 = col1
  472. ned.TextStrokeColor3 = col2
  473. end
  474. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  475. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  476. end
  477.  
  478. function PositiveAngle(NUMBER)
  479. if NUMBER >= 0 then
  480. NUMBER = 0
  481. end
  482. return NUMBER
  483. end
  484.  
  485. function NegativeAngle(NUMBER)
  486. if NUMBER <= 0 then
  487. NUMBER = 0
  488. end
  489. return NUMBER
  490. end
  491.  
  492. function Swait(NUMBER)
  493. if NUMBER == 0 or NUMBER == nil then
  494. ArtificialHB.Event:wait()
  495. else
  496. for i = 1, NUMBER do
  497. ArtificialHB.Event:wait()
  498. end
  499. end
  500. end
  501.  
  502. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  503. local NEWMESH = IT(MESH)
  504. if MESH == "SpecialMesh" then
  505. NEWMESH.MeshType = MESHTYPE
  506. if MESHID ~= "nil" and MESHID ~= "" then
  507. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  508. end
  509. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  510. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  511. end
  512. end
  513. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  514. NEWMESH.Scale = SCALE
  515. NEWMESH.Parent = PARENT
  516. return NEWMESH
  517. end
  518.  
  519. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  520. local NEWPART = IT("Part")
  521. NEWPART.formFactor = FORMFACTOR
  522. NEWPART.Reflectance = REFLECTANCE
  523. NEWPART.Transparency = TRANSPARENCY
  524. NEWPART.CanCollide = false
  525. NEWPART.Locked = true
  526. NEWPART.Anchored = true
  527. if ANCHOR == false then
  528. NEWPART.Anchored = false
  529. end
  530. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  531. NEWPART.Name = NAME
  532. NEWPART.Size = SIZE
  533. NEWPART.Position = Torso.Position
  534. NEWPART.Material = MATERIAL
  535. NEWPART:BreakJoints()
  536. NEWPART.Parent = PARENT
  537. return NEWPART
  538. end
  539.  
  540. local function weldBetween(a, b)
  541. local weldd = Instance.new("ManualWeld")
  542. weldd.Part0 = a
  543. weldd.Part1 = b
  544. weldd.C0 = CFrame.new()
  545. weldd.C1 = b.CFrame:inverse() * a.CFrame
  546. weldd.Parent = a
  547. return weldd
  548. end
  549.  
  550.  
  551. function QuaternionFromCFrame(cf)
  552. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  553. local trace = m00 + m11 + m22
  554. if trace > 0 then
  555. local s = math.sqrt(1 + trace)
  556. local recip = 0.5 / s
  557. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  558. else
  559. local i = 0
  560. if m11 > m00 then
  561. i = 1
  562. end
  563. if m22 > (i == 0 and m00 or m11) then
  564. i = 2
  565. end
  566. if i == 0 then
  567. local s = math.sqrt(m00 - m11 - m22 + 1)
  568. local recip = 0.5 / s
  569. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  570. elseif i == 1 then
  571. local s = math.sqrt(m11 - m22 - m00 + 1)
  572. local recip = 0.5 / s
  573. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  574. elseif i == 2 then
  575. local s = math.sqrt(m22 - m00 - m11 + 1)
  576. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  577. end
  578. end
  579. end
  580.  
  581. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  582. local xs, ys, zs = x + x, y + y, z + z
  583. local wx, wy, wz = w * xs, w * ys, w * zs
  584. local xx = x * xs
  585. local xy = x * ys
  586. local xz = x * zs
  587. local yy = y * ys
  588. local yz = y * zs
  589. local zz = z * zs
  590. 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))
  591. end
  592.  
  593. function QuaternionSlerp(a, b, t)
  594. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  595. local startInterp, finishInterp;
  596. if cosTheta >= 0.0001 then
  597. if (1 - cosTheta) > 0.0001 then
  598. local theta = ACOS(cosTheta)
  599. local invSinTheta = 1 / SIN(theta)
  600. startInterp = SIN((1 - t) * theta) * invSinTheta
  601. finishInterp = SIN(t * theta) * invSinTheta
  602. else
  603. startInterp = 1 - t
  604. finishInterp = t
  605. end
  606. else
  607. if (1 + cosTheta) > 0.0001 then
  608. local theta = ACOS(-cosTheta)
  609. local invSinTheta = 1 / SIN(theta)
  610. startInterp = SIN((t - 1) * theta) * invSinTheta
  611. finishInterp = SIN(t * theta) * invSinTheta
  612. else
  613. startInterp = t - 1
  614. finishInterp = t
  615. end
  616. end
  617. 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
  618. end
  619.  
  620. function Clerp(a, b, t)
  621. local qa = {QuaternionFromCFrame(a)}
  622. local qb = {QuaternionFromCFrame(b)}
  623. local ax, ay, az = a.x, a.y, a.z
  624. local bx, by, bz = b.x, b.y, b.z
  625. local _t = 1 - t
  626. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  627. end
  628.  
  629. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  630. local frame = IT("Frame")
  631. frame.BackgroundTransparency = TRANSPARENCY
  632. frame.BorderSizePixel = BORDERSIZEPIXEL
  633. frame.Position = POSITION
  634. frame.Size = SIZE
  635. frame.BackgroundColor3 = COLOR
  636. frame.BorderColor3 = BORDERCOLOR
  637. frame.Name = NAME
  638. frame.Parent = PARENT
  639. return frame
  640. end
  641.  
  642. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  643. local label = IT("TextLabel")
  644. label.BackgroundTransparency = 1
  645. label.Size = UD2(1, 0, 1, 0)
  646. label.Position = UD2(0, 0, 0, 0)
  647. label.TextColor3 = TEXTCOLOR
  648. label.TextStrokeTransparency = STROKETRANSPARENCY
  649. label.TextTransparency = TRANSPARENCY
  650. label.FontSize = TEXTFONTSIZE
  651. label.Font = TEXTFONT
  652. label.BorderSizePixel = BORDERSIZEPIXEL
  653. label.TextScaled = false
  654. label.Text = TEXT
  655. label.Name = NAME
  656. label.Parent = PARENT
  657. return label
  658. end
  659.  
  660. function NoOutlines(PART)
  661. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  662. end
  663.  
  664. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  665. local NEWWELD = IT(TYPE)
  666. NEWWELD.Part0 = PART0
  667. NEWWELD.Part1 = PART1
  668. NEWWELD.C0 = C0
  669. NEWWELD.C1 = C1
  670. NEWWELD.Parent = PARENT
  671. return NEWWELD
  672. end
  673.  
  674. local S = IT("Sound")
  675. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  676. local NEWSOUND = nil
  677. coroutine.resume(coroutine.create(function()
  678. NEWSOUND = S:Clone()
  679. NEWSOUND.Parent = PARENT
  680. NEWSOUND.Volume = VOLUME
  681. NEWSOUND.Pitch = PITCH
  682. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  683. NEWSOUND:play()
  684. if DOESLOOP == true then
  685. NEWSOUND.Looped = true
  686. else
  687. repeat wait(1) until NEWSOUND.Playing == false
  688. NEWSOUND:remove()
  689. end
  690. end))
  691. return NEWSOUND
  692. end
  693.  
  694. function CFrameFromTopBack(at, top, back)
  695. local right = top:Cross(back)
  696. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  697. end
  698.  
  699. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  700. function WACKYEFFECT(Table)
  701. local TYPE = (Table.EffectType or "Sphere")
  702. local SIZE = (Table.Size or VT(1,1,1))
  703. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  704. local TRANSPARENCY = (Table.Transparency or 0)
  705. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  706. local CFRAME = (Table.CFrame or Torso.CFrame)
  707. local MOVEDIRECTION = (Table.MoveToPos or nil)
  708. local ROTATION1 = (Table.RotationX or 0)
  709. local ROTATION2 = (Table.RotationY or 0)
  710. local ROTATION3 = (Table.RotationZ or 0)
  711. local MATERIAL = (Table.Material or "Neon")
  712. local COLOR = (Table.Color or C3(1,1,1))
  713. local TIME = (Table.Time or 45)
  714. local SOUNDID = (Table.SoundID or nil)
  715. local SOUNDPITCH = (Table.SoundPitch or nil)
  716. local SOUNDVOLUME = (Table.SoundVolume or nil)
  717. coroutine.resume(coroutine.create(function()
  718. local PLAYSSOUND = false
  719. local SOUND = nil
  720. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  721. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  722. PLAYSSOUND = true
  723. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  724. end
  725. EFFECT.Color = COLOR
  726. local MSH = nil
  727. if TYPE == "Sphere" then
  728. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  729. elseif TYPE == "Block" or TYPE == "Box" then
  730. MSH = IT("BlockMesh",EFFECT)
  731. MSH.Scale = SIZE
  732. elseif TYPE == "Wave" then
  733. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  734. elseif TYPE == "Ring" then
  735. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  736. elseif TYPE == "Slash" then
  737. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  738. elseif TYPE == "Round Slash" then
  739. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  740. elseif TYPE == "Swirl" then
  741. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  742. elseif TYPE == "Skull" then
  743. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  744. elseif TYPE == "Crystal" then
  745. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  746. end
  747. if MSH ~= nil then
  748. local MOVESPEED = nil
  749. if MOVEDIRECTION ~= nil then
  750. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  751. end
  752. local GROWTH = SIZE - ENDSIZE
  753. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  754. if TYPE == "Block" then
  755. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  756. else
  757. EFFECT.CFrame = CFRAME
  758. end
  759. for LOOP = 1, TIME+1 do
  760. Swait()
  761. MSH.Scale = MSH.Scale - GROWTH/TIME
  762. if TYPE == "Wave" then
  763. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  764. end
  765. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  766. if TYPE == "Block" then
  767. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  768. else
  769. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  770. end
  771. if MOVEDIRECTION ~= nil then
  772. local ORI = EFFECT.Orientation
  773. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  774. EFFECT.Orientation = ORI
  775. end
  776. end
  777. if PLAYSSOUND == false then
  778. EFFECT:remove()
  779. else
  780. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  781. EFFECT:remove()
  782. end
  783. else
  784. if PLAYSSOUND == false then
  785. EFFECT:remove()
  786. else
  787. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  788. EFFECT:remove()
  789. end
  790. end
  791. end))
  792. end
  793.  
  794. function MakeForm(PART,TYPE)
  795. if TYPE == "Cyl" then
  796. local MSH = IT("CylinderMesh",PART)
  797. elseif TYPE == "Ball" then
  798. local MSH = IT("SpecialMesh",PART)
  799. MSH.MeshType = "Sphere"
  800. elseif TYPE == "Wedge" then
  801. local MSH = IT("SpecialMesh",PART)
  802. MSH.MeshType = "Wedge"
  803. end
  804. end
  805.  
  806. Debris = game:GetService("Debris")
  807.  
  808. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  809. local DIRECTION = CF(StartPos,EndPos).lookVector
  810. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  811. end
  812.  
  813. local EyeSizes={
  814. NumberSequenceKeypoint.new(0,1,0),
  815. NumberSequenceKeypoint.new(1,0,0)
  816. }
  817. local EyeTrans={
  818. NumberSequenceKeypoint.new(0,0.8,0),
  819. NumberSequenceKeypoint.new(1,1,0)
  820. }
  821. local PE=Instance.new("ParticleEmitter",nil)
  822. PE.LightEmission=.8
  823. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  824. PE.Size=NumberSequence.new(EyeSizes)
  825. PE.Transparency=NumberSequence.new(EyeTrans)
  826. PE.Lifetime=NumberRange.new(0.35,1.5)
  827. PE.Rotation=NumberRange.new(0,360)
  828. PE.Rate=999
  829. PE.VelocitySpread = 10000
  830. PE.Acceleration = Vector3.new(0,0,0)
  831. PE.Drag = 5
  832. PE.Speed = NumberRange.new(0,0,0)
  833. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  834. PE.ZOffset = -0
  835. PE.Name = "PE"
  836. PE.Enabled = false
  837.  
  838. function particles(art)
  839. local PARTICLES = PE:Clone()
  840. PARTICLES.Parent = art
  841. end
  842.  
  843. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  844. if FLOOR ~= nil then
  845. coroutine.resume(coroutine.create(function()
  846. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  847. PART.CFrame = CF(POSITION)
  848. for i = 1, 45 do
  849. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  850. RingPiece.Material = FLOOR.Material
  851. RingPiece.Color = FLOOR.Color
  852. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  853. Debris:AddItem(RingPiece,SWAIT)
  854. end
  855. PART:remove()
  856. end))
  857. end
  858. end
  859.  
  860. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  861. if FLOOR ~= nil then
  862. for i = 1, AMOUNT do
  863. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  864. DEBREE.Material = FLOOR.Material
  865. DEBREE.Color = FLOOR.Color
  866. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  867. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  868. coroutine.resume(coroutine.create(function()
  869. Swait(15)
  870. DEBREE.Parent = workspace
  871. DEBREE.CanCollide = true
  872. Debris:AddItem(DEBREE,SWAIT)
  873. end))
  874. end
  875. end
  876. end
  877.  
  878. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  879. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  880. local mesh = IT("SpecialMesh",wave)
  881. mesh.MeshType = "Sphere"
  882. mesh.Scale = SIZE
  883. mesh.Offset = VT(0,0,0)
  884. wave.CFrame = CFRAME
  885. coroutine.resume(coroutine.create(function(PART)
  886. for i = 1, WAIT do
  887. Swait()
  888. mesh.Scale = mesh.Scale + GROW
  889. wave.Transparency = wave.Transparency + (1/WAIT)
  890. if wave.Transparency > 0.99 then
  891. wave:remove()
  892. end
  893. end
  894. end))
  895. end
  896. function chatfunc(text)
  897. local chat = coroutine.wrap(function()
  898. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  899. Character:FindFirstChild("TalkingBillBoard"):destroy()
  900. end
  901. local Bill = Instance.new("BillboardGui",Character)
  902. Bill.Size = UDim2.new(0,100,0,40)
  903. Bill.StudsOffset = Vector3.new(0,3,0)
  904. Bill.Adornee = Character.Head
  905. Bill.Name = "TalkingBillBoard"
  906. local Hehe = Instance.new("TextLabel",Bill)
  907. Hehe.BackgroundTransparency = 1
  908. Hehe.BorderSizePixel = 0
  909. Hehe.Text = ""
  910. Hehe.Font = "Fantasy"
  911. Hehe.TextSize = 40
  912. Hehe.TextStrokeTransparency = 0
  913. Hehe.Size = UDim2.new(1,0,0.5,0)
  914. coroutine.resume(coroutine.create(function()
  915. while Hehe ~= nil do
  916. wait()
  917. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  918. Hehe.Rotation = math.random(-5,5)
  919. Hehe.TextColor3 = Color3.new(27/255,42/255,53/255)
  920. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  921. end
  922. end))
  923. for i = 1,string.len(text),1 do
  924. wait()
  925. Hehe.Text = string.sub(text,1,i)
  926. end
  927. wait(1)--Re[math.random(1, 93)]
  928. for i = 0, 1, .025 do
  929. wait()
  930. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  931. Hehe.TextStrokeTransparency = i
  932. Hehe.TextTransparency = i
  933. end
  934. Bill:Destroy()
  935. end)
  936. chat()
  937. end
  938.  
  939. function onChatted(msg)
  940. chatfunc(msg)
  941. end
  942.  
  943. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  944. PRT.Color = C3(0,0,0)
  945. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  946. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  947. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Scarf", VT(1,1,1),false)
  948. PRT.Color = C3(0/255,0/255,255/255)
  949. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.05) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  950. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  951. for i = 1, 16 do
  952. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  953. FACE.Color = C3(0,0,0)
  954. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  955. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  956. end
  957. local EYE = CreatePart(3, BALL, "Neon", 0, 0, "Navy blue", "Eyeball", VT(0.1,0.25,0.1),false)
  958. MakeForm(EYE,"Ball")
  959. EYE.Color = C3(0/255,0/255,255/255)
  960. CreateWeldOrSnapOrMotor("Weld", BALL, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  961. local EYE2 = CreatePart(3, BALL, "Neon", 0, 0, "Navy blue", "Eyeball", VT(0.1,0.25,0.1),false)
  962. MakeForm(EYE2,"Ball")
  963. EYE2.Color = C3(0/255,0/255,255/255)
  964.  
  965. CreateWeldOrSnapOrMotor("Weld", BALL, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  966.  
  967. local LASTPART = Head
  968. for i = 1, 20 do
  969. local MATH = (1-(i/25))
  970. if LASTPART == Head then
  971. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  972. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  973. LASTPART = Horn
  974. Horn.Color = C3((i*3-3)/0,0,0)
  975. else
  976. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  977. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  978. LASTPART = Horn
  979. Horn.Color = C3((i*3-3)/0,0,0)
  980. end
  981. end
  982. local LASTPART = Head
  983. for i = 1, 20 do
  984. local MATH = (1-(i/25))
  985. if LASTPART == Head then
  986. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  987. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  988. LASTPART = Horn
  989. Horn.Color = C3((i*3-3)/0,0,0)
  990. else
  991. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  992. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  993. LASTPART = Horn
  994. Horn.Color = C3((i*3-3)/0,0,0)
  995. end
  996. end
  997.  
  998. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Navy blue", "Hair", VT(1,1,1),false)
  999. local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1000. Hair.Color = C3(0/255,0/255,255/255)
  1001. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
  1002. local Hair2 = CreatePart(3, Character, "Fabric", 0, 0, "Navy blue", "Hair", VT(1,1,1),false)
  1003. local Hair2Weld2 = CreateWeldOrSnapOrMotor("Weld", Hair2, Head, Hair2, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1004. Hair2.Color = C3(0/255,0/255,255/255)
  1005. CreateMesh("SpecialMesh", Hair2, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
  1006.  
  1007. local BODY = {}
  1008.  
  1009. for _, c in pairs(Character:GetDescendants()) do
  1010. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1011. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1012. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1013. end
  1014. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1015. elseif c:IsA("JointInstance") then
  1016. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1017. end
  1018. end
  1019.  
  1020. local Eye = CreatePart(3, XEYE, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  1021. MakeForm(Eye,"Ball")
  1022. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1023. local Eye = CreatePart(3, XEYE, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  1024. MakeForm(Eye,"Ball")
  1025. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1026. local Eye2 = CreatePart(3, XEYE, "Neon", 0, 0, "Really red", "Eyeball", VT(0.1,0.25,0.1),false)
  1027. MakeForm(Eye2,"Ball")
  1028. CreateWeldOrSnapOrMotor("Weld", XEYE, Head, Eye2, CF(-0.15,0.15,-0.55), CF(0, 0, 0))
  1029.  
  1030.  
  1031. XEYE.Parent = nil
  1032. BALL.Parent = Character
  1033.  
  1034. for e = 1, #BODY do
  1035. if BODY[e] ~= nil then
  1036. local STUFF = BODY[e]
  1037. local PART = STUFF[1]
  1038. local PARENT = STUFF[2]
  1039. local MATERIAL = STUFF[3]
  1040. local COLOR = STUFF[4]
  1041. local TRANSPARENCY = STUFF[5]
  1042. if PART.ClassName == "Part" and PART ~= RootPart then
  1043. PART.Material = MATERIAL
  1044. PART.Color = COLOR
  1045. PART.Transparency = TRANSPARENCY
  1046. end
  1047. PART.AncestryChanged:Connect(function()
  1048. PART.Parent = PARENT
  1049. end)
  1050. end
  1051. end
  1052.  
  1053. local SKILLTEXTCOLOR = C3(0,0,0)
  1054. local SKILLFONT = "Antique"
  1055. local SKILLTEXTSIZE = 7
  1056.  
  1057. function Blink()
  1058. coroutine.resume(coroutine.create(function()
  1059. if EYE ~= nil then
  1060. for i = 1, 5 do
  1061. Swait()
  1062. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  1063. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1064. end
  1065. for i = 1, 7 do
  1066. Swait()
  1067. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  1068. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1069. end
  1070. EYE.Mesh.Scale = VT(1,1,1)
  1071. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1072. end
  1073. end))
  1074. end
  1075.  
  1076. function Blink2()
  1077. coroutine.resume(coroutine.create(function()
  1078. if Eye ~= nil then
  1079. for i = 1, 5 do
  1080. Swait()
  1081. Eye.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  1082. Eye2.Mesh.Scale = EYE.Mesh.Scale
  1083. end
  1084. for i = 1, 7 do
  1085. Swait()
  1086. Eye.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  1087. Eye2.Mesh.Scale = EYE.Mesh.Scale
  1088. end
  1089. Eye.Mesh.Scale = VT(1,1,1)
  1090. Eye2.Mesh.Scale = EYE.Mesh.Scale
  1091. end
  1092. end))
  1093. end
  1094.  
  1095. function refit()
  1096. Character.Parent = workspace
  1097. for e = 1, #BODY do
  1098. if BODY[e] ~= nil then
  1099. local STUFF = BODY[e]
  1100. local PART = STUFF[1]
  1101. local PARENT = STUFF[2]
  1102. local MATERIAL = STUFF[3]
  1103. local COLOR = STUFF[4]
  1104. local TRANSPARENCY = STUFF[5]
  1105. if PART.ClassName == "Part" and PART ~= RootPart then
  1106. PART.Material = MATERIAL
  1107. PART.Color = COLOR
  1108. PART.Transparency = TRANSPARENCY
  1109. end
  1110. if PART.Parent ~= PARENT then
  1111. Humanoid:remove()
  1112. PART.Parent = PARENT
  1113. Humanoid = IT("Humanoid",Character)
  1114. end
  1115. end
  1116. end
  1117. end
  1118.  
  1119. Humanoid.Died:connect(function()
  1120. refit()
  1121. end)
  1122. -----------------------
  1123. --[[ Name : Dark god ]]--
  1124. -------------------------------------------------------
  1125. --A script By makhail07
  1126. --fixed by goodguyaiden--
  1127. --Discord Creterisk#2958
  1128.  
  1129. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  1130. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  1131. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  1132. --YOU FUCKING SKIDS,
  1133. --For Those who log/decompile this, If you sell or trade this,
  1134. --and I find out who you are, i will take massive action.
  1135.  
  1136. -------------------------------------------------------
  1137. --TODO: add comments or something idk
  1138. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1139. local Player = owner
  1140. local Mouse,mouse,UserInputService,ContextActionService
  1141. do
  1142. script.Parent = Player.Character
  1143. local CAS = {Actions={}}
  1144. local Event = Instance.new("RemoteEvent")
  1145. Event.Name = "UserInput_Event"
  1146. Event.Parent = Player.Character
  1147. local fakeEvent = function()
  1148. local t = {_fakeEvent=true}
  1149. t.Connect = function(self,f)self.Function=f end
  1150. t.connect = t.Connect
  1151. return t
  1152. end
  1153. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1154. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1155. function CAS:BindAction(name,fun,touch,...)
  1156. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  1157. end
  1158. function CAS:UnbindAction(name)
  1159. CAS.Actions[name] = nil
  1160. end
  1161. local function te(self,ev,...)
  1162. local t = m[ev]
  1163. if t and t._fakeEvent and t.Function then
  1164. t.Function(...)
  1165. end
  1166. end
  1167. m.TrigEvent = te
  1168. UIS.TrigEvent = te
  1169. Event.OnServerEvent:Connect(function(plr,io)
  1170. if plr~=Player then return end
  1171. if io.isMouse then
  1172. m.Target = io.Target
  1173. m.Hit = io.Hit
  1174. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  1175. if io.UserInputState == Enum.UserInputState.Begin then
  1176. m:TrigEvent("Button1Down")
  1177. else
  1178. m:TrigEvent("Button1Up")
  1179. end
  1180. else
  1181. for n,t in pairs(CAS.Actions) do
  1182. for _,k in pairs(t.Keys) do
  1183. if k==io.KeyCode then
  1184. t.Function(t.Name,io.UserInputState,io)
  1185. end
  1186. end
  1187. end
  1188. if io.UserInputState == Enum.UserInputState.Begin then
  1189. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  1190. UIS:TrigEvent("InputBegan",io,false)
  1191. else
  1192. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  1193. UIS:TrigEvent("InputEnded",io,false)
  1194. end
  1195. end
  1196. end)
  1197. NLS([==[
  1198. local Player = game:GetService("Players").LocalPlayer
  1199.  
  1200. local Char = Player.Character
  1201. local Event = Char:WaitForChild("UserInput_Event")
  1202.  
  1203. local UIS = game:GetService("UserInputService")
  1204.  
  1205. local input = function(io,a)
  1206. if a then return end
  1207. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  1208. Event:FireServer(io)
  1209. end
  1210. UIS.InputBegan:Connect(input)
  1211. UIS.InputEnded:Connect(input)
  1212. local Changed = false
  1213. local Mouse = Player:GetMouse()
  1214. local h,t = Mouse.Hit,Mouse.Target
  1215. while wait(1/30) do
  1216. if h~=Mouse.Hit or t~=Mouse.Target then
  1217. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  1218. h,t=Mouse.Hit,Mouse.Target
  1219. end
  1220. end
  1221. ]==],Player.Character)
  1222. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1223. end
  1224.  
  1225.  
  1226.  
  1227. --The reality of my life isn't real but a Universe -makhail07
  1228.  
  1229. wait()
  1230.  
  1231. local plr = owner
  1232. print('Local User is '..plr.Name)
  1233. print('Enjoy')
  1234. print('by themrbenja pt2 https://hastebin.com/raw/sehokerawa')
  1235. local char = plr.Character
  1236. local hum = char.Humanoid
  1237. local hed = char.Head
  1238. local root = char.HumanoidRootPart
  1239. local rootj = root.RootJoint
  1240. local tors = char.Torso
  1241. local ra = char["Right Arm"]
  1242. local la = char["Left Arm"]
  1243. local rl = char["Right Leg"]
  1244. local ll = char["Left Leg"]
  1245. local neck = tors["Neck"]
  1246. local mouse = plr:GetMouse()
  1247. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1248. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1249. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1250. local maincolor = BrickColor.new("Really black")
  1251.  
  1252. -------------------------------------------------------
  1253. --Start Good Stuff--
  1254. -------------------------------------------------------
  1255. cam = game.Workspace.CurrentCamera
  1256. CF = CFrame.new
  1257. angles = CFrame.Angles
  1258. attack = false
  1259. Euler = CFrame.fromEulerAnglesXYZ
  1260. Rad = math.rad
  1261. IT = Instance.new
  1262. BrickC = BrickColor.new
  1263. Cos = math.cos
  1264. Acos = math.acos
  1265. Sin = math.sin
  1266. Asin = math.asin
  1267. Abs = math.abs
  1268. Mrandom = math.random
  1269. Floor = math.floor
  1270. -------------------------------------------------------
  1271. --End Good Stuff--
  1272. -------------------------------------------------------
  1273. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1274. RSH, LSH = nil, nil
  1275. RW = Instance.new("Weld")
  1276. LW = Instance.new("Weld")
  1277. RH = tors["Right Hip"]
  1278. LH = tors["Left Hip"]
  1279. RSH = tors["Right Shoulder"]
  1280. LSH = tors["Left Shoulder"]
  1281. RSH.Parent = nil
  1282. LSH.Parent = nil
  1283. RW.Name = "RW"
  1284. RW.Part0 = tors
  1285. RW.C0 = CF(1.5, 0.5, 0)
  1286. RW.C1 = CF(0, 0.5, 0)
  1287. RW.Part1 = ra
  1288. RW.Parent = tors
  1289. LW.Name = "LW"
  1290. LW.Part0 = tors
  1291. LW.C0 = CF(-1.5, 0.5, 0)
  1292. LW.C1 = CF(0, 0.5, 0)
  1293. LW.Part1 = la
  1294. LW.Parent = tors
  1295. Effects = {}
  1296. -------------------------------------------------------
  1297. --Start HeartBeat--
  1298. -------------------------------------------------------
  1299. ArtificialHB = Instance.new("BindableEvent", script)
  1300. ArtificialHB.Name = "Heartbeat"
  1301. script:WaitForChild("Heartbeat")
  1302.  
  1303. frame = 1 / 60
  1304. tf = 0
  1305. allowframeloss = false
  1306. tossremainder = false
  1307.  
  1308.  
  1309. lastframe = tick()
  1310. script.Heartbeat:Fire()
  1311.  
  1312.  
  1313. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1314. tf = tf + s
  1315. if tf >= frame then
  1316. if allowframeloss then
  1317. script.Heartbeat:Fire()
  1318. lastframe = tick()
  1319. else
  1320. for i = 1, math.floor(tf / frame) do
  1321. script.Heartbeat:Fire()
  1322. end
  1323. lastframe = tick()
  1324. end
  1325. if tossremainder then
  1326. tf = 0
  1327. else
  1328. tf = tf - frame * math.floor(tf / frame)
  1329. end
  1330. end
  1331. end)
  1332. -------------------------------------------------------
  1333. --End HeartBeat--
  1334. -------------------------------------------------------
  1335.  
  1336. -------------------------------------------------------
  1337. --Start Important Functions--
  1338. -------------------------------------------------------
  1339. function swait(num)
  1340. if num == 0 or num == nil then
  1341. game:service("RunService").Stepped:wait(0)
  1342. else
  1343. for i = 0, num do
  1344. game:service("RunService").Stepped:wait(0)
  1345. end
  1346. end
  1347. end
  1348. function thread(f)
  1349. coroutine.resume(coroutine.create(f))
  1350. end
  1351. function clerp(a, b, t)
  1352. local qa = {
  1353. QuaternionFromCFrame(a)
  1354. }
  1355. local qb = {
  1356. QuaternionFromCFrame(b)
  1357. }
  1358. local ax, ay, az = a.x, a.y, a.z
  1359. local bx, by, bz = b.x, b.y, b.z
  1360. local _t = 1 - t
  1361. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1362. end
  1363. function QuaternionFromCFrame(cf)
  1364. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1365. local trace = m00 + m11 + m22
  1366. if trace > 0 then
  1367. local s = math.sqrt(1 + trace)
  1368. local recip = 0.5 / s
  1369. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1370. else
  1371. local i = 0
  1372. if m00 < m11 then
  1373. i = 1
  1374. end
  1375. if m22 > (i == 0 and m00 or m11) then
  1376. i = 2
  1377. end
  1378. if i == 0 then
  1379. local s = math.sqrt(m00 - m11 - m22 + 1)
  1380. local recip = 0.5 / s
  1381. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1382. elseif i == 1 then
  1383. local s = math.sqrt(m11 - m22 - m00 + 1)
  1384. local recip = 0.5 / s
  1385. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1386. elseif i == 2 then
  1387. local s = math.sqrt(m22 - m00 - m11 + 1)
  1388. local recip = 0.5 / s
  1389. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1390. end
  1391. end
  1392. end
  1393. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1394. local xs, ys, zs = x + x, y + y, z + z
  1395. local wx, wy, wz = w * xs, w * ys, w * zs
  1396. local xx = x * xs
  1397. local xy = x * ys
  1398. local xz = x * zs
  1399. local yy = y * ys
  1400. local yz = y * zs
  1401. local zz = z * zs
  1402. 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))
  1403. end
  1404. function QuaternionSlerp(a, b, t)
  1405. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1406. local startInterp, finishInterp
  1407. if cosTheta >= 1.0E-4 then
  1408. if 1 - cosTheta > 1.0E-4 then
  1409. local theta = math.acos(cosTheta)
  1410. local invSinTheta = 1 / Sin(theta)
  1411. startInterp = Sin((1 - t) * theta) * invSinTheta
  1412. finishInterp = Sin(t * theta) * invSinTheta
  1413. else
  1414. startInterp = 1 - t
  1415. finishInterp = t
  1416. end
  1417. elseif 1 + cosTheta > 1.0E-4 then
  1418. local theta = math.acos(-cosTheta)
  1419. local invSinTheta = 1 / Sin(theta)
  1420. startInterp = Sin((t - 1) * theta) * invSinTheta
  1421. finishInterp = Sin(t * theta) * invSinTheta
  1422. else
  1423. startInterp = t - 1
  1424. finishInterp = t
  1425. end
  1426. 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
  1427. end
  1428. function rayCast(Position, Direction, Range, Ignore)
  1429. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1430. end
  1431. local RbxUtility = LoadLibrary("RbxUtility")
  1432. local Create = RbxUtility.Create
  1433.  
  1434. -------------------------------------------------------
  1435. --Start Damage Function--
  1436. -------------------------------------------------------
  1437. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1438. if hit.Parent == nil then
  1439. return
  1440. end
  1441. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1442. for _, v in pairs(hit.Parent:children()) do
  1443. if v:IsA("Humanoid") then
  1444. h = v
  1445. end
  1446. end
  1447. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1448.  
  1449. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1450. end
  1451.  
  1452. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1453. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1454. if hit.Parent.DebounceHit.Value == true then
  1455. return
  1456. end
  1457. end
  1458. if insta == true then
  1459. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1460. end
  1461. local c = Create("ObjectValue"){
  1462. Name = "creator",
  1463. Value = game:service("Players").LocalPlayer,
  1464. Parent = h,
  1465. }
  1466. game:GetService("Debris"):AddItem(c, .5)
  1467. if HitSound ~= nil and HitPitch ~= nil then
  1468. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1469. end
  1470. local Damage = math.random(minim, maxim)
  1471. local blocked = false
  1472. local block = hit.Parent:findFirstChild("Block")
  1473. if block ~= nil then
  1474. if block.className == "IntValue" then
  1475. if block.Value > 0 then
  1476. blocked = true
  1477. block.Value = block.Value - 1
  1478. print(block.Value)
  1479. end
  1480. end
  1481. end
  1482. if blocked == false then
  1483. h.Health = h.Health - Damage
  1484. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1485. else
  1486. h.Health = h.Health - (Damage / 2)
  1487. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1488. end
  1489. if Type == "Knockdown" then
  1490. local hum = hit.Parent.Humanoid
  1491. hum.PlatformStand = true
  1492. coroutine.resume(coroutine.create(function(HHumanoid)
  1493. swait(1)
  1494. HHumanoid.PlatformStand = false
  1495. end), hum)
  1496. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1497. local bodvol = Create("BodyVelocity"){
  1498. velocity = angle * knockback,
  1499. P = 5000,
  1500. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1501. Parent = hit,
  1502. }
  1503. local rl = Create("BodyAngularVelocity"){
  1504. P = 3000,
  1505. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1506. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1507. Parent = hit,
  1508. }
  1509. game:GetService("Debris"):AddItem(bodvol, .5)
  1510. game:GetService("Debris"):AddItem(rl, .5)
  1511. elseif Type == "Normal" then
  1512. local vp = Create("BodyVelocity"){
  1513. P = 500,
  1514. maxForce = Vector3.new(math.huge, 0, math.huge),
  1515. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1516. }
  1517. if knockback > 0 then
  1518. vp.Parent = hit.Parent.Torso
  1519. end
  1520. game:GetService("Debris"):AddItem(vp, .5)
  1521. elseif Type == "Up" then
  1522. local bodyVelocity = Create("BodyVelocity"){
  1523. velocity = Vector3.new(0, 20, 0),
  1524. P = 5000,
  1525. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1526. Parent = hit,
  1527. }
  1528. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1529. elseif Type == "DarkUp" then
  1530. coroutine.resume(coroutine.create(function()
  1531. for i = 0, 1, 0.1 do
  1532. swait()
  1533. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1534. end
  1535. end))
  1536. local bodyVelocity = Create("BodyVelocity"){
  1537. velocity = Vector3.new(0, 20, 0),
  1538. P = 5000,
  1539. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1540. Parent = hit,
  1541. }
  1542. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1543. elseif Type == "Snare" then
  1544. local bp = Create("BodyPosition"){
  1545. P = 2000,
  1546. D = 100,
  1547. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1548. position = hit.Parent.Torso.Position,
  1549. Parent = hit.Parent.Torso,
  1550. }
  1551. game:GetService("Debris"):AddItem(bp, 1)
  1552. elseif Type == "Freeze" then
  1553. local BodPos = Create("BodyPosition"){
  1554. P = 50000,
  1555. D = 1000,
  1556. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1557. position = hit.Parent.Torso.Position,
  1558. Parent = hit.Parent.Torso,
  1559. }
  1560. local BodGy = Create("BodyGyro") {
  1561. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1562. P = 20e+003,
  1563. Parent = hit.Parent.Torso,
  1564. cframe = hit.Parent.Torso.CFrame,
  1565. }
  1566. hit.Parent.Torso.Anchored = true
  1567. coroutine.resume(coroutine.create(function(Part)
  1568. swait(1.5)
  1569. Part.Anchored = false
  1570. end), hit.Parent.Torso)
  1571. game:GetService("Debris"):AddItem(BodPos, 3)
  1572. game:GetService("Debris"):AddItem(BodGy, 3)
  1573. end
  1574. local debounce = Create("BoolValue"){
  1575. Name = "DebounceHit",
  1576. Parent = hit.Parent,
  1577. Value = true,
  1578. }
  1579. game:GetService("Debris"):AddItem(debounce, Delay)
  1580. c = Create("ObjectValue"){
  1581. Name = "creator",
  1582. Value = Player,
  1583. Parent = h,
  1584. }
  1585. game:GetService("Debris"):AddItem(c, .5)
  1586. end
  1587. end
  1588. -------------------------------------------------------
  1589. --End Damage Function--
  1590. -------------------------------------------------------
  1591.  
  1592. -------------------------------------------------------
  1593. --Start Damage Function Customization--
  1594. -------------------------------------------------------
  1595. function ShowDamage(Pos, Text, Time, Color)
  1596. local Rate = (1 / 30)
  1597. local Pos = (Pos or Vector3.new(0, 0, 0))
  1598. local Text = (Text or "")
  1599. local Time = (Time or 2)
  1600. local Color = (Color or Color3.new(1, 0, 1))
  1601. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1602. EffectPart.Anchored = true
  1603. local BillboardGui = Create("BillboardGui"){
  1604. Size = UDim2.new(3, 0, 3, 0),
  1605. Adornee = EffectPart,
  1606. Parent = EffectPart,
  1607. }
  1608. local TextLabel = Create("TextLabel"){
  1609. BackgroundTransparency = 1,
  1610. Size = UDim2.new(1, 0, 1, 0),
  1611. Text = Text,
  1612. Font = "Bodoni",
  1613. TextColor3 = Color,
  1614. TextScaled = true,
  1615. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  1616. Parent = BillboardGui,
  1617. }
  1618. game.Debris:AddItem(EffectPart, (Time))
  1619. EffectPart.Parent = game:GetService("Workspace")
  1620. delay(0, function()
  1621. local Frames = (Time / Rate)
  1622. for Frame = 1, Frames do
  1623. wait(Rate)
  1624. local Percent = (Frame / Frames)
  1625. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1626. TextLabel.TextTransparency = Percent
  1627. end
  1628. if EffectPart and EffectPart.Parent then
  1629. EffectPart:Destroy()
  1630. end
  1631. end)
  1632. end
  1633. -------------------------------------------------------
  1634. --End Damage Function Customization--
  1635. -------------------------------------------------------
  1636.  
  1637. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1638. for _, c in pairs(workspace:children()) do
  1639. local hum = c:findFirstChild("Humanoid")
  1640. if hum ~= nil then
  1641. local head = c:findFirstChild("Head")
  1642. if head ~= nil then
  1643. local targ = head.Position - Part.Position
  1644. local mag = targ.magnitude
  1645. if magni >= mag and c.Name ~= plr.Name then
  1646. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1647. end
  1648. end
  1649. end
  1650. end
  1651. end
  1652.  
  1653.  
  1654. CFuncs = {
  1655. Part = {
  1656. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1657. local Part = Create("Part")({
  1658. Parent = Parent,
  1659. Reflectance = Reflectance,
  1660. Transparency = Transparency,
  1661. CanCollide = false,
  1662. Locked = true,
  1663. BrickColor = BrickColor.new(tostring(BColor)),
  1664. Name = Name,
  1665. Size = Size,
  1666. Material = Material
  1667. })
  1668. RemoveOutlines(Part)
  1669. return Part
  1670. end
  1671. },
  1672. Mesh = {
  1673. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1674. local Msh = Create(Mesh)({
  1675. Parent = Part,
  1676. Offset = OffSet,
  1677. Scale = Scale
  1678. })
  1679. if Mesh == "SpecialMesh" then
  1680. Msh.MeshType = MeshType
  1681. Msh.MeshId = MeshId
  1682. end
  1683. return Msh
  1684. end
  1685. },
  1686. Mesh = {
  1687. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1688. local Msh = Create(Mesh)({
  1689. Parent = Part,
  1690. Offset = OffSet,
  1691. Scale = Scale
  1692. })
  1693. if Mesh == "SpecialMesh" then
  1694. Msh.MeshType = MeshType
  1695. Msh.MeshId = MeshId
  1696. end
  1697. return Msh
  1698. end
  1699. },
  1700. Weld = {
  1701. Create = function(Parent, Part0, Part1, C0, C1)
  1702. local Weld = Create("Weld")({
  1703. Parent = Parent,
  1704. Part0 = Part0,
  1705. Part1 = Part1,
  1706. C0 = C0,
  1707. C1 = C1
  1708. })
  1709. return Weld
  1710. end
  1711. },
  1712. Sound = {
  1713. Create = function(id, par, vol, pit)
  1714. coroutine.resume(coroutine.create(function()
  1715. local S = Create("Sound")({
  1716. Volume = vol,
  1717. Pitch = pit or 1,
  1718. SoundId = id,
  1719. Parent = par or workspace
  1720. })
  1721. wait()
  1722. S:play()
  1723. game:GetService("Debris"):AddItem(S, 6)
  1724. end))
  1725. end
  1726. },
  1727. ParticleEmitter = {
  1728. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1729. local fp = Create("ParticleEmitter")({
  1730. Parent = Parent,
  1731. Color = ColorSequence.new(Color1, Color2),
  1732. LightEmission = LightEmission,
  1733. Size = Size,
  1734. Texture = Texture,
  1735. Transparency = Transparency,
  1736. ZOffset = ZOffset,
  1737. Acceleration = Accel,
  1738. Drag = Drag,
  1739. LockedToPart = LockedToPart,
  1740. VelocityInheritance = VelocityInheritance,
  1741. EmissionDirection = EmissionDirection,
  1742. Enabled = Enabled,
  1743. Lifetime = LifeTime,
  1744. Rate = Rate,
  1745. Rotation = Rotation,
  1746. RotSpeed = RotSpeed,
  1747. Speed = Speed,
  1748. VelocitySpread = VelocitySpread
  1749. })
  1750. return fp
  1751. end
  1752. }
  1753. }
  1754. function RemoveOutlines(part)
  1755. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1756. end
  1757. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1758. local Part = Create("Part")({
  1759. formFactor = FormFactor,
  1760. Parent = Parent,
  1761. Reflectance = Reflectance,
  1762. Transparency = Transparency,
  1763. CanCollide = false,
  1764. Locked = true,
  1765. BrickColor = BrickColor.new(tostring(BColor)),
  1766. Name = Name,
  1767. Size = Size,
  1768. Material = Material
  1769. })
  1770. RemoveOutlines(Part)
  1771. return Part
  1772. end
  1773. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1774. local Msh = Create(Mesh)({
  1775. Parent = Part,
  1776. Offset = OffSet,
  1777. Scale = Scale
  1778. })
  1779. if Mesh == "SpecialMesh" then
  1780. Msh.MeshType = MeshType
  1781. Msh.MeshId = MeshId
  1782. end
  1783. return Msh
  1784. end
  1785. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1786. local Weld = Create("Weld")({
  1787. Parent = Parent,
  1788. Part0 = Part0,
  1789. Part1 = Part1,
  1790. C0 = C0,
  1791. C1 = C1
  1792. })
  1793. return Weld
  1794. end
  1795.  
  1796.  
  1797. -------------------------------------------------------
  1798. --Start Effect Function--
  1799. -------------------------------------------------------
  1800. EffectModel = Instance.new("Model", char)
  1801. Effects = {
  1802. Block = {
  1803. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1804. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1805. prt.Anchored = true
  1806. prt.CFrame = cframe
  1807. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1808. game:GetService("Debris"):AddItem(prt, 10)
  1809. if Type == 1 or Type == nil then
  1810. table.insert(Effects, {
  1811. prt,
  1812. "Block1",
  1813. delay,
  1814. x3,
  1815. y3,
  1816. z3,
  1817. msh
  1818. })
  1819. elseif Type == 2 then
  1820. table.insert(Effects, {
  1821. prt,
  1822. "Block2",
  1823. delay,
  1824. x3,
  1825. y3,
  1826. z3,
  1827. msh
  1828. })
  1829. else
  1830. table.insert(Effects, {
  1831. prt,
  1832. "Block3",
  1833. delay,
  1834. x3,
  1835. y3,
  1836. z3,
  1837. msh
  1838. })
  1839. end
  1840. end
  1841. },
  1842. Sphere = {
  1843. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1844. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1845. prt.Anchored = true
  1846. prt.CFrame = cframe
  1847. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1848. game:GetService("Debris"):AddItem(prt, 10)
  1849. table.insert(Effects, {
  1850. prt,
  1851. "Cylinder",
  1852. delay,
  1853. x3,
  1854. y3,
  1855. z3,
  1856. msh
  1857. })
  1858. end
  1859. },
  1860. Cylinder = {
  1861. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1862. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1863. prt.Anchored = true
  1864. prt.CFrame = cframe
  1865. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1866. game:GetService("Debris"):AddItem(prt, 10)
  1867. table.insert(Effects, {
  1868. prt,
  1869. "Cylinder",
  1870. delay,
  1871. x3,
  1872. y3,
  1873. z3,
  1874. msh
  1875. })
  1876. end
  1877. },
  1878. Wave = {
  1879. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1880. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1881. prt.Anchored = true
  1882. prt.CFrame = cframe
  1883. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1884. game:GetService("Debris"):AddItem(prt, 10)
  1885. table.insert(Effects, {
  1886. prt,
  1887. "Cylinder",
  1888. delay,
  1889. x3 / 60,
  1890. y3 / 60,
  1891. z3 / 60,
  1892. msh
  1893. })
  1894. end
  1895. },
  1896. Ring = {
  1897. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1898. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1899. prt.Anchored = true
  1900. prt.CFrame = cframe
  1901. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1902. game:GetService("Debris"):AddItem(prt, 10)
  1903. table.insert(Effects, {
  1904. prt,
  1905. "Cylinder",
  1906. delay,
  1907. x3,
  1908. y3,
  1909. z3,
  1910. msh
  1911. })
  1912. end
  1913. },
  1914. Break = {
  1915. Create = function(brickcolor, cframe, x1, y1, z1)
  1916. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1917. prt.Anchored = true
  1918. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1919. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1920. local num = math.random(10, 50) / 1000
  1921. game:GetService("Debris"):AddItem(prt, 10)
  1922. table.insert(Effects, {
  1923. prt,
  1924. "Shatter",
  1925. num,
  1926. prt.CFrame,
  1927. math.random() - math.random(),
  1928. 0,
  1929. math.random(50, 100) / 100
  1930. })
  1931. end
  1932. },
  1933. Spiral = {
  1934. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1935. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1936. prt.Anchored = true
  1937. prt.CFrame = cframe
  1938. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1939. game:GetService("Debris"):AddItem(prt, 10)
  1940. table.insert(Effects, {
  1941. prt,
  1942. "Cylinder",
  1943. delay,
  1944. x3,
  1945. y3,
  1946. z3,
  1947. msh
  1948. })
  1949. end
  1950. },
  1951. Push = {
  1952. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1953. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1954. prt.Anchored = true
  1955. prt.CFrame = cframe
  1956. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1957. game:GetService("Debris"):AddItem(prt, 10)
  1958. table.insert(Effects, {
  1959. prt,
  1960. "Cylinder",
  1961. delay,
  1962. x3,
  1963. y3,
  1964. z3,
  1965. msh
  1966. })
  1967. end
  1968. }
  1969. }
  1970. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1971. local fp = IT("Part")
  1972. fp.formFactor = formfactor
  1973. fp.Parent = parent
  1974. fp.Reflectance = reflectance
  1975. fp.Transparency = transparency
  1976. fp.CanCollide = false
  1977. fp.Locked = true
  1978. fp.BrickColor = brickcolor
  1979. fp.Name = name
  1980. fp.Size = size
  1981. fp.Position = tors.Position
  1982. RemoveOutlines(fp)
  1983. fp.Material = "SmoothPlastic"
  1984. fp:BreakJoints()
  1985. return fp
  1986. end
  1987.  
  1988. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1989. local mesh = IT(Mesh)
  1990. mesh.Parent = part
  1991. if Mesh == "SpecialMesh" then
  1992. mesh.MeshType = meshtype
  1993. if meshid ~= "nil" then
  1994. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1995. end
  1996. end
  1997. mesh.Offset = offset
  1998. mesh.Scale = scale
  1999. return mesh
  2000. end
  2001.  
  2002. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  2003. local type = type
  2004. local rng = Instance.new("Part", char)
  2005. rng.Anchored = true
  2006. rng.BrickColor = color
  2007. rng.CanCollide = false
  2008. rng.FormFactor = 3
  2009. rng.Name = "Ring"
  2010. rng.Material = "Neon"
  2011. rng.Size = Vector3.new(1, 1, 1)
  2012. rng.Transparency = 0
  2013. rng.TopSurface = 0
  2014. rng.BottomSurface = 0
  2015. rng.CFrame = pos
  2016. local rngm = Instance.new("SpecialMesh", rng)
  2017. rngm.MeshType = MType
  2018. rngm.Scale = scale
  2019. local scaler2 = 1
  2020. if type == "Add" then
  2021. scaler2 = 1 * value
  2022. elseif type == "Divide" then
  2023. scaler2 = 1 / value
  2024. end
  2025. coroutine.resume(coroutine.create(function()
  2026. for i = 0, 10 / bonuspeed, 0.1 do
  2027. swait()
  2028. if type == "Add" then
  2029. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2030. elseif type == "Divide" then
  2031. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2032. end
  2033. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2034. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2035. end
  2036. rng:Destroy()
  2037. end))
  2038. end
  2039.  
  2040. function Eviscerate(dude)
  2041. if dude.Name ~= char then
  2042. local bgf = IT("BodyGyro", dude.Head)
  2043. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  2044. local val = IT("BoolValue", dude)
  2045. val.Name = "IsHit"
  2046. local ds = coroutine.wrap(function()
  2047. dude:WaitForChild("Head"):BreakJoints()
  2048. wait(0.5)
  2049. target = nil
  2050. coroutine.resume(coroutine.create(function()
  2051. for i, v in pairs(dude:GetChildren()) do
  2052. if v:IsA("Accessory") then
  2053. v:Destroy()
  2054. end
  2055. if v:IsA("Humanoid") then
  2056. v:Destroy()
  2057. end
  2058. if v:IsA("CharacterMesh") then
  2059. v:Destroy()
  2060. end
  2061. if v:IsA("Model") then
  2062. v:Destroy()
  2063. end
  2064. if v:IsA("Part") or v:IsA("MeshPart") then
  2065. for x, o in pairs(v:GetChildren()) do
  2066. if o:IsA("Decal") then
  2067. o:Destroy()
  2068. end
  2069. end
  2070. coroutine.resume(coroutine.create(function()
  2071. v.Material = "Neon"
  2072. v.CanCollide = false
  2073. local PartEmmit1 = IT("ParticleEmitter", v)
  2074. PartEmmit1.LightEmission = 1
  2075. PartEmmit1.Texture = "rbxassetid://1523916715"
  2076. PartEmmit1.Color = ColorSequence.new(Color3.new(0, 0, 0))
  2077. PartEmmit1.Rate = 150
  2078. PartEmmit1.Lifetime = NumberRange.new(1)
  2079. PartEmmit1.Size = NumberSequence.new({
  2080. NumberSequenceKeypoint.new(0, 0.75, 0),
  2081. NumberSequenceKeypoint.new(1, 0, 0)
  2082. })
  2083. PartEmmit1.Transparency = NumberSequence.new({
  2084. NumberSequenceKeypoint.new(0, 0, 0),
  2085. NumberSequenceKeypoint.new(1, 1, 0)
  2086. })
  2087. PartEmmit1.Speed = NumberRange.new(0, 0)
  2088. PartEmmit1.VelocitySpread = 30000
  2089. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  2090. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  2091. local BodPoss = IT("BodyPosition", v)
  2092. BodPoss.P = 3000
  2093. BodPoss.D = 1000
  2094. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2095. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  2096. v.Color = maincolor.Color
  2097. coroutine.resume(coroutine.create(function()
  2098. for i = 0, 49 do
  2099. swait(1)
  2100. v.Transparency = v.Transparency + 0.08
  2101. end
  2102. wait(0.5)
  2103. PartEmmit1.Enabled = false
  2104. wait(3)
  2105. v:Destroy()
  2106. dude:Destroy()
  2107. end))
  2108. end))
  2109. end
  2110. end
  2111. end))
  2112. end)
  2113. ds()
  2114. end
  2115. end
  2116.  
  2117. function FindNearestHead(Position, Distance, SinglePlayer)
  2118. if SinglePlayer then
  2119. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2120. end
  2121. local List = {}
  2122. for i, v in pairs(workspace:GetChildren()) do
  2123. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  2124. table.insert(List, v)
  2125. end
  2126. end
  2127. return List
  2128. end
  2129.  
  2130. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  2131. local type = type
  2132. local rng = Instance.new("Part", char)
  2133. rng.Anchored = true
  2134. rng.BrickColor = color
  2135. rng.CanCollide = false
  2136. rng.FormFactor = 3
  2137. rng.Name = "Ring"
  2138. rng.Material = "Neon"
  2139. rng.Size = Vector3.new(1, 1, 1)
  2140. rng.Transparency = 0
  2141. rng.TopSurface = 0
  2142. rng.BottomSurface = 0
  2143. rng.CFrame = pos
  2144. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2145. local rngm = Instance.new("SpecialMesh", rng)
  2146. rngm.MeshType = MType
  2147. rngm.Scale = Vector3.new(x1, y1, z1)
  2148. local scaler2 = 1
  2149. local speeder = FastSpeed
  2150. if type == "Add" then
  2151. scaler2 = 1 * value
  2152. elseif type == "Divide" then
  2153. scaler2 = 1 / value
  2154. end
  2155. coroutine.resume(coroutine.create(function()
  2156. for i = 0, 10 / bonuspeed, 0.1 do
  2157. swait()
  2158. if type == "Add" then
  2159. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2160. elseif type == "Divide" then
  2161. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2162. end
  2163. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2164. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2165. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2166. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2167. end
  2168. rng:Destroy()
  2169. end))
  2170. end
  2171.  
  2172. function SoulSteal(dude)
  2173. if dude.Name ~= char then
  2174. local bgf = IT("BodyGyro", dude.Head)
  2175. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  2176. local val = IT("BoolValue", dude)
  2177. val.Name = "IsHit"
  2178. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  2179. local soulst = coroutine.wrap(function()
  2180. local soul = Instance.new("Part",dude)
  2181. soul.Size = Vector3.new(1,1,1)
  2182. soul.CanCollide = false
  2183. soul.Anchored = false
  2184. soul.Position = torso.Position
  2185. soul.Transparency = 1
  2186. local PartEmmit1 = IT("ParticleEmitter", soul)
  2187. PartEmmit1.LightEmission = 1
  2188. PartEmmit1.Texture = "rbxassetid://569507414"
  2189. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2190. PartEmmit1.Rate = 250
  2191. PartEmmit1.Lifetime = NumberRange.new(1.6)
  2192. PartEmmit1.Size = NumberSequence.new({
  2193. NumberSequenceKeypoint.new(0, 1, 0),
  2194. NumberSequenceKeypoint.new(1, 0, 0)
  2195. })
  2196. PartEmmit1.Transparency = NumberSequence.new({
  2197. NumberSequenceKeypoint.new(0, 0, 0),
  2198. NumberSequenceKeypoint.new(1, 1, 0)
  2199. })
  2200. PartEmmit1.Speed = NumberRange.new(0, 0)
  2201. PartEmmit1.VelocitySpread = 30000
  2202. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  2203. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  2204. local BodPoss = IT("BodyPosition", soul)
  2205. BodPoss.P = 3000
  2206. BodPoss.D = 1000
  2207. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2208. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  2209. wait(1.6)
  2210. soul.Touched:connect(function(hit)
  2211. if hit.Parent == char then
  2212. soul:Destroy()
  2213. end
  2214. end)
  2215. wait(1.2)
  2216. while soul do
  2217. swait()
  2218. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2219. BodPoss.Position = tors.Position
  2220. end
  2221. end)
  2222. soulst()
  2223. end
  2224. end
  2225. function FaceMouse()
  2226. local Cam = workspace.CurrentCamera
  2227. return {
  2228. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2229. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2230. }
  2231. end
  2232. -------------------------------------------------------
  2233. --End Effect Function--
  2234. -------------------------------------------------------
  2235. function Cso(ID, PARENT, VOLUME, PITCH)
  2236. local NSound = nil
  2237. coroutine.resume(coroutine.create(function()
  2238. NSound = IT("Sound", PARENT)
  2239. NSound.Volume = VOLUME
  2240. NSound.Pitch = PITCH
  2241. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2242. swait()
  2243. NSound:play()
  2244. game:GetService("Debris"):AddItem(NSound, 10)
  2245. end))
  2246. return NSound
  2247. end
  2248. function CameraEnshaking(Length, Intensity)
  2249. coroutine.resume(coroutine.create(function()
  2250. local intensity = 1 * Intensity
  2251. local rotM = 0.01 * Intensity
  2252. for i = 0, Length, 0.1 do
  2253. swait()
  2254. intensity = intensity - 0.05 * Intensity / Length
  2255. rotM = rotM - 5.0E-4 * Intensity / Length
  2256. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  2257. 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)
  2258. end
  2259. hum.CameraOffset = Vector3.new(0, 0, 0)
  2260. end))
  2261. end
  2262.  
  2263. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  2264. local NEWMESH = Instance.new(MESH)
  2265. if MESH == "SpecialMesh" then
  2266. NEWMESH.MeshType = MESHTYPE
  2267. if MESHID ~= "nil" and MESHID ~= "" then
  2268. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  2269. end
  2270. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  2271. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  2272. end
  2273. end
  2274. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  2275. NEWMESH.Scale = SCALE
  2276. NEWMESH.Parent = PARENT
  2277. return NEWMESH
  2278. end
  2279.  
  2280. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  2281. local NEWPART = Instance.new("Part")
  2282. NEWPART.formFactor = FORMFACTOR
  2283. NEWPART.Reflectance = REFLECTANCE
  2284. NEWPART.Transparency = TRANSPARENCY
  2285. NEWPART.CanCollide = false
  2286. NEWPART.Locked = true
  2287. NEWPART.Anchored = true
  2288. if ANCHOR == false then
  2289. NEWPART.Anchored = false
  2290. end
  2291. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  2292. NEWPART.Name = NAME
  2293. NEWPART.Size = SIZE
  2294. NEWPART.Position = tors.Position
  2295. NEWPART.Material = MATERIAL
  2296. NEWPART:BreakJoints()
  2297. NEWPART.Parent = PARENT
  2298. return NEWPART
  2299. end
  2300.  
  2301. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  2302. local frame = IT("Frame")
  2303. frame.BackgroundTransparency = TRANSPARENCY
  2304. frame.BorderSizePixel = BORDERSIZEPIXEL
  2305. frame.Position = POSITION
  2306. frame.Size = SIZE
  2307. frame.BackgroundColor3 = COLOR
  2308. frame.BorderColor3 = BORDERCOLOR
  2309. frame.Name = NAME
  2310. frame.Parent = PARENT
  2311. return frame
  2312. end
  2313.  
  2314. UD2 = UDim2.new
  2315.  
  2316. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  2317. local label = IT("TextLabel")
  2318. label.BackgroundTransparency = 1
  2319. label.Size = UD2(1, 0, 1, 0)
  2320. label.Position = UD2(0, 0, 0, 0)
  2321. label.TextColor3 = TEXTCOLOR
  2322. label.TextStrokeTransparency = STROKETRANSPARENCY
  2323. label.TextTransparency = TRANSPARENCY
  2324. label.FontSize = TEXTFONTSIZE
  2325. label.Font = TEXTFONT
  2326. label.BorderSizePixel = BORDERSIZEPIXEL
  2327. label.TextScaled = false
  2328. label.Text = TEXT
  2329. label.Name = NAME
  2330. label.Parent = PARENT
  2331. return label
  2332. end
  2333.  
  2334. local Particle = IT("ParticleEmitter",nil)
  2335. Particle.Enabled = false
  2336. Particle.LightEmission = 0.2
  2337. Particle.Rate = 150
  2338. Particle.ZOffset = 1
  2339. Particle.Rotation = NumberRange.new(-180, 180)
  2340.  
  2341. function ParticleEmitter(Table)
  2342. local PRTCL = Particle:Clone()
  2343. local Color1 = Table.Color1 or Color3.new(1,1,1)
  2344. local Color2 = Table.Color2 or Color3.new(1,1,1)
  2345. local Speed = Table.Speed or 5
  2346. local Drag = Table.Drag or 0
  2347. local Size1 = Table.Size1 or 1
  2348. local Size2 = Table.Size2 or 5
  2349. local Lifetime1 = Table.Lifetime1 or 1
  2350. local Lifetime2 = Table.Lifetime2 or 1.5
  2351. local Parent = Table.Parent or tors
  2352. local Emit = Table.Emit or 100
  2353. local Offset = Table.Offset or 360
  2354. local Acel = Table.Acel or Vector3.new(0,0,0)
  2355. local Enabled = Table.Enabled or false
  2356. local Texture = Table.Texture or "281983280"
  2357. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  2358. local Trans1 = Table.Transparency1 or 0
  2359. local Trans2 = Table.Transparency2 or 0
  2360. PRTCL.Parent = Parent
  2361. PRTCL.RotSpeed = RotS
  2362. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  2363. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  2364. PRTCL.Color = ColorSequence.new(Color1,Color2)
  2365. PRTCL.Size = NumberSequence.new(Size1,Size2)
  2366. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  2367. PRTCL.Speed = NumberRange.new(Speed)
  2368. PRTCL.VelocitySpread = Offset
  2369. PRTCL.Drag = Drag
  2370. PRTCL.Acceleration = Acel
  2371. if Enabled == false then
  2372. PRTCL:Emit(Emit)
  2373. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  2374. else
  2375. PRTCL.Enabled = true
  2376. end
  2377. return PRTCL
  2378. end
  2379. -------------------------------------------------------
  2380. --End Important Functions--
  2381. -------------------------------------------------------
  2382.  
  2383.  
  2384. -------------------------------------------------------
  2385. --Start Customization--
  2386. -------------------------------------------------------
  2387. local Player_Size = 1
  2388. if Player_Size ~= 1 then
  2389. root.Size = root.Size * Player_Size
  2390. tors.Size = tors.Size * Player_Size
  2391. hed.Size = hed.Size * Player_Size
  2392. ra.Size = ra.Size * Player_Size
  2393. la.Size = la.Size * Player_Size
  2394. rl.Size = rl.Size * Player_Size
  2395. ll.Size = ll.Size * Player_Size
  2396. ----------------------------------------------------------------------------------
  2397. rootj.Parent = root
  2398. neck.Parent = tors
  2399. RW.Parent = tors
  2400. LW.Parent = tors
  2401. RH.Parent = tors
  2402. LH.Parent = tors
  2403. ----------------------------------------------------------------------------------
  2404. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2405. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2406. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  2407. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  2408. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  2409. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  2410. ----------------------------------------------------------------------------------
  2411. 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))
  2412. 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))
  2413. 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))
  2414. 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))
  2415. --hat.Parent = Character
  2416. end
  2417. ----------------------------------------------------------------------------------
  2418. local SONG = 1066344174
  2419. local SONG2 = 0
  2420. local Music = Instance.new("Sound",tors)
  2421. Music.Volume = 2.5
  2422. Music.Looped = true
  2423. Music.Pitch = 1 --Pitcher
  2424. ----------------------------------------------------------------------------------
  2425. local equipped = false
  2426. local idle = 0
  2427. local change = 1
  2428. local val = 0
  2429. local toim = 0
  2430. local idleanim = 0.4
  2431. local sine = 0
  2432. local Sit = 1
  2433. local VALUE1 = false
  2434. local VALUE2 = false
  2435. local HOLD = false
  2436. local KEYHOLD = false
  2437. ----------------------------------------------------------------------------------
  2438. hum.WalkSpeed = 18
  2439. hum.JumpPower = 130
  2440. hum.Animator.Parent = nil
  2441. ----------------------------------------------------------------------------------
  2442. local naeeym2 = IT("BillboardGui",char)
  2443. naeeym2.AlwaysOnTop = true
  2444. naeeym2.Size = UDim2.new(5,35,2,15)
  2445. naeeym2.StudsOffset = Vector3.new(0,2,0)
  2446. naeeym2.MaxDistance = 75
  2447. naeeym2.Adornee = hed
  2448. naeeym2.Name = "Name"
  2449. --naeeym2.PlayerToHideFrom = Player
  2450. local tecks2 = IT("TextLabel",naeeym2)
  2451. tecks2.BackgroundTransparency = 1
  2452. tecks2.TextScaled = true
  2453. tecks2.BorderSizePixel = 0
  2454. tecks2.Text = od""
  2455. tecks2.Font = "Fantasy"
  2456. tecks2.TextSize = 30
  2457. tecks2.TextStrokeTransparency = 0
  2458. tecks2.TextColor3 = Color3.fromRGB(0, 0, 0)
  2459. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  2460. tecks2.Size = UDim2.new(1,0,0.5,0)
  2461. tecks2.Parent = naeeym2
  2462. local top = Instance.new("Shirt")
  2463. top.ShirtTemplate = "rbxassetid://"
  2464. top.Parent = char
  2465. top.Name = "Cloth"
  2466. local bottom = Instance.new("Pants")
  2467. bottom.PantsTemplate = "rbxassetid://"
  2468. bottom.Parent = char
  2469. bottom.Name = "Cloth"
  2470. Reaper = IT("Model")
  2471. Reaper.Parent = char
  2472. Reaper.Name = "Reaper"
  2473. RHe = IT("Part")
  2474. RHe.Parent = Reaper
  2475. RHe.BrickColor = BrickColor.new("Really black")
  2476. RHe.Locked = true
  2477. RHe.CanCollide = false
  2478. RHe.Transparency = 0
  2479. PMesh = IT("SpecialMesh")
  2480. RHe.formFactor = "Symmetric"
  2481. PMesh.MeshType = "FileMesh"
  2482. PMesh.MeshId = "rbxassetid://23421"
  2483. PMesh.TextureId = "rbxassetid://151576107"
  2484. PMesh.Scale = Vector3.new(3.01, 3.01, 3.01)
  2485. PMesh.Parent = RHe
  2486. local RWeld = IT("Weld")
  2487. RWeld.Parent = RHe
  2488. RWeld.Part0 = RHe
  2489. RWeld.Part1 = hed
  2490. RWeld.C0 = CF(0, 1.5, 0) * angles(0, 0, 0)
  2491. hed.face:Remove()
  2492. ----------------------------------------------------------------------------------
  2493. PlayerGui = plr.PlayerGui
  2494. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  2495. WEAPONGUI.Name = "Weapon GUI"
  2496.  
  2497. local SKILLTEXTCOLOR = Color3.new(0,0,0)
  2498. local SKILLFONT = "Antique"
  2499. local SKILLTEXTSIZE = 6
  2500.  
  2501. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 1 Frame")
  2502. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 2 Frame")
  2503. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 3 Frame")
  2504. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 4 Frame")
  2505. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 5 Frame")
  2506.  
  2507. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shadow's Victory", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  2508. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Eruption", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  2509. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chaos", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  2510. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Death's Wish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4")
  2511. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Shadows Whisper", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5")
  2512. -------------------------------------------------------
  2513. --End Customization--
  2514. -------------------------------------------------------
  2515.  
  2516.  
  2517. -------------------------------------------------------
  2518. --Start Attacks N Stuff--
  2519. -------------------------------------------------------
  2520. function Shadom_Circle()
  2521.  
  2522. end
  2523. function Flame_Burst()
  2524. local target = nil
  2525. local targettorso = nil
  2526. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  2527. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  2528. target = mouse.Target.Parent.Humanoid
  2529. target2 = mouse.Target.Parent
  2530. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  2531. end
  2532. end
  2533. if target ~= nil then
  2534. attack = true
  2535. hum.WalkSpeed = 0
  2536. for i = 0, 3.4, 0.1 do
  2537. swait()
  2538. hum.WalkSpeed = 0
  2539. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  2540. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  2541. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2542. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2543. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(-15), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  2544. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  2545. end
  2546. --ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  2547. --targettorso:BreakJoints()
  2548. for i = 0, 3.4, 0.1 do
  2549. swait()
  2550. hum.WalkSpeed = 0
  2551. ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  2552. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  2553. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  2554. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2555. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2556. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(135), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  2557. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  2558. end
  2559. for i, v in pairs(target2:GetChildren()) do
  2560. if(not char:IsAncestorOf(v))then
  2561. local hum = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  2562. local hedder = (v and v.Parent and v.Parent:FindFirstChild'Head')
  2563. if(hum and hedder and hum.Health > 0)then
  2564. Eviscerate(v.Parent)
  2565. end
  2566. end
  2567. end
  2568. attack = false
  2569. hum.WalkSpeed = 18
  2570. end
  2571. end
  2572. function Ritual()
  2573. attack = true
  2574. hum.WalkSpeed = 0
  2575. VALUE2 = true
  2576. repeat
  2577. ---Pose1
  2578. for i = 0, 2.6, 0.1 do
  2579. swait()
  2580. hum.WalkSpeed = 0
  2581. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  2582. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1)
  2583. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2584. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2585. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  2586. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1)
  2587. end
  2588. for i = 0, 3.4, 0.1 do
  2589. swait()
  2590. hum.WalkSpeed = 0
  2591. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  2592. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  2593. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2594. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2595. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  2596. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  2597. end
  2598. ---Pose2
  2599. for i = 0, 2.6, 0.1 do
  2600. swait()
  2601. hum.WalkSpeed = 0
  2602. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  2603. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1)
  2604. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2605. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2606. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  2607. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1)
  2608. end
  2609. for i = 0, 3.4, 0.1 do
  2610. swait()
  2611. hum.WalkSpeed = 0
  2612. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  2613. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  2614. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2615. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  2616. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  2617. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  2618. end
  2619. until VALUE2 == false
  2620. attack = false
  2621. hum.WalkSpeed = 18
  2622. end
  2623. -------------------------------------------------------
  2624. --End Attacks N Stuff--
  2625. -------------------------------------------------------
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633. -------------------------------------------------------
  2634. --Start Animations--
  2635. -------------------------------------------------------
  2636. while true do
  2637. swait()
  2638. sine = sine + change
  2639. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2640. local velderp = root.Velocity.y
  2641. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  2642. if equipped == true or equipped == false then
  2643. if attack == false then
  2644. idle = idle + 1
  2645. else
  2646. idle = 0
  2647. end
  2648. if 1 < root.Velocity.y and hitfloor == nil then
  2649. Anim = "Jump"
  2650. if attack == false then
  2651. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  2652. 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)
  2653. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2654. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2655. 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)
  2656. 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)
  2657. end
  2658. elseif -1 > root.Velocity.y and hitfloor == nil then
  2659. Anim = "Fall"
  2660. if attack == false then
  2661. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-24), Rad(0), Rad(0)), 0.15)
  2662. 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)
  2663. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(50)), 0.15)
  2664. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(40)), 0.15)
  2665. 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(75 + 4.5 * Sin(sine / 20))), 0.1)
  2666. 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(-75 - 4.5 * Sin(sine / 20))), 0.1)
  2667. end
  2668. elseif torvel < 1 and hitfloor ~= nil then
  2669. Anim = "Idle"
  2670. change = 1
  2671. if attack == false then
  2672. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  2673. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3)
  2674. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  2675. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  2676. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1)
  2677. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(-43 - 4.5 * Sin(sine / 12))), 0.1)
  2678. end
  2679. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  2680. Anim = "Walk"
  2681. change = 1
  2682. if attack == false then
  2683. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  2684. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  2685. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, 0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2686. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -0.8 * Player_Size + 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, -0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2687. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(65) * Cos(sine / 7), Rad(-.6), Rad(15 + 4.5 * Sin(sine / 12))), 0.1)
  2688. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-65) * Cos(sine / 7), Rad(-.6), Rad(-15 - 4.5 * Sin(sine / 12))), 0.1)
  2689. end
  2690. elseif torvel >= 25 and hitfloor ~= nil then
  2691. Anim = "Sprint"
  2692. change = 1.35
  2693. if attack == false then
  2694. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  2695. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  2696. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2697. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2698. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  2699. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  2700. end
  2701. end
  2702. end
  2703. for _, c in pairs(char:GetChildren()) do
  2704. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Add-ons" then
  2705. c.Material = "Fabric"
  2706. if c:FindFirstChildOfClass("ParticleEmitter") then
  2707. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2708. end
  2709. if c ~= hed then
  2710. c.Color = Color3.new(0, 0, 0)
  2711. else
  2712. c.Color = Color3.new(0, 0, 0)
  2713. end
  2714. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2715. c:remove()
  2716. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2717. c:remove()
  2718. end
  2719. end
  2720. Music.SoundId = "rbxassetid://"..SONG
  2721. Music.Looped = true
  2722. Music.Pitch = 1
  2723. Music.Volume = 5
  2724. Music.Parent = tors
  2725. Music:Resume()
  2726. if 0 < #Effects then
  2727. for e = 1, #Effects do
  2728. if Effects[e] ~= nil then
  2729. local Thing = Effects[e]
  2730. if Thing ~= nil then
  2731. local Part = Thing[1]
  2732. local Mode = Thing[2]
  2733. local Delay = Thing[3]
  2734. local IncX = Thing[4]
  2735. local IncY = Thing[5]
  2736. local IncZ = Thing[6]
  2737. if 1 >= Thing[1].Transparency then
  2738. if Thing[2] == "Block1" then
  2739. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2740. local Mesh = Thing[1].Mesh
  2741. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2742. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2743. elseif Thing[2] == "Block2" then
  2744. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2745. local Mesh = Thing[7]
  2746. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2747. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2748. elseif Thing[2] == "Block3" then
  2749. 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)
  2750. local Mesh = Thing[7]
  2751. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2752. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2753. elseif Thing[2] == "Cylinder" then
  2754. local Mesh = Thing[1].Mesh
  2755. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2756. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2757. elseif Thing[2] == "Blood" then
  2758. local Mesh = Thing[7]
  2759. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2760. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2761. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2762. elseif Thing[2] == "Elec" then
  2763. local Mesh = Thing[1].Mesh
  2764. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2765. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2766. elseif Thing[2] == "Disappear" then
  2767. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2768. elseif Thing[2] == "Shatter" then
  2769. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2770. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2771. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2772. Thing[6] = Thing[6] + Thing[5]
  2773. end
  2774. else
  2775. Part.Parent = nil
  2776. table.remove(Effects, e)
  2777. end
  2778. end
  2779. end
  2780. end
  2781. end
  2782. end
  2783. -------------------------------------------------------
  2784. --End Animations And Script--
  2785. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement