Poomuffin
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 11369 |
|
|
| 29 Sep 2013 12:13 PM |
it's supposed to make a hint appear on the gui when a brick is touched. the gui has a frame in it, which contains the text label any scripters mind helping me correct this i have no idea what im doing
message = "message here" function onT(hit) if game.Players:findFirstChild(hit.Parent.Name) ~= nil then
p = game.Players:findFirstChild(hit.Parent.Name) if p.PlayerGui:findFirstChild("TalkGui") ~= nil then p.PlayerGui:findFirstChild("TalkGui").Frame.Label.Text = message (im assuming the problem is in this line) end
end end script.Parent.Touched:connect(onT) |
|
|
| Report Abuse |
|
|
Poomuffin
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 11369 |
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 29 Sep 2013 12:30 PM |
message = "message here" script.Parent.Touched:connect(function(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) human = hit.Parent:findFirstChild("Humanoid") if human and player and player.PlayerGui:findFirstChild("TalkGui") ~= nil then player.PlayerGui:findFirstChild("TalkGui").Frame.Label.Text = message end end) |
|
|
| Report Abuse |
|
|
Poomuffin
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 11369 |
|
|
| 29 Sep 2013 12:44 PM |
ty noah figured it out now i made a stupid |
|
|
| Report Abuse |
|
|