i tried this and everything seems ok but nothing works?
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local MarketplaceService = game:GetService("MarketplaceService")
script.Parent.Touched:Connect(function(h)
local hum = h.Parent:FindFirstChild("Humanoid")
if hum ~= nil then
if player.MembershipType == Enum.MembershipType.Premium then
script.Parent.CanCollide = false
wait(0.1)
script.Parent.CanCollide = true
else
-- prompt premium purchase
MarketplaceService:PromptPremiumPurchase(player)
h.Parent.HumanoidRootPart.CFrame = CFrame.new(script.Parent["TeleportPart"].Position)
end
end
end)
