Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.