Yue Posted April 9, 2019 Posted April 9, 2019 I have in a file declared a variable in the start function. function Script:Start() self.number = 100 end In another attached file the entity by means of the field. Script.player = nil --entity "Mesh Playerr" Later I try to recover the data from the variable, but it doesn't work. var = self.player.Script.number System:Print( var ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.