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

How to make a text GUI appear when a player walks through a brick?

I'm working on a project, and I need subtitles to go with my voice acting. But I don't know how to get the text appear when a player walks through a brick, like a scripted event. I know how to script the text appearing, but I don't know how to just make it appear from a player walking through a brick.

1 comment

0

I'm not requesting anything, and thanks.

1 answer

First, you aren't supposed to request something, but, I can show you what it would look like. A script would have a gui inside of it, and the script would be inside a part.

script.Parent.Touched:connect(function(hit)
if  hit.Parent:FindFirstChild("Humanoid") then
script.GUI:Clone().Parent = hit.Parent:GetPlayerFromCharacter().PlayerGui
end
end)

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