radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
|
| 13 Jun 2015 09:12 PM |
local function Give(Plr) Plr.Name:lower() if Plr.Name == "radar001" then local Clone = script.Tool.Parent:Clone() Clone.Parent = Plr.Backpack else return end end game.Players.PlayerAdded:connect(Give) This function errs saying Backpack is not a member of Player, could anyone tell me why this is? Thanks guys! |
|
|
| Report Abuse |
|
|
radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
|
| 13 Jun 2015 09:22 PM |
| I hate having to do this, bump... |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2015 09:23 PM |
oh boy
no output given no information where the script is no information what kind of script it is
this will not make people fix your problem. |
|
|
| Report Abuse |
|
|
radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
|
| 13 Jun 2015 09:27 PM |
| The global script sits in workspace and the tool is a child of the script. All I get in the server console is what I have already given: "Backpack is not a member of Player" |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2015 09:30 PM |
Just saying the error may be some help, but not a lot
give me the line of error
also, Backpack might have not loaded yet, so use :WaitForChild() |
|
|
| Report Abuse |
|
|
radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
|
| 13 Jun 2015 09:33 PM |
| It doesn't give me a line number, but if I had to guess it would be line 6 |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2015 09:35 PM |
local function Give(plr) if plr.Name:lower() == "radar001" then local Clone = script:WaitForChild("Tool"):Clone() Clone.Parent = plr:WaitForChild("Backpack") else return end end |
|
|
| Report Abuse |
|
|
radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
| |
|
radar001
|
  |
| Joined: 04 Sep 2011 |
| Total Posts: 718 |
|
|
| 13 Jun 2015 09:53 PM |
For future reference I beat the problem with a local script in the starterpack.
while wait(0.1) do if script.Parent.Parent.Name ~= nil then if string.lower(script.Parent.Parent.Name) == "radar001" then script.tool.Parent = script.Parent script:Destroy() return end end script:Destroy() end
|
|
|
| Report Abuse |
|
|