So I get the basic concept of remote functions and events, and I read several questions that were answered on here and read the wiki.
but I still can't figure out how to activate a specified function via the remote.
((Plus I honestly don't know where to put the scripts and the remote function/remote event))
So how would I go after defining say a "touched" function to telling the server to do a certain function like adding to a player's Item value?
((My verbal instructions so far))
local script
blocked touched begin function (hit)
if hit.parent == Humanoid then
invoke server function (Add)
end)
Server function
1.If message == 'Add' then
2.Player.Value = Player.Value + 5
3.end
I have no idea where to put the scripts and the remotefunction object. Plus I'm not sure how to make the remotefunction object invoke the Add function.
Any assistance would be really nice and helpful!
((PS. I'm sorry I didn't write a script, but I have no idea where to place everything so I can give you a actual error..))

1 comment
https://youtu.be/4Dc_bri9mjs