Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How make an Auto Unequip Tools on seat (or driverseat) ?

Asked by 2 years ago

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.

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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.

0
This script not working, but everything is ok (the occupent, ect). DylanMonrency 4 — 2y
Ad

Answer this question