Ive tried many different methods but they all didn't work, so instead i'm asking on here.
It depends on how you have your obey designed. I would get a table value on each of the spawns and get a value on which spawn the player is on. and by using "MarketPlaceService" you can make the button sell a Product and when the purchase is complete. it changes the player's characters CFrame to your players spawn value in the table + 1
local Tables = {Spawn1,Spawn2,Spawn3} function SendPlayerToNextSpawn(plr) local char = plr.Character char:SetPrimaryPartCFrame(Tables[plr.CurrentSpawn.Value+1].CFrame) end
Closed as Too Broad by Goulstem
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?