Surfacelight won't turn on / off

Hey devs, I was wondering why this surfacelight script won’t work:

local flash = game.ReplicatedStorage.ViewModel.BulletStart.MuzzleFlash.Enabled

flash = true

You should parent it to the workspace first.

1 Like

Oh, I just realized it wasn’t parented to the cloned viewmodel