--[[ mesh disco f3x made by fro0kidd not remove credits pls --]] local player = game.Players.LocalPlayer local char = player.Character local tool for _, v in ipairs(player:GetDescendants()) do if v.Name == "SyncAPI" then tool = v.Parent break end end if not tool then for _, v in ipairs(game.ReplicatedStorage:GetDescendants()) do if v.Name == "SyncAPI" then tool= v.Parent break end end end if not tool then warn("yo ur not have f3x") return end remote = tool.SyncAPI.ServerEndpoint function _(args) spawn(function() local success, result if remote:IsA("RemoteFunction") then success, result = pcall(function() return remote:InvokeServer(unpack(args)) end) else remote:FireServer(unpack(args)) success = true end end) end function DestroyPart(part) local args = { [1] = "Remove", [2] = { [1] = part } } _(args) end function AddMesh(part) local args = { [1] = "CreateMeshes", [2] = { [1] = { ["Part"] = part } } } _(args) end function SetMeshType(part, meshType) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["MeshType"] = meshType } } } _(args) end function SetColor(part, color) local args = { [1] = "SyncColor", [2] = { [1] = { ["Part"] = part, ["Color"] = color, ["UnionColoring"] = false } } } _(args) end characterParts = {} for _, v in ipairs(player.Character:GetDescendants()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:FindFirstAncestorOfClass("Accessory") then table.insert(characterParts, v) for _, child in ipairs(v:GetDescendants()) do if child:IsA("SpecialMesh") or child:IsA("BlockMesh") or child:IsA("CylinderMesh") then DestroyPart(child) end end AddMesh(v) end end _G.MeshLoopID = (_G.MeshLoopID or 0) + 1 local myLoop = _G.MeshLoopID while myLoop == _G.MeshLoopID do for _, part in ipairs(characterParts) do local n = math.random(1, 6) local randomMesh if n == 1 then randomMesh = Enum.MeshType.Brick elseif n == 2 then randomMesh = Enum.MeshType.Cylinder elseif n == 3 then randomMesh = Enum.MeshType.Head elseif n == 4 then randomMesh = Enum.MeshType.Sphere elseif n == 5 then randomMesh = Enum.MeshType.Wedge else randomMesh = Enum.MeshType.Torso end SetMeshType(part, randomMesh) SetColor(part, Color3.new(math.random(), math.random(), math.random())) end wait(0.1) end