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: q.q help me please.

Previous Thread :: Next Thread 
FootBa11 is not online. 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
reptoslicerguy is not online. reptoslicerguy
Joined: 01 Jan 2010
Total Posts: 2098
07 Jul 2013 07:49 PM
what exactly are you trying to do?
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
07 Jul 2013 07:50 PM
If it's a localscript, swap it our for a normal script. Vice versa.
Report Abuse
FootBa11 is not online. 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
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
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 is not online. 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 is not online. 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 is not online. 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
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