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

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

Asked by 9 years ago

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

Log in to vote
-1
Answered by 9 years ago

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.

0
Thank you so much! :D Skyitic 5 — 9y
0
Np ;) planesoldier 25 — 9y
Ad

Answer this question