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

How do make it so only specific people can use this script?

How do I make it so only specific people can use/run this script?

door = script.Parent;
locked = true

function setform(v)
locked = v
if v then
door.Transparency = 1
door.Reflectance = 0.4
door.CanCollide = true
else
door.Transparency = 0.7
door.Reflectance = 0
door.CanCollide = false
end

end


function click()
if locked then
setform(false)
wait(5)
setform(true)
end
end

door.ClickDetector.MouseClick:connect(click)

3 comments

0

why would u need to do that, it doesnt make sense lol

0

ur the only one that can run and use this script lmaooooo

0

No i mean can run it in the game

1 answer

✓ Accepted answer
door = script.Parent;
locked = true

function setform(v)
locked = v
if v then
door.Transparency = 1
door.Reflectance = 0.4
door.CanCollide = true
else
door.Transparency = 0.7
door.Reflectance = 0
door.CanCollide = false
end

end


function click(player)
if player.Name == "Username" then
if locked then
setform(false)
wait(5)
setform(true)
end
end
end

door.ClickDetector.MouseClick:connect(click)

1 comment

0

THANKS!

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