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

How make a morph that can load a gui inside?

Asked by 4 years ago
Edited 4 years ago

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

0
uhhhh please explain in more detail. this is really oddly phrased BrainDead_Dev 135 — 4y
0
ok superplayer1453 -4 — 4y

1 answer

Log in to vote
0
Answered by
LazokkYT 117
4 years ago

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!

0
Thanks! superplayer1453 -4 — 4y
0
No problem, man! LazokkYT 117 — 4y
Ad

Answer this question