I've searched and viewed a few topics and they seem to use arrays and what not which I don't know how to add to my code.
My request is just to make this work
Hope this is not too hard for you guys because it is for me
Scripts
freeimage(id) doesn't work
freeimage(id) doesn't work
1

freeimage(pl)being executed. Here's the approach how to handle the way of removing the previous hats.
local hat_images = {}
removedp_msg2(id,color.white,"["..script_name.."]: "..color.yellow.."You have bought a Devil hat.")
rp_msg2(id,color.white,"["..script_name.."]: "..color.yellow.."You have bought a Devil hat.")
if (hat_images[pl]) then
if not (hat_images[pl]) then
GeoB99: Confusing af. Likely wrong too.
Mami Tomoe: You could use the script I put in
Rainoth: Thanks I needed to modify it a bit to make it take money and it works
1
