Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local items = {{"Glass Table (Blue)","aea"},{"BBQ","cgz"},{"Large Glass Table (Blue)","aga"},{"Chinese Clothed Table (White)","ahm"},{"Square Clothed Table (White)","aim"},{"Large Wood Table","aja"},{"Modern Chair (Blue)","aka"},{"Modern Chair (Black)","akk"},{"Modern Chair (White)","akm"},{"Basic Table","avz"},{"Low quality Counter","caa"},{"Average Counter","cba"},"High quality Counter","cca",{"Best quality Counter","cda"},{"Milkshake Bar","cez"},{"Hit Drinks Bar","cfz"},{"Catzario Statue","daz"},{"Mighty Statue","dbz"},{"Ultraw Statue","dcz"},{"DerpyMcDerpell Statue","ddz"},{"AtomixKing Statue","dez"},{"Kindoodle Statue","dfz"},{"Twenty-One Pilots (Premium Radio)","dgz"},{"Spanish (Premium Radio)","dhz"},{"Rap (Premium Radio)","djz"},{"Cyaim Statue","diz"},{"Blocksky Statue","dkz"},{"Tiki Smoothie Bar","dlz"},{"Welcome Chalkboard (Sand)","gbw"},{"Reeds","gjz"},{"Tall Lamp (Black)","gpk"},{"Tall Lamp (White)","gpm"},{"Food Signs","grz"},{"Boat","gsz"},{"Electronic Radio","maz"},{"Jazz Radio","mbz"},{"Cheerful Radio","mcz"},{"Electronic Dance DJ Table","mdz"},{"Japanese Arch","raz"},{"Italian Arch","rbz"},{"Golden Arch","rez"},{"TV","w2z"},{"Modern Shelf","w4z"},{"Blocksky Painting","woz"}}
- local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- local main = Instance.new("Frame",gui)
- local colours = Instance.new("Frame",main)
- local dark = Instance.new("Frame",colours)
- local logo = Instance.new("TextLabel",colours)
- local logodark = Instance.new("TextLabel",colours)
- local amount = Instance.new("TextBox",main)
- local amountdark = Instance.new("TextLabel",main)
- local give = Instance.new("TextButton",main)
- local darkgive = Instance.new('TextLabel',main)
- local infmon = Instance.new("TextButton",main)
- local darkinfmon = Instance.new("TextLabel",main)
- local infon = Instance.new("TextLabel",main)
- local infond = Instance.new("TextLabel",main)
- local on = Instance.new("TextLabel",main)
- local ond = Instance.new("TextLabel",main)
- local open = Instance.new("Frame",gui)
- local op = Instance.new("TextButton",open)
- local od = Instance.new("TextLabel",open)
- open.Size = UDim2.new(.069,0,.097,0)
- open.Position = UDim2.new(1-.069,0,1-.097,0)
- open.BackgroundColor3 = Color3.fromRGB(40,40,40)
- open.BackgroundTransparency = .35
- main.Position = UDim2.new(.303,0,-.496,0)
- open.BorderSizePixel = 0
- op.Size = UDim2.new(1,0,1,0)
- op.TextColor3 = Color3.fromRGB(0, 166, 255)
- op.BackgroundTransparency = 1
- op.TextScaled = true
- op.Text = "Open"
- op.ZIndex = 2
- od.Size = UDim2.new(1,0,1,0)
- od.TextColor3 = Color3.fromRGB(98,98,98)
- od.Position = UDim2.new(0,0,0.025,0)
- od.BackgroundTransparency = 1
- od.TextScaled = true
- od.Text = "Open"
- on.Size = UDim2.new(.377,0,.141,0)
- on.Position = UDim2.new(.74,0,.802,0)
- on.TextScaled = true
- on.Text = "off"
- on.BackgroundTransparency = 1
- on.TextColor3 = Color3.fromRGB(0,166,255)
- on.ZIndex = 2
- on.TextXAlignment = "Left"
- ond.Size = UDim2.new(.377,0,.141,0)
- ond.Position = UDim2.new(.74,0,.808,0)
- ond.TextScaled = true
- ond.Text = "off"
- ond.TextXAlignment = "Left"
- ond.BackgroundTransparency = 1
- ond.TextColor3 = Color3.fromRGB(98,98,98)
- infon.Size = UDim2.new(.377,0,.141,0)
- infon.Position = UDim2.new(.358,0,.802,0)
- infon.TextScaled = true
- infon.TextColor3 = Color3.fromRGB(0,166,255)
- infon.Text = "Infinite Money:"
- infon.BackgroundTransparency = 1
- infon.ZIndex = 2
- infond.Size = UDim2.new(.377,0,.141,0)
- infond.Position = UDim2.new(.358,0,.808,0)
- infond.TextScaled = true
- infond.TextColor3 = Color3.fromRGB(98,98,98)
- infond.Text = "Infinite Money:"
- infond.BackgroundTransparency = 1
- infmon.Size = UDim2.new(.608,0,.192,0)
- infmon.Position = UDim2.new(.358,0,.605,0)
- infmon.BackgroundTransparency = 1
- infmon.TextScaled = true
- infmon.TextColor3 = Color3.fromRGB(0,166,255)
- infmon.Text = "Toggle Infinite Money"
- infmon.ZIndex = 2
- darkinfmon.Size = UDim2.new(.608,0,.192,0)
- darkinfmon.Position = UDim2.new(.358,0,.61,0)
- darkinfmon.BackgroundTransparency = 1
- darkinfmon.TextScaled = true
- darkinfmon.TextColor3 = Color3.fromRGB(98,98,98)
- darkinfmon.Text = "Toggle Infinite Money"
- give.Size = UDim2.new(.377,0,.141,0)
- give.Position = UDim2.new(.358,0,.418,0)
- give.TextScaled = true
- give.Text = "Give Amount"
- give.BackgroundTransparency = 1
- give.TextColor3 = Color3.fromRGB(0,166,255)
- give.ZIndex = 2
- darkgive.Size = UDim2.new(.377,0,.141,0)
- darkgive.Position = UDim2.new(.358,0,.421,0)
- darkgive.TextScaled = true
- darkgive.Text = "Give Amount"
- darkgive.BackgroundTransparency = 1
- darkgive.TextColor3 = Color3.fromRGB(98,98,98)
- amount.Size = UDim2.new(.621,0,.15,0)
- amount.TextXAlignment = "Left"
- amount.Size = UDim2.new(.621,0,.15,0)
- amount.TextXAlignment = "Left"
- amount.BackgroundTransparency = 1
- amount.Position = UDim2.new(.358,0,.229,0)
- amount.TextScaled = true
- amount.TextColor3 = Color3.fromRGB(0,166,255)
- amount.Text = "Amount"
- amount.ZIndex = 2
- amountdark.Size = UDim2.new(.621,0,.15,0)
- amountdark.TextXAlignment = "Left"
- amountdark.BackgroundTransparency = 1
- amountdark.Position = UDim2.new(.358,0,.235,0)
- amountdark.TextScaled = true
- amountdark.TextColor3 = Color3.fromRGB(98,98,98)
- amountdark.Text = "Amount"
- frame = Instance.new("ScrollingFrame",main)
- main.BorderSizePixel = 0
- colours.BorderSizePixel = 0
- frame.Size = UDim2.new(.325,0,.8,0)
- frame.BackgroundTransparency = 1
- frame.Position = UDim2.new(0,0,0.2,0)
- frame.CanvasSize = UDim2.new(0,0,math.ceil((.8*#items)/5),0)
- main.Size = UDim2.new(0.404, 0,0.496, 0)
- main.BackgroundColor3 = Color3.fromRGB(40,40,40)
- main.BackgroundTransparency = .35
- colours.Size = UDim2.new(1,0,.2,0)
- colours.BackgroundColor3 = Color3.fromRGB(0, 166, 255)
- dark.Size = UDim2.new(1,0,.1,0)
- dark.BackgroundTransparency = .65
- dark.BorderSizePixel = 0
- dark.BackgroundColor3 = Color3.fromRGB(107,107,107)
- dark.Position = UDim2.new(0,0,0.9,0)
- gui.Name = "MjrGaelic's GUI"
- logo.Text = "MjrGaelic's GUI"
- logo.BackgroundTransparency = 1
- logo.TextScaled = true
- logo.Size = UDim2.new(.498,0,.648,0)
- logo.TextColor3 = Color3.fromRGB(255,255,255)
- logo.Position = UDim2.new(.251,0,.166,0)
- logo.ZIndex = 2
- logodark.Text = "MjrGaelic's GUI"
- logodark.BackgroundTransparency = 1
- logodark.TextScaled = true
- logodark.Size =UDim2.new(.498,0,.648,0)
- logodark.TextColor3 = Color3.fromRGB(98,98,98)
- logodark.Position = UDim2.new(.251,0,.2,0)
- op.MouseButton1Click:connect(function()
- if op.Text == "Open" then
- op.Text = "Close"
- od.Text ="Close"
- main:TweenPosition(UDim2.new(.303,0,.252,0),"InOut","Quart",.33)
- else
- op.Text = "Open"
- od.Text = "Open"
- main:TweenPosition(UDim2.new(.303,0,-.496,-36),"InOut","Quart",.33)
- end
- end)
- --
- local factory
- for _,tycoon in pairs(game.Workspace.Tycoons:GetChildren()) do
- if tycoon.Factory.Player.Value == game.Players.LocalPlayer then
- factory = tycoon.Factory
- end
- end
- local lastCounter
- factory.PlacedItems.Finished.ChildAdded:Connect(function(obj)
- if obj.Name == "Counter5" then
- lastCounter = obj
- end
- end)
- function da()
- while true do
- if on.Text == "on" then
- game.Workspace.Events.ItemPurchase:InvokeServer(0,"cgz",0)
- game.Workspace.Events.Building.PlaceObject:InvokeServer({Workspace.Furniture.Counter5,false,Vector3.new(0,-10,0),90,"cgz"})
- factory.RestaurantHandler.RemoveFurniture:InvokeServer(lastCounter,3)
- end
- wait(.01)
- end
- end
- spawn(da)
- --
- give.MouseButton1Click:connect(function()
- local ez = ""
- for i,v in pairs(frame:GetChildren()) do
- if v.Sel.Value == true then
- ez = v.Item.Value
- break
- end
- end
- for i = 1,tonumber(amount.Text) do
- game.Workspace.Events.ItemPurchase:InvokeServer(0, ez, 0)
- wait(.1)
- end
- end)
- infmon.MouseButton1Click:connect(function()
- if on.Text == "off" then
- on.Text = "on"
- ond.Text = "on"
- else
- on.Text = "off"
- ond.Text = "off"
- end
- end)
- local lasgood = 1
- amount.Changed:connect(function()
- if tonumber(amount.Text) == nil then
- if amount.Text == "" then
- amount.Text = "1"
- lasgood = 1
- else
- amount.Text = tostring(lasgood)
- end
- else
- if tonumber(amount.Text) > 99 then
- amount.Text = "99"
- end
- lasgood = amount.text
- end
- amountdark.Text = amount.Text
- end)
- for i,v in pairs(items) do
- if tostring(v[1]) ~= nil then
- local new = Instance.new("Frame",frame)
- local li = Instance.new("TextButton",new)
- local da = Instance.new("TextLabel",new)
- local sel = Instance.new("BoolValue",new)
- local val = Instance.new("StringValue",new)
- val.Name = "Item"
- val.Value = tostring(v[2])
- sel.Name = "Sel"
- sel.Value = false
- new.Size = UDim2.new(.925,0,.2/frame.CanvasSize.Y.Scale,0)
- new.BackgroundColor3 = Color3.fromRGB(0,166,255)
- new.BorderColor3 = Color3.fromRGB(0,0,0)
- if i ~= 1 then
- new.Position = UDim2.new(0,0,((.2/frame.CanvasSize.Y.Scale)*i)-(.2/frame.CanvasSize.Y.Scale),1)
- end
- li.Size = UDim2.new(1,0,1,0)
- li.TextScaled = true
- li.TextColor3 = Color3.fromRGB(255,255,255)
- li.BackgroundTransparency = 1
- li.ZIndex = 2
- li.Text = tostring(v[1])
- sel.Changed:connect(function()
- if sel.Value == true then
- new.BackgroundColor3 = Color3.fromRGB(0,0,0)
- da.TextColor3 = Color3.fromRGB(0,166,255)
- else
- da.TextColor3 = Color3.fromRGB(98,98,98)
- li.TextColor3 = Color3.fromRGB(255,255,255)
- new.BackgroundColor3 = Color3.fromRGB(0,166,255)
- end
- end)
- da.Size = UDim2.new(1,0,1,0)
- da.TextScaled = true
- da.TextColor3 = Color3.fromRGB(98,98,98)
- da.BackgroundTransparency = 1
- da.Text = tostring(v[1])
- da.Position = UDim2.new(0,0,0.025,0)
- li.MouseButton1Click:connect(function()
- for i,v in pairs(frame:GetChildren()) do
- v.Sel.Value = false
- end
- sel.Value = true
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement