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: .FocusLost doesnt work??

Previous Thread :: Next Thread 
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
25 Jun 2015 04:17 PM
It works in studio but not online

Any way to fix this?'

script.Parent.FocusLost:connect(function()
object = script.Parent.Parent.Object
brick = game.Workspace:FindFirstChild(object.Value)
materialoptions = script.MaterialOptions:GetChildren()
for _, v in pairs(materialoptions) do
if script.Parent.Text == v.Name then
brick.Material = script.Parent.Text
end
end
end)
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
25 Jun 2015 04:18 PM
Output?
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
25 Jun 2015 04:30 PM
No output... :(
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
25 Jun 2015 06:37 PM
b1
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
25 Jun 2015 06:38 PM
Is it a LocalScript?.
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
25 Jun 2015 06:47 PM
Tried that and still doesnt work
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
25 Jun 2015 06:48 PM
Is it Disabled? XD
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
25 Jun 2015 06:50 PM
nvm...

localscript worked now

wth did i do the first time then?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
25 Jun 2015 06:53 PM
I figured a LocalScript would fix it

Most commonly if it works in studio but not online it means you made a mistake client/server wise. In this case you were doing stuff with GUIs, why wouldn't you do client-sided things such as GUIs client-sided? It makes no sense. 😛
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
25 Jun 2015 10:51 PM
Never handle guis with server scripts.
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