Hi, I'v a question, how I can make a script for an Automatic Unequip Tools on seat or driverseat.
I thank you in advance.
Hi, I'v a question, how I can make a script for an Automatic Unequip Tools on seat or driverseat.
I thank you in advance.
Put this script inside a seat/driverseat
script.Parent:GetPropertyChangedSignal('Occupant'):Connect(function() -- An event to check if property 'Occupant' change
if script.Parent.Occupant then
if script.Parent.Occupant.Parent then
script.Parent.Occupant:UnequipTools() -- Unequip tools
end
end
end)
The property Occupant is equal to a humanoid of a character that sits.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
This script not working, but everything is ok (the occupent, ect).