SQUIDMAN740

Jelly fishing sim gui

Mar 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.97 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3.  
  4.  
  5. -- fungsi:
  6. dak = false
  7.  
  8. -- Instances:
  9. local Ent3g = Instance.new("ScreenGui")
  10. local Frame = Instance.new("Frame")
  11. local judul = Instance.new("TextLabel")
  12. local op = Instance.new("TextButton")
  13. local rb = Instance.new("TextButton")
  14. local cred = Instance.new("TextLabel")
  15.  
  16.  
  17. --Properties:
  18. Ent3g.Name = "Ent3g"
  19. Ent3g.Parent = game.CoreGui
  20.  
  21. Frame.Parent = Ent3g
  22. Frame.BackgroundColor3 = Color3.new(0.203922, 0.286275, 0.368627)
  23. Frame.BorderColor3 = Color3.new(0.498039, 0.54902, 0.552941)
  24. Frame.BorderSizePixel = 3
  25. Frame.Active = true
  26. Frame.Draggable = true
  27. Frame.Position = UDim2.new(0.321637452, 0, 0.21150592, 0)
  28. Frame.Size = UDim2.new(0, 305, 0, 241)
  29.  
  30. judul.Name = "judul"
  31. judul.Parent = Frame
  32. judul.BackgroundColor3 = Color3.new(0.203922, 0.286275, 0.368627)
  33. judul.BorderColor3 = Color3.new(0.498039, 0.54902, 0.552941)
  34. judul.BorderSizePixel = 4
  35. judul.Size = UDim2.new(0, 305, 0, 49)
  36. judul.Font = Enum.Font.Cartoon
  37. judul.Text = "Jellyfish Simulator"
  38. judul.TextColor3 = Color3.new(0, 0, 0)
  39. judul.TextSize = 31
  40.  
  41. op.Name = "op"
  42. op.Parent = Frame
  43. op.BackgroundColor3 = Color3.new(0.203922, 0.286275, 0.368627)
  44. op.BorderColor3 = Color3.new(0.498039, 0.54902, 0.552941)
  45. op.BorderSizePixel = 4
  46. op.Position = UDim2.new(0.268852472, 0, 0.275302172, 0)
  47. op.Size = UDim2.new(0, 139, 0, 43)
  48. op.Font = Enum.Font.Cartoon
  49. op.Text = "Farm Money"
  50. op.TextColor3 = Color3.new(0, 0, 0)
  51. op.TextSize = 21
  52. op.MouseButton1Down:connect(function()
  53.  
  54. if dak == true then
  55. dak = false
  56. op.BackgroundColor3 = Color3.new(0.203922, 0.286275, 0.368627)
  57. else
  58. dak = true
  59. op.BackgroundColor3 = Color3.new(40, 127, 71)
  60. while dak do
  61. wait()
  62. game.ReplicatedStorage.GlobalEvents.Chest:FireServer("TheFuture")
  63. end
  64. end
  65. end)
  66.  
  67.  
  68. rb.Name = "rb"
  69. rb.Parent = Frame
  70. rb.BackgroundColor3 = Color3.new(0.203922, 0.286275, 0.368627)
  71. rb.BorderColor3 = Color3.new(0.498039, 0.54902, 0.552941)
  72. rb.BorderSizePixel = 4
  73. rb.Position = UDim2.new(0.268852472, 0, 0.556539774, 0)
  74. rb.Size = UDim2.new(0, 139, 0, 43)
  75. rb.Font = Enum.Font.Cartoon
  76. rb.Text = "Rainbow: off"
  77. rb.TextColor3 = Color3.new(0, 0, 0)
  78. rb.TextSize = 21
  79.  
  80. cred.Name = "cred"
  81. cred.Parent = Frame
  82. cred.BackgroundColor3 = Color3.new(1, 1, 1)
  83. cred.BackgroundTransparency = 1
  84. cred.Position = UDim2.new(0, 0, 0.829875529, 0)
  85. cred.Size = UDim2.new(0, 305, 0, 41)
  86. cred.Font = Enum.Font.Cartoon
  87. cred.Text = "Created By ItzHxS // ItzHxS#1280"
  88. cred.TextColor3 = Color3.new(0.180392, 0.8, 0.443137)
  89. cred.TextSize = 21
  90.  
  91. -- Scripts:
  92.  
  93. -- Rainbow:
  94. local RainbowEnabled = false
  95. local rs = game:GetService("RunService")
  96. local RRAAIINNBBOOWWSS = {}
  97. local function rainbowify(obj, prop)
  98.     if type(obj) == "table" then
  99.         for i, v in pairs(obj) do
  100.             rainbowify(v, prop)
  101.         end
  102.     elseif type(prop) == "table" then
  103.         for i, v in pairs(prop) do
  104.             rainbowify(obj, v)
  105.         end
  106.     else
  107.         local ok, o = pcall(function()
  108.             return obj[prop]
  109.         end)
  110.         if ok then
  111.             table.insert(RRAAIINNBBOOWWSS, function(c)
  112.                 if c then
  113.                     obj[prop] = c
  114.                 else
  115.                     obj[prop] = o
  116.                 end
  117.             end)
  118.         end
  119.     end
  120. end
  121. do
  122.     local reset = true
  123.     rs.RenderStepped:connect(function()
  124.         if RainbowEnabled then
  125.             local c = Color3.fromHSV((tick() / 16) % 1, 1, 1)
  126.             for i = 1, #RRAAIINNBBOOWWSS do
  127.                 pcall(RRAAIINNBBOOWWSS[i], c)
  128.             end
  129.             reset = true
  130.         elseif reset then
  131.             for i = 1, #RRAAIINNBBOOWWSS do
  132.                 pcall(RRAAIINNBBOOWWSS[i], false)
  133.             end
  134.             reset = false
  135.         end
  136.     end)
  137. end
  138. rainbowify({Ent3g, Frame, judul, op, rb, cred}
  139. , {"BackgroundColor3",})
  140.  
  141. rb.MouseButton1Down:connect(function()
  142.     RainbowEnabled = not RainbowEnabled
  143.     if RainbowEnabled then
  144.         rb.Text = "Rainbow: On"
  145.     else
  146.         rb.Text = "Rainbow: Off"
  147.     end
  148. end)
Add Comment
Please, Sign In to add comment