Xander_

Untitled

Jan 28th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: JUST RUN IT!
  2.  
  3. math.randomseed(tick())
  4.  
  5.  
  6.  
  7. Players_Met = {}
  8.  
  9. Target = nil
  10.  
  11. Tones = {
  12.  
  13. Enum.ChatColor.Blue,
  14.  
  15. Enum.ChatColor.Green,
  16.  
  17. Enum.ChatColor.Red,
  18.  
  19. }
  20.  
  21.  
  22.  
  23. Random_Thoughts = {
  24.  
  25. "Oh boy! Such a sunny day.",
  26.  
  27. "Lalalala..",
  28.  
  29. "Meh.",
  30.  
  31. "Hmm..",
  32.  
  33. }
  34.  
  35.  
  36.  
  37. Neutral_Answers = {
  38.  
  39. Hello = {
  40.  
  41. "Hi.",
  42.  
  43. "Hello.",
  44.  
  45. },
  46.  
  47. }
  48.  
  49.  
  50.  
  51. local Asset = "http://www.roblox.com/asset/?id="
  52.  
  53.  
  54.  
  55. Shirtss = {Asset.."48121909", Asset.."13563477", Asset.."7825492", Asset.."49299226", Asset.."49299226", Asset.."25813650", Asset.."7825464", Asset.."50629907", Asset.."44096838", Asset.."19423653", Asset.."45506671", Asset.."50629907", Asset.."50629907"}
  56.  
  57. Pantss = {Asset.."48121928", Asset.."13563502", Asset.."7825668", Asset.."30703758", Asset.."7825663", Asset.."19954576", Asset.."44097222", Asset.."19425981", Asset.."45506330", Asset.."19954576", Asset.."19954576"}
  58.  
  59. Names = {"Joe", "Mark", "Carl", "Homer", "Kyle", "Stan", "Clyde", "Mick", "Nick", "Rick", "Peter", "Bucky", "Greg", "Eric",
  60.  
  61. "Joel", "Kim", "Lenny", "Barney", "Aaron", "Allan", "Andrew", "Brian", "Chad", "Chris", "Daniel", "David",
  62.  
  63. "Edward",
  64.  
  65. }
  66.  
  67.  
  68.  
  69. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  70.  
  71. local p = Instance.new("Part")
  72.  
  73. p.TopSurface = 0
  74.  
  75. p.BottomSurface = 0
  76.  
  77. p.Transparency = Tran
  78.  
  79. p.Reflectance = Ref
  80.  
  81. p.CanCollide = Coll
  82.  
  83. p.Anchored = Anch
  84.  
  85. p.BrickColor = BrickColor.new(Col)
  86.  
  87. p.formFactor = "Custom"
  88.  
  89. p.Size = Vector3.new(X,Y,Z)
  90.  
  91. p.Parent = P
  92.  
  93. p.Locked = true
  94.  
  95. p:BreakJoints()
  96.  
  97. return p
  98.  
  99. end
  100.  
  101.  
  102.  
  103. function Weld(P0, P1, X, Y, Z, A, B, C)
  104.  
  105. local w = Instance.new("Weld")
  106.  
  107. w.Part0 = P0
  108.  
  109. w.Part1 = P1
  110.  
  111. w.C1 = CN(X, Y, Z) * CA(A, B, C)
  112.  
  113. w.Parent = P0
  114.  
  115. return w
  116.  
  117. end
  118.  
  119.  
  120.  
  121. CA = CFrame.Angles
  122.  
  123. CN = CFrame.new
  124.  
  125. V3 = Vector3.new
  126.  
  127. MR = math.rad
  128.  
  129. MP = math.pi
  130.  
  131. MRA = math.random
  132.  
  133. MH = math.huge
  134.  
  135.  
  136.  
  137. Noob = nil
  138.  
  139.  
  140.  
  141. function MakeMotor(torso, p1, c0, c1)
  142.  
  143. local mot = Instance.new("Motor6D")
  144.  
  145. mot.C0 = c0
  146.  
  147. mot.C1 = c1
  148.  
  149. mot.Part0 = torso
  150.  
  151. mot.Part1 = p1
  152.  
  153. mot.Parent = torso
  154.  
  155. return mot
  156.  
  157. end
  158.  
  159.  
  160.  
  161. function Set(tab)
  162.  
  163. for _,v in pairs(tab) do
  164.  
  165. local motor = v[1]
  166.  
  167. local vel = v[2]
  168.  
  169. local des = v[3]
  170.  
  171. motor.MaxVelocity = vel
  172.  
  173. motor.DesiredAngle = des
  174.  
  175. end
  176.  
  177. end
  178.  
  179.  
  180.  
  181. function Animate(Hum, RSH, LSH, RH, LH)
  182.  
  183. local pose = "Standing"
  184.  
  185. local function sit()
  186.  
  187. pose = "Seated"
  188.  
  189. end
  190.  
  191. local function jump()
  192.  
  193. pose = "Jumping"
  194.  
  195. end
  196.  
  197. local function died()
  198.  
  199. pose = "Dead"
  200.  
  201. end
  202.  
  203. local function falling()
  204.  
  205. pose = "Falling"
  206.  
  207. end
  208.  
  209. local function climbing()
  210.  
  211. pose = "Climbing"
  212.  
  213. end
  214.  
  215. local function run(speed)
  216.  
  217. if speed > 0.5 then
  218.  
  219. pose = "Running"
  220.  
  221. else
  222.  
  223. pose = "Standing"
  224.  
  225. end
  226.  
  227. end
  228.  
  229. local function move(tiem)
  230.  
  231. local amplitude, frequency
  232.  
  233. if pose == "Seated" then
  234.  
  235. Set({{RSH, 0.15, math.pi/2}, {LSH, 0.15, -math.pi/2}, {LH, 0.15, math.pi/2}, {RH, 0.15, -math.pi/2}})
  236.  
  237. return
  238.  
  239. end
  240.  
  241. if pose == "Jumping" then
  242.  
  243. Set({{RSH, 0.3, math.pi}, {LSH, 0.3, -math.pi}, {LH, 0.3, 0}, {RH, 0.3, 0}})
  244.  
  245. return
  246.  
  247. end
  248.  
  249. if pose == "Falling" then
  250.  
  251. Set({{RSH, 0.35, math.pi}, {LSH, 0.35, -math.pi}, {LH, 0.35, 0}, {RH, 0.35, 0}})
  252.  
  253. return
  254.  
  255. end
  256.  
  257. local climb = 0
  258.  
  259. if pose == "Running" then
  260.  
  261. RSH.MaxVelocity = 0.15
  262.  
  263. LSH.MaxVelocity = 0.15
  264.  
  265. RH.MaxVelocity = 0.15
  266.  
  267. LH.MaxVelocity = 0.15
  268.  
  269. amplitude = 1
  270.  
  271. frequency = 8
  272.  
  273. elseif pose == "Climbing" then
  274.  
  275. RSH.MaxVelocity = 0.3
  276.  
  277. LSH.MaxVelocity = 0.3
  278.  
  279. RH.MaxVelocity = 0.15
  280.  
  281. LH.MaxVelocity = 0.15
  282.  
  283. amplitude = 1
  284.  
  285. frequency = 8
  286.  
  287. climb = math.pi
  288.  
  289. else
  290.  
  291. amplitude = 0.1
  292.  
  293. frequency = 1
  294.  
  295. end
  296.  
  297. des = amplitude * math.sin(tiem*frequency)
  298.  
  299. RSH.DesiredAngle = des + climb
  300.  
  301. LSH.DesiredAngle = des - climb
  302.  
  303. RH.DesiredAngle = -des
  304.  
  305. LH.DesiredAngle = -des
  306.  
  307. end
  308.  
  309. Hum.Jumping:connect(jump)
  310.  
  311. Hum.Running:connect(run)
  312.  
  313. Hum.Seated:connect(sit)
  314.  
  315. Hum.Died:connect(died)
  316.  
  317. Hum.FreeFalling:connect(falling)
  318.  
  319. Hum.Climbing:connect(climbing)
  320.  
  321. coroutine.resume(coroutine.create(function()
  322.  
  323. while pose ~= "Dead" do
  324.  
  325. local _, time = wait(0.1)
  326.  
  327. move(time)
  328.  
  329. end
  330.  
  331. end))
  332.  
  333. end
  334.  
  335.  
  336.  
  337. function MakeNoob(pos, scale)
  338.  
  339. local Name = Names[MRA(1,#Names)]
  340.  
  341. local Nub = Instance.new("Model")
  342.  
  343. Nub.Name = Name
  344.  
  345. Noob = Nub
  346.  
  347. local Torso = Part(Nub, false, false, 0, 0, "Bright blue", 2*scale, 2*scale, 1*scale)
  348.  
  349. Torso.Name = "Torso"
  350.  
  351. local Head = Part(Nub, false, false, 0, 0, "Bright yellow", 2*scale, 1*scale, 1*scale)
  352.  
  353. Head.Name = "Head"
  354.  
  355. local Neck = MakeMotor(Torso, Head, CN(0, 1*scale, 0), CN(0, -0.5*scale, 0))
  356.  
  357. local HeadMesh = Instance.new("SpecialMesh",Head)
  358.  
  359. HeadMesh.Scale = V3(1.25, 1.25, 1.25)
  360.  
  361. local Face = Instance.new("Decal",Head)
  362.  
  363. Face.Face = "Front"
  364.  
  365. Face.Texture = Asset..(13038247)
  366.  
  367. local Rarm = Part(Nub, false, false, 0, 0, "Bright yellow", 1*scale, 2*scale, 1*scale)
  368.  
  369. Rarm.Name = "Right Arm"
  370.  
  371. local Larm = Part(Nub, false, false, 0, 0, "Bright yellow", 1*scale, 2*scale, 1*scale)
  372.  
  373. Larm.Name = "Left Arm"
  374.  
  375. local Rleg = Part(Nub, false, false, 0, 0, "Br. yellowish green", 1*scale, 2*scale, 1*scale)
  376.  
  377. Rleg.Name = "Right Leg"
  378.  
  379. local Lleg = Part(Nub, false, false, 0, 0, "Br. yellowish green", 1*scale, 2*scale, 1*scale)
  380.  
  381. Lleg.Name = "Left Leg"
  382.  
  383. local RSH = MakeMotor(Torso, Rarm, CN(1*scale, 0.5*scale, 0) * CA(0, MR(90), 0), CN(-0.5*scale, 0.5*scale, 0) * CA(0, MR(90), 0))
  384.  
  385. local LSH = MakeMotor(Torso, Larm, CN(-1*scale, 0.5*scale, 0) * CA(0, MR(-90), 0), CN(0.5*scale, 0.5*scale, 0) * CA(0, MR(-90), 0))
  386.  
  387. local RH = MakeMotor(Torso, Rleg, CN(0.5*scale, -1*scale, 0) * CA(0, MR(-90), 0), CN(0, 1*scale, 0) * CA(0, MR(-90), 0))
  388.  
  389. local LH = MakeMotor(Torso, Lleg, CN(-0.5*scale, -1*scale, 0) * CA(0, MR(90), 0), CN(0, 1*scale, 0) * CA(0, MR(90), 0))
  390.  
  391. local Shirt = Instance.new("Shirt", Nub)
  392.  
  393. local Pants = Instance.new("Pants", Nub)
  394.  
  395. Shirt.ShirtTemplate = Shirtss[MRA(1,#Shirtss)]
  396.  
  397. Pants.PantsTemplate = Pantss[MRA(1,#Pantss)]
  398.  
  399. local Hum = Instance.new("Humanoid")
  400.  
  401. Hum.MaxHealth = 40+(scale*60)
  402.  
  403. Hum.Health = 100
  404.  
  405. Hum.Parent = Nub
  406.  
  407. Nub.Parent = workspace
  408.  
  409. Nub:MakeJoints()
  410.  
  411. Nub:MoveTo(pos)
  412.  
  413. Animate(Hum,RSH,LSH,RH,LH)
  414.  
  415. --[[Hum.Died:connect(function()
  416.  
  417. wait(6)
  418.  
  419. Nub:remove()
  420.  
  421. wait(4)
  422.  
  423. MakeNoob(pos, scale)
  424.  
  425. end)]]
  426.  
  427. return {Name = Name, Model = Nub, Humanoid = Hum, Torso = Torso, Head = Head, Rarm = Rarm, Larm = Larm, Rleg = Rleg, Lleg = Lleg, RSH = RSH, LSH = LSH, RH = RH, LH = LH, Neck = Neck}
  428.  
  429. end
  430.  
  431.  
  432.  
  433. local Npc = MakeNoob(V3(MRA(-20, 20),10,MRA(-20, 20)), 1)
  434.  
  435.  
  436.  
  437. function Chat(msg, tone)
  438.  
  439. local tone = tone
  440.  
  441. if tone == nil then tone = 1 end
  442.  
  443. game:GetService("Chat"):Chat(Npc.Head, msg, Tones[tone] or 1)
  444.  
  445. end
  446.  
  447.  
  448.  
  449. wait(1.5)
  450.  
  451.  
  452.  
  453. Chat(("Hello! My name is %s."):format(Npc.Name))
  454.  
  455.  
  456.  
  457. while true do
  458.  
  459.  
  460.  
  461. wait(0.4)
  462.  
  463. end
Add Comment
Please, Sign In to add comment