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: Torso is not a valid member of Player?

Previous Thread :: Next Thread 
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
14 Dec 2011 05:05 PM
Thats what my output gives me..

I needa use a VIP-door-like-thing, and it's giving me that.

Any part of the script that uses it is this:

function onTouched(hit)
local human = script.Parent.Parent.Parent
if (human ~= nil ) then
if human.Parent.Torso.roblox.Texture == texture then
end
end
end

Any help? Thanks in advance! :D
Report Abuse
TearsofUnclarity is not online. TearsofUnclarity
Joined: 13 Dec 2011
Total Posts: 141
14 Dec 2011 05:07 PM
Uhh. Please tell me you're not reading that output verbatim.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
14 Dec 2011 05:07 PM
1

You probably got your parents wrong or something..

2 Need a connection line.
Report Abuse
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
14 Dec 2011 05:09 PM
@miz

Thats just the part that uses torso. The connection line is

game.Players.LocalPlayer.CharacterAdded:connect(onTouched)

Its in a localscript.
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
14 Dec 2011 05:19 PM
[ Content Deleted ]
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
14 Dec 2011 05:19 PM
Why is it named "onTouched"

And it's
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(n)


:/
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
14 Dec 2011 05:24 PM
poke, it doesnt have to. You can do

function blah1()
--stuff
end


function blah2(plr)
plr.CharacterAdded:connect(blah1)
end

game.Players.ChildAdded:connect(blah2)
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
14 Dec 2011 09:17 PM
I know it doesn't have to
It's just the function name doesn't match the script.
xD
Report Abuse
minicl55 is not online. minicl55
Joined: 25 Dec 2010
Total Posts: 2371
14 Dec 2011 09:23 PM
It used to be a VIP script. I just didn't bother to change it xD
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
14 Dec 2011 11:09 PM
Allowed = "NAME HERE"

script.Parent.Touched(function(hit)
if hit.Parent.IsA("Model") then
if hit.Parent:FindFirstChild("Humanoid", true) then
if hit.Parent.Name == Allowed then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
wait(2)
script.Parent.Tansparency = 0
script.Parent.CanCollide = true
else
hit.Parent:FindFirstChild("Humanoid").Health = 0
end
end
end
end)


I made that of the top of my Head I am probaly wtrong, Just open the output and see the error. I could get you a Item only door so I'f you had say a VIP shirt it could open and you do have it on, But anyway hope I helped.

~Ford~
Report Abuse
pugzy is not online. pugzy
Joined: 16 Aug 2007
Total Posts: 11957
14 Dec 2011 11:29 PM
"local human = script.Parent.Parent.Parent"

wut?
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