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

How Do I Make GUI appear for one player only?

Asked by 5 years ago

Ok so... I'm making a game and I have this problem where the GUI appears for everyone instead of one player. Help me fix this pls

0
Put it in a local script so only the player can see it then get the players name so only they can use it Penomecco 9 — 5y
0
It's for a touched function... so do I put the localScript in GUI or the object AnasBahauddin1978 715 — 5y

1 answer

Log in to vote
0
Answered by
royaltoe 5144 Moderation Voter Community Moderator
5 years ago

In the gui:

workspace.PartToTouchNameGoesHere.Touched:Connect(function()
        script.Parent.Visible = true
end)
0
Hi, you've been online since I last posted, but you seem to not have the question answered. Do you still need this answer to be answered or does the code above work? royaltoe 5144 — 5y
0
Sorry, I didn't have time to answer AnasBahauddin1978 715 — 5y
0
no worries, just glad i could help royaltoe 5144 — 5y
Ad

Answer this question