I am currently trying to make an index gui in game where when you click on the button, it shows you information about that certain location you discovered. The only problem is that I have to make around 40 of these, and I am wondering if there is a better way to do this then defining each and every one of the events/gui. Ex:
local Corruption = script.Parent:FindFirstChild("Corruption")
local CorruptionEvent = game.ReplicatedStorage:FindFirstChild("CorruptionEvent")
And I would have to do this for ALL of them, which I think there has to be a better method to (aka soft coding it). Any help will be appreciated.