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

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

Asked by 10 years ago

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.

0
I'm not requesting anything, and thanks. Auroradom 25 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

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)
Ad

Answer this question