generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: pa$wurd gui

Previous Thread :: Next Thread 
IandoIakes is not online. IandoIakes
Joined: 03 Jul 2016
Total Posts: 872
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
AlertedDynamite is not online. AlertedDynamite
Joined: 12 Jun 2015
Total Posts: 667
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 is not online. 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
AlertedDynamite is not online. AlertedDynamite
Joined: 12 Jun 2015
Total Posts: 667
14 Aug 2016 02:32 PM
ew


Need help with DataStore? Get This: https://www.roblox.com/Datastore-Example-item?id=477512343
Report Abuse
aIternatlveaccount is not online. aIternatlveaccount
Joined: 21 Feb 2016
Total Posts: 295
14 Aug 2016 02:32 PM
USE GETASYNC
Report Abuse
H4XERZZZZ is not online. 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 is not online. 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
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
14 Aug 2016 02:38 PM
yes.

real good practice to validate pisword on client


Report Abuse
peIicans is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image