ok, when firing the value of a number through a remote event, my serverscript doesn’t process it as the number that was sent and instead prints the name of the player, instead of the value here’s what fires and here’s what recieves
Current.Changed:Connect(function()
local v2 = player:WaitForChild("Level").Current.Value
CurrentEvent:FireServer(v2)
print(v2)
end)
-- in most cases v2 = 0 but when this fires and the translator recieves, it recieves " bullettrain5 " despite it being a number value
-- this is my attempt at a translator to the server-side, this being a server script
CurrentEvent.OnServerEvent:Connect(function(value2)
if Current.Value ~= value2 then
Current.Value = value2
end
print(value2)
end)
-- the only thing i have to do with the player here is setting a variable for it to get the number value of current and the other values
yet despite the number value being sent in the remote event, it ends up printing what it recieved and it prints:
please help!
and thanks for reading