Recently, I’ve been getting strange issues in my game, and I have had a rough time making a movement system for units in my game. And while my code has been riddled with difficult bugs, I have gotten a new one that returns the following error in my output:
16:20:55.517 GetAvailableTiles is not a valid member of ModuleScript "ServerScriptService.Modules.MovementHandler" - Client - Selection:44
16:20:55.518 Stack Begin - Studio
16:20:55.518 Script 'Players.ProgrammingLiterals.PlayerGui.Selection', Line 44 - Studio - Selection:44
16:20:55.518 Stack End - Studio
I am honestly dumbfounded. The line in question is the following:
function module:GetAvailableTiles(xCoordinate, yCoordinate, movementRange)
And I call it like so:
return {unit[2], unit[6], unit[7], movementHandler:GetAvailableTiles(unit[3], unit[4], unit[6])}
If you need any more code let me know.
Any help is appreciated greatly!