How to make a ui pop up when you touch a group?

One problem, when you exit it (made a script) it wont come back.

Exit script:

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Parent.Visible = false

end)

Switch your exit script with this:

script.Parent.MouseButton1Click:Connect(function()
  script.Parent.Parent.Parent.Enabled = false
end)

Meant .Enabled.

30lettersssssss

It was already like that. :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

It wasn’t. Please read the code before replying. I added an extra .Parent.

Yeah, ik. it was a mistake with me putting spaces with the code here. It’s different in roblox studio tho. (just saw the parent)

So uh does it work? If so mark my post as the solution.

It does but

:slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

I gotta go now but did you make the script you copied from me into a localscript or “normal” script?

normal script. :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

It’s supposed to be a localscript. Since localscripts can’t run in the workspace, put a localscript in characterscripts and make the script this:

Location if you’re confused:
image

--//Services
local Players = game:GetService("Players")

--//Variables
local part = workspace.Part -- reference your group part

--//Functions
part.Touched:Connect(function(hitpart)
     local Humanoid = hitpart.Parent:FindFirstChild("Humanoid")
     if Humanoid then
	   local Player = Players:GetPlayerFromCharacter(hitpart.Parent)
       Player.PlayerGui.RebirthGUI.Enabled = true
   end
end)

Video of what should happen now: video of what should happen

2 Likes