Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a skip stage button on an obby? [closed]

Asked by 7 years ago

Ive tried many different methods but they all didn't work, so instead i'm asking on here.

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?

1 answer

Log in to vote
1
Answered by 7 years ago

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
0
Thanks I'll try it out :) XxTheJokingBeastxX -5 — 7y
0
Hope it works starblasto 43 — 7y
Ad