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 |
|
|
|
| 14 Dec 2011 05:07 PM |
| Uhh. Please tell me you're not reading that output verbatim. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 16 Aug 2007 |
| Total Posts: 11957 |
|
|
| 14 Dec 2011 11:29 PM |
"local human = script.Parent.Parent.Parent"
wut? |
|
|
| Report Abuse |
|
|