Tool that Un-Anchors specific parts

(Sorry for my English) Hello, for a long time I try to script tool that will Un-Anchor parts with specific name, I am not best at scripting tools cause i started to learn how to make them, I was trying to find any scripting tutorial for tools on Youtube but there were only Tutorials how to make a tool, so please can someone show me how to start?

Asking people to write an entire script for you on the DevForum isn’t a good practice, however here’s some information that will give you a headstart if you already know basic LuaU scripting:
-Mouse.Target: You can use it to detect what part a user is hovering over with their cursor. Get the Mouse by calling Player:GetMouse(), replacing Player with the Player object of the person holding the tool, e.g. game.Players.LocalPlayer:GetMouse().
-Tool.Activated: This is an event that will fire when the player left-clicks while holding your tool.
-RemoteEvents: Since the two previous things I’ve shown require to be run in a client, but unanchoring the part should be done on the server, you need to make a RemoteEvent and a server-side script to accept fired events and unanchor the part as requested by the client. But make sure to secure it with a cooldown so exploiters can’t unanchor all parts in your game.

I don’t want someone to write me a whole script i was just asking for things like that to start doing scripts for tools, thanks for helping!

1 Like

I knew you didn’t have any intentions like that, but I provided you with the most basic elements you can use. You can create a server side script that will listen to the RemoteEvent and unanchor parts as needed, and a LocalScript utilizing the two first methods I talked about to detect when and what part is clicked. Good luck with your script, if any issues or bugs arise feel free to write here.