I’m working on a game called “Slime Simulator” where the characters are one part with a blob mesh with a face. In order to implement skins, I am trying to use a hat system where your head and HumanoidRootPart are invisible, where the accessory is the visible slime.
However, it wasn’t long before I stumbled across a problem.
For context, please refer to this video: https://www.youtube.com/watch?v=t6FaB0dWBTg&t=817s
The only “error” I get is infinite yield warnings, but there aren’t any actual errors. My results have concluded in the inventory button and the “Buy” buttons on the crates not working. It seems to be able to read the prices of the crates perfectly fine.
Note: I have made small changes like changing “Money” to “Points”.
I looked around the comments and description of the video and found a somewhat relative Devforum post (the featured topic on my profile atm), and couldn’t find anyone else with my problems.
I was wondering if somebody could look through the scripts and help me out? I’m not the best programmer but I have a passion for development. If need be, I could provide a .rbx file of my modified system privately through Discord for security purposes. If this would be beneficial, please contact me at Aiden#5913.
Infinite Yield warnings happen when you call WaitForChild() on an Instance to wait for a child that never existed for the specified yield time (if not specified its 5 seconds by default), meaing:
Check for any spelling issues, capatalization, or just check what Instance you’re trying to call WaitForChild() on. (yes, WaitForChild() is case sensitive)
Well, not that this is a problem, but wouldn’t that require a table for every hat?
Sorry if I’m making this too complicated, I’m not that great at scripting XD