I'm trying to use a loop to slowly increase a model's transparency. How would I go about doing that?
local FadeModel_Out = function(ModelEntity, Speed) -- Put your supported Instance's that have Transparency property local SupportedTypes = { 'Part'; } if ModelEntity:IsA("Model") then local Entities = ModelEntity:GetDescendants() for _,OBJ in next, Entities do for _,Type in next, SupportedTypes do if OBJ:IsA(Type) then spawn(function() repeat OBJ.Transparency = OBJ.Transparency + 0.1 wait(Speed) until OBJ.Transparency == 1 end) end end end end end FadeModel_Out(workspace.Model, .01) -- Arguement[1] Is your model directory path. -- Arguement[2] Is your speed you want it to fade at.
I hope this helps your needs!