Check out example codes for "roblox lua how to make something go invisible". It will help you in understanding the concepts better.
Code Example 1
local part = script.parent part.Transparency = 1 --makes it invisible part.CanCollide = false -- makes it so you can walk through it
Learn ReactJs, React Native from akashmittal.com