Just to clear the title up a bit, when I’m sending both the player and text from a TextLabel from client to server, they both come out as the player when printing them on the server side? But they are different on client?
I’m fairly new to remote events so sorry if this sounds stupid!
(I also apologize if this sounds confusing)
–Output–
–Local Script–
local Player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
Player.PlayerGui.Workbench_UI.Input_Bar.Index_Label.Text = script.Parent.TextLabel.Text
local Text = Player.PlayerGui.Workbench_UI.Input_Bar.Index_Label.Text
print("Local_Item:", Text)
print("Local_Player:", Player)
game.ReplicatedStorage.Remote_Events.CC342:FireServer(Player, Text)
end)
–Server Script–
local Index = require(script.Parent.Parent.Parent.Index_Background.Index)
game.ReplicatedStorage.Remote_Events.CC342.OnServerEvent:Connect(function(Player, Text)
local Inv = Player.Backpack
print("Server_Item:", Text)
print("Server_Player:", Player)
end)
(This might have existed somewhere on the devforum already but I didn’t find anything that could help, so if you find one mind replying with it?)