FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 07 Jul 2013 07:47 PM |
Works flawlessly in play solo. Works flawlessly if I start server>start player Does not work online Q.Q Why?
me = script.Parent
function giveStuff(hit) local player = game.Players:getPlayerFromCharacter(hit.Parent) local hasStuff = player:findFirstChild("Shopping") if (player ~= nil) and (hasStuff == nil) then a = me.MoveScript:Clone() a.Parent = player.PlayerGui b = me.Shopping:Clone() b.Parent = player c = me.Shop:Clone() c.Parent = player.PlayerGui end end
me.Touched:connect(giveStuff) |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2013 07:49 PM |
| what exactly are you trying to do? |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2013 07:50 PM |
| If it's a localscript, swap it our for a normal script. Vice versa. |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 07 Jul 2013 07:50 PM |
It just doesnt work online.
It is supposed to clone the things inside of the brick and put them in the playergui. It works perfectly everywhere except online where it doesnt work at all.
This code is in a normal script btw. But the normal script is in a local brick. Does that affect it? |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2013 07:53 PM |
| Eh - a local brick, as in a instanced (client-sided) brick? Try a localscript. If that doesn't work, not quite sure. |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 07 Jul 2013 07:53 PM |
| well it doesnt matter because I put it in a local script and it didnt change it qq |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 07 Jul 2013 07:55 PM |
me = script.Parent
function giveStuff(hit) if not hit.Parent then return end local player = game.Players:getPlayerFromCharacter(hit.Parent) local hasStuff = player:findFirstChild("Shopping") if (player ~= nil) and (hasStuff == nil) then local a = me.MoveScript:Clone() -- Is MoveScript a child of me? a.Parent = player.PlayerGui local b = me.Shopping:Clone() -- Is Shopping a child of me? b.Parent = player local c = me.Shop:Clone() -- Is Shop a child of me? c.Parent = player.PlayerGui end end
me.Touched:connect(giveStuff) |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 07 Jul 2013 07:56 PM |
Everything works fine. All the children are where they need to be. IT JUST DOESNT WORK ONLINE Q-Q |
|
|
| Report Abuse |
|
|