Hello all! So as the title suggests, I am extremely new to Roblox Studio, and am coming here after having plenty of experience in Unity. Now what I'm trying to do is access the script of one object from another. For example:
Say the game has a script that stores amount of Wood a player has, let's call this PlayerWood. Trees spawn randomly around the map, each with a script detailing how much food the tree is worth and performs the chopping action, let's call this TreeWorth. The player walks over to a tree and chops it down. From the TreeWorth script, how can I access the PlayerWood script in order to increase the player's wood?
In Unity, this would be done by retrieving the script from the object itself. How would this kind of thing work in Roblox Studio? Any help is appreciated!
** You are now Level 1! **