Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketplaceService = game:GetService("MarketplaceService")
- local FlyingPlatformProductId = 115828085
- MarketplaceService.ProcessReceipt = function(receiptInfo)
- if receiptInfo.ProductId == FlyingPlatformProductId then
- while true do
- local Player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- local Character = Player.Character
- if Character and Character.Humanoid and Character.Humanoid.Health > 0 and Character.Humanoid.RootPart then
- Character.Humanoid.RootPart.CFrame = workspace.ATPlatformStand.TeleportationTarget.CFrame
- return Enum.ProductPurchaseDecision.PurchaseGranted
- else
- wait(1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement