|
| 14 Aug 2016 02:29 PM |
no one can get into your game without the paword typed into a textbox
local pass = script.Parent.Text
if pass == "pawordhere" then script.Parent.Parent.Visible = false end
i literally made this in four seconds and i was wondering why it wasnt working
sorry for being dum
i swear these censors
RIP ExpIoders | add 8k |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2016 02:31 PM |
Boi.
Need help with DataStore? Get This: https://www.roblox.com/Datastore-Example-item?id=477512343 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Aug 2016 02:31 PM |
'no one can get into your game without the paword'
game.Players.PlayerAdded:connect(function(player) if player.Name ~= 'blah' then player:Kick() end end)
|
|
|
| Report Abuse |
|
|
|
| 14 Aug 2016 02:32 PM |
ew
Need help with DataStore? Get This: https://www.roblox.com/Datastore-Example-item?id=477512343 |
|
|
| Report Abuse |
|
|
| |
|
H4XERZZZZ
|
  |
| Joined: 14 Feb 2014 |
| Total Posts: 79 |
|
|
| 14 Aug 2016 02:33 PM |
You need to make it so if a user clicks it or types it in it changed it try something like this:
local pass = script.Parent.Text
while wait(0.1) do if pass == "pawordhere" then script.Parent.Parent.Visible = false end end
not the best solution. You should use a mousebutton1down:Connect function. |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 14 Aug 2016 02:36 PM |
if only checks once.
put it in a loop |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2016 02:38 PM |
yes.
real good practice to validate pisword on client
|
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 14 Aug 2016 02:48 PM |
or
(fires when enter is pressed)
pass = "pawordhere"
box = script.Parent
box.FocusLost:connect(function(enter) if enter and box.Text == pass then script.Parent.Parent.Visible = false end end)
|
|
|
| Report Abuse |
|
|