First Script (In StarterPlayerScripts)

wood = Instance.new("IntValue")
wood.Parent = game.Players.LocalPlayer
wood.Value = 0
wood.Name = "Wood"

And I want to get this instance for another localscript, Is WaitForChild enough?

wood = game.Players.LocalPlayer:WaitForChild("Wood")

Is this work?

2 comments

0

yes it's enough, WaitForChild will yield until the instance is found.

0

Very, very thanks! This working fine!