Remote Event (client to sever) not working?
ERROR: ServerScriptService.ClientSpreader:4: attempt to concatenate local 'Velocity' (a userdata value)
or sometimes
ServerScriptService.ClientSpreader:4: attempt to concatenate local 'Velocity' (a nil value value)
Aparently the velocity value is sometimes nil or a player value??? it is normaly a vector3 value. What is the problem here
02 | function game.ReplicatedStorage.SendRequest.OnServerInvoke(Player,Target,Velocity,Damage) |
03 | print ( "Player is" ..Player.. "Target is" ..Target.. "Damage is" ..Damage.. "Velocity is" ..Velocity) |
04 | Target.leaderstats.Damage.Value = Damage |
05 | Target.Character.Torso.Velocity = Velocity |
06 | Target.leaderstats.LastHit.Value = Player.Name |
12 | SendRequest:InvokeServer(K,Velocity,Damage.Value) |
I think the problem is with the server script, and something about the order of the parameters, but i dont know for sure. What is wrong here?