Advertisement
HenloMyDude

you, the meme-type pokemon.

Mar 14th, 2020
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4. ra = char["Right Arm"]
  5. la = char["Left Arm"]
  6. hed = char.Head
  7. root = char.HumanoidRootPart
  8. hum = char.Humanoid
  9. dancin = false
  10.  
  11. clerp = function(toclerp, cf, number)
  12. local joint = toclerp
  13. joint.C0 = joint.C0:Lerp(cf, number)
  14. end
  15.  
  16. clerp2 = function(toclerp, cf)
  17. local joint = toclerp
  18. joint.C0 = cf
  19. end
  20.  
  21. clerp3 = function(toclerp, cf, number)
  22. local joint = toclerp
  23. joint.C1 = joint.C1:Lerp(cf, number)
  24. end
  25.  
  26. Swait,swait = function(number)
  27. if number == 0 or number == nil then
  28. game:GetService("RunService").Heartbeat:Wait()
  29. else
  30. for i = 1,number do
  31. game:GetService("RunService").Heartbeat:Wait()
  32. end
  33. end
  34. end
  35.  
  36. ezweld = function(p, a, b, cf)
  37. local weld = Instance.new("Weld",p)
  38. weld.Part0 = a
  39. weld.Part1 = b
  40. weld.C0 = cf
  41. return weld
  42. end
  43.  
  44. NewSound = function(p, id, pit, vol, loop)
  45. local Sound = Instance.new("Sound",p)
  46. Sound.Pitch = pit
  47. Sound.Volume = vol
  48. Sound.SoundId = "rbxassetid://" ..id
  49. Sound.Looped = loop
  50. Sound:Play()
  51. return Sound
  52. end
  53.  
  54. IT = Instance.new
  55. Rad = math.rad
  56. Cos = math.cos
  57. Sin = math.sin
  58. BrickC = BrickColor.new
  59. C3 = Color3.new
  60. VT = Vector3.new
  61.  
  62. sc = 0.45
  63.  
  64. for k,g in pairs (char:GetDescendants()) do
  65. if g:IsA("Weld") then
  66. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  67. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  68. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  69. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  70. elseif g:IsA("SpecialMesh") then
  71. if g.MeshType ~= Enum.MeshType.Head then
  72. g.Scale = g.Scale*sc
  73. end
  74. elseif g:IsA("Part") or g:IsA("MeshPart") then
  75. g.Size = g.Size*sc
  76. elseif g:IsA("Motor") or g:IsA("Motor6D") then
  77. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  78. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  79. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  80. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  81. end
  82. end
  83.  
  84. anim = "Idle"
  85. attack = false
  86. local RS = char.Torso["Right Shoulder"]
  87. local LS = char.Torso["Left Shoulder"]
  88. local RH = char.Torso["Right Hip"]
  89. local LH = char.Torso["Left Hip"]
  90. local neck = char.Torso["Neck"]
  91. local root = char.HumanoidRootPart
  92. local rootj = root.RootJoint
  93. local sine = 0
  94. local RSnor = RS.C0
  95. local LSnor = LS.C0
  96. local RHnor = RH.C0
  97. local LHnor = LH.C0
  98. local RSnor2 = RS.C1
  99. local LSnor2 = LS.C1
  100. local RHnor2 = RH.C1
  101. local LHnor2 = LH.C1
  102. local rootjnor = rootj.C0
  103. local necknor = neck.C0
  104. local tors = char.Torso
  105. hum.Animator:remove()
  106. mouse = plr:GetMouse()
  107. hold = false
  108. Debris = game:GetService("Debris")
  109.  
  110. sped = 16
  111. keyhold = false
  112. spino = 0
  113. hito = true
  114.  
  115. function RayCast(Position, Direction, Range, Ignore)
  116. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  117. end
  118.  
  119. local TweenService = game:GetService("TweenService")
  120.  
  121. SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  122. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  123. local outorin = Enum.EasingDirection[outorin2]
  124.  
  125.  
  126. local dahspeed=1
  127.  
  128. if SPart.Name=="Bullet" then
  129. dahspeed=1
  130. end
  131.  
  132. local tweeningInformation = TweenInfo.new(
  133. AnimTime/dahspeed,
  134. MoveStyle,
  135. outorin,
  136. 0,
  137. false,
  138. 0
  139. )
  140. local MoveCF = CFr
  141. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  142. tweenanim:Play()
  143. end
  144.  
  145. CF = CFrame.new
  146. ANGLES = CFrame.Angles
  147. RAD = Rad
  148. SIN = Sin
  149. COS = Cos
  150. SINE = 0
  151. bc = BrickColor.new
  152.  
  153. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  154. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  155. local RIGHTSHOULDERC0 = CF(-1.065, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  156. local LEFTSHOULDERC0 = CF(1.065, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  157.  
  158. for i,v in pairs (char:GetDescendants()) do
  159. if v.Parent ~= char and v.Parent.Name == "GLOVES" then
  160. v.CanCollide = false
  161. end
  162. end
  163.  
  164. function thread(f)
  165. return coroutine.resume(coroutine.create(f))
  166. end
  167.  
  168. function effect(p, scf, ecf, srt, ert, ssize, esize, str, etr, scol, ecol, mtype, spd)
  169. local part = Instance.new("Part", p)
  170. part.CanCollide = false
  171. part.Size = Vector3.new(0.01, 0.01, 0.01)
  172. part.CFrame = scf
  173. part.Transparency = str
  174. part.Color = scol
  175. part.Anchored = true
  176. local mesh = Instance.new("SpecialMesh", part)
  177. mesh.Scale = ssize
  178. if mtype == "Wave" then
  179. mesh.MeshId = "rbxassetid://489415572"
  180. elseif mtype == "Sphere" then
  181. mesh.MeshType = "Sphere"
  182. elseif mtype == "Block" then
  183. mesh.MeshType = "Block"
  184. end
  185. SetTween(part,{Transparency=etr,Color=ecol,CFrame=ecf, Orientation=rt},"Linear","Out",spd)
  186. SetTween(mesh,{Scale=esize},"Linear","Out",spd)
  187. Debris:AddItem(part, 45)
  188. end
  189.  
  190. if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
  191.  
  192. sizo = 0.025
  193. local grass = Instance.new("Part",char)
  194. grass.Size = Vector3.new(2, 2, 2)
  195. grass.CanCollide = false
  196. grass.Material = "Grass"
  197. grass.BrickColor = BrickColor.new("Bright green")
  198. local mesh = Instance.new("SpecialMesh",grass)
  199. mesh.MeshId = "rbxassetid://760766662"
  200. --mesh.TextureId = "rbxassetid://681957477"
  201. mesh.Scale = Vector3.new(2, 8, 2)*sizo
  202. mesh.Offset = Vector3.new(0, 0, 0)
  203. local weld = ezweld(char, grass, tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(90), 0))
  204. local ENEMY = false
  205.  
  206. grass.Touched:connect(function(hit)
  207. local dud = hit.Parent
  208. if ENEMY == false and dud:FindFirstChildOfClass("Humanoid") then
  209. ENEMY = true
  210. NewSound(hed, 4529466238, 1, 10, true)
  211. for i = 1,450 do
  212. Swait()
  213. weld.C0 = weld.C0 * CFrame.new(0, 0.0075, 0)
  214. end
  215. grass:remove()
  216. end
  217. end)
  218.  
  219. while true do
  220. Swait()
  221. SINE = SINE + (2 / 3)
  222. sine = sine + 1
  223. local sit = hum.Sit
  224. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  225. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  226. local WALKSPEEDVALUE = 8 / (sped / 16)
  227. torsverticalvel = root.Velocity.y
  228. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  229. if TORSOVELOCITY < 1 and sit == false then
  230. anim = "Idle"
  231. if attack == false then
  232. SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, 0.05 * Sin(sine / 26))*CFrame.Angles(0, 0, Rad(0))},"Linear","Out",0.1)
  233. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(0))},"Linear","Out",0.1)
  234. SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-3.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
  235. SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-3.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
  236. SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(-11), Rad(0))},"Linear","Out",0.1)
  237. SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(11), Rad(0))},"Linear","Out",0.1)
  238. end
  239. elseif TORSOVELOCITY > 1 and sit == false then
  240. anim = "Walk"
  241. if attack == false and hum.WalkSpeed < 25 then
  242. sped = 9.75
  243. SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
  244. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-5), 0, 0)},"Linear","Out",0.1)
  245. SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), -.125 * COS(SINE / (sped/2))) * ANGLES(RAD(46 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
  246. SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), .125 * COS(SINE / (sped/2))) * ANGLES(RAD(-46 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
  247. SetTween(RH, {C0=CF(0.45, -0.5 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-46 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  248. SetTween(LH, {C0=CF(-0.45, -0.5 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(46 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  249. end
  250. if attack == false and hum.WalkSpeed > 24 then
  251. sped = 7.1
  252. SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
  253. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-15), 0, 0)},"Linear","Out",0.1)
  254. SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
  255. SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
  256. SetTween(RH, {C0=CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  257. SetTween(LH, {C0=CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  258. end
  259. elseif sit == true then
  260. anim = "Sitting"
  261. if attack == false then
  262. SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, -0.15+0.05 * Sin(sine / 26))*CFrame.Angles(Rad(0), 0, 0)},"Linear","Out",0.1)
  263. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(0))},"Linear","Out",0.1)
  264. SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
  265. SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
  266. SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(-17), Rad(90))},"Linear","Out",0.1)
  267. SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(17), Rad(-90))},"Linear","Out",0.1)
  268. end
  269. end
  270. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement