Heya! I’m K0rrupt! Also known as “xt12t” and “K0rruqt”!
I am currently making a game similar to Piggy, but while testing in a Local Server, there was this error in the output, and I can’t really see where the error is. All feedback will be appreciated!
When referencing objects inside of Server Storage, you want to use :FindFirstChild() or :WaitForChild(), otherwise your code may error.
In this case, a possible cause for error may be that you are trying to find “Piggy” inside server storage before it is available or it could be the wrong name.
So use something like
local piggyLocation = game:GetService("ServerStorage"):WaitForChild("Piggy") --outside the function, so it does not search for this object everytime
local character = piggyLocation:Clone() --inside the function, since it is a clone