I want to reload part properties from server after they have been changed on client. I have a spell system in my game, and failed spells cause objects to flash red on client only thanks to filtering enabled.
However if the server updates the part colour in the mean time, that information may be overwritten on client. I have developed a remote function that ask the server each time for relevant part properties, after client is done with shenanigans. I have also considered cloning the model, and hiding the original.
One of other solutions I have thought of is to check that the part properties have not changed after each flash.
Here is the thing - I think like I am overcomplicating things. There must be a function that reloads part properties from server. However after extensive research I am unable to find one.
Could you please give more information upon Reload? Would you like you to change the color, size, position, or etc? Since Reload could mean just deleting the part and replacing it with a new part with the same properties as the old part.
Refresh all parts properties or reload the part altogether. I am looking for a client sided function that will reload all its properties (position, orientation, color, transparency, etc…). This is required if it state is for any reason different that the state on server. I know how to do it manually (through remote functions), but I am interested is there anything simpler, that would force reloading part (along with its properties) from server.
Or to put it in other words, due to Filtering Enabled it is possible to manipulate parts on client only. If the server manipulates the same part at the same time, some of those changes may be lost to client. I want to rescue those lost changes.
One extremely efficient way of doing it is to have the part inside of ReplicatedStorage and then cloning it and moving it to Workspace and making it’s position the same as the original part after destroying the original part, and then you have the ability to manipulate the new part, and then once again, destroy it, and replace with the original part.