Creating a part transparent from a tool for a vehicle

Hello I’m WikiHermanic and I’m currently having troubles making a tool script that makes a part transparent from a seat, what I’m currently making is an Aircraft Landing Gear system for my Plane.

I have tried using Values, RemoteEvents, and Serverside Scripts but none of them seems to work
This is an example screenshot of the Workspace:
image

I have seen other PlaneKits using a tool to make a part transparent
This is an example of a PlaneKit i found:
Screenshot 2023-12-16 014059

1 Like

Instead of using a tool I’d run a localscript using User Input Service to detect a keystroke then send a remote event to the server to show/hide landing gear, but if you’re set on using a tool you could use a server script inside the tool and use .activated i think it is to detect when the tool is used like clicked.

1 Like

I tried those before. The problem is that the tool goes to the Player’s backpack so it won’t parent to the Vehicle.

1 Like

Well if a tool parents to the vehicle the player can’t use it, but if you keep the tool in a tools folder inside the vehicle model then you could run a script in the vehicle that will move it to whatever player is in the seat, then can run all the .activated and whatnot. And once the player leaves move the tool back to the tools folder.

Wait what do you mean by moving the tool into a tools folder?

Say your model structure is like this

Plane (Model)
	script
	parts
	Tools (folder)
		landing gear tool

You would keep the landing gear tool inside that tools folder and then once the seat is used you would give the player who sat on it the tool, And then that player could control the landing gear n whatnot

But doesn’t tools automatically go to the player’s backpack?

Yes, they would be moved there by a script which once the player leaves the plane can be grabbed back from their backpack.

Not so sure about doing that… I’ll try to find a solution i guess

Will it be possible to detect if a player is holding a certain tool to activate it

A bit like this

If key == "e" and tool then

Alright I figured how to do it now.