local mps = game:GetService("MarketplaceService")
local gamepass_id = 18476957
local pad = game.workspace.ProductStands.Horse.ColoredParts.TouchMe
pad.touched:Connect(function(player)
local player = game.Players.LocalPlayer
mps:PromptGamePassPurchase(player, gamepass_id)
end)
mps.PromptGamePassPurchaseFinished:Connect(function(player, id, purchased)
if id == gamepass_id and purchased then
game.ReplicatedStorage.GiveHorse:FireServer()
end
end)
This is a localscript in starterplayerscripts

3 comments
Thanks for the kind help! One question, do I replace this with my script from pad.touched to end?
Er, no, you only replace from pad.Touched to end)
Ok, cool