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

does anyone know how to make a gui only show for a certain player?

Asked by 4 years ago
Edited 4 years ago

i was playing with my friend and he got to the gui part and it showed up for him and me aswell. so i need to figure out how to make it so it only shows for the player that triggered the gui


workspace.WishHimAGoodBirthday.ClickDetector.MouseClick:Connect(function() script.Parent.TextTransparency = 0.9 wait(.03) script.Parent.TextTransparency = 0.8 wait(.03) script.Parent.TextTransparency = 0.7 wait(.03) script.Parent.TextTransparency = 0.6 wait(.03) script.Parent.TextTransparency = 0.5 wait(.03) script.Parent.TextTransparency = 0.4 wait(.03) script.Parent.TextTransparency = 0.3 wait(.03) script.Parent.TextTransparency = 0.2 wait(.03) script.Parent.TextTransparency = 0.1 wait(.03) script.Parent.TextTransparency = 0.0 end)

0
Edit your question to show your script, since we don't know how it's triggered. radiant_Light203 1166 — 4y
0
done diggerbear1 32 — 4y

1 answer

Log in to vote
0
Answered by
sebanuevo 123
4 years ago
Edited 4 years ago

Tell me if this works!

workspace.WishHimAGoodBirthday.ClickDetector.MouseClick:Connect(function(player) 
if player.UserId == YourfriendUserIdHere then
script.Parent.TextTransparency = 0.9 wait(.03) script.Parent.TextTransparency = 0.8 wait(.03) script.Parent.TextTransparency = 0.7 wait(.03) script.Parent.TextTransparency = 0.6 wait(.03) script.Parent.TextTransparency = 0.5 wait(.03) script.Parent.TextTransparency = 0.4 wait(.03) script.Parent.TextTransparency = 0.3 wait(.03) script.Parent.TextTransparency = 0.2 wait(.03) script.Parent.TextTransparency = 0.1 wait(.03) script.Parent.TextTransparency = 0.0 end)
end
0
it wont work because having it just work for him doesnt make it only show up for him and i want it to work for multiple people and not just him diggerbear1 32 — 4y
0
ok sebanuevo 123 — 4y
Ad

Answer this question