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: Backpack Err When Run - Help!

Previous Thread :: Next Thread 
radar001 is not online. 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 is not online. radar001
Joined: 04 Sep 2011
Total Posts: 718
13 Jun 2015 09:22 PM
I hate having to do this, bump...
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
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 is not online. 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
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
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 is not online. 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
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
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 is not online. radar001
Joined: 04 Sep 2011
Total Posts: 718
13 Jun 2015 09:37 PM
Thanks anyway
Report Abuse
radar001 is not online. 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
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