This code dose not work

Screenshot 2023-10-24 9.16.37 PM

So I Have no idea why this code dose not work i would like to know how to fix it and what problem is o curing.

2 Likes

Can you explain further that what do you want to make?
It is because the code seems fine.

2 Likes

so i just want is to be a checkpoint system for my parkour game but it dose not work whenever a player enters a checkpoint they can’t get a checkpoint that was previously checked . it just dose not give them the checkpoint even if they have the right amount.

Here is the reason:
you are using “set variable” action. However set variable only set for global variables. Therefore I think you should try to change it as set player attribute action (you have to add a player attribute in player type). Also as the if else then action (in the left hand side, set it as player attribute, then select the attribute type for your checkpoint. Set the player as the owner of a unit, and the unit is last triggering unit.)

Here is how you add the player attribute


1 Like


here is the version of how does it look after editing