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

how can i make local with cloned tool (key)?

Asked by 2 years ago

i want to make key that opens the door and i idk how to do local with cloned key

1 answer

Log in to vote
0
Answered by
lamgogo 56
2 years ago

Soooo this one may help first u need to name the key to be "DoorKey1" cuz i think maybe u have more than 1 door to open,then make a scipt inside the door:

script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        if hit.Parent:FindFirstChildWhichIsA("Tool") then
            local tool = hit.Parent:FindFirstChildWhichIsA("Tool")
            if tool.Name == "DoorKey1" then
                -- do the door opening here,if u need help at how to do it tell me
            end
        end
    end
end)
Ad

Answer this question