the player/npc needs to have something like ‘stunned’ or ‘ragdolled’ that other scripts can check on to do/not do things respectively
i originally used the built-in attributes by roblox for things like this but have since switched to using a serverscript that gives the players that join a unique id generated by http service and creates a value inside of the character model with the id so clients can still see the uid
i have a module script that stores all the unique ids of players in a dictionary with their player names so scripts can read from the dictionary if a name is given instead of the unique id
im using knit(the framework) and made an ‘attribute service’ that uses the unique id for their attributes/stats(i.e. stunned or ragdolled)
are there any easier/better alternatives to this?(please note that im relatively new to scripting )
1 Like