Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a gui open from a touch of a brick? [closed]

Asked by 4 years ago
Edited 4 years ago

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)

0
This is not very constructive.. did you even try to write the script yourself before posting? This is not a request forum. I will say that you need to start with the .Touched:Connect function and then use a remote event to connect the gui opening. FallenZalio 99 — 4y
0
Attempt it or hire someone to do it, no one is going to do it here for free. SimplifiedCode 227 — 4y

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?

2 answers

Log in to vote
2
Answered by 4 years ago

uhh

part.Touched:connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
    guiname.frame.Visible = true
end
end)

can this help?

0
don't spoonfeed DeceptiveCaster 3761 — 4y
0
not sure what that means but okay RedWirePlatinum 53 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

This should be worked paste it to StarterGui as LocalScript

Part = game.Workspace.
GUI = game.
Play = game.Players
kale.Touched:connect(function (hit)
if hit.Parent and game.Players:FindFirstChild(hit.Parent.Name) then
Play = game.Players[hit.Parent.Name]
if Play:FindFirstChild("PlayerGui") and not Play.PlayerGui:FindFirstChild(GUI.Name) then
GUI:Clone().Parent = Play.PlayerGui
end
end
end)
0
don't spoonfeed it gives no actual value to the asker DeceptiveCaster 3761 — 4y