Advertisement
Plug_RBLX

nub

Dec 24th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.24 KB | None | 0 0
  1. print("kek")
  2. wait(0.1)
  3. print("˙˙˙˙˙uos ǝɹǝɥ ǝɯoɔ")
  4. wait(0.1)
  5.  
  6. print(w0t)
  7.  
  8. wait(0.1)
  9.  
  10. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  11. txtfag.Adornee = test
  12. txtfag.Name = "lel"
  13. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  14. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  15. local textfag = Instance.new("TextLabel", txtfag)
  16. textfag.Size = UDim2.new(6, 0, 1, 0)
  17. textfag.FontSize = "Size10"
  18. textfag.TextScaled = true
  19. textfag.TextTransparency = 0
  20. textfag.BackgroundTransparency = 0
  21. textfag.TextTransparency = 0
  22. textfag.TextStrokeTransparency = 0
  23. textfag.Font = "Fantasy"
  24. textfag.TextStrokeColor3 = Color3.new(123, 47, 123)
  25. textfag.Text = game.Players.LocalPlayer.Character.Name.." the ƎSɹƎΛƎɹ noob"v=Instance.new("Part")
  26. gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  27.  
  28. wait(1)
  29.  
  30. text = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui)
  31. text.Text = "whisper"
  32. text.Size = UDim2.new(0,200, 0,80)
  33. text.Position = UDim2.new(0,0, 0,300)
  34. function succ()
  35. local lele = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  36. lele.SoundId = "http://roblox.com/asset?id=137321469"
  37. lele.Volume = 1
  38. lele.EmitterSize = 1000
  39. lele:Play()
  40. end
  41. text.MouseButton1Click:connect(succ)
  42.  
  43. wait(0.1)
  44.  
  45. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
  46. local Torso = Character:FindFirstChild("Torso")
  47. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  48. local Humanoid = Character:FindFirstChild("Humanoid")
  49. local Head = Character:FindFirstChild("Head")
  50. local Right_Arm = Character:FindFirstChild("Right Arm")
  51. local Left_Arm = Character:FindFirstChild("Left Arm")
  52. local Right_Leg = Character:FindFirstChild("Right Leg")
  53. local Left_Leg = Character:FindFirstChild("Left Leg")
  54. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  55. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  56. local Right_Hip = Torso:FindFirstChild("Right Hip")
  57. local Left_Hip = Torso:FindFirstChild("Left Hip")
  58. local Neck = Torso:FindFirstChild("Neck")
  59. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  60. local rootJoint = rootPart:FindFirstChild("RootJoint")
  61. local CurrentIdle = "Idling1"
  62. local Degree = 0.0175438596491228
  63. local canremove = false
  64. local debounce = false
  65. local UIService=game:GetService'UserInputService'
  66. _G.SongName = math.random(1,9025232)
  67. sin = math.sin
  68. Right_Leg.FormFactor = "Custom";
  69. Left_Leg.FormFactor = "Custom";
  70. rootPart.Archivable = true;
  71. rootJoint.Archivable = true;
  72. c_new = CFrame.new;
  73. c_angles = CFrame.Angles;
  74. i_new = Instance.new
  75. Humanoid:ClearAllChildren();
  76. local isAttacking = false
  77. local isSprinting = false
  78. local Animations = false
  79. local Angle = 0
  80. local Axis = 0
  81. local angleSpeed = 1
  82. local axisSpeed = angleSpeed
  83. local currentAnim
  84. local levetatingheight = 3
  85. local WalkType = "Ground"
  86.  
  87. function Sound(parent,loop,vol,id)
  88. local s = Instance.new('Sound',parent)
  89. s.Looped = loop
  90. s.Volume = vol
  91. s.MaxDistance=200
  92. s.EmitterSize=20
  93. s.SoundId = 'rbxassetid://'..tostring(id)
  94. s:Play()
  95. if loop == false then
  96. wait(s.TimeLength)
  97. s:Destroy()
  98. end
  99. end
  100.  
  101. Sound(rootPart,true,1,146309999)
  102.  
  103. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  104. wld = Instance.new("Weld", wp1)
  105. wld.Part0 = wp0
  106. wld.Part1 = wp1
  107. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  108. return wld
  109. end
  110.  
  111. function noOutline(part)
  112. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  113. end
  114.  
  115. local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  116. local partie = i_new("Part",parent)
  117. partie.Name=Name
  118. partie.BrickColor = BrickColor.new(Color)
  119. partie.Material = Material
  120. partie.Shape = Shape
  121. partie.Transparency = Transparency
  122. partie.Size = Size
  123. partie.CFrame = CFrame
  124. partie.CanCollide = CanCollide
  125. partie.Anchored = Anchored
  126. return partie
  127. end
  128.  
  129.  
  130.  
  131. function swait(num)
  132. if num == 0 or num == nil then
  133. game:GetService("RunService").Stepped:wait(0)
  134. else
  135. for i = 0, num do
  136. game:GetService("RunService").Stepped:wait(0)
  137. end
  138. end
  139. end
  140.  
  141. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  142. local mesh = i_new(Mesh)
  143. mesh.Parent = part
  144. if Mesh == "SpecialMesh" then
  145. mesh.MeshType = meshtype
  146. mesh.MeshId = meshid
  147. end
  148. mesh.Offset = offset
  149. mesh.Scale = scale
  150. return mesh
  151. end
  152.  
  153. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  154. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  155. end
  156.  
  157. function QuaternionFromCFrame(cf)
  158. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  159. local trace = m00 + m11 + m22
  160. if trace > 0 then
  161. local s = math.sqrt(1 + trace)
  162. local recip = 0.5/s
  163. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  164. else
  165. local i = 0
  166. if m11 > m00 then
  167. i = 1
  168. end
  169. if m22 > (i == 0 and m00 or m11) then
  170. i = 2
  171. end
  172. if i == 0 then
  173. local s = math.sqrt(m00-m11-m22+1)
  174. local recip = 0.5/s
  175. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  176. elseif i == 1 then
  177. local s = math.sqrt(m11-m22-m00+1)
  178. local recip = 0.5/s
  179. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  180. elseif i == 2 then
  181. local s = math.sqrt(m22-m00-m11+1)
  182. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  183. end
  184. end
  185. end
  186.  
  187. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  188. local xs, ys, zs = x + x, y + y, z + z
  189. local wx, wy, wz = w*xs, w*ys, w*zs
  190. local xx = x*xs
  191. local xy = x*ys
  192. local xz = x*zs
  193. local yy = y*ys
  194. local yz = y*zs
  195. local zz = z*zs
  196. 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))
  197. end
  198.  
  199. function QuaternionSlerp(a, b, t)
  200. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  201. local startInterp, finishInterp;
  202. if cosTheta >= 0.0001 then
  203. if (1 - cosTheta) > 0.0001 then
  204. local theta = math.acos(cosTheta)
  205. local invSinTheta = 1/math.sin(theta)
  206. startInterp = math.sin((1-t)*theta)*invSinTheta
  207. finishInterp = math.sin(t*theta)*invSinTheta
  208. else
  209. startInterp = 1-t
  210. finishInterp = t
  211. end
  212. else
  213. if (1+cosTheta) > 0.0001 then
  214. local theta = math.acos(-cosTheta)
  215. local invSinTheta = 1/math.sin(theta)
  216. startInterp = math.sin((t-1)*theta)*invSinTheta
  217. finishInterp = math.sin(t*theta)*invSinTheta
  218. else
  219. startInterp = t-1
  220. finishInterp = t
  221. end
  222. end
  223. 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
  224. end
  225.  
  226. function clerp(a, b, t)
  227. local qa = {QuaternionFromCFrame(a)}
  228. local qb = {QuaternionFromCFrame(b)}
  229. local ax, ay, az = a.x, a.y, a.z
  230. local bx, by, bz = b.x, b.y, b.z
  231. local _t = 1-t
  232. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  233. end
  234.  
  235. swait()
  236. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  237. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  238. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  239. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  240. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  241. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  242. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  243. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  244. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  245. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  246. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  247.  
  248. for i,v in pairs(Character:GetChildren()) do
  249. if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
  250. v:Destroy()
  251. elseif v:IsA('Part') and v.Name=='Head' then
  252. v.face:Destroy()
  253. end
  254. end
  255.  
  256. Character['Body Colors'].HeadColor=BrickColor.new('New yeller')
  257. Character['Body Colors'].TorsoColor=BrickColor.new('New yeller')
  258. Character['Body Colors'].RightArmColor=BrickColor.new('New yeller')
  259. Character['Body Colors'].LeftArmColor=BrickColor.new('Bright blue')
  260. Character['Body Colors'].RightLegColor=BrickColor.new('Br. yellowish green')
  261. Character['Body Colors'].LeftLegColor=BrickColor.new('Br. yellowish green')
  262.  
  263. Humanoid.DisplayDistanceType='None'
  264.  
  265. --Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  266. --newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  267. local REye=Part('REye','Royal purple','Neon',0,'Ball',Vector3.new(.1,.1,.1),CFrame.new(0,0,0),false,false,Character)
  268. newWeld(Head,REye,.2,.225,-.5)
  269. local REGlow=Instance.new('SurfaceLight')
  270. REGlow.Color=Color3.fromRGB(170,85,255)
  271. REGlow.Range=6
  272. REGlow.Brightness=10
  273. REGlow.Parent=REye
  274. local Glow=Instance.new('ParticleEmitter')
  275. Glow.Color=ColorSequence.new(Color3.fromRGB(170,85,255),Color3.fromRGB(170,85,255))
  276. Glow.Texture='rbxassetid://242292318'
  277. Glow.Transparency=NumberSequence.new(.9)
  278. Glow.Size=NumberSequence.new(.225)
  279. Glow.Acceleration=Vector3.new(45,30,0)
  280. Glow.LockedToPart=true
  281. Glow.Lifetime=NumberRange.new(.25,.25)
  282. Glow.Rate=1000
  283. Glow.EmissionDirection='Bottom'
  284. Glow.Speed=NumberRange.new(1,1)
  285. Glow.ZOffset=2
  286. Glow.Parent=REye
  287. local LEye=Part('LEye','Royal purple','Neon',0,'Ball',Vector3.new(.1,.1,.1),CFrame.new(0,0,0),false,false,Character)
  288. newWeld(Head,LEye,-.2,.225,-.5)
  289. local LEGlow=Instance.new('SurfaceLight')
  290. LEGlow.Color=Color3.fromRGB(170,85,255)
  291. LEGlow.Range=6
  292. LEGlow.Brightness=10
  293. LEGlow.Parent=LEye
  294. local Glow2=Instance.new('ParticleEmitter')
  295. Glow2.Color=ColorSequence.new(Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0))
  296. Glow2.Texture='rbxassetid://242292318'
  297. Glow2.Transparency=NumberSequence.new(.988)
  298. Glow2.Size=NumberSequence.new(5)
  299. Glow2.LockedToPart=false
  300. Glow2.Lifetime=NumberRange.new(.5,.5)
  301. Glow2.Rate=1000
  302. Glow2.EmissionDirection='Top'
  303. Glow2.Speed=NumberRange.new(1,1)
  304. Glow2.VelocitySpread=Vector3.new(0,0,60)
  305. Glow2.ZOffset=1
  306. Glow2.Parent=Torso
  307.  
  308. sine = 0
  309. change = 1
  310. sprint=false
  311. local punches={
  312. a=false,
  313. b=false,
  314. c=false
  315. }
  316.  
  317. UIService.InputBegan:connect(function(Input,GUIProcessed)
  318. if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
  319. if punches.a==false then
  320. punches.a=true wait(.4) punches.a=false
  321. else
  322. punches.a=true
  323. print('a ',punches.a)
  324. if punches.b==false then
  325. punches.b=true wait(.4) punches.b=false
  326. else
  327. punches.b=true
  328. print('b ',punches.b)
  329. if punches.c==false then
  330. punches.c=true wait(.4) punches.c=false
  331. else
  332. punches.c=true
  333. print('c ',punches.c)
  334. print('a ',punches.a,'b ',punches.b,'c ',punches.c)
  335. end
  336. end
  337. end
  338. elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  339. sprint=true
  340. end
  341. end)
  342.  
  343. UIService.InputEnded:connect(function(Input,GUIProcessed)
  344. if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  345. sprint=false
  346. end
  347. end)
  348.  
  349. game:GetService("RunService").RenderStepped:connect(function()
  350. Angle = (Angle % 100) + angleSpeed/10
  351. Axis = (Axis % 100) + axisSpeed/10
  352. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  353. jumpVel = Torso.Velocity.Y
  354. sine = change + sine
  355.  
  356. if(Humanoid.Jump) and jumpVel > 1 then
  357. currentAnim = "Jumping"
  358. elseif walkingMagnitude < 2 then
  359. currentAnim = "Idling"
  360. elseif isSprinting == true then
  361. currentAnim = "Sprinting"
  362. elseif walkingMagnitude > 2 then
  363. currentAnim = "Walking"
  364. elseif isAttacking == true then
  365. currentAnim = "Attacking"
  366. end
  367.  
  368. if currentAnim == "Jumping" and Animations == false then
  369. angleSpeed = 2
  370. axisSpeed = 2
  371. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  372. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  373. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  374. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  375. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  376. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  377. elseif currentAnim == "Idling" and Animations == false then
  378. angleSpeed = 1
  379. axisSpeed = 1
  380. change = 0.5
  381. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, .5, 0) * c_angles(math.rad(45), math.rad(-3), math.rad(-10)), 0.15)
  382. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(5), math.rad(20)), 0.15)
  383. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(85), math.rad(0), math.rad(-20)), 0.15)
  384. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(85), math.rad(0), math.rad(30)), 0.15)
  385. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -2.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  386. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  387. elseif currentAnim == "Walking" and Animations == false then
  388. if sprint==false then
  389. angleSpeed = 1
  390. axisSpeed = 1
  391. Humanoid.WalkSpeed = 16
  392. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/5))/2, math.sin((-rootPart.RotVelocity.Y/5))/2), 0.15)
  393. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/5))/2, -math.sin((-rootPart.RotVelocity.Y/5))/2), 0.15)
  394. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/2)/1.5, math.sin((rootPart.RotVelocity.Y/5))/2, -math.sin((rootPart.RotVelocity.Y/5))/2), 0.15)
  395. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/2)/1.5, -math.sin((rootPart.RotVelocity.Y/5))/2, math.sin((-rootPart.RotVelocity.Y/5))/2), 0.15)
  396. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  397. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  398. else
  399. angleSpeed = 10
  400. axisSpeed = 10
  401. Humanoid.WalkSpeed = 60
  402. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-40)+(-math.sin(sine/20)/5), -math.sin((rootPart.RotVelocity.X/3))/2, math.sin((-rootPart.RotVelocity.Y/3))/2), 0.15)
  403. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-40)+(-math.sin(sine/20)/5), math.sin((rootPart.RotVelocity.X/3))/2, -math.sin((-rootPart.RotVelocity.Y/3))/2), 0.15)
  404. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/1)/1, math.sin((rootPart.RotVelocity.Y/3))/2, -math.sin((rootPart.RotVelocity.Y/3))/2), 0.15)
  405. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/1)/1, -math.sin((rootPart.RotVelocity.Y/3))/2, math.sin((-rootPart.RotVelocity.Y/3))/2), 0.15)
  406. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.sin((rootPart.RotVelocity.Y/15))/2), 0.15)
  407. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/1))/2, math.rad(0)), 0.15)
  408. end
  409. end
  410. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement