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

How Do You Make A Message Appear When You Enter An Area?

Hello everyone!

I was hoping on knowing how to make a gui message appear when you enter an area, and it continues on with a little segment of text. With that said, is there a way for it to appear only for the player who has entered the area? Please help!

Thank you!

1 answer

✓ Accepted answer

Make a brick that's Anchored, Transparent and Un-CanCollided. Then put a script with it with ontouched.

script.Parent.Touched:connect(function(TouchedPart)
-- Do Stuff
end)

Also make it check if it's an actual player:

script.Parent.Touched:connect(function(TouchedPart)
if TouchedPart.Parent:FindFirstChild("Humanoid") ~= nil then -- Check if player
-- Do Stuff
end
end)

And get into the PlayerGui

script.Parent.Touched:connect(function(TouchedPart)
if TouchedPart.Parent:FindFirstChild("Humanoid") ~= nil then
local Plr = game.Players:GetPlayerFromCharacter(TouchedPart.Parent)
Plr.PlayerGui:WaitForChild("GUINAME").DOSTUFF
end
end)

So the above script would be the full script if you made it do stuff.

2 comments

0

Thank you so much! :D

0

Np ;)

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