Advertisement
Guest User

sfsdfsdfsdf

a guest
Oct 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local MarketplaceService = game:GetService("MarketplaceService")
  2.  
  3. local FlyingPlatformProductId = 115828085
  4.  
  5. MarketplaceService.ProcessReceipt = function(receiptInfo)
  6. if receiptInfo.ProductId == FlyingPlatformProductId then
  7. while true do
  8. local Player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  9. local Character = Player.Character
  10. if Character and Character.Humanoid and Character.Humanoid.Health > 0 and Character.Humanoid.RootPart then
  11. Character.Humanoid.RootPart.CFrame = workspace.ATPlatformStand.TeleportationTarget.CFrame
  12. return Enum.ProductPurchaseDecision.PurchaseGranted
  13. else
  14. wait(1)
  15. end
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement