Hi, I have some problems with a remote event. So, I have a script and a local script. The local script has a value that needs to be sent to the server script like this:
local BanTime = Days * days + Hours * hours + Minutes * minutes
BanEvent:FireServer(PlayerName.Text, Reason.Text, days, hours, minutes, BanTime, PlayerUserId)
As I said, the BanTime has a value that needs to be sent to the server script. I made some printing
commands to see if both of the script gotten the value. The local script is saying the value. For example: 3600, 4000 or other numbers. But the server script is telling me the number 0.
BanEvent.OnServerEvent:Connect(function(player, PlayerName, Reason, BanTime, PlayerUserId)
Local script Output: 3600
Server script Output: 0 or sometimes 1?
I dont really know if remote events are able to send values like this or if it even works like this. I have seen this in a tutorial video.
Does anybody have some ideas to fix this? The number should be the same. There are also no spelling mistakes in the script.
I would be grateful for any help!