At the moment I’m using Mouse1Down in a localscript to find out what part the player is clicking, passing it through a remoteevent and having the script that listened for it print the name of that part. This works perfect.
My problem is I need to be able to locate that part to alter it using the script, how can I do that?
That would get the parts actual position though would it not, what I need to be able to get is the part itself in Workspace so for example at the moment I’m making sure to have each part inside a Model in workspace and then I’m passing through 2 values, the first being the mouse.Target.Name and the second being the mouse.Target.Parent.Name, first one being defined to “Target” and the second being defined to “Location” in the script itself, then I use game.Workspace:FindFirstChild(Location):FindFirstChild(Target) to obtain the part. This way works I’m just curious if there is perhaps a more efficient way of doing it?