KienZino

BEE SWARM SIMULATOR

Aug 14th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local gui = Instance.new("ScreenGui",player.PlayerGui)
  4. local act = false
  5. local act2 = false
  6. local frame = Instance.new("Frame",gui)
  7. frame.BackgroundTransparency = 0.2
  8. frame.BackgroundColor3 = Color3.fromRGB(255,255,255)
  9. frame.BorderColor3 = Color3.fromRGB(155,155,155)
  10. frame.BorderSizePixel = 3
  11. frame.Position = UDim2.new(0.3,0,.3,0)
  12. frame.Size = UDim2.new(.25,0,.4,0)
  13. frame.Active = true
  14. frame.Draggable = true
  15. frame.ClipsDescendants = false
  16. local textl = Instance.new("TextLabel",frame)
  17. textl.BackgroundTransparency = 0
  18. textl.BackgroundColor3 = Color3.fromRGB(255,155,55)
  19. textl.BorderColor3 = Color3.fromRGB(155,55,0)
  20. textl.BorderSizePixel = 3
  21. textl.Position = UDim2.new(0.05,0,.1,0)
  22. textl.Size = UDim2.new(.4,0,.2,0)
  23. textl.TextScaled = true
  24. textl.TextColor3 = Color3.fromRGB(255,255,255)
  25. textl.Text = "Type1"
  26. textl.Font = "Highway"
  27. local textbox = Instance.new("TextBox",frame)
  28. textbox.BackgroundTransparency = 0
  29. textbox.BackgroundColor3 = Color3.fromRGB(55,155,255)
  30. textbox.BorderColor3 = Color3.fromRGB(0,55,155)
  31. textbox.BorderSizePixel = 3
  32. textbox.Position = UDim2.new(0.05,0,.35,0)
  33. textbox.Size = UDim2.new(.4,0,.2,0)
  34. textbox.TextScaled = true
  35. textbox.TextColor3 = Color3.fromRGB(255,255,255)
  36. textbox.Font = "Highway"
  37. textbox.Text = "Gift"
  38. textbox.PlaceholderText = "Optional"
  39. local text2 = Instance.new("TextLabel",frame)
  40. text2.BackgroundTransparency = 0
  41. text2.BackgroundColor3 = Color3.fromRGB(255,155,55)
  42. text2.BorderColor3 = Color3.fromRGB(155,55,0)
  43. text2.BorderSizePixel = 3
  44. text2.Position = UDim2.new(0.55,0,.1,0)
  45. text2.Size = UDim2.new(.4,0,.2,0)
  46. text2.TextScaled = true
  47. text2.TextColor3 = Color3.fromRGB(255,255,255)
  48. text2.Text = "Type2"
  49. text2.Font = "Highway"
  50. local textbox2 = Instance.new("TextBox",frame)
  51. textbox2.BackgroundTransparency = 0
  52. textbox2.BackgroundColor3 = Color3.fromRGB(55,155,255)
  53. textbox2.BorderColor3 = Color3.fromRGB(0,55,155)
  54. textbox2.BorderSizePixel = 3
  55. textbox2.Position = UDim2.new(0.55,0,.35,0)
  56. textbox2.Size = UDim2.new(.4,0,.2,0)
  57. textbox2.TextScaled = true
  58. textbox2.TextColor3 = Color3.fromRGB(255,255,255)
  59. textbox2.Font = "Highway"
  60. textbox2.Text = ""
  61. textbox2.PlaceholderText = "Optional"
  62. local textbox3 = Instance.new("TextBox",frame)
  63. textbox3.BackgroundTransparency = 0
  64. textbox3.BackgroundColor3 = Color3.fromRGB(55,155,255)
  65. textbox3.BorderColor3 = Color3.fromRGB(0,55,155)
  66. textbox3.BorderSizePixel = 3
  67. textbox3.Position = UDim2.new(0.05,0,.85,0)
  68. textbox3.Size = UDim2.new(.2,0,.1,0)
  69. textbox3.TextScaled = true
  70. textbox3.TextColor3 = Color3.fromRGB(255,255,255)
  71. textbox3.Font = "Highway"
  72. textbox3.Text = ""
  73. textbox3.PlaceholderText = "L/R"
  74. local textbox4 = Instance.new("TextBox",frame)
  75. textbox4.BackgroundTransparency = 0
  76. textbox4.BackgroundColor3 = Color3.fromRGB(55,155,255)
  77. textbox4.BorderColor3 = Color3.fromRGB(0,55,155)
  78. textbox4.BorderSizePixel = 3
  79. textbox4.Position = UDim2.new(0.3,0,.85,0)
  80. textbox4.Size = UDim2.new(.2,0,.1,0)
  81. textbox4.TextScaled = true
  82. textbox4.TextColor3 = Color3.fromRGB(255,255,255)
  83. textbox4.Font = "Highway"
  84. textbox4.Text = ""
  85. textbox4.PlaceholderText = "U/D"
  86. local textbutc = Instance.new("TextButton",frame)
  87. textbutc.BackgroundTransparency = 0
  88. textbutc.BackgroundColor3 = Color3.fromRGB(255,55,55)
  89. textbutc.BorderColor3 = Color3.fromRGB(155,0,0)
  90. textbutc.BorderSizePixel = 3
  91. textbutc.Position = UDim2.new(0.925,0,0,0)
  92. textbutc.Size = UDim2.new(.075,0,.075,0)
  93. textbutc.SizeConstraint = "RelativeXX"
  94. textbutc.TextScaled = true
  95. textbutc.TextColor3 = Color3.fromRGB(255,255,255)
  96. textbutc.Font = "Highway"
  97. textbutc.Text = "X"
  98. textbutc.MouseButton1Click:Connect(function()
  99. gui:Remove()
  100. end)
  101. local textbut22 = Instance.new("TextButton",frame)
  102. textbut22.BackgroundTransparency = 0
  103. textbut22.BackgroundColor3 = Color3.fromRGB(55,255,155)
  104. textbut22.BorderColor3 = Color3.fromRGB(0,155,55)
  105. textbut22.BorderSizePixel = 3
  106. textbut22.Position = UDim2.new(0.55,0,.6,0)
  107. textbut22.Size = UDim2.new(.4,0,.2,0)
  108. textbut22.TextScaled = true
  109. textbut22.TextColor3 = Color3.fromRGB(255,255,255)
  110. textbut22.Font = "Highway"
  111. textbut22.Text = "Eggs"
  112. textbut22.MouseButton1Click:Connect(function()
  113. for i = 1,6 do
  114. local A_1 = i
  115. for a = 1,6 do
  116. local A_2 = a
  117. local A_3 = "Basic"
  118. local A_4 = .001
  119. local Event = game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg
  120. Event:InvokeServer(A_1, A_2, A_3, A_4)
  121. end
  122. end
  123. end)
  124. local textbut = Instance.new("TextButton",frame)
  125. textbut.BackgroundTransparency = 0
  126. textbut.BackgroundColor3 = Color3.fromRGB(55,255,155)
  127. textbut.BorderColor3 = Color3.fromRGB(0,155,55)
  128. textbut.BorderSizePixel = 3
  129. textbut.Position = UDim2.new(0.05,0,.6,0)
  130. textbut.Size = UDim2.new(.4,0,.2,0)
  131. textbut.TextScaled = true
  132. textbut.TextColor3 = Color3.fromRGB(255,255,255)
  133. textbut.Font = "Highway"
  134. textbut.Text = "Start"
  135. textbut.MouseButton1Click:Connect(function()
  136. if act then
  137. act = false
  138. textbut.Text = "Start"
  139. textbut.BackgroundColor3 = Color3.fromRGB(55,255,155)
  140. textbut.BorderColor3 = Color3.fromRGB(0,155,55)
  141. else
  142. textbut.Text = "Stop"
  143. textbut.BackgroundColor3 = Color3.fromRGB(255,55,55)
  144. textbut.BorderColor3 = Color3.fromRGB(155,0,0)
  145. act = true
  146. local lr = tonumber(textbox3.Text)
  147. local ud = tonumber(textbox4.Text)
  148. local TypeOfBee = textbox.Text
  149. local TypeOfBee2 = textbox2.Text
  150. repeat
  151. game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg:InvokeServer(lr, ud, "RoyalJelly", 0.001)
  152. until string.find(game.Players.LocalPlayer.PlayerGui.ScreenGui.BeePopUp.TypeName.Text,TypeOfBee) and string.find(game.Players.LocalPlayer.PlayerGui.ScreenGui.BeePopUp.ColorAndRarity.Text,TypeOfBee2) or string.find(game.Players.LocalPlayer.PlayerGui.ScreenGui.BeePopUp.ColorAndRarity.Text,TypeOfBee) and string.find(game.Players.LocalPlayer.PlayerGui.ScreenGui.BeePopUp.TypeName.Text,TypeOfBee2) or not act
  153. end
  154. end)
  155. local textbutf = Instance.new("TextButton",frame)
  156. textbutf.BackgroundTransparency = 0
  157. textbutf.BackgroundColor3 = Color3.fromRGB(55,255,155)
  158. textbutf.BorderColor3 = Color3.fromRGB(0,155,55)
  159. textbutf.BorderSizePixel = 3
  160. textbutf.Position = UDim2.new(.05,0,-.2,0)
  161. textbutf.Size = UDim2.new(.9,0,.2,0)
  162. textbutf.TextScaled = true
  163. textbutf.TextColor3 = Color3.fromRGB(255,255,255)
  164. textbutf.Font = "Highway"
  165. textbutf.Text = "Farm"
  166. textbutf.MouseButton1Click:Connect(function()
  167. if act2 then
  168. act2 = false
  169. textbutf.Text = "Farm"
  170. textbutf.BackgroundColor3 = Color3.fromRGB(55,255,155)
  171. textbutf.BorderColor3 = Color3.fromRGB(0,155,55)
  172. else
  173. act2 = true
  174. textbutf.Text = "Stop"
  175. textbutf.BackgroundColor3 = Color3.fromRGB(255,55,55)
  176. textbutf.BorderColor3 = Color3.fromRGB(155,0,0)
  177. local krispy = player.Character.HumanoidRootPart.CFrame
  178. repeat
  179. for k,v in pairs(workspace.TreasureCollectibles:GetChildren()) do
  180. player.Character.HumanoidRootPart.CFrame = v.CFrame
  181. wait(.1)
  182. end
  183. wait(1)
  184. until not act2
  185. player.Character.HumanoidRootPart.CFrame = krispy
  186. end
  187. end)
Add Comment
Please, Sign In to add comment