Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

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.

0

Attempt it or hire someone to do it, no one is going to do it here for free.

2 answers

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?

2 comments

0

don't spoonfeed

0

not sure what that means but okay

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)

1 comment

0

don't spoonfeed it gives no actual value to the asker

This discussion is preserved as it was. New answers, comments, and votes are closed.