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 » Scripting Helpers
Home Search
 

Re: Focus lost issue

Previous Thread :: Next Thread 
cade2000 is not online. cade2000
Joined: 09 Aug 2009
Total Posts: 887
02 Aug 2014 01:52 AM
wait(5)
datastore = game:GetService("DataStoreService"):GetDataStore("Player") --Change to break everything.
script.Parent.FocusLost:connect(function(enter)
if enter then
script.Parent.Parent.ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..script.Parent.Text

if datastore:GetAsync(script.Parent.Text.."HasPlayed") == 1 then
script.Parent.Parent.hasplayed.Text = "Yes - Has Played"
script.Parent.Parent.age.Text = datastore:GetAsync(script.Parent.Text.."Age").." - Age"
script.Parent.Parent.name.Text = datastore:GetAsync(script.Parent.Text.."Name")
else
script.Parent.Parent.hasplayed.Text = "No - Has Played"
script.Parent.Parent.age.Text = "? - Age"
script.Parent.Parent.name.Text = "Name is unreachable, Player has not played the game."
end
else
print("Not pressed")
end
end)


This script is inside of a text box and for some reason the focus lost event is being called. There is no output or errors.
Report Abuse
cade2000 is not online. cade2000
Joined: 09 Aug 2009
Total Posts: 887
02 Aug 2014 01:57 AM
bump
Report Abuse
cade2000 is not online. cade2000
Joined: 09 Aug 2009
Total Posts: 887
02 Aug 2014 03:19 PM
Bump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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