Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.91 KB | None | 0 0
  1. ----------------------
  2. --[[ Name : Some gay animations (gat) ]]--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5. --Footplanting added by Nebula_Zorua (Nebula the Zorua#6969)
  6.  
  7. --Discord Creterisk#2958
  8.  
  9. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  10. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  11. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  12. --YOU FUCKING SKIDS,
  13. --For Those who log/decompile this, If you sell or trade this,
  14. --and I find out who you are, i will take massive action.
  15. -------------------------------------------------------
  16.  
  17. local FavIDs = {
  18. 340106355, --Nefl Crystals
  19. 927529620, --Dimension
  20. 876981900, --Fantasy
  21. 398987889, --Ordinary Days
  22. 1117396305, --Oh wait, it's you.
  23. 885996042, --Action Winter Journey
  24. 919231299, --Sprawling Idiot Effigy
  25. 743466274, --Good Day Sunshine
  26. 727411183, --Knife Fight
  27. 1402748531, --The Earth Is Counting On You!
  28. 595230126 --Robot Language
  29. }
  30.  
  31.  
  32.  
  33. --The reality of my life isn't real but a Universe -makhail07
  34. wait()
  35. local plr = game:service'Players'.LocalPlayer
  36. print('Local User is '..plr.Name)
  37. local char = plr.Character
  38. local hum = char.Humanoid
  39. local ra = char["Right Arm"]
  40. local la= char["Left Arm"]
  41. local rl= char["Right Leg"]
  42. local ll = char["Left Leg"]
  43. local hed = char.Head
  44. local root = char.HumanoidRootPart
  45. local rootj = root.RootJoint
  46. local tors = char.Torso
  47. local mouse = plr:GetMouse()
  48. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  49. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  50. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  51. -------------------------------------------------------
  52. -------------------------------------------------------
  53. --Start Good Stuff--
  54. -------------------------------------------------------
  55. CF = CFrame.new
  56. angles = CFrame.Angles
  57. attack = false
  58. Euler = CFrame.fromEulerAnglesXYZ
  59. Rad = math.rad
  60. IT = Instance.new
  61. BrickC = BrickColor.new
  62. Cos = math.cos
  63. Acos = math.acos
  64. Sin = math.sin
  65. Asin = math.asin
  66. Abs = math.abs
  67. Mrandom = math.random
  68. Floor = math.floor
  69. -------------------------------------------------------
  70. --End Good Stuff--
  71. -------------------------------------------------------
  72. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  73. RSH, LSH = nil, nil
  74. RW = Instance.new("Weld")
  75. LW = Instance.new("Weld")
  76. RH = tors["Right Hip"]
  77. LH = tors["Left Hip"]
  78. RSH = tors["Right Shoulder"]
  79. LSH = tors["Left Shoulder"]
  80. RSH.Parent = nil
  81. LSH.Parent = nil
  82. RW.Name = "RW"
  83. RW.Part0 = tors
  84. RW.C0 = CF(1.5, 0.5, 0)
  85. RW.C1 = CF(0, 0.5, 0)
  86. RW.Part1 = ra
  87. RW.Parent = tors
  88. LW.Name = "LW"
  89. LW.Part0 = tors
  90. LW.C0 = CF(-1.5, 0.5, 0)
  91. LW.C1 = CF(0, 0.5, 0)
  92. LW.Part1 = la
  93. LW.Parent = tors
  94. Effects = {}
  95.  
  96. -------------------------------------------------------
  97. --Start HeartBeat--
  98. -------------------------------------------------------
  99. ArtificialHB = Instance.new("BindableEvent", script)
  100. ArtificialHB.Name = "Heartbeat"
  101. script:WaitForChild("Heartbeat")
  102.  
  103. frame = 1 / 60
  104. tf = 0
  105. allowframeloss = false
  106. tossremainder = false
  107.  
  108.  
  109. lastframe = tick()
  110. script.Heartbeat:Fire()
  111.  
  112.  
  113. game:GetService("RunService").Heartbeat:connect(function(s, p)
  114. tf = tf + s
  115. if tf >= frame then
  116. if allowframeloss then
  117. script.Heartbeat:Fire()
  118. lastframe = tick()
  119. else
  120. for i = 1, math.floor(tf / frame) do
  121. script.Heartbeat:Fire()
  122. end
  123. lastframe = tick()
  124. end
  125. if tossremainder then
  126. tf = 0
  127. else
  128. tf = tf - frame * math.floor(tf / frame)
  129. end
  130. end
  131. end)
  132. -------------------------------------------------------
  133. --End HeartBeat--
  134. -------------------------------------------------------
  135.  
  136. -------------------------------------------------------
  137. --Start Important Functions--
  138. -------------------------------------------------------
  139.  
  140. function thread(f)
  141. coroutine.resume(coroutine.create(f))
  142. end
  143. function clerp(a, b, t)
  144. local qa = {
  145. QuaternionFromCFrame(a)
  146. }
  147. local qb = {
  148. QuaternionFromCFrame(b)
  149. }
  150. local ax, ay, az = a.x, a.y, a.z
  151. local bx, by, bz = b.x, b.y, b.z
  152. local _t = 1 - t
  153. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  154. end
  155. function QuaternionFromCFrame(cf)
  156. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  157. local trace = m00 + m11 + m22
  158. if trace > 0 then
  159. local s = math.sqrt(1 + trace)
  160. local recip = 0.5 / s
  161. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  162. else
  163. local i = 0
  164. if m00 < m11 then
  165. i = 1
  166. end
  167. if m22 > (i == 0 and m00 or m11) then
  168. i = 2
  169. end
  170. if i == 0 then
  171. local s = math.sqrt(m00 - m11 - m22 + 1)
  172. local recip = 0.5 / s
  173. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  174. elseif i == 1 then
  175. local s = math.sqrt(m11 - m22 - m00 + 1)
  176. local recip = 0.5 / s
  177. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  178. elseif i == 2 then
  179. local s = math.sqrt(m22 - m00 - m11 + 1)
  180. local recip = 0.5 / s
  181. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  182. end
  183. end
  184. end
  185. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  186. local xs, ys, zs = x + x, y + y, z + z
  187. local wx, wy, wz = w * xs, w * ys, w * zs
  188. local xx = x * xs
  189. local xy = x * ys
  190. local xz = x * zs
  191. local yy = y * ys
  192. local yz = y * zs
  193. local zz = z * zs
  194. 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))
  195. end
  196. function QuaternionSlerp(a, b, t)
  197. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  198. local startInterp, finishInterp
  199. if cosTheta >= 1.0E-4 then
  200. if 1 - cosTheta > 1.0E-4 then
  201. local theta = math.acos(cosTheta)
  202. local invSinTheta = 1 / Sin(theta)
  203. startInterp = Sin((1 - t) * theta) * invSinTheta
  204. finishInterp = Sin(t * theta) * invSinTheta
  205. else
  206. startInterp = 1 - t
  207. finishInterp = t
  208. end
  209. elseif 1 + cosTheta > 1.0E-4 then
  210. local theta = math.acos(-cosTheta)
  211. local invSinTheta = 1 / Sin(theta)
  212. startInterp = Sin((t - 1) * theta) * invSinTheta
  213. finishInterp = Sin(t * theta) * invSinTheta
  214. else
  215. startInterp = t - 1
  216. finishInterp = t
  217. end
  218. 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
  219. end
  220. function rayCast(Position, Direction, Range, Ignore)
  221. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  222. end
  223. local RbxUtility = LoadLibrary("RbxUtility")
  224. local Create = RbxUtility.Create
  225.  
  226.  
  227. local ArtificialHB = Instance.new("BindableEvent", script)
  228. ArtificialHB.Name = "Heartbeat"
  229.  
  230. script:WaitForChild("Heartbeat")
  231.  
  232. local tf = 0
  233. local allowframeloss = false
  234. local tossremainder = false
  235. local lastframe = tick()
  236. local frame = 1/60
  237. ArtificialHB:Fire()
  238.  
  239. game:GetService("RunService").Heartbeat:connect(function(s, p)
  240. tf = tf + s
  241. if tf >= frame then
  242. if allowframeloss then
  243. script.Heartbeat:Fire()
  244. lastframe = tick()
  245. else
  246. for i = 1, math.floor(tf / frame) do
  247. ArtificialHB:Fire()
  248. end
  249. lastframe = tick()
  250. end
  251. if tossremainder then
  252. tf = 0
  253. else
  254. tf = tf - frame * math.floor(tf / frame)
  255. end
  256. end
  257. end)
  258.  
  259. function swait(num)
  260. if num == 0 or num == nil then
  261. ArtificialHB.Event:wait()
  262. else
  263. for i = 0, num do
  264. ArtificialHB.Event:wait()
  265. end
  266. end
  267. end
  268.  
  269. -------------------------------------------------------
  270. --Start Damage Function--
  271. -------------------------------------------------------
  272. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  273. if hit.Parent == nil then
  274. return
  275. end
  276. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  277. for _, v in pairs(hit.Parent:children()) do
  278. if v:IsA("Humanoid") then
  279. h = v
  280. end
  281. end
  282. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  283.  
  284. hit.Parent:FindFirstChild("Head"):BreakJoints()
  285. end
  286.  
  287. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  288. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  289. if hit.Parent.DebounceHit.Value == true then
  290. return
  291. end
  292. end
  293. if insta == true then
  294. hit.Parent:FindFirstChild("Head"):BreakJoints()
  295. end
  296. local c = Create("ObjectValue"){
  297. Name = "creator",
  298. Value = game:service("Players").LocalPlayer,
  299. Parent = h,
  300. }
  301. game:GetService("Debris"):AddItem(c, .5)
  302. if HitSound ~= nil and HitPitch ~= nil then
  303. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  304. end
  305. local Damage = math.random(minim, maxim)
  306. local blocked = false
  307. local block = hit.Parent:findFirstChild("Block")
  308. if block ~= nil then
  309. if block.className == "IntValue" then
  310. if block.Value > 0 then
  311. blocked = true
  312. block.Value = block.Value - 1
  313. print(block.Value)
  314. end
  315. end
  316. end
  317. if blocked …
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement