Hello. This script is for a player only game that is under development. Instead of a password GUI, I want it to just let me and my friend in. Thanks for helping.
Pass= script.Parent.Parent.Parent.Passcode
function Clicked()
for i=1, 10 do
wait(0.1)
script.Parent.ImageTransparency = script.Parent.ImageTransparency +0.1
end --after this i want this to check if the person who clicked is either the user "123thatalt" or "mendez3581" or "Player1"
wait(0.3)
script.Parent.Parent.Visible = false
for b=1,30 do
wait(0.001)
Pass.Position = Pass.Position + UDim2.new(0, 7, 0, 0)
end
end
script.Parent.MouseButton1Down:connect(Clicked)

2 comments
Is this in a LocalScript? What is the parent of script? A TextButton?
Parent is a textbutton, yes. And it is in a reg. script.