PlayerGui is not a valid member of Player "Players.(TargetName)"?

In this case I have 2 persons involved, the local player denomined as (“Staff”) and the Target (stated with a textbox), now it comes that when the Staff press the buttom it fires the client to connect with a local script where GUI TweensPosition to new one for the Target, after attemping to give PlayerGui a value with :WaitForChild() or :FindFirstChild() I get same error.

Here are the scripts

Server Sided:

script.Parent.Parent.StaffPromptHandler.Purchase.MouseButton1Click:Connect(function()
	script.Parent.Parent.StaffPromptHandler:TweenPosition(UDim2.new(0.29, 0,-1.014, 0))
	wait(.5)
	MCI.Prompt:FireAllClients(Target,"CustomerHandler")
	print("sent command customer handler for:" .. Target.Name)
end)

LocalScript:

MCI.Prompt.OnClientEvent:Connect(function(Target, command)
	if command == "CustomerHandler" then
		local Text = script.Parent.System.Player.Text
		local Target = game:GetService("Players"):FindFirstChild(Text) 
		Target.PlayerGui.MCICustomerPromptHandler:TweenPosition(UDim2.new(0.29, 0,0.014, 0))
		print("Sent customer handler")
	end
end)

That’s intended behavior, different players doesn’t have access to each other PlayerGui(and the server only has access to non-client UI inside PlayerGui). Therefore to tween the UI you must check if Target is equal to that specific local player:

if Target == game.Players.LocalPlayer then
	Target.PlayerGui.MCICustomerPromptHandler:TweenPosition(UDim2.new(0.29, 0,0.014, 0))
end

Although I assume this was supposed to only be sent to a single player. If that’s correct you must use MCI.Prompt:FireClient(Target, "CustomerHandler").

The thing, is that target is not the LocalPlayer, its one player reached out by a TextBox player finder.

The remote will fire for every player in the game, if one of them is that specific player the code runs, therefore tweening their UI.

Added that to code, using this:

if Target == game.Players.LocalPlayer then
print("local player")
else
Target.PlayerGui.MCI.CustomerHandler:TweenPositon(Udmi2.new(positon here))
end

And same error.