SansjustSans2

Sans Gaming 2 (roblox script)

May 29th, 2020
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.78 KB | None | 0 0
  1. --[[
  2.  
  3. .▄▄ · ▄▄▄· ▐ ▄ .▄▄ · ▄▄ • ▄▄▄· • ▌ ▄ ·. ▪ ▐ ▄ ▄▄ •
  4. ▐█ ▀. ▐█ ▀█ •█▌▐█▐█ ▀. ▐█ ▀ ▪▐█ ▀█ ·██ ▐███▪██ •█▌▐█▐█ ▀ ▪
  5. ▄▀▀▀█▄▄█▀▀█ ▐█▐▐▌▄▀▀▀█▄ ▄█ ▀█▄▄█▀▀█ ▐█ ▌▐▌▐█·▐█·▐█▐▐▌▄█ ▀█▄
  6. ▐█▄▪▐█▐█ ▪▐▌██▐█▌▐█▄▪▐█ ▐█▄▪▐█▐█ ▪▐▌██ ██▌▐█▌▐█▌██▐█▌▐█▄▪▐█
  7. ▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪▀▀▀▀▀▀▀▀ █▪·▀▀▀▀
  8. original by Gekkougasz.
  9.  
  10. --]]
  11.  
  12. --this is a edit
  13.  
  14. warn ("why")
  15.  
  16. warn ("W H Y")
  17.  
  18. warn("Original made by Gekkougasz, Small source edit by 2003boobear.")
  19.  
  20. local Player = game.Players.localPlayer
  21. local Character = Player.Character
  22. local plr = game:service'Players'.LocalPlayer
  23. local char = plr.Character
  24. local hum = char.Humanoid
  25. local ra = char["Right Arm"]
  26. local la= char["Left Arm"]
  27. local rl= char["Right Leg"]
  28. local ll = char["Left Leg"]
  29. local hed = char.Head
  30. local root = char.HumanoidRootPart
  31. local rootj = root.RootJoint
  32. local tors = char.Torso
  33. local mouse = plr:GetMouse()
  34. local LeftArm = Character["Left Arm"]
  35. local RightArm = Character["Right Arm"]
  36. local LeftLeg = Character["Left Leg"]
  37. local RightLeg = Character["Right Leg"]
  38. local Head = Character.Head
  39. local Torso = Character.Torso
  40. local cam = game.Workspace.CurrentCamera
  41. local RootPart = Character.HumanoidRootPart
  42. local RootJoint = RootPart.RootJoint
  43. shirt = Instance.new("Shirt", char)
  44. shirt.Name = "Shirt"
  45. pants = Instance.new("Pants", char)
  46. pants.Name = "Pants"
  47. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1295395904"
  48. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1124043569"
  49.  
  50. CF = CFrame.new --why not
  51. angles = CFrame.Angles
  52. attack = false
  53. timetofly = true
  54. Euler = CFrame.fromEulerAnglesXYZ
  55. Rad = math.rad
  56. IT = Instance.new
  57. BrickC = BrickColor.new
  58. Cos = math.cos
  59. Acos = math.acos
  60. Sin = math.sin
  61. Asin = math.asin
  62. Abs = math.abs
  63. Mrandom = math.random
  64. Floor = math.floor
  65. random = math.random
  66. radian = math.rad
  67. Vec3 = Vector3.new
  68. cFrame = CFrame.new
  69. Euler = CFrame.fromEulerAnglesXYZ
  70.  
  71. function swait(num)
  72. if num == 0 or num == nil then
  73. game:service("RunService").Stepped:wait(0)
  74. else
  75. for i = 0, num do
  76. game:service("RunService").Stepped:wait(0)
  77. end
  78. end
  79. end
  80.  
  81. local particleemitter = Instance.new('ParticleEmitter', la)
  82. particleemitter.VelocitySpread = 350
  83. particleemitter.Lifetime = NumberRange.new(1.2)
  84. particleemitter.Speed = NumberRange.new(14)
  85. cringememe= {}
  86. for i=0, 19 do
  87. cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  88. end
  89. particleemitter.Size = NumberSequence.new(cringememe)
  90. particleemitter.Rate = 50
  91. particleemitter.LockedToPart = true
  92. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  93. particleemitter.LightEmission = 0
  94. particleemitter.Texture = "rbxassetid://1289070729"
  95. particleemitter.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  96.  
  97. local particleemitter = Instance.new('ParticleEmitter', Torso)
  98. particleemitter.VelocitySpread = 250
  99. particleemitter.Lifetime = NumberRange.new(3)
  100. particleemitter.Speed = NumberRange.new(1.5)
  101. youAreATHOT = {}
  102. for i=0, 19 do
  103. youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  104. end
  105. particleemitter.Size = NumberSequence.new(youAreATHOT)
  106. particleemitter.Rate = 10
  107. particleemitter.LockedToPart = false
  108. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  109. particleemitter.LightEmission = 0
  110. particleemitter.Texture = "rbxassetid://425767313"
  111. particleemitter.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  112.  
  113. local particleemitter = Instance.new('ParticleEmitter', ra)
  114. particleemitter.VelocitySpread = 350
  115. particleemitter.Lifetime = NumberRange.new(1)
  116. particleemitter.Speed = NumberRange.new(0)
  117. cringememe2= {}
  118. for i=0, 19 do
  119. cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  120. end
  121. particleemitter.Size = NumberSequence.new(cringememe2)
  122. particleemitter.Rate = 20
  123. particleemitter.LockedToPart = true
  124. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  125. particleemitter.LightEmission = 0
  126. particleemitter.Texture = "rbxassetid://1289070729"
  127. particleemitter.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  128.  
  129. local particleemitter = Instance.new('ParticleEmitter', rl)
  130. particleemitter.VelocitySpread = 350
  131. particleemitter.Lifetime = NumberRange.new(1)
  132. particleemitter.Speed = NumberRange.new(70)
  133. cringememe3= {}
  134. for i=0, 19 do
  135. cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  136. end
  137. particleemitter.Size = NumberSequence.new(cringememe3)
  138. particleemitter.Rate = 30
  139. particleemitter.LockedToPart = true
  140. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  141. particleemitter.LightEmission = 0
  142. particleemitter.Texture = "rbxassetid://317595781"
  143. particleemitter.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  144.  
  145. local particleemitter = Instance.new('ParticleEmitter', ll)
  146. particleemitter.VelocitySpread = 350
  147. particleemitter.Lifetime = NumberRange.new(1)
  148. particleemitter.Speed = NumberRange.new(0)
  149. cringememe4= {}
  150. for i=0, 19 do
  151. cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  152. end
  153. particleemitter.Size = NumberSequence.new(cringememe4)
  154. particleemitter.Rate = 30
  155. particleemitter.LockedToPart = true
  156. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  157. particleemitter.LightEmission = 0
  158. particleemitter.Texture = "rbxassetid://317595781"
  159. particleemitter.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  160.  
  161. SANES=Instance.new("Sound",Torso)
  162. SANES.SoundId="rbxassetid://1441359561"
  163. SANES.Volume=10
  164. SANES.Looped=true
  165. SANES:Play()
  166.  
  167. coroutine.resume(coroutine.create(function()
  168. while true do
  169. swait()
  170. SANES.Parent = Torso
  171. end
  172. end))
  173.  
  174. local a=game:GetService('Players').LocalPlayer local b=game:GetService('Players').LocalPlayer.Character local gay = b:WaitForChild('Humanoid') gay.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999 gay.Health = gay.MaxHealth local c=a:GetMouse()local a=Instance.new("BillboardGui",b)a.Size=UDim2.new(0,100,0,40)a.StudsOffset=Vector3.new(0,2,0)a.Adornee=b.Head a.Name="Tecks"local d=Instance.new("TextLabel",a)d.BackgroundTransparency=1 d.BorderSizePixel=0 d.Text="sANS GAMING"d.Font="Arcade"d.TextSize=30 d.TextStrokeTransparency=0 d.TextStrokeColor3=Color3.new(0,0,0)d.Size=UDim2.new(1,0,0.5,0)b.Head.face.Texture='rbxassetid://400387868'for a,a in next,game:GetService('Players').LocalPlayer.Character:GetChildren()do if a:IsA('Accessory')then a:Destroy()end end a=Instance.new("SelectionBox",workspace)c.Button1Down:connect(function()local a=c.Target if a.Parent:FindFirstChild("Humanoid")and a.Parent:FindFirstChild("Torso")then a.Parent.Humanoid.Health=0 d.Text="you are died"wait(2)d.Text='sANS GAMING'end end)c.Move:connect(function()a.Adornee=c.Target end)while wait()do d.TextColor3=Color3.new(1,0,0)for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r,d.TextColor3.g+(17/255),d.TextColor3.b)end for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r-(17/255),d.TextColor3.g,d.TextColor3.b)end for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r,d.TextColor3.g,d.TextColor3.b+(17/255))end for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r,d.TextColor3.g-(17/255),d.TextColor3.b)end for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r+(17/255),d.TextColor3.g,d.TextColor3.b)end for a=1,15 do game:GetService("RunService").RenderStepped:wait()d.TextColor3=Color3.new(d.TextColor3.r,d.TextColor3.g,d.TextColor3.b-(17/255)) -----------------------
  175. --MemeusV2--
  176. -------------------------------------------------------
  177. --A script By makhail07
  178.  
  179. --Discord Creterisk#2958
  180. -------------------------------------------------------
  181.  
  182. local FavIDs = {
  183. 340106355, --Nefl Crystals
  184. 927529620, --Dimension
  185. 876981900, --Fantasy
  186. 398987889, --Ordinary Days
  187. 1117396305, --Oh wait, it's you.
  188. 885996042, --Action Winter Journey
  189. 919231299, --Sprawling Idiot Effigy
  190. 743466274, --Good Day Sunshine
  191. 727411183, --Knife Fight
  192. 1402748531, --The Earth Is Counting On You!
  193. 595230126 --Robot Language
  194. }
  195.  
  196.  
  197.  
  198. --The reality of my life isn't real but a Universe -makhail07
  199. wait()
  200. local plr = game:service'Players'.LocalPlayer
  201. print('Local User is '..plr.Name)
  202. local char = plr.Character
  203. local hum = char.Humanoid
  204. local ra = char["Right Arm"]
  205. local la= char["Left Arm"]
  206. local rl= char["Right Leg"]
  207. local ll = char["Left Leg"]
  208. local hed = char.Head
  209. local root = char.HumanoidRootPart
  210. local rootj = root.RootJoint
  211. local tors = char.Torso
  212. local mouse = plr:GetMouse()
  213. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  214. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  215. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  216.  
  217.  
  218. -------------------------------------------------------
  219. --Start Good Stuff--
  220. -------------------------------------------------------
  221. CF = CFrame.new
  222. angles = CFrame.Angles
  223. attack = false
  224. Euler = CFrame.fromEulerAnglesXYZ
  225. Rad = math.rad
  226. IT = Instance.new
  227. BrickC = BrickColor.new
  228. Cos = math.cos
  229. Acos = math.acos
  230. Sin = math.sin
  231. Asin = math.asin
  232. Abs = math.abs
  233. Mrandom = math.random
  234. Floor = math.floor
  235. -------------------------------------------------------
  236. --End Good Stuff--
  237. -------------------------------------------------------
  238. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  239. RSH, LSH = nil, nil
  240. RW = Instance.new("Weld")
  241. LW = Instance.new("Weld")
  242. RH = tors["Right Hip"]
  243. LH = tors["Left Hip"]
  244. RSH = tors["Right Shoulder"]
  245. LSH = tors["Left Shoulder"]
  246. RSH.Parent = nil
  247. LSH.Parent = nil
  248. RW.Name = "RW"
  249. RW.Part0 = tors
  250. RW.C0 = CF(1.5, 0.5, 0)
  251. RW.C1 = CF(0, 0.5, 0)
  252. RW.Part1 = ra
  253. RW.Parent = tors
  254. LW.Name = "LW"
  255. LW.Part0 = tors
  256. LW.C0 = CF(-1.5, 0.5, 0)
  257. LW.C1 = CF(0, 0.5, 0)
  258. LW.Part1 = la
  259. LW.Parent = tors
  260. Effects = {}
  261.  
  262. -------------------------------------------------------
  263. --Start HeartBeat--
  264. -------------------------------------------------------
  265. ArtificialHB = Instance.new("BindableEvent", script)
  266. ArtificialHB.Name = "Heartbeat"
  267. script:WaitForChild("Heartbeat")
  268.  
  269. frame = 1 / 60
  270. tf = 0
  271. allowframeloss = false
  272. tossremainder = false
  273.  
  274.  
  275. lastframe = tick()
  276. script.Heartbeat:Fire()
  277.  
  278.  
  279. game:GetService("RunService").Heartbeat:connect(function(s, p)
  280. tf = tf + s
  281. if tf >= frame then
  282. if allowframeloss then
  283. script.Heartbeat:Fire()
  284. lastframe = tick()
  285. else
  286. for i = 1, math.floor(tf / frame) do
  287. script.Heartbeat:Fire()
  288. end
  289. lastframe = tick()
  290. end
  291. if tossremainder then
  292. tf = 0
  293. else
  294. tf = tf - frame * math.floor(tf / frame)
  295. end
  296. end
  297. end)
  298. -------------------------------------------------------
  299. --End HeartBeat--
  300. -------------------------------------------------------
  301.  
  302. -------------------------------------------------------
  303. --Start Kyu's shitty stuff--
  304. -------------------------------------------------------
  305.  
  306. function ragdoll(model)
  307. local char = model
  308. torso = char.HumanoidRootPart
  309. torso2 = char.Torso
  310. LW.Parent = nil
  311. RW.Parent = nil
  312. LH.Parent = nil
  313. RH.Parent = nil
  314. if hum ~= nil then
  315. hum.PlatformStand = true
  316. end
  317.  
  318. local Head = char:FindFirstChild("Head")
  319. if Head then
  320. local Neck = Instance.new("Weld")
  321. Neck.Name = "Neck"
  322. Neck.Part0 = torso
  323. Neck.Part1 = Head
  324. Neck.C0 = CFrame.new(0, 1.5, 0)
  325. Neck.C1 = CFrame.new()
  326. Neck.Parent = torso
  327. end
  328. local Limb = char:FindFirstChild("Right Arm")
  329. if Limb then
  330.  
  331. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  332. local Joint = Instance.new("Glue")
  333. Joint.Name = "RightShoulder"
  334. Joint.Part0 = torso
  335. Joint.Part1 = Limb
  336. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  337. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  338. Joint.Parent = torso
  339.  
  340. local B = Instance.new("Part")
  341. B.TopSurface = 0
  342. B.BottomSurface = 0
  343. B.formFactor = "Symmetric"
  344. B.Size = Vector3.new(1, 1, 1)
  345. B.Transparency = 1
  346. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  347. B.Parent = char
  348. local W = Instance.new("Weld")
  349. W.Part0 = Limb
  350. W.Part1 = B
  351. W.C0 = CFrame.new(0, -0.5, 0)
  352. W.Parent = Limb
  353.  
  354. end
  355. local Limb = char:FindFirstChild("Left Arm")
  356. if Limb then
  357.  
  358. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  359. local Joint = Instance.new("Glue")
  360. Joint.Name = "LeftShoulder"
  361. Joint.Part0 = torso
  362. Joint.Part1 = Limb
  363. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  364. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  365. Joint.Parent = torso
  366.  
  367. local B = Instance.new("Part")
  368. B.TopSurface = 0
  369. B.BottomSurface = 0
  370. B.formFactor = "Symmetric"
  371. B.Size = Vector3.new(1, 1, 1)
  372. B.Transparency = 1
  373. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  374. B.Parent = char
  375. local W = Instance.new("Weld")
  376. W.Part0 = Limb
  377. W.Part1 = B
  378. W.C0 = CFrame.new(0, -0.5, 0)
  379. W.Parent = Limb
  380.  
  381. end
  382. local Limb = char:FindFirstChild("Right Leg")
  383. if Limb then
  384.  
  385. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  386. local Joint = Instance.new("Glue")
  387. Joint.Name = "RightHip"
  388. Joint.Part0 = torso
  389. Joint.Part1 = Limb
  390. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  391. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  392. Joint.Parent = torso
  393.  
  394. local B = Instance.new("Part")
  395. B.TopSurface = 0
  396. B.BottomSurface = 0
  397. B.formFactor = "Symmetric"
  398. B.Size = Vector3.new(1, 1, 1)
  399. B.Transparency = 1
  400. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  401. B.Parent = char
  402. local W = Instance.new("Weld")
  403. W.Part0 = Limb
  404. W.Part1 = B
  405. W.C0 = CFrame.new(0, -0.5, 0)
  406. W.Parent = Limb
  407.  
  408. end
  409. local Limb = char:FindFirstChild("Left Leg")
  410. if Limb then
  411.  
  412. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  413. local Joint = Instance.new("Glue")
  414. Joint.Name = "LeftHip"
  415. Joint.Part0 = torso
  416. Joint.Part1 = Limb
  417. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  418. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  419. Joint.Parent = torso
  420.  
  421. local B = Instance.new("Part")
  422. B.TopSurface = 0
  423. B.BottomSurface = 0
  424. B.formFactor = "Symmetric"
  425. B.Size = Vector3.new(1, 1, 1)
  426. B.Transparency = 1
  427. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  428. B.Parent = char
  429. local W = Instance.new("Weld")
  430. W.Part0 = Limb
  431. W.Part1 = B
  432. W.C0 = CFrame.new(0, -0.5, 0)
  433. W.Parent = Limb
  434.  
  435. end
  436. --[
  437. local Bar = Instance.new("Part")
  438. Bar.TopSurface = 0
  439. Bar.BottomSurface = 0
  440. Bar.formFactor = "Symmetric"
  441. Bar.Size = Vector3.new(1, 1, 1)
  442. Bar.Transparency = 1
  443. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  444. Bar.Parent = char
  445. local Weld = Instance.new("Weld")
  446. Weld.Part0 = torso
  447. Weld.Part1 = Bar
  448. Weld.C0 = CFrame.new(0, 0.5, 0)
  449. Weld.Parent = torso
  450. --]]
  451.  
  452. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  453.  
  454. end
  455.  
  456. -------------------------------------------------------
  457. --End Kyu's shitty stuff--
  458. -------------------------------------------------------
  459.  
  460. -------------------------------------------------------
  461. --Start Important Functions--
  462. -------------------------------------------------------
  463. function swait(num)
  464. if num == 0 or num == nil then
  465. game:service("RunService").Stepped:wait(0)
  466. else
  467. for i = 0, num do
  468. game:service("RunService").Stepped:wait(0)
  469. end
  470. end
  471. end
  472. function thread(f)
  473. coroutine.resume(coroutine.create(f))
  474. end
  475. function clerp(a, b, t)
  476. local qa = {
  477. QuaternionFromCFrame(a)
  478. }
  479. local qb = {
  480. QuaternionFromCFrame(b)
  481. }
  482. local ax, ay, az = a.x, a.y, a.z
  483. local bx, by, bz = b.x, b.y, b.z
  484. local _t = 1 - t
  485. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  486. end
  487. function QuaternionFromCFrame(cf)
  488. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  489. local trace = m00 + m11 + m22
  490. if trace > 0 then
  491. local s = math.sqrt(1 + trace)
  492. local recip = 0.5 / s
  493. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  494. else
  495. local i = 0
  496. if m00 < m11 then
  497. i = 1
  498. end
  499. if m22 > (i == 0 and m00 or m11) then
  500. i = 2
  501. end
  502. if i == 0 then
  503. local s = math.sqrt(m00 - m11 - m22 + 1)
  504. local recip = 0.5 / s
  505. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  506. elseif i == 1 then
  507. local s = math.sqrt(m11 - m22 - m00 + 1)
  508. local recip = 0.5 / s
  509. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  510. elseif i == 2 then
  511. local s = math.sqrt(m22 - m00 - m11 + 1)
  512. local recip = 0.5 / s
  513. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  514. end
  515. end
  516. end
  517. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  518. local xs, ys, zs = x + x, y + y, z + z
  519. local wx, wy, wz = w * xs, w * ys, w * zs
  520. local xx = x * xs
  521. local xy = x * ys
  522. local xz = x * zs
  523. local yy = y * ys
  524. local yz = y * zs
  525. local zz = z * zs
  526. 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))
  527. end
  528. function QuaternionSlerp(a, b, t)
  529. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  530. local startInterp, finishInterp
  531. if cosTheta >= 1.0E-4 then
  532. if 1 - cosTheta > 1.0E-4 then
  533. local theta = math.acos(cosTheta)
  534. local invSinTheta = 1 / Sin(theta)
  535. startInterp = Sin((1 - t) * theta) * invSinTheta
  536. finishInterp = Sin(t * theta) * invSinTheta
  537. else
  538. startInterp = 1 - t
  539. finishInterp = t
  540. end
  541. elseif 1 + cosTheta > 1.0E-4 then
  542. local theta = math.acos(-cosTheta)
  543. local invSinTheta = 1 / Sin(theta)
  544. startInterp = Sin((t - 1) * theta) * invSinTheta
  545. finishInterp = Sin(t * theta) * invSinTheta
  546. else
  547. startInterp = t - 1
  548. finishInterp = t
  549. end
  550. 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
  551. end
  552. function rayCast(Position, Direction, Range, Ignore)
  553. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  554. end
  555. local RbxUtility = LoadLibrary("RbxUtility")
  556. local Create = RbxUtility.Create
  557.  
  558. -------------------------------------------------------
  559. --Start Damage Function--
  560. -------------------------------------------------------
  561. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  562. if hit.Parent == nil then
  563. return
  564. end
  565. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  566. for _, v in pairs(hit.Parent:children()) do
  567. if v:IsA("Humanoid") then
  568. h = v
  569. end
  570. end
  571. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  572. warn'No R15 allowed'
  573. hit.Parent:FindFirstChild("Head"):BreakJoints()
  574. end
  575.  
  576. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  577. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  578. if hit.Parent.DebounceHit.Value == true then
  579. return
  580. end
  581. end
  582. if insta == true then
  583. hit.Parent:FindFirstChild("Head"):BreakJoints()
  584. end
  585. local c = Create("ObjectValue"){
  586. Name = "creator",
  587. Value = game:service("Players").LocalPlayer,
  588. Parent = h,
  589. }
  590. game:GetService("Debris"):AddItem(c, .5)
  591. if HitSound ~= nil and HitPitch ~= nil then
  592. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  593. end
  594. local Damage = math.random(minim, maxim)
  595. local blocked = false
  596. local block = hit.Parent:findFirstChild("Block")
  597. if block ~= nil then
  598. if block.className == "IntValue" then
  599. if block.Value > 0 then
  600. blocked = true
  601. block.Value = block.Value - 1
  602. print(block.Value)
  603. end
  604. end
  605. end
  606. if blocked == false then
  607. h.Health = h.Health - Damage
  608. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  609. else
  610. h.Health = h.Health - (Damage / 2)
  611. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  612. end
  613. if Type == "Knockdown" then
  614. local hum = hit.Parent.Humanoid
  615. hum.PlatformStand = true
  616. coroutine.resume(coroutine.create(function(HHumanoid)
  617. swait(1)
  618. HHumanoid.PlatformStand = false
  619. end), hum)
  620. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  621. local bodvol = Create("BodyVelocity"){
  622. velocity = angle * knockback,
  623. P = 5000,
  624. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  625. Parent = hit,
  626. }
  627. local rl = Create("BodyAngularVelocity"){
  628. P = 3000,
  629. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  630. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  631. Parent = hit,
  632. }
  633. game:GetService("Debris"):AddItem(bodvol, .5)
  634. game:GetService("Debris"):AddItem(rl, .5)
  635. elseif Type == "Normal" then
  636. local vp = Create("BodyVelocity"){
  637. P = 500,
  638. maxForce = Vector3.new(math.huge, 0, math.huge),
  639. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  640. }
  641. if knockback > 0 then
  642. vp.Parent = hit.Parent.Torso
  643. end
  644. game:GetService("Debris"):AddItem(vp, .5)
  645. elseif Type == "Up" then
  646. local bodyVelocity = Create("BodyVelocity"){
  647. velocity = Vector3.new(0, 20, 0),
  648. P = 5000,
  649. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  650. Parent = hit,
  651. }
  652. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  653. elseif Type == "DarkUp" then
  654. coroutine.resume(coroutine.create(function()
  655. for i = 0, 1, 0.1 do
  656. swait()
  657. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  658. end
  659. end))
  660. local bodyVelocity = Create("BodyVelocity"){
  661. velocity = Vector3.new(0, 20, 0),
  662. P = 5000,
  663. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  664. Parent = hit,
  665. }
  666. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  667. elseif Type == "Snare" then
  668. local bp = Create("BodyPosition"){
  669. P = 2000,
  670. D = 100,
  671. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  672. position = hit.Parent.Torso.Position,
  673. Parent = hit.Parent.Torso,
  674. }
  675. game:GetService("Debris"):AddItem(bp, 1)
  676. elseif Type == "Freeze" then
  677. local BodPos = Create("BodyPosition"){
  678. P = 50000,
  679. D = 1000,
  680. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  681. position = hit.Parent.Torso.Position,
  682. Parent = hit.Parent.Torso,
  683. }
  684. local BodGy = Create("BodyGyro") {
  685. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  686. P = 20e+003,
  687. Parent = hit.Parent.Torso,
  688. cframe = hit.Parent.Torso.CFrame,
  689. }
  690. hit.Parent.Torso.Anchored = true
  691. coroutine.resume(coroutine.create(function(Part)
  692. swait(1.5)
  693. Part.Anchored = false
  694. end), hit.Parent.Torso)
  695. game:GetService("Debris"):AddItem(BodPos, 3)
  696. game:GetService("Debris"):AddItem(BodGy, 3)
  697. end
  698. local debounce = Create("BoolValue"){
  699. Name = "DebounceHit",
  700. Parent = hit.Parent,
  701. Value = true,
  702. }
  703. game:GetService("Debris"):AddItem(debounce, Delay)
  704. c = Create("ObjectValue"){
  705. Name = "creator",
  706. Value = Player,
  707. Parent = h,
  708. }
  709. game:GetService("Debris"):AddItem(c, .5)
  710. end
  711. end
  712. -------------------------------------------------------
  713. --End Damage Function--
  714. -------------------------------------------------------
  715.  
  716. -------------------------------------------------------
  717. --Start Damage Function Customization--
  718. -------------------------------------------------------
  719. function ShowDamage(Pos, Text, Time, Color)
  720. local Rate = (1 / 30)
  721. local Pos = (Pos or Vector3.new(0, 0, 0))
  722. local Text = (Text or "")
  723. local Time = (Time or 2)
  724. local Color = (Color or Color3.new(1, 0, 1))
  725. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  726. EffectPart.Anchored = true
  727. local BillboardGui = Create("BillboardGui"){
  728. Size = UDim2.new(3, 0, 3, 0),
  729. Adornee = EffectPart,
  730. Parent = EffectPart,
  731. }
  732. local TextLabel = Create("TextLabel"){
  733. BackgroundTransparency = 1,
  734. Size = UDim2.new(1, 0, 1, 0),
  735. Text = Text,
  736. Font = "Highway",
  737. TextColor3 = Color,
  738. TextScaled = true,
  739. Parent = BillboardGui,
  740. }
  741. game.Debris:AddItem(EffectPart, (Time))
  742. EffectPart.Parent = game:GetService("Workspace")
  743. delay(0, function()
  744. local Frames = (Time / Rate)
  745. for Frame = 1, Frames do
  746. wait(Rate)
  747. local Percent = (Frame / Frames)
  748. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  749. TextLabel.TextTransparency = Percent
  750. end
  751. if EffectPart and EffectPart.Parent then
  752. EffectPart:Destroy()
  753. end
  754. end)
  755. end
  756. -------------------------------------------------------
  757. --End Damage Function Customization--
  758. -------------------------------------------------------
  759.  
  760. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  761. for _, c in pairs(workspace:children()) do
  762. local hum = c:findFirstChild("Humanoid")
  763. if hum ~= nil then
  764. local head = c:findFirstChild("Head")
  765. if head ~= nil then
  766. local targ = head.Position - Part.Position
  767. local mag = targ.magnitude
  768. if magni >= mag and c.Name ~= plr.Name then
  769. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  770. end
  771. end
  772. end
  773. end
  774. end
  775.  
  776.  
  777. CFuncs = {
  778. Part = {
  779. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  780. local Part = Create("Part")({
  781. Parent = Parent,
  782. Reflectance = Reflectance,
  783. Transparency = Transparency,
  784. CanCollide = false,
  785. Locked = true,
  786. BrickColor = BrickColor.new(tostring(BColor)),
  787. Name = Name,
  788. Size = Size,
  789. Material = Material
  790. })
  791. RemoveOutlines(Part)
  792. return Part
  793. end
  794. },
  795. Mesh = {
  796. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  797. local Msh = Create(Mesh)({
  798. Parent = Part,
  799. Offset = OffSet,
  800. Scale = Scale
  801. })
  802. if Mesh == "SpecialMesh" then
  803. Msh.MeshType = MeshType
  804. Msh.MeshId = MeshId
  805. end
  806. return Msh
  807. end
  808. },
  809. Mesh = {
  810. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  811. local Msh = Create(Mesh)({
  812. Parent = Part,
  813. Offset = OffSet,
  814. Scale = Scale
  815. })
  816. if Mesh == "SpecialMesh" then
  817. Msh.MeshType = MeshType
  818. Msh.MeshId = MeshId
  819. end
  820. return Msh
  821. end
  822. },
  823. Weld = {
  824. Create = function(Parent, Part0, Part1, C0, C1)
  825. local Weld = Create("Weld")({
  826. Parent = Parent,
  827. Part0 = Part0,
  828. Part1 = Part1,
  829. C0 = C0,
  830. C1 = C1
  831. })
  832. return Weld
  833. end
  834. },
  835. Sound = {
  836. Create = function(id, par, vol, pit)
  837. coroutine.resume(coroutine.create(function()
  838. local S = Create("Sound")({
  839. Volume = vol,
  840. Pitch = pit or 1,
  841. SoundId = id,
  842. Parent = par or workspace
  843. })
  844. wait()
  845. S:play()
  846. game:GetService("Debris"):AddItem(S, 6)
  847. end))
  848. end
  849. },
  850. ParticleEmitter = {
  851. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  852. local fp = Create("ParticleEmitter")({
  853. Parent = Parent,
  854. Color = ColorSequence.new(Color1, Color2),
  855. LightEmission = LightEmission,
  856. Size = Size,
  857. Texture = Texture,
  858. Transparency = Transparency,
  859. ZOffset = ZOffset,
  860. Acceleration = Accel,
  861. Drag = Drag,
  862. LockedToPart = LockedToPart,
  863. VelocityInheritance = VelocityInheritance,
  864. EmissionDirection = EmissionDirection,
  865. Enabled = Enabled,
  866. Lifetime = LifeTime,
  867. Rate = Rate,
  868. Rotation = Rotation,
  869. RotSpeed = RotSpeed,
  870. Speed = Speed,
  871. VelocitySpread = VelocitySpread
  872. })
  873. return fp
  874. end
  875. }
  876. }
  877. function RemoveOutlines(part)
  878. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  879. end
  880. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  881. local Part = Create("Part")({
  882. formFactor = FormFactor,
  883. Parent = Parent,
  884. Reflectance = Reflectance,
  885. Transparency = Transparency,
  886. CanCollide = false,
  887. Locked = true,
  888. BrickColor = BrickColor.new(tostring(BColor)),
  889. Name = Name,
  890. Size = Size,
  891. Material = Material
  892. })
  893. RemoveOutlines(Part)
  894. return Part
  895. end
  896. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  897. local Msh = Create(Mesh)({
  898. Parent = Part,
  899. Offset = OffSet,
  900. Scale = Scale
  901. })
  902. if Mesh == "SpecialMesh" then
  903. Msh.MeshType = MeshType
  904. Msh.MeshId = MeshId
  905. end
  906. return Msh
  907. end
  908. function CreateWeld(Parent, Part0, Part1, C0, C1)
  909. local Weld = Create("Weld")({
  910. Parent = Parent,
  911. Part0 = Part0,
  912. Part1 = Part1,
  913. C0 = C0,
  914. C1 = C1
  915. })
  916. return Weld
  917. end
  918.  
  919.  
  920. -------------------------------------------------------
  921. --Start Effect Function--
  922. -------------------------------------------------------
  923. EffectModel = Instance.new("Model", char)
  924. Effects = {
  925. Block = {
  926. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  927. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  928. prt.Anchored = true
  929. prt.CFrame = cframe
  930. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  931. game:GetService("Debris"):AddItem(prt, 10)
  932. if Type == 1 or Type == nil then
  933. table.insert(Effects, {
  934. prt,
  935. "Block1",
  936. delay,
  937. x3,
  938. y3,
  939. z3,
  940. msh
  941. })
  942. elseif Type == 2 then
  943. table.insert(Effects, {
  944. prt,
  945. "Block2",
  946. delay,
  947. x3,
  948. y3,
  949. z3,
  950. msh
  951. })
  952. else
  953. table.insert(Effects, {
  954. prt,
  955. "Block3",
  956. delay,
  957. x3,
  958. y3,
  959. z3,
  960. msh
  961. })
  962. end
  963. end
  964. },
  965. Sphere = {
  966. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  967. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  968. prt.Anchored = true
  969. prt.CFrame = cframe
  970. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  971. game:GetService("Debris"):AddItem(prt, 10)
  972. table.insert(Effects, {
  973. prt,
  974. "Cylinder",
  975. delay,
  976. x3,
  977. y3,
  978. z3,
  979. msh
  980. })
  981. end
  982. },
  983. Cylinder = {
  984. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  985. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  986. prt.Anchored = true
  987. prt.CFrame = cframe
  988. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  989. game:GetService("Debris"):AddItem(prt, 10)
  990. table.insert(Effects, {
  991. prt,
  992. "Cylinder",
  993. delay,
  994. x3,
  995. y3,
  996. z3,
  997. msh
  998. })
  999. end
  1000. },
  1001. Wave = {
  1002. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1003. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1004. prt.Anchored = true
  1005. prt.CFrame = cframe
  1006. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1007. game:GetService("Debris"):AddItem(prt, 10)
  1008. table.insert(Effects, {
  1009. prt,
  1010. "Cylinder",
  1011. delay,
  1012. x3 / 60,
  1013. y3 / 60,
  1014. z3 / 60,
  1015. msh
  1016. })
  1017. end
  1018. },
  1019. Ring = {
  1020. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1021. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1022. prt.Anchored = true
  1023. prt.CFrame = cframe
  1024. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1025. game:GetService("Debris"):AddItem(prt, 10)
  1026. table.insert(Effects, {
  1027. prt,
  1028. "Cylinder",
  1029. delay,
  1030. x3,
  1031. y3,
  1032. z3,
  1033. msh
  1034. })
  1035. end
  1036. },
  1037. Break = {
  1038. Create = function(brickcolor, cframe, x1, y1, z1)
  1039. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1040. prt.Anchored = true
  1041. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1042. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1043. local num = math.random(10, 50) / 1000
  1044. game:GetService("Debris"):AddItem(prt, 10)
  1045. table.insert(Effects, {
  1046. prt,
  1047. "Shatter",
  1048. num,
  1049. prt.CFrame,
  1050. math.random() - math.random(),
  1051. 0,
  1052. math.random(50, 100) / 100
  1053. })
  1054. end
  1055. },
  1056. Spiral = {
  1057. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1058. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1059. prt.Anchored = true
  1060. prt.CFrame = cframe
  1061. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1062. game:GetService("Debris"):AddItem(prt, 10)
  1063. table.insert(Effects, {
  1064. prt,
  1065. "Cylinder",
  1066. delay,
  1067. x3,
  1068. y3,
  1069. z3,
  1070. msh
  1071. })
  1072. end
  1073. },
  1074. Push = {
  1075. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1076. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1077. prt.Anchored = true
  1078. prt.CFrame = cframe
  1079. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1080. game:GetService("Debris"):AddItem(prt, 10)
  1081. table.insert(Effects, {
  1082. prt,
  1083. "Cylinder",
  1084. delay,
  1085. x3,
  1086. y3,
  1087. z3,
  1088. msh
  1089. })
  1090. end
  1091. }
  1092. }
  1093. -------------------------------------------------------
  1094. --End Effect Function--
  1095. -------------------------------------------------------
  1096.  
  1097. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1098. local NSound = nil
  1099. coroutine.resume(coroutine.create(function()
  1100. NSound = Instance.new("Sound", PARENT)
  1101. NSound.Volume = VOLUME
  1102. NSound.Pitch = PITCH
  1103. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1104. swait()
  1105. NSound:play()
  1106. game:GetService("Debris"):AddItem(NSound, 10)
  1107. end))
  1108. return NSound
  1109. end
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115. -------------------------------------------------------
  1116. --End Important Functions--
  1117. -------------------------------------------------------
  1118.  
  1119.  
  1120. -------------------------------------------------------
  1121. --Start Music Option--
  1122. -------------------------------------------------------
  1123. local Music = Instance.new("Sound",tors)
  1124. Music.Volume = 2.5
  1125. Music.SoundId = "rbxassetid://"
  1126. Music.Looped = true
  1127. Music.Pitch = 1 --Pitcher
  1128. Music:Play()
  1129. -------------------------------------------------------
  1130. --End Music Option--
  1131. -------------------------------------------------------
  1132.  
  1133.  
  1134. -------------------------------------------------------
  1135. --Start Attacks N Stuff--
  1136. -------------------------------------------------------
  1137. local sine=0
  1138. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1139. local Hitboxpart = Instance.new("Part", EffectModel)
  1140. RemoveOutlines(Hitboxpart)
  1141. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1142. Hitboxpart.CanCollide = false
  1143. Hitboxpart.Transparency = 1
  1144. Hitboxpart.Anchored = true
  1145. Hitboxpart.CFrame = Pose
  1146. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1147. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1148. end
  1149. function GEtOuT()
  1150. attack = true
  1151. hum.WalkSpeed = 2.01
  1152. CreateSound("749031341", hed, 10, 1)
  1153. for i = 0,2,0.1 do
  1154. swait()
  1155. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(50), Rad(0), Rad(0)), 0.15)
  1156. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1157. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15)
  1158. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15)
  1159. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1)
  1160. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1)
  1161. end
  1162. HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 7, 10, 53, "Knockdown")
  1163. for i = 0,4,0.1 do
  1164. swait()
  1165. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(-50), Rad(0), Rad(0)), 0.15)
  1166. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1167. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15)
  1168. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15)
  1169. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1)
  1170. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1)
  1171. end
  1172. local Blobby = Instance.new("Part", char)
  1173. Blobby.Name = "Blob"
  1174. Blobby.CanCollide = false
  1175. Blobby.BrickColor = BrickColor.new("Really black")
  1176. Blobby.Transparency = 0
  1177. Blobby.Material = "Plastic"
  1178. Blobby.Size = Vector3.new(1, 1, 2)
  1179. Blobby.TopSurface = Enum.SurfaceType.Smooth
  1180. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  1181.  
  1182. local Weld = Instance.new("Weld", Blobby)
  1183. Weld.Part0 = ra
  1184. Weld.Part1 = Blobby
  1185. Weld.C1 = CFrame.new(0, -.3, 1.4)
  1186. Weld.C0 = CFrame.Angles(math.rad(-90),0,0)
  1187.  
  1188. local M2 = Instance.new("SpecialMesh")
  1189. M2.Parent = Blobby
  1190. M2.MeshId = "http://www.roblox.com/asset/?id=491267221"
  1191. M2.TextureId = "http://www.roblox.com/asset/?id=491267267"
  1192. M2.Scale = Vector3.new(0.65, 0.65, 0.65)
  1193. for i = 0,6,0.1 do
  1194. swait()
  1195. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1196. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1197. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1198. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1199. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1)
  1200. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1201. end
  1202. Blobby.Transparency = 1
  1203. Blobby:Destroy()
  1204. attack = false
  1205. hum.WalkSpeed = 16
  1206. end
  1207.  
  1208. function ShutTheHellUp()
  1209. attack = true
  1210. hum.WalkSpeed = 2.01
  1211. CreateSound("336377340", hed, 10, 1)
  1212. for i = 0,3,0.1 do
  1213. swait()
  1214. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1215. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1216. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1217. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1218. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1219. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1220. end
  1221. for i = 0,1.2,0.1 do
  1222. swait()
  1223. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1224. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  1225. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1226. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1227. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1228. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1229. end
  1230. for i = 0,1.2,0.1 do
  1231. swait()
  1232. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1233. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1234. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1235. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1236. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1237. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1238. end
  1239. for i = 0,1.2,0.1 do
  1240. swait()
  1241. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1242. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  1243. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1244. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1245. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1246. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1247. end
  1248. for i = 0,1.2,0.1 do
  1249. swait()
  1250. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1251. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1252. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1253. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1254. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1255. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1256. end
  1257. for i = 0,2,0.1 do
  1258. swait()
  1259. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1260. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1261. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1262. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1263. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(120), Rad(0), Rad(5)), 0.1)
  1264. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1265. end
  1266. for i = 0,2,0.1 do
  1267. swait()
  1268. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1269. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1270. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1271. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1272. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1273. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1274. end
  1275. hum.WalkSpeed = 16
  1276. attack = false
  1277. end
  1278.  
  1279. function SpinMeDad()
  1280. attack = true
  1281. hum.WalkSpeed = 1.01
  1282. CreateSound("145799973", hed, 10, 1)
  1283. for i = 0,58,0.1 do
  1284. swait()
  1285. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15)
  1286. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1287. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1288. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1289. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1290. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1291. end
  1292. hum.WalkSpeed = 16
  1293. attack = false
  1294. end
  1295.  
  1296. function EndMySufferingV2()
  1297. attack = true
  1298. hum.WalkSpeed = 1.01
  1299. CreateSound("577475178", hed, 10, 1)
  1300. for i = 0,18,0.1 do
  1301. swait()
  1302. rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(-10),math.rad(0)),0.15)
  1303. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  1304. RH.C0=clerp(RH.C0,CF(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  1305. LH.C0=clerp(LH.C0,CF(-1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(-20)),0.15)
  1306. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5+0.1*math.sin(sine/30), -0.6) * angles(math.rad(-0), math.rad(10), math.rad(-110)), 0.1)
  1307. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(-0), math.rad(-10), math.rad(-105)), 0.1)
  1308. end
  1309. attack = false
  1310. hum.WalkSpeed = 16
  1311. end
  1312.  
  1313. function MYSPAGHETTTTTTT()
  1314. attack = true
  1315. hum.WalkSpeed = 1.01
  1316. CreateSound("1282149571", hed, 10, 1)
  1317. for i = 0,4,0.1 do
  1318. swait()
  1319. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1320. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  1321. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1322. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1323. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(5)), 0.1)
  1324. LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115 + 4), Rad(45), Rad(50)), 0.1)
  1325. end
  1326. for i = 0,5,0.1 do
  1327. swait()
  1328. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1329. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1330. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1331. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1332. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1)
  1333. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1)
  1334. end
  1335. for i = 0,6,0.1 do
  1336. swait()
  1337. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1338. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1339. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1340. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1341. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(-10)), 0.1)
  1342. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(10)), 0.1)
  1343. end
  1344. attack = false
  1345. hum.WalkSpeed = 16
  1346. end
  1347.  
  1348. function FINLAND()
  1349. attack = true
  1350. hum.WalkSpeed = 1.01
  1351. CreateSound("313099773", hed, 10, 1)
  1352. for i = 0,6,0.1 do
  1353. swait()
  1354. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1355. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-90), Rad(0), Rad(0)), 0.3)
  1356. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1357. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1358. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1)
  1359. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1)
  1360. end
  1361. attack = false
  1362. hum.WalkSpeed = 16
  1363. end
  1364.  
  1365. function NothingPersonal()
  1366. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1367. local HITBODY = mouse.Target.Parent
  1368. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1369. local HEAD = HITBODY:FindFirstChild("Head")
  1370. local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1371. if TORS ~= nil and HUMAN ~= nil then
  1372. attack = true
  1373. root.CFrame = TORS.CFrame * CFrame.new(-1,0,3)
  1374. TORS.Anchored = true
  1375. hum.WalkSpeed = 0
  1376. CreateSound("1255922819", hed, 10, 1)
  1377. end
  1378. wait(3.5)
  1379. for i = 0,9,0.1 do
  1380. swait()
  1381. for i = 1,2 do
  1382. Effects.Sphere.Create(BrickColor.new("Really red"), TORS.CFrame*CFrame.new(math.random(-200,200)/100,math.random(-300,200)/100,math.random(-100,100)/100), 1, 1, 1, 15, 15, 15, 0.2)
  1383. end
  1384. end
  1385. wait(.5)
  1386. TORS.Anchored = false
  1387. attack = false
  1388. hum.WalkSpeed = 16
  1389. end
  1390. end
  1391.  
  1392. function VeryMuchWorrying()
  1393. attack = true
  1394. hum.WalkSpeed = 1.01
  1395. CreateSound("1395854043", hed, 10, 1)
  1396. for i = 0,14,0.1 do
  1397. swait()
  1398. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1399. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1400. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1401. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1402. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-145)), 0.1)
  1403. LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(145)), 0.1)
  1404. end
  1405. attack = false
  1406. hum.WalkSpeed = 16
  1407. end
  1408.  
  1409. function AnotherOne()
  1410. attack = true
  1411. hum.WalkSpeed = 1.01
  1412. local icri = CreateSound("1205111204", hed, 10, 1)
  1413. swait(130)
  1414. local FRAME = tors.CFrame
  1415. repeat
  1416. swait()
  1417. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1418. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1419. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1420. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1421. LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1422. tors.CFrame = FRAME * CF(0,1,0)
  1423. swait()
  1424. tors.CFrame = FRAME
  1425. until icri.Playing == false
  1426. attack = false
  1427. hum.WalkSpeed = 16
  1428. end
  1429.  
  1430. function kyu_will_break_your_neck_asdf_longest_function_name_ever_xd()
  1431. attack = true
  1432. print('Fun Fact : "kyu_will_break_your_neck_asdf_longest_function_name_ever_xd" is the name of this function')
  1433. for i = 0,6,0.1 do
  1434. swait()
  1435. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1436. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1437. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1438. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1439. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(170), Rad(0), Rad(-15)), 0.1)
  1440. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(15)), 0.1)
  1441. end
  1442. CreateSound("1093102664", hed, 10, 1)
  1443. for i = 0,4,0.1 do
  1444. swait()
  1445. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(5), Rad(0), Rad(0)), 0.15)
  1446. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(40), Rad(0)), 0.4)
  1447. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1448. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1449. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-40)), 0.4)
  1450. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(40)), 0.4)
  1451. end
  1452. hum.MaxHealth = 0
  1453. ragdoll(char)
  1454. error("Seems like you just died.")
  1455. end
  1456.  
  1457. MoreTaunts = false
  1458. mouse.KeyDown:connect(function(key)
  1459. if attack == false then
  1460. if MoreTaunts == false then
  1461. if key == 'q' then
  1462. GEtOuT()
  1463. elseif key == 'e' then
  1464. ShutTheHellUp()
  1465. elseif key == 'r' then
  1466. MYSPAGHETTTTTTT()
  1467. elseif key == 't' then
  1468. SpinMeDad()
  1469. elseif key == 'y' then
  1470. EndMySufferingV2()
  1471. elseif key == 'u' then
  1472. print'ur mom gey'
  1473. elseif key == 'f' then
  1474. FINLAND()
  1475. elseif key == 'z' then
  1476. NothingPersonal()
  1477. elseif key == 'v' then
  1478. VeryMuchWorrying()
  1479. end
  1480. end
  1481. if key == 'g' and MoreTaunts == false then
  1482. print'more tauntys yey'
  1483. MoreTaunts = true
  1484. elseif key == 'g' and MoreTaunts == true then
  1485. print'rip tauntys ;c'
  1486. MoreTaunts = false
  1487. end
  1488. if MoreTaunts == true then
  1489. if key == 'q' then
  1490. AnotherOne()
  1491. elseif key == 't' then
  1492. kyu_will_break_your_neck_asdf_longest_function_name_ever_xd()
  1493. end
  1494. end
  1495. end
  1496. end)
  1497.  
  1498. -------------------------------------------------------
  1499. --End Attacks N Stuff--
  1500. -------------------------------------------------------
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511. -------------------------------------------------------
  1512. --Start Animations--
  1513. -------------------------------------------------------
  1514. local equipped = false
  1515. local idle = 0
  1516. local change = 1
  1517. local val = 0
  1518. local toim = 0
  1519. local idleanim = 0.4
  1520. hum.Animator.Parent = nil
  1521. while true do
  1522. swait()
  1523. sine = sine + change
  1524. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1525. local velderp = root.Velocity.y
  1526. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1527. if equipped == true or equipped == false then
  1528. if attack == false then
  1529. idle = idle + 1
  1530. else
  1531. idle = 0
  1532. end
  1533. if 1 < root.Velocity.y and hitfloor == nil then
  1534. Anim = "Jump"
  1535. if attack == false then
  1536. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1537. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1538. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1539. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1540. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1541. RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3)
  1542. end
  1543. elseif -1 > root.Velocity.y and hitfloor == nil then
  1544. Anim = "Fall"
  1545. if attack == false then
  1546. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1547. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1548. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1549. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1550. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1551. RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3)
  1552. end
  1553. elseif torvel < 1 and hitfloor ~= nil then
  1554. Anim = "Idle"
  1555. change = 1
  1556. if attack == false then
  1557. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1558. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  1559. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1560. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1561. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  1562. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  1563. end
  1564. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1565. Anim = "Walk"
  1566. change = 1
  1567. if attack == false then
  1568. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15)
  1569. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1570. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 35 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  1571. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 35 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  1572. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(5)), 0.1)
  1573. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0), Rad(-5)), 0.1)
  1574. end
  1575. end
  1576. end
  1577. if 0 < #Effects then
  1578. for e = 1, #Effects do
  1579. if Effects[e] ~= nil then
  1580. local Thing = Effects[e]
  1581. if Thing ~= nil then
  1582. local Part = Thing[1]
  1583. local Mode = Thing[2]
  1584. local Delay = Thing[3]
  1585. local IncX = Thing[4]
  1586. local IncY = Thing[5]
  1587. local IncZ = Thing[6]
  1588. if 1 >= Thing[1].Transparency then
  1589. if Thing[2] == "Block1" then
  1590. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1591. local Mesh = Thing[1].Mesh
  1592. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1593. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1594. elseif Thing[2] == "Block2" then
  1595. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1596. local Mesh = Thing[7]
  1597. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1598. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1599. elseif Thing[2] == "Block3" then
  1600. 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)
  1601. local Mesh = Thing[7]
  1602. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1603. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1604. elseif Thing[2] == "Cylinder" then
  1605. local Mesh = Thing[1].Mesh
  1606. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1607. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1608. elseif Thing[2] == "Blood" then
  1609. local Mesh = Thing[7]
  1610. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1611. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1612. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1613. elseif Thing[2] == "Elec" then
  1614. local Mesh = Thing[1].Mesh
  1615. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1616. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1617. elseif Thing[2] == "Disappear" then
  1618. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1619. elseif Thing[2] == "Shatter" then
  1620. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1621. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1622. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1623. Thing[6] = Thing[6] + Thing[5]
  1624. end
  1625. else
  1626. Part.Parent = nil
  1627. table.remove(Effects, e)
  1628. end
  1629. end
  1630. end
  1631. end
  1632. end
  1633. end
  1634. -------------------------------------------------------
  1635. --End Animations And Script--
  1636. ------------------------------------------------------- end end
Add Comment
Please, Sign In to add comment