Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Ghostify(model)
- for _, v in pairs(model:GetChildren()) do
- if (v:FindFirstChild("Humanoid") or v.Name == "ParkGuest") then
- v:Destroy();
- else
- Ghostify(v);
- if (v:IsA("BasePart")) then
- v.Transparency = (1 - (1 - v.Transparency) / 2);
- v.BrickColor = BrickColor.new("Institutional white");
- v.Material = Enum.Material.SmoothPlastic;
- v.CanCollide = false;
- if (v:IsA("UnionOperation")) then
- v.UsePartColor = true;
- end
- elseif (v:IsA("Decal")) then
- v.Transparency = (1 - (1 - v.Transparency) / 2);
- elseif (v:IsA("SpecialMesh")) then
- v.TextureId = "";
- end
- end
- end
- end
- return Ghostify;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement