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

I need help with this problem?

How do you create a script that when a part is clicked it pops up a ScreenGui any ways how?

3 answers

script.Parent = Instance.new("ClickDetector")
script.Parent.ClickDetector.MouseClick:connect(function()
	game.Players:WaitForChild("PlayerGui").ScreenGui.TextBox.Visible = true
end)

You could just put a SurfaceGui into the part, put a TextButton in the part, change the textures and all that, then put a script in the TextButton with this code:

function onClick()
	game.StarterGui.ScreenGui.Enabled = true -- Change the ScreenGui to whatever the Gui is called
end

script.Parent.MouseButton1Click:connect(onClick)

Make everything within the screengui is visible, then just untick the enabled box in the screengui properties

Make sure to Accept my answer if it worked for you. Please comment back if it is not working and I'll help you out.

Make sure to check out my youtube channel for some ROBLOX tutorials and gameplay videos: Youtube

2 comments

0

enable box you mean visible? or achivable

0

and it dosent work when i cliked the part nothing happens

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