I need help changing the value of something something for everyone (Server Side), using a local script.
I want to change the value of an Object value to a players name using a local script.
I do not know how I can change it on the server side, with a local script.
elseif L_266_ == true then -- If the block touched is part of a player
L_254_.Parent:WaitForChild("Hitby").Value = L_2_ -- I want this to show on server side
L_254_.Parent:WaitForChild("Damaged"):Fire()
end
end
I agree with @PhoenixRessusection. I’m 99% sure there’s not a way to send the server information besides high-level explotation. This is basically so average people can’t change what the server wants to do with the game. As Phoenix said, I would recommend RemoteEvents.
If you want to know that from the script where you fire the remote event (Local Script.), the player should be Players.LocalPlayer. If you want to know it from the script which has the event binded (Server Script), the first argument should be the player.