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

How do i make a tool where i just have to click not hold to make something work?

1 answer

local plr = game.Players.LocalPlayer
local doorname = script.Parent --If the script is the child of your door
local mouse = plr:GetMouse()

mouse.Button1Down:connect(function()
      doorname.Transparency = 0.5
      doorname.CanCollide = false
      wait(5)
      doorname.Transparency = 0
      doorname.CanCollide = true
end)

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