I’m making a script to print whats player write in textbox, but the script thinks the text its the player.
Local Script
-- I didn't write all the script, there is a MouseButton1Click function
local plr = game.Players.LocalPlayer
local text = script.Parent.Parent.TextBox
game.ReplicatedStorage.print:FireServer(text, plr)
Script - ServerScriptService
printEvent.OnServerEvent:Connect(function(text, plr)
print(plr.Name .. "printed: " .. text.Text)
end)
If u know whats wrong here, please say.