lotushomerun

teleport everyone script(Roblox)

May 6th, 2017
27,954
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- force place script made by v3rmillion
  2. -- Now with a gui
  3. admins = {"lotushomerun","Your Name Here"} -- People who don't get teleported
  4. --ID codes--
  5. -- the place where your players are teleported to
  6. id = 437965235
  7. tptitle = game:GetService("MarketplaceService"):GetProductInfo(id).Name
  8. tpcreator = game:GetService("MarketplaceService"):GetProductInfo(id).Creator
  9. tpcreatorname = game:GetService("MarketplaceService"):GetProductInfo(id).Creator.Name
  10. tpcreatorid = game:GetService("MarketplaceService"):GetProductInfo(id).Creator.CreatorTargetId
  11. tpdescription = game:GetService("MarketplaceService"):GetProductInfo(id).Description
  12. tpcount = 0
  13. function tpgui()
  14.     for i, v in pairs(game.Players:GetPlayers()) do
  15.     local tpscreengui = Instance.new("ScreenGui", v.PlayerGui)
  16.     local frame1 = Instance.new("Frame", tpscreengui)
  17.     frame1.BackgroundColor3 = Color3.new(93/255, 93/255, 93/255)
  18.     frame1.Size = UDim2.new(1, 0, 1, 0)
  19.     local textlabel1 = Instance.new("TextLabel", frame1)
  20.     textlabel1.Size = UDim2.new(1, 0, .1, 0)
  21.     textlabel1.Position = UDim2.new(0, 0, 0, 0)
  22.     textlabel1.TextScaled = true
  23.     textlabel1.Font = "SourceSansItalic"
  24.     textlabel1.Text = "You are being teleported to"
  25.     textlabel1.BackgroundTransparency = 1
  26.     textlabel1.TextColor3 = Color3.new(1, 1, 1)
  27.     local thumbnail = Instance.new("ImageLabel", frame1)
  28.     thumbnail.Position = UDim2.new(0.35, 0, 0.3, 0)
  29.     thumbnail.Size = UDim2.new(0.25, 0, 0.25, 0)
  30.     thumbnail.Image = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId=" ..id
  31.     thumbnail.BackgroundTransparency = 1
  32.     local placetitle = Instance.new("TextLabel", frame1)
  33.     placetitle.Size = UDim2.new(1, 0, .1, 0)
  34.     placetitle.TextScaled = true
  35.     placetitle.Font = "Cartoon"
  36.     placetitle.Text = tptitle
  37.     placetitle.BackgroundTransparency = 1
  38.     placetitle.TextColor3 = Color3.new(1, 1, 1)
  39.     placetitle.Position = UDim2.new(0, 0, 0.2, 0)
  40.     local creatortitle = Instance.new("TextLabel", frame1)
  41.     creatortitle.Size = UDim2.new(0.25, 0,0.05, 0)
  42.     creatortitle.TextScaled = true
  43.     creatortitle.Font = "Cartoon"
  44.     creatortitle.Text = "Creator"
  45.     creatortitle.BackgroundTransparency = 1
  46.     creatortitle.TextColor3 = Color3.new(1, 1, 1)
  47.     creatortitle.Position = UDim2.new(0, 0, 0.35, 0)
  48.     local creatorimage = Instance.new("ImageLabel", frame1)
  49.     creatorimage.Position = UDim2.new(0.06, 0,0.425, 0)
  50.     creatorimage.Size = UDim2.new(0.125, 0,0.2, 0)
  51.     creatorimage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" ..tpcreatorname
  52.     creatorimage.BackgroundTransparency = 1
  53.     local creatorname = Instance.new("TextLabel", frame1)
  54.     creatorname.Size = UDim2.new(0.25, 0, .05, 0)
  55.     creatorname.Position = UDim2.new(0, 0,0.65, 0)
  56.     creatorname.TextScaled = true
  57.     creatorname.Font = "Cartoon"
  58.     creatorname.Text = tpcreatorname
  59.     creatorname.BackgroundTransparency = 1
  60.     creatorname.TextColor3 = Color3.new(1, 1, 1)
  61.     local creatorid = Instance.new("TextLabel", frame1)
  62.     creatorid.Size = UDim2.new(0.25, 0, .05, 0)
  63.     creatorid.TextScaled = true
  64.     creatorid.Font = "Cartoon"
  65.     creatorid.Text = "Creator ID: "..tpcreatorid
  66.     creatorid.BackgroundTransparency = 1
  67.     creatorid.TextColor3 = Color3.new(1, 1, 1)
  68.     creatorid.Position = UDim2.new(0, 0, 0.7, 0)
  69.     local gameid = Instance.new("TextLabel", frame1)
  70.     gameid.Size = UDim2.new(0.25, 0, .05, 0)
  71.     gameid.TextScaled = true
  72.     gameid.Font = "Cartoon"
  73.     gameid.Text = "Game ID: "..id
  74.     gameid.BackgroundTransparency = 1
  75.     gameid.TextColor3 = Color3.new(1, 1, 1)
  76.     gameid.Position = UDim2.new(0.35, 0, 0.575, 0)
  77.     local descriptiontitle = Instance.new("TextLabel", frame1)
  78.     descriptiontitle.Size = UDim2.new(0.4, 0, 0.05, 0)
  79.     descriptiontitle.TextScaled = true
  80.     descriptiontitle.Font = "Cartoon"
  81.     descriptiontitle.Text = "Description"
  82.     descriptiontitle.BackgroundTransparency = 1
  83.     descriptiontitle.TextColor3 = Color3.new(1, 1, 1)
  84.     descriptiontitle.Position = UDim2.new(0.6, 0, 0.3, 0)
  85.     local description = Instance.new("TextLabel", frame1)
  86.     description.Size = UDim2.new(0.4, 0,0.625, 0)
  87.     description.TextScaled = true
  88.     description.Font = "Cartoon"
  89.     description.Text = tpdescription
  90.     description.BackgroundTransparency = 1
  91.     description.TextColor3 = Color3.new(1, 1, 1)
  92.     description.Position = UDim2.new(0.6, 0, 0.35, 0)
  93.     end
  94. end
  95. tpgui()
  96. --[[h= Instance.new("Hint",game.Workspace)
  97. h.Text = "You are heading to " ..tptitle.." by "..tpcreatorname.."!" -- the teleport count or how much people have been teleported]]
  98. local TrueIfAllowed = function(player)
  99. for _, admins in pairs(admins) do
  100. if string.lower(admins) == string.lower(player) then
  101. return true
  102. end
  103. end
  104. end
  105. for i, v in pairs(game.Players:GetPlayers()) do
  106. if not TrueIfAllowed(v.Name) then
  107. while wait() do
  108. game:service("TeleportService"):Teleport(id,v.Character)
  109. end
  110. end
  111. end
  112. function PlayerEntered(player)
  113. wait(0.00000000000001)
  114. if not TrueIfAllowed(player.Name) then
  115. while wait(5) do
  116. game:service("TeleportService"):Teleport(id,player.Character)
  117. end
  118. tpcount = tpcount + 1
  119. tpgui()
  120. --h.Text = "You are heading to " ..tptitle.." by "..tpcreatorname.."!"
  121. end
  122. end
  123. game.Players.PlayerAdded:connect(PlayerEntered)
RAW Paste Data Copied