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: Arguement 1 mission or Nil

Previous Thread :: Next Thread 
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
17 Mar 2013 11:53 AM
what does this even mean ?!?!
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
17 Mar 2013 11:55 AM
Show the line of code that caused it.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
17 Mar 2013 11:56 AM
local plrID = thisplr:findFirstChild(AgentID)
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
17 Mar 2013 11:56 AM
What is "AgentID"? It is possibly nil.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
17 Mar 2013 11:57 AM
its an IntValue in the player
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
17 Mar 2013 11:58 AM
What do you mean? Show the line where you declare AgentID, or even the whole code.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
17 Mar 2013 11:59 AM
here the whole code


--------------------------------------------------------------------------------------------------

House = script.Parent.Parent

function onTouched(hit)
local check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button
if check ~= nil then --If a human is found, then
local thisplr = game.Players:findFirstChild(hit.Parent.Name)
if (thisplr~=nil) then
local plrID = thisplr:findFirstChild(AgentID)
local OwnerID = House.Parent.Parent.Name
if plrID ~= OwnerID then
if OwnerID == 7 then
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("leaderstats")
if stats ~= nil then
local cash = stats:findFirstChild("Cash")
if cash.Value > (House.HouseValue.Value-1) then
cash.Value = cash.Value - House.HouseValue.Value
House.Parent = Workspace:findFirstChild(plrID).Factory
print("House is now owned by Agent")
OwnerID = plrID
wait(1)
end
end
end
end
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
17 Mar 2013 12:00 PM
You never defined AgentID.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
17 Mar 2013 12:02 PM
oh i think i know...

the 8th line is the decleration i just put (AgentID) instead of ("AgentID")

maybe this is whats wrong?
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