zirzir47
|
  |
| Joined: 13 May 2013 |
| Total Posts: 348 |
|
|
| 02 Apr 2015 07:46 PM |
i have this so far, but am not that experienced and need help, im making a city world, and i dont want the gui for everyone, just the coldstone workers, so i have a handto gui on the chairs and it works but i need help making it dissappear when the person gets out of the chair i have this so far:
local Gui = game.Lighting.HandtoGUI
function GiveGui(Player) if Player.PlayerGui:FindFirstChild(Gui.Name)~=nil then return end Gui:Clone().Parent=Player.PlayerGui end
script.Parent.Touched:connect(function(hit)
local Player=game.Players:GetPlayerFromCharacter(hit.Parent) if Player==nil then return end GiveGui(Player)
end)
will someone help me add more so when the person is not touching it, it dissapears
p.s Scipters is D.E.A.D |
|
|
| Report Abuse |
|
zirzir47
|
  |
| Joined: 13 May 2013 |
| Total Posts: 348 |
|
| |
jpokemon
|
  |
| Joined: 25 May 2011 |
| Total Posts: 8978 |
|
|
| 02 Apr 2015 07:48 PM |
| Go to the website Scripting Helpers |
|
|
| Report Abuse |
|