Probably some silly mistake. The error code is Children is not a valid member of model
Children = script.Parent.Model:GetChildren() script.Parent.Model.Children.Transparency = Variable
Thats just my problem but if the entire code is necessary here it is
Children = script.Parent.Model:GetChildren() Variable = 0 Des = 0.01 OrDes = Des function ftrancparency () Variable = Variable + Des script.Parent.Model.Children.Transparency = Variable end while true do wait() ftrancparency() if Variable >= 1 then script.Parent.Model.Children.CanCollide = false wait (5) Des = -OrDes end if Variable <= 0 then script.Parent.Model.Children.CanCollide = true wait (10) Des = OrDes end end
Children returns a table/list/array of all descendants of "Model". You can't set a table's transparency, so you have to cycle through the list.
for i, v in pairs(script.Parent.Model:GetChildren()) do v.Transparency = Variable; end