Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

--Server Script (Called Client Spreader)
function game.ReplicatedStorage.SendRequest.OnServerInvoke(Player,Target,Velocity,Damage)
	print("Player is"..Player.."Target is"..Target.."Damage is"..Damage.."Velocity is"..Velocity)
	Target.leaderstats.Damage.Value = Damage
	Target.Character.Torso.Velocity = Velocity
	Target.leaderstats.LastHit.Value = Player.Name
	print("YAAAAAAAY")
	end
	
--Part of local script

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?

1 answer

If you are sending a request to the server its FireServer() not InvokeServer()

1 comment

0

even with a remote event,same error comes up

This discussion is preserved as it was. New answers, comments, and votes are closed.