dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 13 Nov 2011 02:38 PM |
local brick = script.Parent Game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) repeat wait() until c.Torso coroutine.resume(coroutine.create(function() while wait() do if (brick.Position-c.Torso.Position).magnitude <= 10 then --Change 10 to whatever you want script.GUI:Clone().Parent = p.PlayerGui elseif p.PlayerGui.GUI ~= nil then p.PlayerGui.GUI:Remove() end end end)) end) end)
Output: GUI is not a valid member of PlayerGui
I don't know how to fix it.
|
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
| |
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
| |
|
|
| 13 Nov 2011 03:16 PM |
| Put GUI in the PlayerGui. Duhhhh. |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 13 Nov 2011 03:21 PM |
if (brick.Position-c.Torso.Position).magnitude <= 10 then --Change 10 to whatever you want script.GUI:Clone().Parent = p.PlayerGui elseif p.PlayerGui.GUI ~= nil then p.PlayerGui.GUI:Remove() end
It does.... |
|
|
| Report Abuse |
|
|
|
| 13 Nov 2011 03:23 PM |
elseif p.PlayerGui:FindFirstChild("GUI") then
|
|
|
| Report Abuse |
|
|