I’m stumped on how I can do this, because I’m making a simple place based off of the SCP Foundation universe, and I’m going to have SCP-303 (aka the Door Man) in a closet, but I want a message to show up on the players screen when they click on the door handle / interact with a proximity prompt. The message will say: “I can’t go in there, I’m scared and he will hurt me”.
How do I go about doing this?
I guess you could clone a gui to the player’s PlayerGui.
Hmm… I would need to make a lot of GUI’s for any future messages I want to include then…
You can do that or just script the messages by instancing guis and setting their properties, either way works.
Just make it so when the event (prompt) is completed a TextLabel will be visible and text will show.
But that’ll display for all players won’t it? I don’t fully understand
I think he was hinting that the textlabel was in playergui.
this will work but the server will have to clone a lot of them…and causing lag
Or…you can use fireclient and let the client do work
pretty sure gui is local unless you do an server event
You could do this on the client, or if you really wanted to use your own guis, you could create a notification frame in startergui and make it visible with whatever text you want without making new guis
local StarterGui = game:GetService("StarterGui")
ProximityPrompt.Triggered:Connect(function()
StarterGui:SetCore("MakeSystemMessage", {Text = "I can't go in there, I'm scared he will hurt me"}
end)
well its lag either way…making a gui transparent is more effective
No? It’s using the client’s peripherals therefore less stress for the server. Also, I don’t think having lots of guis stored in playergui is effective.
i mean for the client on one way and for the server on the other
just use device for this oddly long word lol (sounds super smart tho)
Just use remote events. When you interact with the door have a script that listens for the interaction, then sends a remote event to the interactee with the text you want to display. Now you can set the gui’s text to what you want to display and then make it pop up.
Proper term for hardware .
might use that from now on…sounds cool and people have to google it to see what it means
I’ll try that. Will see how it goes
Didn’t work. I think problem is that I already have a starter GUI for a stamina bar…