derekiscool423

stuff

Dec 16th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. me = game.Players.derekiscool423
  2. names = {"I has caiks", "n00b", "1337", "leet", "epicsauce", "pancaiks", "TROLOLOLO"}
  3. saund = Instance.new("Sound")
  4. saund.SoundId = "rbxasset://sounds/uuhhh.wav"
  5. saund.Pitch = 1
  6. saund.Name = "LOL"
  7. saund.Volume = 0.8
  8.  
  9. noobs = {}
  10.  
  11. si = 1
  12.  
  13. _G.music = function(mo)
  14. local mus = Instance.new("Sound")
  15. mus.Volume = 0.6
  16. mus.Pitch = 1
  17. mus.SoundId = "http://www.roblox.com/asset/?id=11420933"
  18. mus.Name = "niib"
  19. mus.Parent = workspace
  20. wait()
  21. mus:play()
  22. coroutine.resume(coroutine.create(function() wait(120) mus:stop() wait(1) mus:remove() end))
  23. end
  24.  
  25. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  26. part.Parent = parent
  27. part.formFactor = form
  28. part.CanCollide = collide
  29. part.Transparency = tran
  30. part.Reflectance = ref
  31. part.Size = Vector3.new(x,y,z)
  32. part.BrickColor = BrickColor.new(color)
  33. part.TopSurface = 0
  34. part.BottomSurface = 0
  35. part.Anchored = anchor
  36. part.Locked = true
  37. part:BreakJoints()
  38. end
  39.  
  40. function weld(w, p, p1, a, b, c, x, y, z)
  41. w.Parent = p
  42. w.Part0 = p
  43. w.Part1 = p1
  44. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  45. end
  46.  
  47. function run(lw,rl,ll)
  48. for i = -0.2,0.2, 0.05 do
  49. wait()
  50. rl.C0 = CFrame.fromEulerAnglesXYZ(i,0,0)
  51. ll.C0 = CFrame.fromEulerAnglesXYZ(-i,0,0)
  52. end
  53. for i = 0.2,-0.2, -0.05 do
  54. wait()
  55. rl.C0 = CFrame.fromEulerAnglesXYZ(i,0,0)
  56. ll.C0 = CFrame.fromEulerAnglesXYZ(-i,0,0)
  57. end
  58. end
  59.  
  60. function makenpc(pos)
  61. local siz = si
  62. local mod = Instance.new("Model")
  63. mod.Name = names[math.random(1,#names)]
  64. table.insert(noobs,mod)
  65. local torso = Instance.new("Part")
  66. prop(torso,mod,false,0,0,siz*2,siz*2,siz,"Bright blue",false,"Custom")
  67. torso.Name = "Torso"
  68.  
  69. local hed = Instance.new("Part")
  70. prop(hed,mod,false,0,0,siz*2,siz,siz,"Bright yellow",false,"Custom")
  71. hed.Name = "Head"
  72.  
  73. local mes = Instance.new("SpecialMesh",hed)
  74. mes.MeshType = "Head"
  75. mes.Scale = Vector3.new(1.25,1.25,1.25)
  76. local faic = Instance.new("Decal",hed)
  77. faic.Face = "Front"
  78. faic.Texture = "rbxasset://textures/face.png"
  79.  
  80. local soun = saund:clone()
  81. soun.Parent = hed
  82.  
  83. local rarm = Instance.new("Part")
  84. prop(rarm,mod,false,0,0,siz,siz*2,siz,"Bright yellow",false,"Custom")
  85. rarm.Name = "Right Arm"
  86.  
  87. local rp = Instance.new("Part")
  88. prop(rp,mod,false,1,0,1,1,1,"Bright yellow",false,"Custom")
  89. rp.Name = "Right Arm"
  90.  
  91. local rw = Instance.new("Weld")
  92. weld(rw,torso,rp,0,0,0,-(siz*1.2),-(siz*0.5),0)
  93.  
  94. local larm = Instance.new("Part")
  95. prop(larm,mod,false,0,0,siz,siz*2,siz,"Bright yellow",false,"Custom")
  96. larm.Name = "Left Arm"
  97.  
  98. local rleg = Instance.new("Part")
  99. prop(rleg,mod,false,0,0,siz,siz*2,siz,"Olive",false,"Custom")
  100. rleg.Name = "Right Leg"
  101.  
  102. local lleg = Instance.new("Part")
  103. prop(lleg,mod,false,0,0,siz,siz*2,siz,"Olive",false,"Custom")
  104. lleg.Name = "Left Leg"
  105.  
  106. local neck = Instance.new("Weld")
  107. weld(neck,torso,hed,0,0,0,0,-(siz*1.5),0)
  108. neck.Name = "Neck"
  109.  
  110. local raw = Instance.new("Weld")
  111. weld(raw,rp,rarm,0,0,0,0,siz*0.9,0)
  112.  
  113. local law = Instance.new("Weld")
  114. weld(law,torso,larm,0,0,0,siz*1.5,0,0)
  115.  
  116. local rlw = Instance.new("Weld")
  117. weld(rlw,torso,rleg,0,0,0,-(siz*0.5),siz*2,0)
  118.  
  119. local llw = Instance.new("Weld")
  120. weld(llw,torso,lleg,0,0,0,siz*0.5,siz*2,0)
  121.  
  122. local ob = Instance.new("ObjectValue",mod)
  123. ob.Name = "Noob"
  124.  
  125. local hum = Instance.new("Humanoid",mod)
  126. hum.MaxHealth = 100 + (siz*40)
  127. wait()
  128. hum.Health = hum.MaxHealth
  129. hum.Name = "Humanoid"
  130. hum.WalkSpeed = 9
  131.  
  132. local sword = Instance.new("Part")
  133. prop(sword,mod,false,0,0,siz,siz,siz*4,"White",false,"Custom")
  134. sword.Name = "Sword"
  135.  
  136. local sw = Instance.new("Weld")
  137. weld(sw,rarm,sword,0,math.pi,math.pi/2,0,siz,siz*1.4)
  138. local sm = Instance.new("SpecialMesh",sword)
  139. sm.MeshType = "FileMesh"
  140. sm.MeshId = "http://www.roblox.com/asset/?id=24712232"
  141. sm.TextureId = "http://www.roblox.com/asset/?id=24718993"
  142. sm.Scale = Vector3.new(siz,siz,siz)
  143.  
  144. mod.Parent = workspace
  145. mod:MakeJoints()
  146. mod:MoveTo(pos)
  147.  
  148. local orig = CFrame.fromEulerAnglesXYZ(math.pi/2,0.2,-0.4) * CFrame.new(0,0,0)
  149. raw.C0 = orig
  150.  
  151. hum.Died:connect(function()
  152. wait(4)
  153. mod:remove()
  154. end)
  155. end
  156.  
  157. if script.Parent.className ~= "HopperBin" then
  158. h = Instance.new("HopperBin",me.Backpack)
  159. h.Name = "Spawn"
  160. script.Parent = h
  161. end
  162.  
  163. bin = script.Parent
  164.  
  165. function sel(mouse)
  166. mouse.Button1Down:connect(function()
  167. makenpc(mouse.Hit.p)
  168. end)
  169. mouse.KeyDown:connect(function(key)
  170. key = key:lower()
  171. if key == "e" then
  172. si = si + 0.5
  173. elseif key == "q" then
  174. si = si - 0.5
  175. if si < 0.5 then
  176. si = 0.5
  177. end
  178. end
  179. end)
  180. end
  181.  
  182. bin.Selected:connect(sel)
Add Comment
Please, Sign In to add comment