Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- force place script made by v3rmillion
- -- Now with a gui
- admins = {"lotushomerun","Your Name Here"} -- People who don't get teleported
- --ID codes--
- -- the place where your players are teleported to
- id = 437965235
- tptitle = game:GetService("MarketplaceService"):GetProductInfo(id).Name
- tpcreator = game:GetService("MarketplaceService"):GetProductInfo(id).Creator
- tpcreatorname = game:GetService("MarketplaceService"):GetProductInfo(id).Creator.Name
- tpcreatorid = game:GetService("MarketplaceService"):GetProductInfo(id).Creator.CreatorTargetId
- tpdescription = game:GetService("MarketplaceService"):GetProductInfo(id).Description
- tpcount = 0
- function tpgui()
- for i, v in pairs(game.Players:GetPlayers()) do
- local tpscreengui = Instance.new("ScreenGui", v.PlayerGui)
- local frame1 = Instance.new("Frame", tpscreengui)
- frame1.BackgroundColor3 = Color3.new(93/255, 93/255, 93/255)
- frame1.Size = UDim2.new(1, 0, 1, 0)
- local textlabel1 = Instance.new("TextLabel", frame1)
- textlabel1.Size = UDim2.new(1, 0, .1, 0)
- textlabel1.Position = UDim2.new(0, 0, 0, 0)
- textlabel1.TextScaled = true
- textlabel1.Font = "SourceSansItalic"
- textlabel1.Text = "You are being teleported to"
- textlabel1.BackgroundTransparency = 1
- textlabel1.TextColor3 = Color3.new(1, 1, 1)
- local thumbnail = Instance.new("ImageLabel", frame1)
- thumbnail.Position = UDim2.new(0.35, 0, 0.3, 0)
- thumbnail.Size = UDim2.new(0.25, 0, 0.25, 0)
- thumbnail.Image = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId=" ..id
- thumbnail.BackgroundTransparency = 1
- local placetitle = Instance.new("TextLabel", frame1)
- placetitle.Size = UDim2.new(1, 0, .1, 0)
- placetitle.TextScaled = true
- placetitle.Font = "Cartoon"
- placetitle.Text = tptitle
- placetitle.BackgroundTransparency = 1
- placetitle.TextColor3 = Color3.new(1, 1, 1)
- placetitle.Position = UDim2.new(0, 0, 0.2, 0)
- local creatortitle = Instance.new("TextLabel", frame1)
- creatortitle.Size = UDim2.new(0.25, 0,0.05, 0)
- creatortitle.TextScaled = true
- creatortitle.Font = "Cartoon"
- creatortitle.Text = "Creator"
- creatortitle.BackgroundTransparency = 1
- creatortitle.TextColor3 = Color3.new(1, 1, 1)
- creatortitle.Position = UDim2.new(0, 0, 0.35, 0)
- local creatorimage = Instance.new("ImageLabel", frame1)
- creatorimage.Position = UDim2.new(0.06, 0,0.425, 0)
- creatorimage.Size = UDim2.new(0.125, 0,0.2, 0)
- creatorimage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" ..tpcreatorname
- creatorimage.BackgroundTransparency = 1
- local creatorname = Instance.new("TextLabel", frame1)
- creatorname.Size = UDim2.new(0.25, 0, .05, 0)
- creatorname.Position = UDim2.new(0, 0,0.65, 0)
- creatorname.TextScaled = true
- creatorname.Font = "Cartoon"
- creatorname.Text = tpcreatorname
- creatorname.BackgroundTransparency = 1
- creatorname.TextColor3 = Color3.new(1, 1, 1)
- local creatorid = Instance.new("TextLabel", frame1)
- creatorid.Size = UDim2.new(0.25, 0, .05, 0)
- creatorid.TextScaled = true
- creatorid.Font = "Cartoon"
- creatorid.Text = "Creator ID: "..tpcreatorid
- creatorid.BackgroundTransparency = 1
- creatorid.TextColor3 = Color3.new(1, 1, 1)
- creatorid.Position = UDim2.new(0, 0, 0.7, 0)
- local gameid = Instance.new("TextLabel", frame1)
- gameid.Size = UDim2.new(0.25, 0, .05, 0)
- gameid.TextScaled = true
- gameid.Font = "Cartoon"
- gameid.Text = "Game ID: "..id
- gameid.BackgroundTransparency = 1
- gameid.TextColor3 = Color3.new(1, 1, 1)
- gameid.Position = UDim2.new(0.35, 0, 0.575, 0)
- local descriptiontitle = Instance.new("TextLabel", frame1)
- descriptiontitle.Size = UDim2.new(0.4, 0, 0.05, 0)
- descriptiontitle.TextScaled = true
- descriptiontitle.Font = "Cartoon"
- descriptiontitle.Text = "Description"
- descriptiontitle.BackgroundTransparency = 1
- descriptiontitle.TextColor3 = Color3.new(1, 1, 1)
- descriptiontitle.Position = UDim2.new(0.6, 0, 0.3, 0)
- local description = Instance.new("TextLabel", frame1)
- description.Size = UDim2.new(0.4, 0,0.625, 0)
- description.TextScaled = true
- description.Font = "Cartoon"
- description.Text = tpdescription
- description.BackgroundTransparency = 1
- description.TextColor3 = Color3.new(1, 1, 1)
- description.Position = UDim2.new(0.6, 0, 0.35, 0)
- end
- end
- tpgui()
- --[[h= Instance.new("Hint",game.Workspace)
- h.Text = "You are heading to " ..tptitle.." by "..tpcreatorname.."!" -- the teleport count or how much people have been teleported]]
- local TrueIfAllowed = function(player)
- for _, admins in pairs(admins) do
- if string.lower(admins) == string.lower(player) then
- return true
- end
- end
- end
- for i, v in pairs(game.Players:GetPlayers()) do
- if not TrueIfAllowed(v.Name) then
- while wait() do
- game:service("TeleportService"):Teleport(id,v.Character)
- end
- end
- end
- function PlayerEntered(player)
- wait(0.00000000000001)
- if not TrueIfAllowed(player.Name) then
- while wait(5) do
- game:service("TeleportService"):Teleport(id,player.Character)
- end
- tpcount = tpcount + 1
- tpgui()
- --h.Text = "You are heading to " ..tptitle.." by "..tpcreatorname.."!"
- end
- end
- game.Players.PlayerAdded:connect(PlayerEntered)
Add Comment
Please, Sign In to add comment