XxShayexX
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2180 |
|
|
| 10 Mar 2012 10:17 PM |
function OnTouch(part) local human = part.Parent:findFirstChild("Humanoid") if (human ~= nil ) then local check = game.Players:findFirstChild(part.Parent.Name) local gui = check.PlayerGui.Market.MainFrame gui.Visible = true end end
script.Parent.Touched:connect(OnTouch)
I know its the part that says findFirstChild but I dont get what to change it too I want it so anyone can touch it and what I want will happen, happens, not with just the first person who presses it |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2012 10:21 PM |
Those types of functions always cause trouble. Use this instead. Not too different.
script.Parent.Touched:connect(function(part) local human = part.Parent:findFirstChild("Humanoid") if (human ~= nil ) then local check = game.Players:findFirstChild(part.Parent.Name) local gui = check.PlayerGui.Market.MainFrame gui.Visible = true end end)
Yeah. I'm sure you have a pretty good scripting knowledge. You get how this works right?
|
|
|
| Report Abuse |
|
|
|
| 10 Mar 2012 10:25 PM |
@bl5, you do not know your stuff.... >.> you just changed the function to an anonymous one. that makes virtually no difference to the script...
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
XxShayexX
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2180 |
|
|
| 10 Mar 2012 10:34 PM |
| Confused, is Bl5's right or not? |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2012 10:35 PM |
it's not, he just changed some of the code formatting...
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|
XxShayexX
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2180 |
|
|
| 10 Mar 2012 10:38 PM |
| Well do you know how to fix it then? |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2012 11:05 PM |
the script itself is perfectly fine, is it possible that not everyone has that GUI?
~would you like some butter with your late toast? |
|
|
| Report Abuse |
|
|