Hello so I have been learning coding on studio for 4 months now and have learned a lot, So I am trying to make a combat system that isn’t collision based (Such as Minecraft for example) to do this I need to Cast a Ray in the direction my mouse is at, But to achieve this I needed a local script to get the player’s Mouse position, So when an attribute on the tool gets changed wich is “RayCasAttack” The local script is supposed to see this and then fire a remote to cast a ray where it hits.
The issue here is that the :GetAttributeChangedSignal() Just wont care if the attribute gets changed, I also tried .AttributeChanged and got same result
Ok so here is an image of the value getting changed
(Yes you can also see local scripts here because I have testing on “Current Client”
I have tried using the .AttributeChanged event and still did not worked, I have also checked if its even reading the attribute and yes its finding it I have used a lot of methods to determing if its even getting the attribute and to check if its something else maybe.
I have never used the forum so I am making this topic because it’s my last option at getting help.
Ask me aany questions if im lacking info that should be provided
So you are telling me this whole time, I have never been changing the attribute and Lua just thinks i made a new variable instead of changing the value of my attribute via a variable?
So in this case should I just not use an attribute and just a value inside the tool?
And also if I ever need to, How do I change the value of an attribute
Alr thank you very much Sir for your help, I had actually read a lot of resources to check if I was doing anything wrong and never thought I just didnt knew how to change attributes, I will try it now and if it works ill set your reply as solution