Advertisement
HenloMyDude

Meme Script (r15)

Oct 11th, 2019
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1.  
  2. --Meme Thing Man by HenloMyDude--
  3.  
  4. Player = owner
  5. Mouse = Player:GetMouse()
  6. IT = Instance.new
  7. CF = CFrame.new
  8. VT = Vector3.new
  9. RAD = math.rad
  10. C3 = Color3.new
  11. UD2 = UDim2.new
  12. BRICKC = BrickColor.new
  13. ANGLES = CFrame.Angles
  14. EULER = CFrame.fromEulerAnglesXYZ
  15. COS = math.cos
  16. ACOS = math.acos
  17. SIN = math.sin
  18. ASIN = math.asin
  19. ABS = math.abs
  20. MRANDOM = math.random
  21. FLOOR = math.floor
  22.  
  23. --Character Set up.--
  24.  
  25. Player.Character.Archivable = true
  26. Character = Player.Character:Clone()
  27. Character.Parent = script
  28. Player.Character = Character
  29. RootPart = Character.HumanoidRootPart
  30.  
  31. ---------------------
  32.  
  33. --Camera Set Up.--
  34.  
  35. CamSetUp = true
  36. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  37.  
  38. Stuff = Instance.new("Model",script)
  39. Stuff.Name = "Stuffs"
  40.  
  41. if CamSetUp then
  42. Camera = NLS([[
  43.  
  44. Script = script
  45. Script.Name = "CameraFix"
  46. Player = owner
  47. Character = Player.Character
  48. Camera = Workspace.CurrentCamera
  49. while true do
  50. wait()
  51. if Character then
  52. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  53. if Humanoid then
  54. Camera.CameraSubject = Humanoid
  55. end
  56. end
  57. end
  58.  
  59. ]],Character)
  60. end
  61.  
  62. ------------------
  63.  
  64. --Sounds.--
  65.  
  66. NewSound = function(p, id, pit, vol, loop)
  67. local Sound = Instance.new("Sound",p)
  68. Sound.Pitch = pit
  69. Sound.Volume = vol
  70. Sound.SoundId = "rbxassetid://" ..id
  71. Sound.Looped = loop
  72. Sound:Play()
  73. return Sound
  74. end
  75.  
  76. -----------
  77.  
  78. --Heartbeat.--
  79.  
  80. ArtificialHB = Instance.new("BindableEvent", script)
  81. ArtificialHB.Name = "ArtificialHB"
  82.  
  83. script:WaitForChild("ArtificialHB")
  84.  
  85. frame = 1 / 60
  86. tf = 0
  87. allowframeloss = false
  88. tossremainder = false
  89. lastframe = tick()
  90. script.ArtificialHB:Fire()
  91.  
  92. game:GetService("RunService").Heartbeat:connect(function(s, p)
  93. tf = tf + s
  94. if tf >= frame then
  95. if allowframeloss then
  96. script.ArtificialHB:Fire()
  97. lastframe = tick()
  98. else
  99. for i = 1, math.floor(tf / frame) do
  100. script.ArtificialHB:Fire()
  101. end
  102. lastframe = tick()
  103. end
  104. if tossremainder then
  105. tf = 0
  106. else
  107. tf = tf - frame * math.floor(tf / frame)
  108. end
  109. end
  110. end)
  111.  
  112. --------------
  113.  
  114. --Functions.--
  115.  
  116. function Swait(NUMBER)
  117. if NUMBER == 0 or NUMBER == nil then
  118. ArtificialHB.Event:wait()
  119. else
  120. for i = 1, NUMBER do
  121. ArtificialHB.Event:wait()
  122. end
  123. end
  124. end
  125.  
  126. function QuaternionFromCFrame(cf)
  127. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  128. local trace = m00 + m11 + m22
  129. if trace > 0 then
  130. local s = math.sqrt(1 + trace)
  131. local recip = 0.5 / s
  132. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  133. else
  134. local i = 0
  135. if m11 > m00 then
  136. i = 1
  137. end
  138. if m22 > (i == 0 and m00 or m11) then
  139. i = 2
  140. end
  141. if i == 0 then
  142. local s = math.sqrt(m00 - m11 - m22 + 1)
  143. local recip = 0.5 / s
  144. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  145. elseif i == 1 then
  146. local s = math.sqrt(m11 - m22 - m00 + 1)
  147. local recip = 0.5 / s
  148. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  149. elseif i == 2 then
  150. local s = math.sqrt(m22 - m00 - m11 + 1)
  151. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  152. end
  153. end
  154. end
  155.  
  156. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  157. local xs, ys, zs = x + x, y + y, z + z
  158. local wx, wy, wz = w * xs, w * ys, w * zs
  159. local xx = x * xs
  160. local xy = x * ys
  161. local xz = x * zs
  162. local yy = y * ys
  163. local yz = y * zs
  164. local zz = z * zs
  165. 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))
  166. end
  167.  
  168. function QuaternionSlerp(a, b, t)
  169. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  170. local startInterp, finishInterp;
  171. if cosTheta >= 0.0001 then
  172. if (1 - cosTheta) > 0.0001 then
  173. local theta = ACOS(cosTheta)
  174. local invSinTheta = 1 / SIN(theta)
  175. startInterp = SIN((1 - t) * theta) * invSinTheta
  176. finishInterp = SIN(t * theta) * invSinTheta
  177. else
  178. startInterp = 1 - t
  179. finishInterp = t
  180. end
  181. else
  182. if (1 + cosTheta) > 0.0001 then
  183. local theta = ACOS(-cosTheta)
  184. local invSinTheta = 1 / SIN(theta)
  185. startInterp = SIN((t - 1) * theta) * invSinTheta
  186. finishInterp = SIN(t * theta) * invSinTheta
  187. else
  188. startInterp = t - 1
  189. finishInterp = t
  190. end
  191. end
  192. 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
  193. end
  194.  
  195. function Clerp(a, b, t)
  196. local qa = {QuaternionFromCFrame(a)}
  197. local qb = {QuaternionFromCFrame(b)}
  198. local ax, ay, az = a.x, a.y, a.z
  199. local bx, by, bz = b.x, b.y, b.z
  200. local _t = 1 - t
  201. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  202. end
  203.  
  204. --------------
  205.  
  206. --Motors.--
  207.  
  208. ---------------------------------------------------
  209. local LeftUpperArm = Character.LeftUpperArm
  210. local LeftShoulder = Character.LeftUpperArm.LeftShoulder
  211. local LSnor = LeftShoulder.C0
  212. local LeftLowerArm = Character.LeftLowerArm
  213. local LeftElbow = Character.LeftLowerArm.LeftElbow
  214. local LEnor = LeftElbow.C0
  215. --------------------------------------------------------
  216. local LeftUpperLeg = Character.LeftUpperLeg
  217. local LeftHip = Character.LeftUpperLeg.LeftHip
  218. local LHnor = LeftHip.C0
  219. local LeftLowerLeg = Character.LeftLowerLeg
  220. local LeftKnee = Character.LeftLowerLeg.LeftKnee
  221. local LKnor = LeftKnee.C0
  222. local LeftAnkle = Character.LeftFoot.LeftAnkle
  223. local LAnor = LeftAnkle.C0
  224. ----------------------------------------------------------
  225. local RightUpperArm = Character.RightUpperArm
  226. local RightShoulder = Character.RightUpperArm.RightShoulder
  227. local RSnor = RightShoulder.C0
  228. local RightLowerArm = Character.RightLowerArm
  229. local RightElbow = Character.RightLowerArm.RightElbow
  230. local REnor = RightElbow.C0
  231. ----------------------------------------------------------
  232. local RightUpperLeg = Character.RightUpperLeg
  233. local RightHip = Character.RightUpperLeg.RightHip
  234. local RHnor = RightHip.C0
  235. local RightLowerLeg = Character.RightLowerLeg
  236. local RightKnee = Character.RightLowerLeg.RightKnee
  237. local RKnor = RightKnee.C0
  238. local RightAnkle = Character.RightFoot.RightAnkle
  239. local RAnor = RightAnkle.C0
  240. ----------------------------------------------------------
  241. local UpperTorso = Character.UpperTorso
  242. local Waist = UpperTorso.Waist
  243. local Waistnor = Waist.C0
  244. local LowerTorso = Character.LowerTorso
  245. --local LTnor = LowerTorso.C0
  246. local Root = Character.LowerTorso.Root
  247. local Rootnor = Root.C0
  248. local RootPart = Character.HumanoidRootPart
  249. local LeftHand = Character.LeftHand
  250. --local LHnor = LeftHand.C0
  251. local RightHand = Character.RightHand
  252. --local RHnor = RightHand.C0
  253. local LeftFoot = Character.LeftFoot
  254. --local LFnor = LeftFoot.C0
  255. local RightFoot = Character.RightFoot
  256. --local RFnor = RightFoot.C0
  257. local RightWrist= RightHand.RightWrist
  258. --local RWnor = RightWrist.C0
  259. local LeftWrist= LeftHand.LeftWrist
  260. --local LWnor = LeftWrist.C0
  261. --------------------------------------------
  262. local Head = Character.Head
  263. local Neck = Head.Neck
  264. local Necknor = Neck.C0
  265.  
  266. -----------
  267.  
  268. --Useful Values.--
  269.  
  270. Frame_Speed = 1 / 60
  271. Animation_Speed = 3
  272. Speed = 16
  273. Pose = "Idle"
  274. Cos = math.cos
  275. sine = 0
  276. State = Humanoid:GetState()
  277. Debris = game:GetService("Debris")
  278. Attack = false
  279. Rad = math.rad
  280. Fallen = false
  281. AntiNil = true
  282. Hold = false
  283. Animator = Humanoid.Animator
  284.  
  285. ------------------
  286.  
  287. --Decals.--
  288.  
  289. function AddDecal(Part, Id, Face)
  290. local Decal = IT("Decal")
  291. Decal.Parent = Part
  292. Decal.Texture = "rbxassetid://" ..Id
  293. Decal.Face = Face
  294. end
  295.  
  296. -----------
  297.  
  298. --Welds.--
  299.  
  300. ezweld = function(p, a, b, cf)
  301. local weld = Instance.new("Weld",p)
  302. weld.Part0 = a
  303. weld.Part1 = b
  304. weld.C0 = cf
  305. return weld
  306. end
  307.  
  308. ----------
  309.  
  310. --Attacks.--
  311.  
  312. function yourefat()
  313. Attack = true
  314. local Fatty = NewSound(Head, 135997023, 1, 10, false)
  315. Fatty.TimePosition = 1.256
  316. Debris:AddItem(Fatty, 1.356)
  317. Speed = 0
  318. for i = 1,55 do
  319. Swait()
  320. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
  321. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  322. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
  323. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  324. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
  325. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  326. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  327. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  328. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  329. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  330. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  331. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  332. end
  333. Speed = 16
  334. Attack = false
  335. end
  336.  
  337. function hellothere()
  338. Attack = true
  339. NewSound(Head, 2205772835, 1, 10, false)
  340. Speed = 0
  341. for i = 1,55 do
  342. Swait()
  343. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
  344. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  345. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 77, 0, 1), 1 / Animation_Speed)
  346. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  347. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, -0.25 + 0.5 * Cos(sine / 8)), 1 / Animation_Speed)
  348. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  349. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  350. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  351. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  352. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  353. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  354. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  355. end
  356. Speed = 16
  357. Attack = false
  358. end
  359.  
  360. function nou()
  361. Attack = true
  362. NewSound(Head, 1543318456, 1, 10, false)
  363. Speed = 0
  364. for i = 1,37 do
  365. Swait()
  366. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0.15, 0, 0), 1 / Animation_Speed)
  367. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  368. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(91 + 0.1 * Cos(sine / 12), 0, 0), 1 / Animation_Speed)
  369. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  370. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
  371. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  372. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  373. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  374. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  375. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  376. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  377. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  378. end
  379. for i = 1,36 do
  380. Swait()
  381. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0.15, 0, 0), 1 / Animation_Speed)
  382. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(-0.15, 0, 0), 1 / Animation_Speed)
  383. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77.15 + 0.1 * Cos(sine / 12), 0, 0), 1 / Animation_Speed)
  384. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  385. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
  386. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  387. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  388. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  389. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  390. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  391. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  392. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  393. end
  394. Speed = 16
  395. Attack = false
  396. end
  397.  
  398. function gotaletter()
  399. Attack = true
  400. local wejustgot = NewSound(Head, 246440224, 1, 10, false)
  401. Speed = 0
  402. local Letter = Instance.new("Part",Character)
  403. Letter.Transparency = 1
  404. Letter.CanCollide = false
  405. Letter.Size = Vector3.new(2, 2, 0.01)
  406. Letter.Anchored = false
  407. local Front = AddDecal(Letter, 61998057, "Front")
  408. local Back = AddDecal(Letter, 61998057, "Back")
  409. local LetWeld = ezweld(Letter, Letter, RootPart, CFrame.new(0, -4.5, 0))
  410. local Spin = 0.5
  411. coroutine.resume(coroutine.create(function()
  412. while true do
  413. wait(0.5)
  414. if Spin == 0.25 then
  415. Spin = -0.25
  416. else
  417. Spin = 0.25
  418. end
  419. LetWeld.C0 = CFrame.new(0, -4.5, 0) * CFrame.Angles(0, 0, Spin)
  420. end
  421. end))
  422. repeat
  423. Swait()
  424. Letter.Transparency = 1
  425. Letter.CanCollide = false
  426. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(77, 0, 0), 1 / Animation_Speed)
  427. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  428. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(0.25, -0.75, 0) * CFrame.Angles(0, 0, 2), 1 / Animation_Speed)
  429. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.new(-0.25, -0.76, 0) * CFrame.Angles(0, 0, -2), 1 / Animation_Speed)
  430. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
  431. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0), 1 / Animation_Speed)
  432. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  433. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  434. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  435. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  436. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  437. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  438. until wejustgot.Playing == false
  439. Speed = 16
  440. Attack = false
  441. Letter:Destroy()
  442. end
  443.  
  444. function oraora()
  445. Attack = true
  446. for i = 1,55 do
  447. Swait()
  448. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(0 + 0.1 * Cos(sine / 5), 0, 0), 1 / Animation_Speed)
  449. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  450. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(77 + 77, 0, 1), 1 / Animation_Speed)
  451. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  452. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, -0.25 + 0.5 * Cos(sine / 8)), 1 / Animation_Speed)
  453. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  454. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  455. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  456. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  457. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  458. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  459. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  460. end
  461. Attack = false
  462. end
  463.  
  464. ------------
  465.  
  466. --Assign keys.--
  467.  
  468. local Remote = Instance.new("RemoteEvent",Character)
  469. Remote.Name = "remotey"
  470.  
  471. function KeyDo(name)
  472. if name == "yourefat" and Attack == false then
  473. yourefat()
  474. end
  475. if name == "hellothere" and Attack == false then
  476. hellothere()
  477. end
  478. if name == "nou" and Attack == false then
  479. nou()
  480. end
  481. if name == "gotaletter" and Attack == false then
  482. gotaletter()
  483. end
  484. if name == "ora" and Attack == false then
  485. oraora()
  486. end
  487. if name == "unhold" then
  488. Hold = false
  489. end
  490. end
  491.  
  492. RemoteClient = NLS([[
  493.  
  494. local Player = owner
  495. local Character = Player.Character
  496. local Mouse = Player:GetMouse()
  497. local Remote = Character.remotey
  498. local Attack = false
  499.  
  500. Mouse.KeyDown:connect(function(key)
  501. if key == "f" then
  502. Remote:FireServer("yourefat")
  503. end
  504. if key == "h" then
  505. Remote:FireServer("hellothere")
  506. end
  507. if key == "q" then
  508. Remote:FireServer("nou")
  509. end
  510. if key == "e" then
  511. Remote:FireServer("gotaletter")
  512. end
  513. end)
  514.  
  515. ]],Character)
  516.  
  517. Remote.OnServerEvent:Connect(function(PlayerSendit,Button) KeyDo(Button) end)
  518.  
  519. ----------------
  520.  
  521. --Anti-Delete--
  522.  
  523. SpareCharacter = Character:Clone()
  524. SpareCharacter.Parent = nil
  525. function CheckIfNil()
  526. if not Character then
  527. print("Getting new character..")
  528. Character = nil
  529. Character = SpareCharacter:Clone()
  530. Character.Parent = workspace
  531. print("Complete")
  532. end
  533. end
  534.  
  535. ---------------
  536.  
  537. --Animations.--
  538.  
  539. print("By youngmacka123.")
  540.  
  541. while true do
  542. Swait()
  543. Animator.Parent = nil
  544. Character.Parent = script
  545. State = Humanoid:GetState()
  546. sine = sine + 1
  547. Humanoid.MaxHealth = "inf"
  548. Humanoid.Health = "inf"
  549. Humanoid.WalkSpeed = Speed
  550. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  551. local Y = RootPart.Velocity.Y
  552. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity/1.6))
  553. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  554. if Fallen == false then
  555. Humanoid.PlatformStand = false
  556. else
  557. Humanoid.PlatformStand = true
  558. end
  559. if AntiNil == true then
  560. CheckIfNil()
  561. end
  562. if not Character:FindFirstChildOfClass("ForceField") then
  563. local Force = Instance.new("ForceField",Character)
  564. Force.Visible = false
  565. end
  566. if not Player.Character:FindFirstChild("HumanoidRootPart") then
  567. print("Getting new character..")
  568. Character.Parent = nil
  569. Character = SpareCharacter:Clone()
  570. Character.Parent = script
  571. Character.HumanoidRootPart.CFrame = CFrame.new(0, 0, 0)
  572. Player.Character = Character
  573. print("Complete")
  574. return Character
  575. end
  576. if TORSOVELOCITY < 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
  577. Pose = "Idle"
  578. Neck.C0 = Clerp(Neck.C0, Necknor, 1 / Animation_Speed)
  579. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.1 * Cos(sine / 12), 0), 1 / Animation_Speed)
  580. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0, 0, 0 + 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  581. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  582. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0, 0, 0 + 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  583. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0, 0, 0 - 0.1 * Cos(sine / 12)), 1 / Animation_Speed)
  584. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  585. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  586. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  587. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  588. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  589. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  590. elseif TORSOVELOCITY > 1 and State ~= Enum.HumanoidStateType.Climbing and Attack == false then
  591. Pose = "Walk"
  592. Neck.C0 = Clerp(Neck.C0, Necknor * CFrame.Angles(-Rad(TiltVelocity.z), -Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
  593. Waist.C0 = Clerp(Waist.C0, Waistnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 12), 0) * CFrame.Angles(-0 +Rad(TiltVelocity.z), 0-Rad(TiltVelocity.x), 0), 1 / Animation_Speed)
  594. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.Angles(0 + 1 * Cos(sine / WALKSPEEDVALUE), 0, 0), 1 / Animation_Speed)
  595. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.Angles(0 - 1 * Cos(sine / WALKSPEEDVALUE), 0, 0), 1 / Animation_Speed)
  596. RightElbow.C0 = Clerp(RightElbow.C0, REnor * CFrame.Angles(0.25, 0, 0), 1 / Animation_Speed)
  597. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor * CFrame.Angles(0.25, 0, 0), 1 / Animation_Speed)
  598. RightHip.C0 = Clerp(RightHip.C0, RHnor * CFrame.Angles(0 - 1 * Cos(sine / WALKSPEEDVALUE), 0, 0-Rad(TiltVelocity.x)), 1 / Animation_Speed)
  599. LeftHip.C0 = Clerp(LeftHip.C0, LHnor * CFrame.Angles(0 + 1 * Cos(sine / WALKSPEEDVALUE), 0, 0-Rad(TiltVelocity.x)), 1 / Animation_Speed)
  600. RightKnee.C0 = Clerp(RightKnee.C0, RKnor * CFrame.Angles(-0.25, 0, 0), 1 / Animation_Speed)
  601. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor * CFrame.Angles(-0.25, 0, 0), 1 / Animation_Speed)
  602. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  603. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  604. elseif State == Enum.HumanoidStateType.Climbing and Attack == false then
  605. Pose = "Climbing"
  606. Neck.C0 = Clerp(Neck.C0, Necknor, 1 / Animation_Speed)
  607. Waist.C0 = Clerp(Waist.C0, Waistnor, 1 / Animation_Speed)
  608. RightShoulder.C0 = Clerp(RightShoulder.C0, RSnor * CFrame.new(1, 0, 0) * CFrame.Angles(0, 0, 77 + 77), 1 / Animation_Speed)
  609. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LSnor * CFrame.new(-1, 0, 0) * CFrame.Angles(0, 0, -77 - 77), 1 / Animation_Speed)
  610. RightElbow.C0 = Clerp(RightElbow.C0, REnor, 1 / Animation_Speed)
  611. LeftElbow.C0 = Clerp(LeftElbow.C0, LEnor, 1 / Animation_Speed)
  612. RightHip.C0 = Clerp(RightHip.C0, RHnor, 1 / Animation_Speed)
  613. LeftHip.C0 = Clerp(LeftHip.C0, LHnor, 1 / Animation_Speed)
  614. RightKnee.C0 = Clerp(RightKnee.C0, RKnor, 1 / Animation_Speed)
  615. LeftKnee.C0 = Clerp(LeftKnee.C0, LKnor, 1 / Animation_Speed)
  616. RightAnkle.C0 = Clerp(RightAnkle.C0, RAnor, 1 / Animation_Speed)
  617. LeftAnkle.C0 = Clerp(LeftAnkle.C0, LAnor, 1 / Animation_Speed)
  618. end
  619. end
  620.  
  621. ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement