#Fight System can't verify

1 messages · Page 1 of 1 (latest)

vagrant marsh
#

I have a system involving the player, a troop (like a pet), and an enemy NPC. The fight system works for the most part; however, I recently tried to include a system that verifies that a troop is equipped first before the fight can be verified---the fight happens when the player activates a proximity prompt. The script doesn't ever seem to get through the "Going through folder" print.
There are a total of Five scripts involved:

  1. A server script attached to the enemy NPC
  2. A server script attached to the troop(pet) . the troop is located in a folder in the workspace.
  3. A module script (I don't figure it to be too important in this)
  4. A Local script that is connected to the button that equips the troop.
  5. A script in serverscriptservice that acts as to verify the troops owner and if it is equipped

A remote event is involved. It is fired from the fourth script(local) to the fifth script (the verification script). I think that the remote event might not be firing correctly but I don't know.

earnest totem
#

did you... maybe consider adding more prints to see if the prompt is triggered? any errors in output window?

patent wagon
#

I would suggest making this cleaner, avoiding valuebase instances and attributes, and learning what the fuck a memory leak is and how to avoid it

#

there is a rather silly stupid problem with your last screenshot

vagrant marsh
#

Apologies, I will keep that in mind for next time. If you don't put in valuable input into the discussion or offer assistance, perhaps input isn't needed. Unnecessary messages clog the thread.

vagrant marsh
vagrant marsh
#

I don't have much a clue on what the problem could be. I apologize.

#

I have added more print messages for debugging earlier. The script doesn't seem to go past the stated print statement.

vagrant marsh
patent wagon
#

they hinder performance minorly, but they automatically replicate when they are on the server

#

If you are building a game that will not need to have high throughput, then it's fine I guess

#

But if it is going to use it a lot, it's generally best to select what is sent

vagrant marsh
#

I see. I am grateful for the explanation