Advertisement
Upscalefanatic3

Bed Wars Gui - TP Generators, TP Beds, Shop Guis

Sep 15th, 2017
7,967
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. wait(.1)
  2.  
  3. scrgui = Instance.new("ScreenGui")
  4. scrgui.Name = "bedwarsgui"
  5. scrgui.Parent = game.Players.LocalPlayer.PlayerGui
  6. scrgui.ResetOnSpawn = false
  7.  
  8. top = Instance.new("TextLabel")
  9. top.Parent = scrgui
  10. top.Name = "top"
  11. top.Position = UDim2.new(0,100,0,400)
  12. top.Size = UDim2.new(0,250,0,40)
  13. top.BackgroundColor3 = Color3.fromRGB(255,255,255)
  14. top.BackgroundTransparency = .5
  15. top.Active = true
  16. top.Draggable = true
  17. top.Text = "Bed Wars Gui"
  18. top.TextScaled = true
  19.  
  20. showhide = Instance.new("TextButton")
  21. showhide.Parent = scrgui
  22. showhide.Name = "showhide"
  23. showhide.Text = "Hide"
  24. showhide.Size = UDim2.new(0,100,0,50)
  25. showhide.Position = UDim2.new(0,10,0,500)
  26. showhide.TextScaled = true
  27. showhide.BackgroundColor3 = Color3.fromRGB(200,0,0)
  28. showhide.BackgroundTransparency = .5
  29.  
  30. bg1 = Instance.new("Frame")
  31. bg1.Parent = top
  32. bg1.Name = "bg1"
  33. bg1.Position = UDim2.new(0,0,0,40)
  34. bg1.Size = UDim2.new(0,250,0,150)
  35. bg1.BackgroundColor3 = Color3.fromRGB(100,0,0)
  36. bg1.BackgroundTransparency = .5
  37.  
  38. bg2 = Instance.new("Frame")
  39. bg2.Parent = top
  40. bg2.Name = "bg2"
  41. bg2.Position = UDim2.new(0,10,0,50)
  42. bg2.Size = UDim2.new(0,230,0,130)
  43. bg2.BackgroundColor3 = Color3.fromRGB(100,100,100)
  44. bg2.BackgroundTransparency = .5
  45.  
  46. b1 = Instance.new("TextButton")
  47. b1.Name = "b1"
  48. b1.Parent = bg2
  49. b1.Position = UDim2.new(0,10,0,10)
  50. b1.Size = UDim2.new(0,100,0,50)
  51. b1.BackgroundColor3 = Color3.fromRGB(200,0,0)
  52. b1.BackgroundTransparency = .5
  53. b1.TextScaled = true
  54. b1.Text = "Teleport Beds"
  55.  
  56. b2 = Instance.new("TextButton")
  57. b2.Name = "b2"
  58. b2.Parent = bg2
  59. b2.Position = UDim2.new(0,120,0,10)
  60. b2.Size = UDim2.new(0,100,0,50)
  61. b2.BackgroundColor3 = Color3.fromRGB(200,0,0)
  62. b2.BackgroundTransparency = .5
  63. b2.TextScaled = true
  64. b2.Text = "Teleport Generators"
  65.  
  66. b3 = Instance.new("TextButton")
  67. b3.Name = "b3"
  68. b3.Parent = bg2
  69. b3.Position = UDim2.new(0,60,0,70)
  70. b3.Size = UDim2.new(0,100,0,50)
  71. b3.BackgroundColor3 = Color3.fromRGB(200,0,0)
  72. b3.BackgroundTransparency = .5
  73. b3.TextScaled = true
  74. b3.Text = "Show Shop Guis"
  75.  
  76. cred = Instance.new("TextLabel")
  77. cred.Name = "creds"
  78. cred.Text = "Made by Elite1337"
  79. cred.TextScaled = true
  80. cred.Parent = top
  81. cred.Position = UDim2.new(0,10,0,175)
  82. cred.Size = UDim2.new(0,100,0,20)
  83. cred.BackgroundTransparency = 1
  84. cred.TextColor3 = Color3.fromRGB(255,255,255)
  85.  
  86. showhide.MouseButton1Down:connect(function()
  87.  
  88. if showhide.Text == "Hide" then
  89. showhide.Text = "Show"
  90. top.Visible = false
  91. else
  92. showhide.Text = "Hide"
  93. top.Visible = true
  94. end
  95. end)
  96.  
  97. b1.MouseButton1Down:connect(function()
  98. workspace1 = game.Workspace:GetDescendants()
  99.  
  100. for i,v in ipairs(workspace1) do
  101. if v.Name == "Head" and v.Parent.Name == "YellowBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
  102. if v.Name == "Head" and v.Parent.Name == "RedBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
  103. if v.Name == "Head" and v.Parent.Name == "BlueBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
  104. if v.Name == "Head" and v.Parent.Name == "GreenBed" then v.Position = game.Players.LocalPlayer.Character.Head.Position v.Transparency = 0 end
  105. end
  106. end)
  107.  
  108. b2.MouseButton1Down:connect(function()
  109. workspace1 = game.Workspace:GetDescendants()
  110.  
  111. for i,v in ipairs(workspace1) do
  112. if v.Name == "Pad" then
  113. v.Position = game.Players.LocalPlayer.Character.Head.Position
  114. end
  115. end
  116. end)
  117.  
  118. b3.MouseButton1Down:connect(function()
  119. print("fired b3")
  120. game.Players.LocalPlayer.PlayerGui.ScreenGui.BG.Visible = true
  121. game.Players.LocalPlayer.PlayerGui.MiddleShop.Shop.Visible = true
  122. game.Players.LocalPlayer.PlayerGui.MiddleShop.Shop.Position = UDim2.new(0,400,0,100)
  123. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement