#Help understanding the code
24 messages · Page 1 of 1 (latest)
print(tostring(a))
I didnt understand how "a" has the player instance , still new to lua , sorry if im being stupid
No what
While testing, try pressing the name, first time it just changes to the server, click it again and it locates the instance. (In this case, the player that has send the remote)
Like click the name in the output twice
WHILE TESTING
Because its a server script
And the instance printed, is the instance on the server
The client has a different copy of the server, the client can change the instances, and the server cannot see the changes but as soon as the server changes an instance, all previously changed properties of that instance is restored to the serverside properties
not that its related to this topic, but i've seen many people write like that. How do you do that?
Wdym? Like this?
print("Hello, world!")
;compile
Hello, world!