Hello everyone! I am looking for a script that will give a player a tool when they sit in a seat and removes the tool once they exit the seat. I am doing this for a concept of a tank "machine gunner" who will be given a weapon when they sit in the machine gunner seat and will be able to shoot through a small hole in front of them. Then whenever they exit the seat, the tool I previously mentioned shall be removed from their backpack whilst keeping whatever tools they had in their backpack prior to sitting in the machine gunner position. Any help shall be greatly appreciated, and I promise to give credit in the game description ^^
✓ ANSWER ACCEPTED
Seat that gives tool when mounted and removes tool when dismounted?
1 answer
✓ Accepted answer
Check out this wiki on Seat.Occupant, it shows how you can detect when a player sits and stops sitting!
Link tags aren't working: wiki.roblox.com/index.php?title=API:Class/Seat/Occupant
1 comment
0
Wow, I had no idea this existed! xD thanks for the help :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Give your own attempt at the problem first. We are scripting helpers not scripting givers.
aye, i'll remember that for next time. Sorry :P