Advertisement
JJHDerpster02

Omnomnom script!

Apr 10th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. --[[mediafire gtfo password]]--
  2.  
  3. local phrases = {"Om nom nom!", "Mmmm....", "Este es muy delicioso!", "*Belch*", "I love raw meat!", "More!!!", "Fatty hungry...", "I love fried chicken too...", "Yummy!!!", "Quiero mas comida!", "Where are the cheeseburgers at?!"}
  4. local fatty = game.Players:findFirstChild("tootalljj")
  5. local hunger = 0
  6. local chewing = false
  7. local speedeat = false
  8.  
  9. game.Players.PlayerRemoving:connect(function(player)
  10. if game.Lighting:findFirstChild(player.Name.. "'s Stomach") ~= nil then
  11. game.Lighting:findFirstChild(player.Name.. "'s Stomach"):remove()
  12. end
  13. end)
  14.  
  15. function round(num)
  16. local integ = math.floor(num)
  17. local deci = num - integ
  18. if deci >= 0.5 then
  19. integ = integ + 1
  20. elseif deci < 0.5 then
  21. integ = integ
  22. end
  23. return integ
  24. end
  25.  
  26. function speak(playa)
  27. if playa.Character ~= nil then
  28. if playa.Character:findFirstChild("Head") ~= nil then
  29. game:GetService("Chat"):Chat(playa.Character.Head, phrases[math.random(1, #phrases)], "Red")
  30. end
  31. end
  32. end
  33.  
  34. function setup(playa)
  35. sto = Instance.new("Model", game.Lighting)
  36. sto.Name = fatty.Name.."'s Stomach"
  37.  
  38. fatty.Character.Humanoid.Died:connect(function()
  39. sto:remove()
  40. script:remove()
  41. end)
  42.  
  43. local sg = Instance.new("ScreenGui", playa.PlayerGui)
  44. sg.Name = "FattyGui"
  45. local f = Instance.new("Frame", sg)
  46. f.Name = "FattyFrame"
  47. f.Size = UDim2.new(0.1, 0, 0.05, 0)
  48. f.Position = UDim2.new(0, 0, 0.7, 0)
  49. f.BackgroundColor3 = Color3.new(1, 0, 0)
  50. f.BorderColor3 = Color3.new(0, 0, 0)
  51. local ftext = Instance.new("TextLabel", f)
  52. ftext.Name = "Hunger"
  53. ftext.Text = "Hunger: " ..hunger.. " / 100"
  54. ftext.TextColor3 = Color3.new(0, 0, 0)
  55. ftext.Font = "ArialBold"
  56. ftext.FontSize = "Size18"
  57. ftext.Position = UDim2.new(0.5, 0, 0.5, 0)
  58. ftext.ZIndex = 2
  59. local bar = Instance.new("TextLabel", f)
  60. bar.Name = "Bar"
  61. bar.Size = UDim2.new(0, 0, 1, 0)
  62. bar.BackgroundColor3 = Color3.new(0, 1, 0)
  63. bar.BorderSizePixel = 0
  64. bar.Text = ""
  65. end
  66.  
  67. function update(playa)
  68. if playa.PlayerGui:findFirstChild("FattyGui") ~= nil then
  69. local fgui = playa.PlayerGui.FattyGui
  70. if hunger >= 100 then
  71. local chance = math.random(1, 2)
  72. if chance == 1 then
  73. hunger = 0
  74. game:GetService("Chat"):Chat(playa.Character.Head, "HNNNNNG!", "Green")
  75. for a, b in pairs(sto:children()) do
  76. b.Parent = workspace
  77. b.Position = (fatty.Character.Torso.CFrame * CFrame.new(0, -1, 1)).p
  78. game:GetService("Debris"):AddItem(b, 30)
  79. end
  80. elseif chance == 2 then
  81. hunger = 0
  82. game:GetService("Chat"):Chat(playa.Character.Head, "BLAARGH!", "Green")
  83. for a, b in pairs(sto:children()) do
  84. b.Position = (fatty.Character.Head.CFrame * CFrame.new(0, 0, (b.Size.x/2) + 4)).p
  85. b.Velocity = (fatty.Character.Head.Position - b.Position).unit * (b:GetMass() * 5)
  86. b.BrickColor = BrickColor.new("Grime")
  87. b.Parent = workspace
  88. game:GetService("Debris"):AddItem(b, 30)
  89. end
  90. end
  91. end
  92. fgui.FattyFrame.Bar.Size = UDim2.new((hunger / 100), 0, 1, 0)
  93. fgui.FattyFrame.Hunger.Text = "Hunger: " ..hunger.. " / 100"
  94. end
  95. end
  96.  
  97. if fatty.Character ~= nil then
  98. if fatty.Character:findFirstChild("Torso") ~= nil then
  99. setup(fatty)
  100. local tors = fatty.Character.Torso
  101. tors.Touched:connect(function(part)
  102. if part.Parent then
  103. if part.Parent:findFirstChild("Humanoid") ~= nil and part:findFirstChild("Ate") == nil and chewing == false then
  104. if part.Name == "Torso" or part.Name == "Head" or part.Name == "Left Leg" or part.Name == "Left Arm" or part.Name == "Right Leg" or part.Name == "Right Arm" then
  105. chewing = true
  106. local food = Instance.new("IntValue", part)
  107. food.Name = "Ate"
  108. speak(fatty)
  109. local hum = part.Parent.Humanoid
  110. hum:TakeDamage(20)
  111. part.Parent = sto
  112. part.BrickColor = BrickColor.new("Brown")
  113. part.CanCollide = true
  114. part.Locked = false
  115. part.Anchored = false
  116. part.Velocity = Vector3.new(0, 0, 0)
  117. part.RotVelocity = Vector3.new(0, 0, 0)
  118. hunger = hunger + round(part:GetMass())*4
  119. update(fatty)
  120. if speedeat == false then
  121. wait(5)
  122. end
  123. chewing = false
  124. end
  125. end
  126. end
  127. end)
  128. end
  129. end
  130.  
  131. --FOOD!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement