How would I make a gui frame visible when a player clicks another players torso? Should I use the click detector way or what, I am pretty clueless on this and I would like to know how.
mouse.?:connect(function() --What should I replace ? with?
I have the function and I know how to click the players torso, but should I do just MouseButton1Down or something?
Attempt
local plr = game.Players.LocalPlayer;
local mouse = plr:GetMouse();
local Frame2 = script.Parent.Content
mouse.MouseButton1Down:connect(function()
if game.Players:GetPlayerFromCharacter(mouse.Target.Parent) then
Frame2.Visible = true;
end
end)

1 comment
This helped a lot, thanks!