I've been working on recreating King of the Hat in Roblox and I've mostly managed to recreate the entire hat system, but I've realized that it is definitely not good I need to figure out how to implement a better system, but not sure how to do it.
Because King of the Hat is a fighting game I need to figure out hot how to distinguish players from from themselves and opponents I also need to figure out how to keep track of who owns what hat which I've done a poor job of in my code.
Because my code is to long to post here I'll just give a pastebin link https://pastebin.com/1xda18HQ