Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local TowerBattlesGUI = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- local Frame = Instance.new("Frame")
- local title = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local button = Instance.new("TextButton")
- local button_2 = Instance.new("TextButton")
- local button_3 = Instance.new("TextButton")
- local button_4 = Instance.new("TextButton")
- local button_5 = Instance.new("TextButton")
- local button_6 = Instance.new("TextButton")
- local button_7 = Instance.new("TextButton")
- local button_8 = Instance.new("TextButton")
- local button_9 = Instance.new("TextButton")
- local button_10 = Instance.new("TextButton")
- local button_11 = Instance.new("TextButton")
- local button_12 = Instance.new("TextButton")
- local button_13 = Instance.new("TextButton")
- local button_14 = Instance.new("TextButton")
- local button_15 = Instance.new("TextButton")
- local button_16 = Instance.new("TextButton")
- -- Properties
- TowerBattlesGUI.Name = "TowerBattlesGUI"
- TowerBattlesGUI.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = TowerBattlesGUI
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 0.5
- Frame.Size = UDim2.new(0, 100, 0, 500)
- title.Name = "title"
- title.Parent = Frame
- title.BackgroundColor3 = Color3.new(1, 1, 1)
- title.BackgroundTransparency = 0.5
- title.BorderColor3 = Color3.new(0, 0, 0)
- title.Size = UDim2.new(0, 100, 0, 20)
- TextLabel.Parent = title
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 100, 0, 20)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "TBMenu"
- TextLabel.TextSize = 14
- ScrollingFrame.Parent = Frame
- ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- ScrollingFrame.BackgroundTransparency = 1
- ScrollingFrame.Position = UDim2.new(0, 0, 0, 20)
- ScrollingFrame.Size = UDim2.new(0, 100, 0, 480)
- button.Name = "button"
- button.Parent = ScrollingFrame
- button.BackgroundColor3 = Color3.new(1, 1, 1)
- button.BackgroundTransparency = 0.5
- button.Position = UDim2.new(0, 0, 0, 20)
- button.Size = UDim2.new(0, 100, 0, 20)
- button.Font = Enum.Font.SourceSans
- button.FontSize = Enum.FontSize.Size14
- button.Text = "Scout [250]"
- button.TextSize = 14
- button_2.Name = "button"
- button_2.Parent = ScrollingFrame
- button_2.BackgroundColor3 = Color3.new(1, 1, 1)
- button_2.BackgroundTransparency = 0.5
- button_2.Position = UDim2.new(0, 0, 0, 50)
- button_2.Size = UDim2.new(0, 100, 0, 20)
- button_2.Font = Enum.Font.SourceSans
- button_2.FontSize = Enum.FontSize.Size14
- button_2.Text = "Sniper [450]"
- button_2.TextSize = 14
- button_3.Name = "button"
- button_3.Parent = ScrollingFrame
- button_3.BackgroundColor3 = Color3.new(1, 1, 1)
- button_3.BackgroundTransparency = 0.5
- button_3.Position = UDim2.new(0, 0, 0, 80)
- button_3.Size = UDim2.new(0, 100, 0, 20)
- button_3.Font = Enum.Font.SourceSans
- button_3.FontSize = Enum.FontSize.Size14
- button_3.Text = "Fragger [350]"
- button_3.TextSize = 14
- button_4.Name = "button"
- button_4.Parent = ScrollingFrame
- button_4.BackgroundColor3 = Color3.new(1, 1, 1)
- button_4.BackgroundTransparency = 0.5
- button_4.Position = UDim2.new(0, 0, 0, 110)
- button_4.Size = UDim2.new(0, 100, 0, 20)
- button_4.Font = Enum.Font.SourceSans
- button_4.FontSize = Enum.FontSize.Size12
- button_4.Text = "Shotgunner [400]"
- button_4.TextSize = 12
- button_5.Name = "button"
- button_5.Parent = ScrollingFrame
- button_5.BackgroundColor3 = Color3.new(1, 1, 1)
- button_5.BackgroundTransparency = 0.5
- button_5.Position = UDim2.new(0, 0, 0, 140)
- button_5.Size = UDim2.new(0, 100, 0, 20)
- button_5.Font = Enum.Font.SourceSans
- button_5.FontSize = Enum.FontSize.Size14
- button_5.Text = "Cryo [200]"
- button_5.TextSize = 14
- button_6.Name = "button"
- button_6.Parent = ScrollingFrame
- button_6.BackgroundColor3 = Color3.new(1, 1, 1)
- button_6.BackgroundTransparency = 0.5
- button_6.Position = UDim2.new(0, 0, 0, 170)
- button_6.Size = UDim2.new(0, 100, 0, 20)
- button_6.Font = Enum.Font.SourceSans
- button_6.FontSize = Enum.FontSize.Size14
- button_6.Text = "Farm [300]"
- button_6.TextSize = 14
- button_7.Name = "button"
- button_7.Parent = ScrollingFrame
- button_7.BackgroundColor3 = Color3.new(1, 1, 1)
- button_7.BackgroundTransparency = 0.5
- button_7.Position = UDim2.new(0, 0, 0, 200)
- button_7.Size = UDim2.new(0, 100, 0, 20)
- button_7.Font = Enum.Font.SourceSans
- button_7.FontSize = Enum.FontSize.Size14
- button_7.Text = "Soldier [450]"
- button_7.TextSize = 14
- button_8.Name = "button"
- button_8.Parent = ScrollingFrame
- button_8.BackgroundColor3 = Color3.new(1, 1, 1)
- button_8.BackgroundTransparency = 0.5
- button_8.Position = UDim2.new(0, 0, 0, 230)
- button_8.Size = UDim2.new(0, 100, 0, 20)
- button_8.Font = Enum.Font.SourceSans
- button_8.FontSize = Enum.FontSize.Size14
- button_8.Text = "Tuber [850]"
- button_8.TextSize = 14
- button_9.Name = "button"
- button_9.Parent = ScrollingFrame
- button_9.BackgroundColor3 = Color3.new(1, 1, 1)
- button_9.BackgroundTransparency = 0.5
- button_9.Position = UDim2.new(0, 0, 0, 260)
- button_9.Size = UDim2.new(0, 100, 0, 20)
- button_9.Font = Enum.Font.SourceSans
- button_9.FontSize = Enum.FontSize.Size14
- button_9.Text = "Patrol [400]"
- button_9.TextSize = 14
- button_10.Name = "button"
- button_10.Parent = ScrollingFrame
- button_10.BackgroundColor3 = Color3.new(1, 1, 1)
- button_10.BackgroundTransparency = 0.5
- button_10.Position = UDim2.new(0, 0, 0, 290)
- button_10.Size = UDim2.new(0, 100, 0, 20)
- button_10.Font = Enum.Font.SourceSans
- button_10.FontSize = Enum.FontSize.Size14
- button_10.Text = "Barracks [550]"
- button_10.TextSize = 14
- button_11.Name = "button"
- button_11.Parent = ScrollingFrame
- button_11.BackgroundColor3 = Color3.new(1, 1, 1)
- button_11.BackgroundTransparency = 0.5
- button_11.Position = UDim2.new(0, 0, 0, 320)
- button_11.Size = UDim2.new(0, 100, 0, 20)
- button_11.Font = Enum.Font.SourceSans
- button_11.FontSize = Enum.FontSize.Size14
- button_11.Text = "Aviator [825]"
- button_11.TextSize = 14
- button_12.Name = "button"
- button_12.Parent = ScrollingFrame
- button_12.BackgroundColor3 = Color3.new(1, 1, 1)
- button_12.BackgroundTransparency = 0.5
- button_12.Position = UDim2.new(0, 0, 0, 350)
- button_12.Size = UDim2.new(0, 100, 0, 20)
- button_12.Font = Enum.Font.SourceSans
- button_12.FontSize = Enum.FontSize.Size12
- button_12.Text = "Flamethrower [750]"
- button_12.TextSize = 12
- button_13.Name = "button"
- button_13.Parent = ScrollingFrame
- button_13.BackgroundColor3 = Color3.new(1, 1, 1)
- button_13.BackgroundTransparency = 0.5
- button_13.Position = UDim2.new(0, 0, 0, 380)
- button_13.Size = UDim2.new(0, 100, 0, 20)
- button_13.Font = Enum.Font.SourceSans
- button_13.FontSize = Enum.FontSize.Size11
- button_13.Text = "Commando [1850]"
- button_13.TextSize = 11
- button_14.Name = "button"
- button_14.Parent = ScrollingFrame
- button_14.BackgroundColor3 = Color3.new(1, 1, 1)
- button_14.BackgroundTransparency = 0.5
- button_14.Position = UDim2.new(0, 0, 0, 410)
- button_14.Size = UDim2.new(0, 100, 0, 20)
- button_14.Font = Enum.Font.SourceSans
- button_14.FontSize = Enum.FontSize.Size11
- button_14.Text = "Commander [600]"
- button_14.TextSize = 11
- button_15.Name = "button"
- button_15.Parent = ScrollingFrame
- button_15.BackgroundColor3 = Color3.new(1, 1, 1)
- button_15.BackgroundTransparency = 0.5
- button_15.Position = UDim2.new(0, 0, 0, 440)
- button_15.Size = UDim2.new(0, 100, 0, 20)
- button_15.Font = Enum.Font.SourceSans
- button_15.FontSize = Enum.FontSize.Size11
- button_15.Text = "RailGunner [2450]"
- button_15.TextSize = 11
- button_16.Name = "button"
- button_16.Parent = ScrollingFrame
- button_16.BackgroundColor3 = Color3.new(1, 1, 1)
- button_16.BackgroundTransparency = 0.5
- button_16.Position = UDim2.new(0, 0, 0, 470)
- button_16.Size = UDim2.new(0, 100, 0, 20)
- button_16.Font = Enum.Font.SourceSans
- button_16.FontSize = Enum.FontSize.Size11
- button_16.Text = "Phaser [3200]"
- button_16.TextSize = 11
- button.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Scout")
- end)
- button_2.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Sniper")
- end)
- button_3.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Fragger")
- end)
- button_4.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Shotgunner")
- end)
- button_5.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Cryo")
- end)
- button_6.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Farm")
- end)
- button_7.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Soldier")
- end)
- button_8.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Tuber")
- end)
- button_9.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Patrol")
- end)
- button_10.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Barracks")
- end)
- button_11.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Aviator")
- end)
- button_12.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Flamethrower")
- end)
- button_13.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Commando")
- end)
- button_14.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Commander")
- end)
- button_15.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("RailGunner")
- end)
- button_16.MouseButton1Down:connect(function()
- game.Workspace.PlacingTower:InvokeServer("Phaser")
- end)
Add Comment
Please, Sign In to add comment