I am trying to make my script find players when they click a Gui but i don't know what i am suppose to type
script.Parent.MouseButton1Click:Connect(function()
if "What do i put here?".Parent:FindFirstChild("Humanoid") then -- what do i type?
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.TriggerCam:FireClient(player)
end
end)

2 comments
sorry that the title is weird. it told me that i need a title and a question mark
You can get rid of that line completely. MouseButton1Click can only ever be clicked by the player, so you don't need to check for humanoid.