of     1   

awesomejj101
#139377730Sunday, July 06, 2014 2:14 AM GMT

function showgui(part) local player = game.Players:playerFromCharacter(part.Parent) if part.Parent:findFirstChild("Humanoid") and player then if not player.PlayerGui:findFirstChild("Message") then local message = game.Lighting.Message:clone() message.Parent = player.PlayerGui end end end script.Parent.Touched:connect(showgui) How do I let the gui get removed when the player stop touching the brick? I used: if player == nil then local delete = player.PlayerGui delete.Message:remove() but it did not work
awesomejj101
#139378020Sunday, July 06, 2014 2:17 AM GMT

NO one knows, been posting this for 3 MONTHS
AnonyAnonymous
#139378050Sunday, July 06, 2014 2:17 AM GMT

function removegui(brick) if brick.Parent and game.Players:FindFirstChild(brick.Parent.Name) then game.Players:FindFirstChild(brick.Parent.Name).PlayerGui.message:Destroy() end end script.Parent.TouchEnded:connect(removegui)
lostend
#139379747Sunday, July 06, 2014 2:34 AM GMT

p=script.Parent p.Touched:connect(function(h) ypcall(function()script:WaitForChild'GUI':Clone().Parent=game.Players[h.Parent.Name].PlayerGui end) end) p.TouchEnded:connect(function(h) ypcall(function()game.Players[h.Parent.Name].PlayerGui['GUI']:Destroy()end) end)

    of     1