how to make a gui when putting a password it open a frame ?

I need help

SpecialCode = script.Name 

function onClicked()
 if script.Parent.Parent.TextBox.Text == SpecialCode and game.Players.LocalPlayer.Code2.Value == 0
then
game.Players.LocalPlayer.Code2.Value = 1
game.Players.LocalPlayer.Cookies.Value = game.Players.LocalPlayer.Cookies.Value + 1000
script.Parent.Text = "good!"
script.Parent.Parent.TextBox.Text = "112"
wait(1)
script.Parent.Text = "Redeem"
elseif script.Parent.Parent.TextBox.Text == "420blazeIT420" and game.Players.LocalPlayer.OwnerCode.Value == 0 then
	game.Players.LocalPlayer.Cookies.Value = game.Players.LocalPlayer.Cookies.Value + 160
	game.Players.LocalPlayer.OwnerCode.Value = 1
	script.Parent.Text = "good!"
	script.Parent.Parent.TextBox.Text = "112"
	wait(1)
script.Parent.Text = "good"
elseif script.Parent.Parent.TextBox.Text == "888" and game.Players.LocalPlayer.x2Code.Value == 0 then
	game.Players.LocalPlayer.Cookies.Value = game.Players.LocalPlayer.Cookies.Value * 2
	game.Players.LocalPlayer.x2Code.Value = 1
	script.Parent.Text = "good!"
	script.Parent.Parent.TextBox.Text = "112"
	wait(1)
script.Parent.Text = "Redeem"
	else
script.Parent.Parent.TextBox.Text = "Invalid"
wait(2.5)
script.Parent.Parent.TextBox.Text = "Enter Code Here"
end
end
script.Parent.MouseButton1Down:connect(onClicked)

5 comments

0

This isn't a request site. Make some attempt on a script first.

0

i added meh script

0

you would do something like if text is equal to "password345" then script.parent.frame.visible = true

0

i really need help !!!!

0

lol this code is skidded 100%, op asks how to make a password frame yet the script is a twitter code script, made 0 attempt