So, I need to fire a string to a server script for me to apply this string as text.
I know that :FireServer() automatically sends anything as an instance, but is there a way to… bypass it?
This is what I have right now:
Event.OnClientEvent:Connect(function()
print(player, Table[TableID]) --just me printing if it even works or no :v
AnotherEventLol:FireServer(player, ""..Table[TableID]) --my attemts converting that into string lol
end)
OnServerEvent’s first argument will already be the player Instance, so you do not actually need to place the player instance inside the FireServer argument, maybe that’s why you’re not getting the right results!
Like I said, the first argument of OnServerEvent will always be the player, that means that the request variable you’re using is actually the localplayer that used :FireServer! You should instead do this:
AnotherEventLol.OnServerEvent:Connect(function(player, request)
plr.PlayerGui["TEST UI"].TextLabel.Text = request
end)
-- (Maybe you might wanna change 'plr' to 'player' btw)
oh! yes! this works! (and another reply too) thanks everyone a lot! (god events are confusing, but i understand now, i just thought that i dont need to specify that on server)