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

How make a morph that can load a gui inside?

Hello how to make when you put the morph that loads a gui that make the player select any sound from the gui.

2 comments

0

uhhhh please explain in more detail. this is really oddly phrased

0

ok

1 answer

✓ Accepted answer

Are you trying to make a gui appear when a player steps on a part? if so, here is the script

local morphpart = -- your part location
local gui = game.Players.LocalPlayer.PlayerGui. -- your gui object location

morphpart.Touched:Connect(function()
	gui.Visible = true
end

Basically, we made 2 variables, the part you are going to touch to make the gui object appear, and the gui object. We are getting the gui object from the LocalPlayer and the PlayerGui, so that when a player touches it, it only shows on their screen. Then, we made a touched event that fires when a player touches the part and makes the gui object visible = true.

Make sure this is in a localscript and you're set!

2 comments

0

Thanks!

0

No problem, man!

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