Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can a script change local player properties?

Asked by 8 years ago

Can a server script change the local player's properties when FilteringEnabled is turned on? I know a local script can't change the properties of objects in the workspace when FilteringEnabled is turned on, but does it apply the other way around? In other words, the local player cannot make changes to the server while the server can make changes to the local player?

1 answer

Log in to vote
0
Answered by 8 years ago

A server script can access and change players properties; it cannot, however, from a local script. In server scripts you can't access LocalPlayer, it's better to do an OnPlayerAdded function to get players. If you need send data/info from client to server, use remote events/functions.

0
Eh, the inability to change player properties with a local script is kinda wrong, but other than that this is accurate. Local scripts and server scripts can change player properties, but they both have different properties to access. CodingEvolution 490 — 8y
Ad

Answer this question