Need help for a gamepass checkpoint

I am making a obby game, where there are checkpoints that require a gamepass.
The script should ask a player to buy the gamepass (if it’s not already done) when he walks on it and should then put his coordinates in a Vector3 Value from the workspace.
Unfortunate, something isn’t working. When you walk on it, nothing happens.

Capture d'écran 2023-09-08 181543

The ‘‘local Coordinates’’ is the Vector3 Value from the workspace.

1 Like

I think it’s because you are using a pcall… I could be wrong though

1 Like

Problem is that whenever something touches part it gets player from LocalPlayer which is wrong, also touch event doesn’t work in LocalScript.

1 Like

you should add a print under the if haspass == true then line, just anything really, to see if it at least prints.

also, double check you’ve got the right gamepass id.

otherwise, you might want to check if your other checkpoints work. maybe theres something wrong with the respawn script?

other than that, I can’t help you. I lack the necessary context to find a good solution

edit: fixed some typos

2 Likes

You were right. The function wasn’t even triggered. But the problem now is, that I don’t know how to trigger it now. I already tried with a Touch event and with a Proximity Prompt. Can someone help me with that?