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 |
|
|
| |
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
| |
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
| |
|
| |
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 25 Jun 2015 06:47 PM |
| Tried that and still doesnt work |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 25 Jun 2015 10:51 PM |
| Never handle guis with server scripts. |
|
|
| Report Abuse |
|
|