Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(.1)
- scrgui = Instance.new("ScreenGui")
- scrgui.Name = "bedwarsgui"
- scrgui.Parent = game.Players.LocalPlayer.PlayerGui
- scrgui.ResetOnSpawn = false
- top = Instance.new("TextLabel")
- top.Parent = scrgui
- top.Name = "top"
- top.Position = UDim2.new(0,100,0,400)
- top.Size = UDim2.new(0,250,0,40)
- top.BackgroundColor3 = Color3.fromRGB(255,255,255)
- top.BackgroundTransparency = .5
- top.Active = true
- top.Draggable = true
- top.Text = "Bed Wars Gui"
- top.TextScaled = true
- showhide = Instance.new("TextButton")
- showhide.Parent = scrgui
- showhide.Name = "showhide"
- showhide.Text = "Hide"
- showhide.Size = UDim2.new(0,100,0,50)
- showhide.Position = UDim2.new(0,10,0,500)
- showhide.TextScaled = true
- showhide.BackgroundColor3 = Color3.fromRGB(200,0,0)
- showhide.BackgroundTransparency = .5
- bg1 = Instance.new("Frame")
- bg1.Parent = top
- bg1.Name = "bg1"
- bg1.Position = UDim2.new(0,0,0,40)
- bg1.Size = UDim2.new(0,250,0,150)
- bg1.BackgroundColor3 = Color3.fromRGB(100,0,0)
- bg1.BackgroundTransparency = .5
- bg2 = Instance.new("Frame")
- bg2.Parent = top
- bg2.Name = "bg2"
- bg2.Position = UDim2.new(0,10,0,50)
- bg2.Size = UDim2.new(0,230,0,130)
- bg2.BackgroundColor3 = Color3.fromRGB(100,100,100)
- bg2.BackgroundTransparency = .5
- b1 = Instance.new("TextButton")
- b1.Name = "b1"
- b1.Parent = bg2
- b1.Position = UDim2.new(0,10,0,10)
- b1.Size = UDim2.new(0,100,0,50)
- b1.BackgroundColor3 = Color3.fromRGB(200,0,0)
- b1.BackgroundTransparency = .5
- b1.TextScaled = true
- b1.Text = "Teleport Beds"
- b2 = Instance.new("TextButton")
- b2.Name = "b2"
- b2.Parent = bg2
- b2.Position = UDim2.new(0,120,0,10)
- b2.Size = UDim2.new(0,100,0,50)
- b2.BackgroundColor3 = Color3.fromRGB(200,0,0)
- b2.BackgroundTransparency = .5
- b2.TextScaled = true
- b2.Text = "Teleport Generators"
- b3 = Instance.new("TextButton")
- b3.Name = "b3"
- b3.Parent = bg2
- b3.Position = UDim2.new(0,60,0,70)
- b3.Size = UDim2.new(0,100,0,50)
- b3.BackgroundColor3 = Color3.fromRGB(200,0,0)
- b3.BackgroundTransparency = .5
- b3.TextScaled = true
- b3.Text = "Show Shop Guis"
- cred = Instance.new("TextLabel")
- cred.Name = "creds"
- cred.Text = "Made by Elite1337"
- cred.TextScaled = true
- cred.Parent = top
- cred.Position = UDim2.new(0,10,0,175)
- cred.Size = UDim2.new(0,100,0,20)
- cred.BackgroundTransparency = 1
- cred.TextColor3 = Color3.fromRGB(255,255,255)
- showhide.MouseButton1Down:connect(function()
- if showhide.Text == "Hide" then
- showhide.Text = "Show"
- top.Visible = false
- else
- showhide.Text = "Hide"
- top.Visible = true
- end
- end)
- b1.MouseButton1Down:connect(function()
- workspace1 = game.Workspace:GetDescendants()
- for i,v in ipairs(workspace1) do
- if v.Name == "Head" and v.Parent.Name == "YellowBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
- if v.Name == "Head" and v.Parent.Name == "RedBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
- if v.Name == "Head" and v.Parent.Name == "BlueBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
- if v.Name == "Head" and v.Parent.Name == "GreenBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
- end
- end)
- b2.MouseButton1Down:connect(function()
- workspace1 = game.Workspace:GetDescendants()
- for i,v in ipairs(workspace1) do
- if v.Name == "Pad" then
- v.Position = game.Players.LocalPlayer.Character.Head.Position
- end
- end
- end)
- b3.MouseButton1Down:connect(function()
- print("fired b3")
- game.Players.LocalPlayer.PlayerGui.ScreenGui.BG.Visible = true
- game.Players.LocalPlayer.PlayerGui.MiddleShop.Shop.Visible = true
- game.Players.LocalPlayer.PlayerGui.MiddleShop.Shop.Position = UDim2.new(0,400,0,100)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement