Note: I need the gui to stay in a seat so I cannot bring the gui into the brick that I want the gui to open from.
2016 Ford Police Interceptor Sedan>Driveseat>SirenControl (Gui that I want to open)
uhh
1 | part.Touched:connect( function (hit) |
2 | if hit and hit.Parent and hit.Parent:FindFirstChild( "Humanoid" ) then |
3 | guiname.frame.Visible = true |
4 | end |
5 | end ) |
can this help?
This should be worked paste it to StarterGui as LocalScript
01 | Part = game.Workspace. |
02 | GUI = game. |
03 | Play = game.Players |
04 | kale.Touched:connect( function (hit) |
05 | if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then |
06 | Play = game.Players [ hit.Parent.Name ] |
07 | if Play:FindFirstChild( "PlayerGui" ) and not Play.PlayerGui:FindFirstChild(GUI.Name) then |
08 | GUI:Clone().Parent = Play.PlayerGui |
09 | end |
10 | end |
11 | end ) |
Closed as Not Constructive by SimplifiedCode and Azarth
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?