Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When Developer Product Bought, Teleport to a part? [closed]

Asked by 6 years ago

I Need a lot of help whit this. I Wanted to Make a screenGui that the game is closed but you could buy access to the game when you are over the void on a checkpoint. I want it to teleport you to the entrance of the game when you bought it + deleting the screen gui that says that the game is closed.

Here Is My Explorer, If you want more info on this make sure to tell me in the Comments. Image Of My Explorer In New Tab

My Script From The Image (In ServerScriptService):

01local MarketPlaceService = game:GetService('MarketplaceService')
02local id = 448687322
03 
04MarketPlaceService.ProcessReceipt = function(receiptInfo)
05    for i, player in ipairs(game.Players:GetChildren()) do
06        if player.userId == receiptInfo.PlayerId then
07            if receiptInfo.ProductId == id then
08                --Teleport To Part
09            end
10        end
11    end
12end

Please Help Me!

0
This is a request. DinozCreates 1070 — 6y
0
you can teleport a player by changing the position of humanoidrootpart, the other parts will follow GoldAngelInDisguise 297 — 6y

Closed as Not Constructive by DinozCreates, WideSteal321, User#24403, and ihatecars100

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago

if i do not misunderstand you just need to do something like this

1player.Character.HumanoidRootPart.CFrame = workspace["When bought teleport to this block"].CFrame+Vector3.new(0,5,0) -- This teleports the player to the block and additional 5 Studs Above(if you dont want the 5 studs just remove the +Vector3.new(0,5,0) at the end)
Ad