Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you group multiple children into having their values changed?

Hiya! So yesterday I think it was I asked a question about client-sided buttons which got solved easily.

My problem now is that there are multiple buttons to press and multiple button platforms to activate, as well as a reverse function.

In order to facilitate this I edited a script I received earlier (which worked fine until I added new buttons) to:

local platform = workspace.Button.ButtonPlatform:GetChildren()

game.ReplicatedStorage.PropertyChangeGood.OnClientEvent:Connect(function()
	platform.Transparency = 0
	platform.CanCollde = 0
    game.Players.LocalPlayer.PlayerScripts.SuccessSound:Play()
  

end)

Now nothing comes up at all in the log and nothing happens in game. I feel like I am a bit of an idiot atm because I know this script isn't right remotely but I'm somewhat stumped.

Things I have tried:

adding workplace. to platform adding worksplace.button.platform to it

yeah idk what to do, its prolly just a matter of adding 'local' somewhere but im stumped.

Thanks!

1 answer

Hey - in case anyone is reading this, it turns out my problem was because GetChildren operates on a table basis and there was no table created. Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.