The title says it all. I need to find the connection, probably a method between a Workspace player and their game.Players
data.
Example: I have a Gui that I want cloned from a character in game.Workspace.Player32
, and it to go to their PlayerGui. How do I make it go there without knowing their Player number?
local player = game.Players:GetPlayerFromCharacter(Workspace.Player32) if player then player.PlayerGui.ScreenGui.Frame.Visible = true end
inverse
local character = game.Players.Player32.Character if player then character.Torso.Transparency = 1 end
I hope I help.
:GetPlayerFromCharacter()
That's all I needed. Props to GoldenPhysics for the answer.