Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local gui = script.Parent
- local selectbasegui = script.Parent.Parent:WaitForChild("SelectBaseGui")
- local shopbuton,inventorybutton, settingsbutton, gameversion = gui:WaitForChild("ShopButton"), gui:WaitForChild("InventoryButton"), gui:WaitForChild("SettingsButton"), gui:WaitForChild("GameVersion")
- local settingsframe = gui:WaitForChild("SettingsFrame")
- local deletebutton, teleportbutton, rotatebutton, saveandloadbutton, twittercodebutton, settingscancelbutton, twittercodeframe, feedbackreportbutton = settingsframe:WaitForChild("DeleteButton"), settingsframe:WaitForChild("TeleportButton"), settingsframe:WaitForChild("RotateButton"), settingsframe:WaitForChild("SaveandLoadButton"), settingsframe:WaitForChild("TwitterCodeButton"), settingsframe:WaitForChild("CancelButton"), settingsframe:WaitForChild("TwitterCodeFrame"),settingsframe:WaitForChild("Feedback/ReportButton")
- local tcancelbutton, ttextbox = twittercodeframe:WaitForChild("CancelButton"), twittercodeframe:WaitForChild("TextBox")
- local inventoryframe = gui:WaitForChild("InventoryFrame")
- local icancelbutton = inventoryframe:WaitForChild("CancelButton")
- local shopframe = gui:WaitForChild("ShopFrame")
- local scancelbutton = shopframe:WaitForChild("CancelButton")
- local baseplates = workspace.Bases:GetChildren()
- local place = 1
- shopbuton.MouseButton1Click:Connect(function()
- shopframe.Visible = true
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, button in next, buttons do
- button.Visible = false
- end
- end)
- inventorybutton.MouseButton1Click:Connect(function()
- inventoryframe.Visible = true
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, button in next, buttons do
- button.Visible = false
- end
- end)
- settingsbutton.MouseButton1Click:Connect(function()
- plr.PlayerGui:WaitForChild("MainGui"):WaitForChild("SettingsFrame").Visible = true
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, button in next, buttons do
- button.Visible = false
- end
- end)
- deletebutton.MouseButton1Click:Connect(function()
- -- Player deletes base.
- print("I BEEN CLICKED")
- end)
- -- enabled1 = true
- teleportbutton.MouseButton1Click:Connect(function()
- --[[
- if not enabled1 then
- return
- end
- enabled1 = false
- baseplates[place].Owner.Value = plr
- plr.Character.HumanoidRootPart.CFrame = CFrame.new(baseplates[place].BasePlate.Position.X, baseplates[place].BasePlate.Position.Y+3, baseplates[place].BasePlate.Position.Z)
- for i = 30, 0, -1 do
- teleportbutton.Style = Enum.ButtonStyle.RobloxRoundButton
- teleportbutton.Text = "COOL DOWN IN "..i.." SECONDS"
- wait(1)
- teleportbutton.Text = "TELEPORT TO BASE"
- teleportbutton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
- end
- enabled1 = true
- --]]
- print("I BEEN CLICKED")
- end)
- rotatebutton.MouseButton1Click:Connect(function()
- print("I BEEN CLICKED")
- end)
- saveandloadbutton.MouseButton1Click:Connect(function()
- -- Save and/or Load Base.
- print("I BEEN CLICKED")
- end)
- settingscancelbutton.MouseButton1Click:Connect(function()
- plr.PlayerGui:WaitForChild("MainGui"):WaitForChild("SettingsFrame").Visible = false
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, buttons in next, buttons do
- buttons.Visible = true
- end
- end)
- enabled2 = true
- twittercodebutton.MouseButton1Click:Connect(function()
- if not enabled2 then
- return
- end
- enabled2 = false
- local buttons = {deletebutton, rotatebutton, saveandloadbutton, teleportbutton, settingscancelbutton, feedbackreportbutton}
- for _, buttons in next, buttons do
- buttons.Visible = false
- end
- twittercodebutton:TweenPosition(UDim2.new(0.019, 0, 0.066, 0), "In", "Back", 1)
- wait(1.2)
- twittercodeframe.Visible = true
- enabled2 = true
- end)
- enabled3 = true
- tcancelbutton.MouseButton1Click:Connect(function()
- if not enabled3 then
- return
- end
- enabled3 = false
- twittercodeframe.Visible = false
- ttextbox.Text = "ENTER CODE HERE"
- twittercodebutton:TweenPosition(UDim2.new(0.019, 0, 0.6, 0), "Out", "Back", 1)
- wait(1.2)
- local buttons = {deletebutton, rotatebutton, saveandloadbutton, teleportbutton, settingscancelbutton, feedbackreportbutton}
- for _, buttons in next, buttons do
- buttons.Visible = true
- end
- enabled3 = true
- end)
- feedbackreportbutton.MouseButton1Click:Connect(function()
- print("I BEEN CLICKED")
- end)
- icancelbutton.MouseButton1Click:Connect(function()
- inventoryframe.Visible = false
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, button in next, buttons do
- button.Visible = true
- end
- end)
- scancelbutton.MouseButton1Click:Connect(function()
- shopframe.Visible = false
- local buttons = {shopbuton, inventorybutton, settingsbutton, gameversion}
- for _, button in next, buttons do
- button.Visible = true
- end
- end)
- -- Inventory/Shop Section
- local rep = game:GetService("ReplicatedStorage")
- local itemmodelfolder = rep:WaitForChild("GuiFolder"):WaitForChild("ItemModelFolder")
- local itemmodel = rep:WaitForChild("ItemModel")
- local vipid = 1234567
- local supervipid = 1234567
- local grouppassid = 1234567
- local itemmodelstuff = itemmodel:GetChildren()
- local normal = itemmodelfolder:WaitForChild("Inventory"):WaitForChild("Normal")
- local grouppass = itemmodelfolder:WaitForChild("Inventory"):WaitForChild("GroupPass")
- local vip = itemmodelfolder:WaitForChild("Inventory"):WaitForChild("Vip")
- local supervip = itemmodelfolder:WaitForChild("Inventory"):WaitForChild("SuperVip")
- -- local inventorystuff = {itemmodelfolder:WaitForChild("Inventory"):WaitForChild("Normal"), itemmodelfolder:WaitForChild("Inventory"):WaitForChild("GroupPass"), itemmodelfolder:WaitForChild("Inventory"):WaitForChild("Vip"), itemmodelfolder:WaitForChild("Inventory"):WaitForChild("SuperVip")}
- local basicbuildingblocks = itemmodel:WaitForChild("Basic Building Blocks")
- -- Basic Building Blocks Section
- local blocks = basicbuildingblocks:GetChildren()
- if blocks.VIP.Value == 0 then
- local clone = normal:Clone()
- clone.Parent = shopframe.ItemFrame.ScrollingFrame
- clone.Position.CFrame = CFrame.new(0,0,0,0)
- else
- print("It didn't load sir. Sorry.")
- end
- if blocks.VIP.Value == 1 then
- local clone = vip:Clone()
- clone.Parent = shopframe.ItemFrame.ScrollingFrame
- clone.Position.CFrame = CFrame.new(0,0,0,0)
- else
- print("It didn't load sir. Sorry.")
- end
- if blocks.VIP.Value == 2 then
- local clone = supervip:Clone()
- clone.Parent = shopframe.ItemFrame.ScrollingFrame
- clone.Position.CFrame = CFrame.new(0,0,0,0)
- end
- if blocks.VIP.Value == 3 then
- local clone = grouppass:Clone()
- clone.Parent = shopframe.ItemFrame.ScrollingFrame
- clone.Position.CFrame = CFrame.new(0,0,0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement