this is a hockey game ok so is there a way i could make it so if a user shoots it adds a goal to the user stats and if they get passed to it adds an assist to the player who passed it to them or is that like not able to do i cant figure it out maybe someone could help?
✓ ANSWER ACCEPTED
How to make a system where if you score it adds a goal and a point?
1 answer
✓ Accepted answer
The logic here would be to keep track of who passed the puck to whom. When someone shoots a goal, you can loop through your data and check where the puck came from, awarding this player an assist.
local PuckTrace = {}
-- When someone passes
PuckTrace.From = playerWhoPassed
PuckTrace.Current = playerWhoReceived
Some things to remember are that you’ll have to handle intercepts of the puck with basic team checking, and you’ll want to overwrite assist data — as seen above — so that the assists don’t go back 2-3 passes.
1 comment
0
Could I hire you to make this you seem like you know well? My discord is JR#0542 thanks dm or friend me if interested.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You need to post a script, you can't just ask for the script. If you want someone to make you a script, hire them not ask for a freebie.
its asking if its possible kiddo